package com.aegis.emergency.plan.domain;

import com.aegis.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 预案版本记录实体类 plan_version
 *
 * @author
 */
@Getter
@Setter
@ToString(callSuper = true)
@TableName("plan_version")
public class PlanVersion extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 版本记录ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 关联的当前预案ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long planId;

    /** 版本号 */
    private String version;

    /** 父版本预案ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentPlanId;

    /** 变更说明 */
    private String changeLog;

    /** 预案快照（JSON） */
    private String snapshot;

    /** 删除标志 */
    private String delFlag;
}