File size: 428 Bytes
36ed17a
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from sqlalchemy import Column, Integer, String, DateTime, func
from app.db.database import Base


class ChatMessageModel(Base):
    __tablename__ = "chat_messages"

    id = Column(Integer, primary_key=True, index=True)
    content = Column(String, nullable=False)
    user_input = Column(Integer, nullable=False)
    processed_value = Column(Integer, nullable=False)
    timestamp = Column(DateTime, server_default=func.now())