diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-04 00:03:04 +0300 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-04 00:03:04 +0300 |
| commit | 63e87a3ed84ee9e9e4a4ff329a40d2b7ce5e5d0d (patch) | |
| tree | c24731c200df3b5854a5abc14f7a5481a33d838a /app/schemas/user.py | |
| parent | d835d79eb24c730ec8148415113e846a01cefd19 (diff) | |
add profile
Diffstat (limited to 'app/schemas/user.py')
| -rw-r--r-- | app/schemas/user.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/schemas/user.py b/app/schemas/user.py index 6644216..83a3245 100644 --- a/app/schemas/user.py +++ b/app/schemas/user.py @@ -2,6 +2,10 @@ from typing import Optional from pydantic import BaseModel, EmailStr, Field +from app.schemas.profile import ProfileRead + +from .integrations import UserIntegrationRead + class UserCreate(BaseModel): username: str = Field(..., max_length=32) @@ -23,7 +27,8 @@ class UserRead(BaseModel): premium: bool is_banned: bool is_moderator: bool - + profile: Optional[ProfileRead] = None + integrations: Optional[UserIntegrationRead] = None model_config = { "from_attributes": True, } |
