Add servers

This commit is contained in:
Jimmy 2022-01-11 04:18:26 +00:00
parent e5b2fb06f3
commit d09c207c97
2 changed files with 4 additions and 3 deletions

View File

@ -12,9 +12,9 @@ class TokenData(BaseModel):
class User(BaseModel): class User(BaseModel):
username: str username: str
email: Optional[str] = None
full_name: Optional[str] = None
disabled: Optional[bool] = None disabled: Optional[bool] = None
servers: list
class UserInDB(User): class UserInDB(User):
hashed_password: str hashed_password: str

View File

@ -4,6 +4,7 @@
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW",
"disabled": "False" "disabled": "False",
"servers": ["a", "b"]
} }
} }