package com.yuchen.saas.park.api.entity.emergency;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.mp.base.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 应急预案-应急物资清单表
 * </p>
 *
 * @author 洪铭铭
 * @since 2024-07-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("emergency_goods_list")
@ApiModel(value="EmergencyGoodsList对象", description="应急预案-应急物资清单表")
public class EmergencyGoodsList extends BaseEntity {

    @NotNull(message = "应急预案id不能为空")
    @ApiModelProperty(value = "应急预案id")
    @TableField("plan_id")
    private Long planId;

    @ApiModelProperty(value = "物资名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "数量")
    @TableField("quantity")
    private String quantity;

    @ApiModelProperty(value = "计量单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty(value = "责任部门")
    @TableField("responsible_department")
    private String responsibleDepartment;

    @ApiModelProperty(value = "责任人")
    @TableField("responsible_person")
    private String responsiblePerson;


}
