File size: 386 Bytes
33aa776
f1483eb
 
 
 
 
 
 
 
8e6d020
df5de91
 
f1483eb
1
2
3
4
5
6
7
8
9
10
11
12
13
from sqlalchemy import Column,Integer, String,DateTime,Float
from datetime import datetime
import database

class SentimentResult(database.Base):

    __tablename__ = "sentiment_results"

    id = Column(Integer, primary_key=True, index=True)
    text_input = Column(String)
    score = Column(Float)
    label = Column(String)
    created_at = Column(DateTime, default=datetime.utcnow)