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