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_usage
 *
 * @author
 */
@Getter
@Setter
@ToString(callSuper = true)
@TableName("plan_usage")
public class PlanUsage extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /** 预案ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long planId;

    /** 调度任务ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long dispatchTaskId;

    /** 使用来源：dispatch / disposal（仅统计） */
    private String source;

    /** 备注（应用说明或反馈） */
    private String remark;

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