mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Починка админки полностью22223322f2ва
This commit is contained in:
19
backend/app/schemas/employee.py
Normal file
19
backend/app/schemas/employee.py
Normal 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
|
Reference in New Issue
Block a user