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_record")
@EnableEntityEvent
public class OtaRecordEntity  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 = "device_id", nullable = false)
    private Long deviceId;

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

    @Comment("ota信息id")
    @Column(name = "ota_id", nullable = false)
    private Long otaId;

    @Comment("升级类型：0 用户手动 1 自动升级 2 强制升级")
    @Column(name = "ota_type", nullable = false)
    private Integer otaType;

    @Comment("升级完成时间")
    @Column(name = "finish_time")
    private Date finishTime;

}