This commit is contained in:
Garret Patti
2026-06-29 10:41:29 -04:00
parent d48c1e973e
commit 2b0b19eb91
23 changed files with 969 additions and 44 deletions

View File

@@ -86,3 +86,28 @@ class SearchResult(BaseModel):
class TagIdList(BaseModel):
tag_ids: list[int]
# --- Auth ---
class LoginRequest(BaseModel):
username: str
password: str
class TokenResponse(BaseModel):
access_token: str
token_type: str = "bearer"
class UserOut(BaseModel):
id: int
username: str
is_admin: bool
created_at: datetime
model_config = {"from_attributes": True}
class UserCreate(BaseModel):
username: str
password: str