Benutzerverwaltung begonnen

This commit is contained in:
Schubert Ferenc 2026-07-02 00:00:33 +02:00
parent d8ddc4c416
commit c4d27a1187
7 changed files with 88 additions and 3 deletions

View file

@ -0,0 +1,17 @@
from pydantic import BaseModel, EmailStr
class UserCreate(BaseModel):
username: str
email: EmailStr
password: str
class UserResponse(BaseModel):
id: int
username: str
email: EmailStr
model_config = {
"from_attributes": True
}