提交 | 用户 | age
|
9e1c8d
|
1 |
package com.hx.other.service.model; |
G |
2 |
|
|
3 |
import com.gitee.sunchenbin.mybatis.actable.annotation.Column; |
|
4 |
import com.gitee.sunchenbin.mybatis.actable.annotation.Table; |
|
5 |
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; |
|
6 |
import lombok.Data; |
|
7 |
|
|
8 |
import java.util.Date; |
|
9 |
|
|
10 |
/** |
|
11 |
* 查询记录 |
|
12 |
* @Author: cmg |
|
13 |
* @Date: 2023/4/23 10:11 |
|
14 |
*/ |
|
15 |
@Data |
|
16 |
@Table(name = "query_record") |
|
17 |
public class QueryRecord extends BaseEntity{ |
|
18 |
|
|
19 |
@Column(comment = "查询内容", type = MySqlTypeConstant.VARCHAR, isNull = false) |
|
20 |
private String content; |
|
21 |
|
6044ac
|
22 |
@Column(comment = "向AI查询内容", length = 5000, type = MySqlTypeConstant.VARCHAR) |
9e1c8d
|
23 |
private String aiQueryContent; |
G |
24 |
|
|
25 |
@Column(comment = "AI返回结果", length = 1000, type = MySqlTypeConstant.VARCHAR) |
|
26 |
private String aiResult; |
|
27 |
|
|
28 |
@Column(comment = "提取的sql语句", length = 1000, type = MySqlTypeConstant.VARCHAR) |
|
29 |
private String sqlStr; |
|
30 |
|
|
31 |
@Column(comment = "向ai查询的时间,豪秒数", length = 13, type = MySqlTypeConstant.BIGINT) |
|
32 |
private Long queryTime = 0L; |
|
33 |
|
|
34 |
@Column(comment = "ai返回的时间,豪秒数", length = 13, type = MySqlTypeConstant.BIGINT) |
|
35 |
private Long aiResultTime; |
|
36 |
|
|
37 |
@Column(comment = "sql查询的时间,豪秒数", length = 13, type = MySqlTypeConstant.BIGINT) |
|
38 |
private Long sqlTime; |
|
39 |
|
56608e
|
40 |
@Column(comment = "是否来自模板", length = 2, type = MySqlTypeConstant.TINYINT) |
9e1c8d
|
41 |
private Integer isFromQuery = BaseEntity.NO; |
G |
42 |
} |