add deleted method

This commit is contained in:
2023-10-14 18:20:08 +02:00
parent 9bfd25a908
commit ecc6e7642f
3 changed files with 31 additions and 5 deletions

View File

@@ -6,13 +6,17 @@ class User(BaseModel):
username: str
password: str
roles: str
disabled: bool
disabled: bool = False
removed: bool = False
confirmed: bool = False
class UserOut(BaseModel):
id: ObjectIdField = None
username: str
roles: str
disabled: bool
removed: bool
confirmed: bool
class UserInDB(User):
password: str