mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
починка маршрутов22
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""Employee schemas"""
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
from datetime import datetime
|
||||
|
||||
class EmployeeBase(BaseModel):
|
||||
first_name: str
|
||||
@@ -17,5 +18,6 @@ class EmployeeUpdate(EmployeeBase):
|
||||
|
||||
class Employee(EmployeeBase):
|
||||
id: int
|
||||
created_at: datetime
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
Reference in New Issue
Block a user