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_step_resource
 *
 * @author
 */
@Getter
@Setter
@ToString(callSuper = true)
@TableName("plan_step_resource")
public class PlanStepResource 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 stepId;

    /** 资源类型：material / equipment / vehicle */
    private String resourceType;

    /** 直接引用的资源ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long resourceRefId;

    /** 建议数量 */
    private Integer suggestedQuantity;

    /** 是否必需 */
    private Boolean required;

    /** 使用说明/注意事项 */
    private String usageNote;

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