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
+18
View File
@@ -0,0 +1,18 @@
from pydantic import BaseModel, EmailStr
class UserBase(BaseModel):
username: str
email: EmailStr
class UserCreate(UserBase):
password: str
class User(UserBase):
id: int
is_active: bool = True
class Config:
from_attributes = True
class UserInDB(User):
hashed_password: str