package com.zksy.dispatch.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 应急预案
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dis_event_plan", schema = "app_user")
public class DisEventPlan {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("分类ID")
    private Long categoryId;

    @ApiModelProperty("预案名称")
    private String planName;

    @ApiModelProperty("预案类型")
    private String planType;

    @ApiModelProperty("预案级别")
    private String planLevel;

    @ApiModelProperty("版本号")
    private String version;

    @ApiModelProperty("编制单位")
    private String compileUnit;

    @ApiModelProperty("发布单位")
    private String publishUnit;

    @ApiModelProperty("发布日期")
    private String publishDate;

    @ApiModelProperty("附件名称")
    private String attachName;

    @ApiModelProperty("附件路径")
    private String attachPath;

    @ApiModelProperty("预案内容")
    private String planContent;

    @ApiModelProperty("状态")
    private String status;

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

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

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

    @TableLogic(value = "0", delval = "2")
    @ApiModelProperty("删除标志（0=正常 2=删除）")
    private String delFlag;
}
