change status
This commit is contained in:
@@ -6,18 +6,14 @@ class User(BaseModel):
|
||||
username: str
|
||||
password: str
|
||||
roles: str = "User"
|
||||
disabled: bool = False
|
||||
removed: bool = False
|
||||
confirmed: bool = False
|
||||
status: int = 0
|
||||
email: EmailStr
|
||||
|
||||
class UserOut(BaseModel):
|
||||
id: ObjectIdField = None
|
||||
username: str
|
||||
roles: str
|
||||
disabled: bool
|
||||
removed: bool
|
||||
confirmed: bool
|
||||
status: int = 0
|
||||
email: EmailStr
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user