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; } }