2024-08-24 02:50:28 +00:00
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
class Token(BaseModel):
|
|
|
|
access_token: str
|
|
|
|
token_type: str
|
|
|
|
|
|
|
|
class User(BaseModel):
|
|
|
|
username: str
|
2024-11-11 04:28:47 +00:00
|
|
|
email: str | None = None
|
|
|
|
full_name: str | None = None
|
2024-08-24 02:50:28 +00:00
|
|
|
disabled: bool | None = None
|
|
|
|
|
|
|
|
class UserInDB(User):
|
|
|
|
hashed_password: str
|