1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/backend/app/models/employee.py
MoonTestUse1 e81df4c87e Initial commit
2024-12-23 19:27:44 +06:00

22 lines
344 B
Python

from pydantic import BaseModel
from datetime import datetime
class EmployeeBase(BaseModel):
last_name: str
first_name: str
department: str
office: str
class EmployeeCreate(EmployeeBase):
password: str
class Employee(EmployeeBase):
id: int
created_at: datetime
class Config:
from_attributes = True