package com.qiuguo.iot.data.entity.operation;
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 = "operatin_event_config")
@EnableEntityEvent
public class OperatinEventConfigEntity 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("事件类型类型：1：节日 2：天气 15 新闻事件")
    @Column(name = "type", nullable = false)
    private Integer type;

    @Comment("关键字，多个用英文逗号隔开")
    @Column(name = "key", length = 255)
    private String key;

    @Comment("订阅地址")
    @Column(name = "ur", length = 255)
    private String ur;

    @Comment("第三方订阅配置相关信息id")
    @Column(name = "third_config_info_id", nullable = false)
    private Long thirdConfigInfoId;

}