diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-09 15:21:30 +0300 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-09 15:21:30 +0300 |
| commit | 70b0706973d9d856ca9f136df23a6fbec0901aea (patch) | |
| tree | 7e77727f4c922201f32380659e0100c3aada3e8b /app/schemas/user.py | |
| parent | 63e87a3ed84ee9e9e4a4ff329a40d2b7ce5e5d0d (diff) | |
update settings
Diffstat (limited to 'app/schemas/user.py')
| -rw-r--r-- | app/schemas/user.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/schemas/user.py b/app/schemas/user.py index 83a3245..d809196 100644 --- a/app/schemas/user.py +++ b/app/schemas/user.py @@ -20,14 +20,15 @@ class UserCreate(BaseModel): class UserRead(BaseModel): id: int username: str - email: EmailStr = None + email: Optional[EmailStr] = None google_id: Optional[str] = None avatar_file: Optional[str] = None banner_file: Optional[str] = None + has_password: bool premium: bool is_banned: bool is_moderator: bool - profile: Optional[ProfileRead] = None + profile: ProfileRead integrations: Optional[UserIntegrationRead] = None model_config = { "from_attributes": True, |
