Gros refactoring
This commit is contained in:
parent
6008aa68f6
commit
4a6bfc951f
368 changed files with 22503 additions and 3 deletions
14
backend/models.py
Normal file
14
backend/models.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue