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