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

Починка админки полностью22223322f2ва

This commit is contained in:
MoonTestUse1
2025-01-01 23:50:15 +06:00
parent b2395ad252
commit d3a6440844
3 changed files with 55 additions and 20 deletions

View File

@@ -0,0 +1,19 @@
"""Employee schemas"""
from pydantic import BaseModel
from datetime import datetime
class EmployeeBase(BaseModel):
first_name: str
last_name: str
department: str
office: str
class EmployeeCreate(EmployeeBase):
password: str
class Employee(EmployeeBase):
id: int
created_at: datetime
class Config:
from_attributes = True