Access tokens 0.1.0

This commit is contained in:
2026-07-23 11:13:52 +03:00
parent 8e66161ddd
commit 4d61d873b5
10 changed files with 297 additions and 210 deletions

View File

@@ -20,15 +20,18 @@ class UserCreate(Base):
class UserOut(Base):
id:Annotated[UUID, Field(..., description="Id of the user")]
first_name:Annotated[str, Field(..., max_length=64,description="first name of the user")]
last_name:Annotated[str, Field(..., max_length=64,description="last name of the user")]
middle_name:Annotated[str, Field(..., max_length=64, description="middle name of the user")]
email:Annotated[EmailStr, Field(...,min_length=5, max_length=255, description="email of the user")]
status:Annotated[bool, Field(..., description="status of the user")]
permissions:Annotated[list[str], Field(..., description="permissions of the user")]
permission_groups:Annotated[list[str], Field(..., description="permissions groups of the user")]
# permissions:Annotated[list[str], Field(..., description="permissions of the user")]
# permission_groups:Annotated[list[str], Field(..., description="permissions groups of the user")]
class UserOutDB(UserOut):
id:Annotated[UUID, Field(..., description="Id of the user")]
status:Annotated[bool, Field(..., description="status of the user")]
hashed_password:Annotated[str, Field(..., description="hashed password of the user")]
class UserUpdate(Base):