package com.huimv.beeboxs.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2022-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hive_warning")
public class HiveWarning implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer farmId;

    private String msgType;

    /**
     * 设备ID，8位16进制
     */
    private String deviceIdHex;

    /**
     * 事件类型： 0标签上线 1标签下线 2网关上线 3网关下线
     */
    private String eventType;

    /**
     * 事件发生时间
     */
    @JsonFormat(pattern = "MM-dd HH:mm",timezone = "GMT+8")
    private Date eventTime;


}
