service_man/api/schemas/base_schema.py

14 lines
173 B
Python
Raw Normal View History

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