fabriquedoc/backend/models.py
François Pelletier 4a6bfc951f Gros refactoring
2024-12-31 17:00:07 -05:00

14 lines
283 B
Python

from pydantic import BaseModel
class Token(BaseModel):
access_token: str
token_type: str
class User(BaseModel):
username: str
email: str | None = None
full_name: str | None = None
disabled: bool | None = None
class UserInDB(User):
hashed_password: str