File size: 340 Bytes
6801092
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class SentimentResultBase(BaseModel):
    positive_score: float
    negative_score: float
    neutral_score: float

class SentimentResultCreate(SentimentResultBase):
    pass

class SentimentResult(SentimentResultBase):
    id: int
    created_at: datetime
    user_id: int
    text_id: int

    class Config:
        from_attributes = True