package com.qiuguo.iot.data.entity.system;
import org.hswebframework.ezorm.rdb.mapping.annotation.Comment;
import org.hswebframework.web.crud.annotation.EnableEntityEvent;
import org.hswebframework.web.api.crud.entity.GenericEntity;
import javax.persistence.Column;
import javax.persistence.Table;import lombok.Data;
import java.util.Date;
/**
* <p>
* </p>*问答配置表（问答关键字匹配表，该表中未匹配到的才会调用第三方语言模型）
* @author wulin
* @since 2023-08-08
*/

@Data
@Comment("问答配置表（问答关键字匹配表，该表中未匹配到的才会调用第三方语言模型）")
@Table(name = "system_talk_answer_config")
@EnableEntityEvent
public class SystemTalkAnswerConfigEntity  extends GenericEntity<Long> {
    @Comment("id")
    @Column(name = "id", length = 11, nullable = false, unique = true)
    private Long id;

    @Comment("是否删除：0 否 1 删除")
    @Column(name = "is_delete", nullable = false)
    private Integer isDelete;

    @Comment("创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @Comment("修改时间")
    @Column(name = "modify_time")
    private Date modifyTime;

    @Comment("用户id")
    @Column(name = "user_id", nullable = false)
    private Long userId;

    @Comment("问题关键字")
    @Column(name = "ask_key", length = 100)
    private String askKey;

    @Comment("回答内容（传给box）")
    @Column(name = "answer_value", length = 255, nullable = false)
    private String answerValue;

    @Comment("执行失败所对应动作")
    @Column(name = "answer_value_faild", length = 255, nullable = false)
    private String answerValueFaild;

    @Comment("回答时的动作(数字人的口型以外动作)")
    @Column(name = "answer_action", length = 255)
    private String answerAction;

    @Comment("执行失败所对应动作")
    @Column(name = "answer_action_faild", length = 255, nullable = false)
    private String answerActionFaild;

    @Comment("回答时的背景音乐（URL）")
    @Column(name = "answer_back_sound", length = 255)
    private String answerBackSound;

    @Comment("回答时的背景图片、视屏、动画（URL）")
    @Column(name = "answer_back_img", length = 255)
    private String answerBackImg;

    @Comment("关键字的排序，越小越第一个匹配上")
    @Column(name = "key_order", nullable = false)
    private Long keyOrder;

    @Comment("回答类型0：文本问答 1：iOT控制 2：天气 3：闹钟 4：U3D 5：音乐声音 100：固件升级")
    @Column(name = "answer_type", nullable = false)
    private Integer answerType;

}