guang
2023-04-23 9e1c8d19bbca288b74464e90b75c9c1fe710ec1e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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, isNull = false)
    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;
}