muryshev's picture
init
57cf043
raw
history blame
496 Bytes
from sqlalchemy import (
Integer,
String,
)
from sqlalchemy.orm import relationship, mapped_column
from components.dbo.models.base import Base
class Log(Base):
__tablename__ = 'log'
llmPrompt = mapped_column(String)
llmResponse = mapped_column(String)
llm_classifier = mapped_column(String)
userRequest = mapped_column(String)
query_type = mapped_column(String)
userName = mapped_column(String)
feedback = relationship("Feedback", back_populates="log")