Add additional ORM relations and thumbs in API responses

This commit is contained in:
Oliver Traber 2025-05-25 16:49:50 +00:00
parent 791a79249c
commit 4272f2878e
Signed by: Bluemedia
GPG key ID: C0674B105057136C
9 changed files with 37 additions and 6 deletions

View file

@ -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)