Access tokens 0.1.0
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user