К схемам из schema.py добавлены доп. поля (соотв. models)

This commit is contained in:
DmitryGantimurov 2023-07-19 00:05:42 +03:00
parent d66b9004e0
commit 9e4bb1b99f

View File

@ -15,10 +15,13 @@ class TokenData(BaseModel):
class User(BaseModel):
email: Union[str, None] = None
full_name: Union[str, None] = None
disabled: Union[bool, None] = None
id: int
phone: Union[int, None] = None
email: str
name: Union[str, None] = None
surname: Union[str, None] = None
class UserInDB(User):
password: str
hashed_password: str