create project

This commit is contained in:
2026-07-16 16:06:22 +03:00
parent 0a81898f29
commit a8a18abf30
10 changed files with 256 additions and 8 deletions
+23
View File
@@ -0,0 +1,23 @@
from pydantic import BaseModel, EmailStr
class UserCreate(BaseModel):
email: EmailStr
password: str
role: str = "user"
class UserOut(BaseModel):
id: int
email: EmailStr
is_active: bool
role: str
class Config:
orm_mode = True
class Token(BaseModel):
access_token: str
token_type: str