SceneTemplate.java
979 Bytes
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
43
package com.xly.entity;
import jakarta.persistence.*;
import lombok.Data;
/**
* 数据库存储的动态模板
*/
@Entity
@Table(name = "ai_scene_template")
@Data
public class SceneTemplate {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "scene_code")
private String sceneCode; // 场景编码
@Column(name = "scene_name")
private String sceneName; // 场景名称
@Column(name = "template_content", columnDefinition = "TEXT")
private String templateContent; // 模板内容
@Column(name = "variables_config", columnDefinition = "JSON")
private String variablesConfig; // 变量配置
@Column(name = "rules_config", columnDefinition = "JSON")
private String rulesConfig; // 规则配置
@Column(name = "is_active")
private Boolean active = true;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
}