from pydantic import BaseModel, ConfigDict class ItemIn(BaseModel): text: str class ItemOut(BaseModel): model_config = ConfigDict(from_attributes=True) id: int text: str