Working on user, backend.

This commit is contained in:
charles-gauthereau
2024-10-27 11:51:53 +01:00
parent 1069b2c3ad
commit b62261896b
28 changed files with 7351 additions and 3383 deletions
+30
View File
@@ -0,0 +1,30 @@
from apps.base.schemas import Schema
class UserBase(Schema):
email: str
class UserCreate(UserBase):
password: str
class User(UserBase):
id: int
is_active: bool
class Config:
from_attributes = True
class Token(Schema):
access_token: str
token_type: str
class TokenData(Schema):
username: str | None = None
class UserInDB(User):
hashed_password: str