package com.qiuguo.iot.data.entity.device;
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-05
*/

@Data
@Comment("设备信息对话记录表")
@Table(name = "device_user_talk_record")
@EnableEntityEvent
public class DeviceUserTalkRecordEntity 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("当前用户当前设备问话一次标识（考虑到可能有多个第三方回答）")
    @Column(name = "ask_number")
    private Integer askNumber;

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

    @Comment("设备id")
    @Column(name = "device_id", nullable = false)
    private Long deviceId;

    @Comment("问话内容")
    @Column(name = "ask_value", length = 255, nullable = false)
    private String askValue;

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

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

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

    @Comment("回答第三方模型（third_config_info），ask_type=4时为talk_answer_config的id")
    @Column(name = "answer_third_id", nullable = false)
    private Long answerThirdId;

    @Comment("第三方回答原始内容")
    @Column(name = "answer_third_value", length = 255)
    private String answerThirdValue;

    @Comment("是否返回给用户：0 否 1 是")
    @Column(name = "is_return", nullable = false)
    private Integer isReturn;

}