implement initial backend structure with authentication, user management, and database integration

This commit is contained in:
zwitschi committed 2026-04-27 17:58:32 +02:00
1 parent 48a7ed68e6
commit 78b503fe43
14 files changed
+653

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
"""Pydantic schemas for user management endpoints."""
from pydantic import BaseModel, EmailStr
class UserResponse(BaseModel):
id: str
email: str
role: str
class UpdateUserRequest(BaseModel):
email: EmailStr | None = None
password: str | None = None
class SetRoleRequest(BaseModel):
role: str