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-09-25
*/

@Data
@Comment("自定义命令和设备动作绑定表")
@Table(name = "system_talk_bind_device")
@EnableEntityEvent
public class SystemTalkBindDeviceEntity 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 = "system_talk_id", nullable = false)
    private Long systemTalkId;

    @Comment("设备操控id")
    @Column(name = "user_handling_id", nullable = false)
    private Long userHandlingId;

    @Comment("分类字段名称")
    @Column(name = "category_code", length = 20, nullable = false)
    private String categoryCode;

    @Comment("动作后的变量，名词")
    @Column(name = "ask_common",  length = 100, nullable = false)
    private String askCommon;

    @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 = "remark", length = 255)
    private String remark;

}