package com.sckw.slope.detection.model.dos.mysql;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lfdc
 * @description 告警表（存TD）
 * @date 2023-10-25 13:46:12
 */
@Data
@TableName("kws_alarm")
public class KwsAlarm implements Serializable {
    private Long id;

    /**
     * 预警次数
     */
    private Integer triggerTimes;

    /**
     * 企业id
     */
    private String companyId;

    /**
     * 矿山id
     */
    private String mountainId;

    /**
     * 项目id
     */
    private String projectId;
    /**
     * 设备id
     */
    private Long deviceId;
    /**
     * 告警标题
     */
    private String title;

    /**
     * 告警等级
     */
    private Integer level;

    /**
     * 1数据告警  2设备告警
     */
    private Integer type;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 状态
     */
    private int status;

    /**
     * 状态
     */
    private int isHistory;

    /**
     * 状态
     */
    private int delFlag;

    private static final long serialVersionUID = 1L;

}