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.ApiModelProperty;
import lombok.Data;

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

@TableName(value = "warning_item", schema = "app_user")
@Data
public class WarningItem implements Serializable {

    @TableId(value = "item_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("事项ID")
    private String itemId;

    @TableField("item_code")
    @ApiModelProperty("事项编码")
    private String itemCode;

    @TableField("item_name")
    @ApiModelProperty("事项名称")
    private String itemName;

    @TableField("warning_type")
    @ApiModelProperty("预警类型")
    private String warningType;

    @TableField("warning_level")
    @ApiModelProperty("预警级别")
    private String warningLevel;

    @TableField("warning_special")
    @ApiModelProperty("预警专项")
    private String warningSpecial;

    @TableField("industry")
    @ApiModelProperty("所属行业")
    private String industry;

    @TableField("duration")
    @ApiModelProperty("预警时长（小时）")
    private Integer duration;

    @TableField("link_config")
    @ApiModelProperty("预警环节配置")
    private String linkConfig;

    @TableField("status")
    @ApiModelProperty("状态（ENABLED-启用 DISABLED-禁用 INVALID-作废）")
    private String status;

    @TableField("create_by")
    @ApiModelProperty("创建人")
    private String createBy;

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

    @TableField("update_by")
    @ApiModelProperty("更新人")
    private String updateBy;

    @TableField("update_time")
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField("remark")
    @ApiModelProperty("备注")
    private String remark;

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