К схемам из schema.py добавлены доп. поля (соотв. models)
This commit is contained in:
parent
7c317805fb
commit
98139e2162
@ -15,10 +15,13 @@ class TokenData(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class User(BaseModel):
|
class User(BaseModel):
|
||||||
email: Union[str, None] = None
|
id: int
|
||||||
full_name: Union[str, None] = None
|
phone: Union[int, None] = None
|
||||||
disabled: Union[bool, None] = None
|
email: str
|
||||||
|
name: Union[str, None] = None
|
||||||
|
surname: Union[str, None] = None
|
||||||
|
|
||||||
|
|
||||||
class UserInDB(User):
|
class UserInDB(User):
|
||||||
|
password: str
|
||||||
hashed_password: str
|
hashed_password: str
|
Loading…
x
Reference in New Issue
Block a user