from pydantic import BaseModel class AccessoryEntity(BaseModel): id: int name: str width: float height: float length: float weight: float class Config: from_attributes = True