К схемам из schema.py добавлены доп. поля (соотв. models)
This commit is contained in:
parent
d66b9004e0
commit
9e4bb1b99f
@ -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
|
Loading…
x
Reference in New Issue
Block a user