Files
romm/backend/endpoints/responses/identity.py
2024-01-12 23:44:27 +01:00

15 lines
253 B
Python

from models.user import Role
from pydantic import BaseModel
class UserSchema(BaseModel):
id: int
username: str
enabled: bool
role: Role
oauth_scopes: list[str]
avatar_path: str
class Config:
from_attributes = True