package com.jeesharp.business.modules.food.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 订餐菜单明细
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_food_meal_menu_item")
public class FoodMealMenuItem extends BaseEntity<FoodMealMenuItem> {

    /**
     * 菜单ID
     */
    private String menuId;
    /**
     * 门店ID
     */
    private String restaurantId;
    /**
     * 服务区域ID
     */
    private String serviceAreaId;
    /**
     * 菜单模板ID
     */
    private String templateId;
    /**
     * 菜单模板明细ID
     */
    private String templateItemId;
    /**
     * 条目类型：dish/package
     */
    private String itemType;
    /**
     * 菜品ID
     */
    private String dishId;
    /**
     * 套餐ID
     */
    private String packageId;
    /**
     * 菜品/套餐名称快照
     */
    private String itemName;
    /**
     * 菜品/套餐图片快照
     */
    private String itemImage;
    /**
     * 轮播图JSON
     */
    private String imagesJson;
    /**
     * 标签JSON
     */
    private String tagsJson;
    /**
     * 富文本描述
     */
    private String descriptionHtml;
    /**
     * 发布状态：draft/published/offline
     */
    private String publishStatus;
    /**
     * 菜单售价
     */
    private BigDecimal salePrice;
    /**
     * 菜单库存，null表示不限库存
     */
    private Integer stockQuantity;
    /**
     * 已售数量
     */
    private Integer soldQuantity;
    /**
     * 每人限购数量，null表示不限购
     */
    private Integer limitQuantityPerUser;
    /**
     * 排序号
     */
    private Integer sortNo;
}
