package com.sqx.modules.material.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 物料包与服务表中间表
 * @TableName material_massage
 */
@TableName(value ="material_massage")
@Data
public class MaterialMassage implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 物料包id
     */
    @TableField(value = "material_id")
    private Integer materialId;

    /**
     * 服务表id
     */
    @TableField(value = "massage_type_id")
    private Integer massageTypeId;

    /** 物料包类别（1，中医类2，精油类） */
    @TableField(exist = false)
    private Integer status;

    /** 物料包名称 */
    @TableField(exist = false)
    private String materialName;
    /**
     * 消耗
     */
    @TableField(value = "consume")
    private BigDecimal consume;

    /**
     * 创建者ID
     */
    @TableField(value = "create_user")
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改者ID
     */
    @TableField(value = "update_user")
    private Long updateUser;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}