package com.hx.other.service.model;
|
|
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
|
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
|
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
/**
|
* 查询记录
|
* @Author: cmg
|
* @Date: 2023/4/23 10:11
|
*/
|
@Data
|
@Table(name = "query_record")
|
public class QueryRecord extends BaseEntity{
|
|
@Column(comment = "查询内容", type = MySqlTypeConstant.VARCHAR, isNull = false)
|
private String content;
|
|
@Column(comment = "向AI查询内容", length = 5000, type = MySqlTypeConstant.VARCHAR)
|
private String aiQueryContent;
|
|
@Column(comment = "AI返回结果", length = 1000, type = MySqlTypeConstant.VARCHAR)
|
private String aiResult;
|
|
@Column(comment = "提取的sql语句", length = 1000, type = MySqlTypeConstant.VARCHAR)
|
private String sqlStr;
|
|
@Column(comment = "向ai查询的时间,豪秒数", length = 13, type = MySqlTypeConstant.BIGINT)
|
private Long queryTime = 0L;
|
|
@Column(comment = "ai返回的时间,豪秒数", length = 13, type = MySqlTypeConstant.BIGINT)
|
private Long aiResultTime;
|
|
@Column(comment = "sql查询的时间,豪秒数", length = 13, type = MySqlTypeConstant.BIGINT)
|
private Long sqlTime;
|
|
@Column(comment = "是否来自模板", length = 2, type = MySqlTypeConstant.TINYINT)
|
private Integer isFromQuery = BaseEntity.NO;
|
}
|