Add servers
This commit is contained in:
parent
e5b2fb06f3
commit
d09c207c97
|
@ -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
|
|
@ -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"]
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue