# -*- coding: utf-8 -*- from .__load__ import * class User_history(Model): __table__ = 'user_data' __comment__ = '用户历史对话' id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID') site_id = Fields(type='int', comment='所属站点') role_id = Fields(type='int', comment='角色id') uid = Fields(type='int', comment='用户ID', default='-1') user_input = Fields(type='text', comment='用户输入', default='') ai_response = Fields(type='text', comment='AI响应', default='') summary = Fields(type='text', comment='摘要', default='') state = Fields(type='boolean', default='True', comment='数据存在状态') cdate = Fields(type='int', default='time', comment='创建时间')