1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Создание чата5

This commit is contained in:
MoonTestUse1
2025-01-05 05:57:42 +06:00
parent 0dd0690990
commit e08b03dbe6
5 changed files with 107 additions and 56 deletions

View File

@@ -0,0 +1,16 @@
from pydantic import BaseModel, EmailStr
class UserBase(BaseModel):
email: EmailStr
full_name: str
class UserCreate(UserBase):
password: str
class User(UserBase):
id: int
is_active: bool
is_admin: bool
class Config:
from_attributes = True