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_plan_library", schema = "app_user")
public class DisPlanLibrary {

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

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

    @ApiModelProperty("事件类型（排水/供水/燃气）")
    private String eventType;

    @ApiModelProperty("事件级别")
    private String eventLevel;

    @ApiModelProperty("发生区域（城南/城北/太常）")
    private String eventRegion;

    @ApiModelProperty("责任单位（供水局/燃气公司/排水公司）")
    private String responsibleUnit;

    @ApiModelProperty("所属专题（排水专题/供水专题/燃气专题）")
    private String topic;

    @ApiModelProperty("预案概要")
    private String planSummary;

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

    @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;
}
