service_man/api/schemas/base_schema.py

17 lines
207 B
Python

from uuid import UUID
from pydantic import BaseModel
class BaseDTO(BaseModel):
class Config:
from_attributes = True
class WriteDTO(BaseDTO):
pass
class ReadDTO(WriteDTO):
id: UUID