sentiment_analyzer / models.py
xclasscode's picture
Update models.py
df5de91
raw
history blame contribute delete
386 Bytes
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)