mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
15 lines
253 B
Python
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
|