service_man/api/schemas/base_schema.py

14 lines
173 B
Python

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