from pydantic import BaseModel from datetime import datetime class SentimentResultBase(BaseModel): text_input: str positive_score: float negative_score: float class SentimentResultCreate(SentimentResultBase): pass class SentimentResult(SentimentResultBase): id: int text_input: str created_at: datetime