service_man/api/schemas/base_schema.py

17 lines
207 B
Python
Raw Normal View History

2024-03-11 21:07:01 +03:00
from uuid import UUID
from pydantic import BaseModel
2024-03-12 01:06:43 +03:00
class BaseDTO(BaseModel):
2024-03-11 21:07:01 +03:00
class Config:
from_attributes = True
2024-03-12 01:06:43 +03:00
class WriteDTO(BaseDTO):
pass
2024-03-11 21:07:01 +03:00
class ReadDTO(WriteDTO):
id: UUID