package com.zksy.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
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.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 燃气管网风险评估表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "risk_assessment", schema = "app_user")
public class RiskAssessment {

    @TableId(value = "risk_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("风险评估ID")
    private String riskId;

    @ApiModelProperty("关联管网设施ID")
    private String networkId;

    @ApiModelProperty("风险等级")
    private String riskLevel;

    @ApiModelProperty("风险评分")
    private BigDecimal riskScore;

    @ApiModelProperty("风险颜色")
    private String riskColor;

    @ApiModelProperty("评估模型名称/版本")
    private String assessmentModel;

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

    @ApiModelProperty("评估人")
    private String assessmentPerson;

    @ApiModelProperty("风险构成要素")
    private String riskFactors;

    @ApiModelProperty("周边防护目标")
    private String protectiveTargets;

    @ApiModelProperty("周边危险源")
    private String hazardSources;

    @ApiModelProperty("历史维修记录摘要")
    private String repairHistorySummary;

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

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