package com.zksy.base.alarm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 预警阈值
 * @TableName warning_threshold
 */
@TableName(value ="warning_threshold")
@Data
public class WarningThreshold implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 设备名称
     */
    @TableField(value = "device_name")
    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 设备编码
     */
    @TableField(value = "device_code")
    @ApiModelProperty(value = "设备编码")
    private String deviceCode;

    /**
     * 设备类型
     */
    @TableField(value = "device_type")
    @ApiModelProperty(value = "设备类型")
    private String deviceType;

    /**
     * 预警类型
     */
    @TableField(value = "warning_type")
    @ApiModelProperty(value = "预警类型")
    private String warningType;

    /**
     * 预警编码
     */
    @TableField(value = "warning_code")
    @ApiModelProperty(value = "预警编码")
    private String warningCode;

    /**
     * 预警值
     */
    @TableField(value = "warning_value")
    @ApiModelProperty(value = "预警值")
    private Double warningValue;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}