Add additional ORM relations and thumbs in API responses
This commit is contained in:
parent
791a79249c
commit
4272f2878e
9 changed files with 37 additions and 6 deletions
|
@ -30,6 +30,13 @@ class User(UserBase):
|
|||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
class UserThumb(BaseModel):
|
||||
id: UUID
|
||||
friendly_name: str
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
class PasswordUpdate(BaseModel):
|
||||
old_password: str = Field(max_length=100)
|
||||
new_password: str = Field(max_length=100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue