from pydantic import BaseModel class RoleRead(BaseModel): id: int title: str class Config: from_attributes = True