package com.qiuguo.iot.data.entity.ota;
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>*OTA固件版本信息表
* @author wulin
* @since 2023-08-08
*/

@Data
@Comment("OTA固件版本信息表")
@Table(name = "ota_version_info")
@EnableEntityEvent
public class OtaVersionInfoEntity  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 = "version", length = 100, nullable = false)
    private String version;

    @Comment("设备类型：0 果Box 1智能插座 2智能大灯 3智能窗帘驱动 4智能窗户关闭 5智能台灯 6智能桌子 7智能椅子 8智能风扇 9智能空调（遥控器） 10智能冰箱 11智能洗碗机 12智能电热水器 13温度传感器 14空气质量传感器 15光线传感器 16雨量传感器 17闭门器 1000秋果box配置App")
    @Column(name = "device_type", nullable = false)
    private Integer deviceType;

    @Comment("对应的批次")
    @Column(name = "device_bath_id", nullable = false)
    private Long deviceBathId;

    @Comment("支持升级的最大版本")
    @Column(name = "max_version", length = 100)
    private String maxVersion;

    @Comment("支持升级的最小版本")
    @Column(name = "min_version", length = 100)
    private String minVersion;

    @Comment("是否强制升级")
    @Column(name = "is_force")
    private Integer isForce;

    @Comment("固件下载地址")
    @Column(name = "dowload_url", length = 255, nullable = false)
    private String dowloadUrl;

    @Comment("固件完整性校验码")
    @Column(name = "md5", length = 32, nullable = false)
    private String md5;

    @Comment("升级说明")
    @Column(name = "remark", length = 255)
    private String remark;

}