package com.zksy.base.warning.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 com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@TableName(value = "alarm_warning_rel", schema = "app_user")
@Api("报警预警关联表")
@Data
public class AlarmWarningRel implements Serializable {

    @TableId(value = "rel_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("关联ID")
    private String relId;

    @TableField("warning_id")
    @ApiModelProperty("预警ID")
    private String warningId;

    @TableField("alarm_id")
    @ApiModelProperty("报警ID")
    private String alarmId;

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

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