package com.bonus.canteen.core.menu.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@ApiModel("菜品食材关联")
@TableName("menu_material_dishes")
@Data
public class MenuMaterialDishes extends Model<MenuMaterialDishes> {
   private static final long serialVersionUID = 1L;
   @TableId
   @ApiModelProperty("主键id")
   private Long id;
   @ApiModelProperty("菜品id")
   private Long dishesId;
   @ApiModelProperty("食材id")
   private Long materialId;
   @ApiModelProperty("食材重量(g)")
   private Double weight;
   @ApiModelProperty("材料类型(1主料,2辅料,3配料)")
   private Integer materialType;
   @ApiModelProperty("删除标识")
   private Integer delFlag;
   @ApiModelProperty("乐观锁")
   private Integer revision;
   @ApiModelProperty("创建人")
   private String createBy;
   @ApiModelProperty("创建时间")
   private LocalDateTime createTime;
   @ApiModelProperty("更新人")
   private String updateBy;
   @ApiModelProperty("更新时间")
   private LocalDateTime updateTime;


}
