package org.dromara.web.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.util.Date;

/**
 * 日常膳食食谱明细对象 daily_meal_recipe
 *
 * @author Lion Li
 * @date 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("daily_meal_recipe")
public class DailyMealRecipe extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 院内膳食主表ID
     */
    private Long planId;

    /**
     * 食谱序号(1-7)
     */
    private Long recipeNo;

    /**
     * 餐次(如早餐/午餐/晚餐/早加/晚加等)
     */
    private String mealTime;

    /**
     * 用餐时间
     */
    private Date eatTime;

    /**
     * 食物名称
     */
    private String foodName;

    /**
     * 食物id
     */
    private Long foodId;

    /**
     * 食谱分类Id
     */
    private Long foodCategoryId;

    /**
     * 食谱分类
     */
    private String foodCategoryName;

    /**
     * 食物重量(g)
     */
    private Long foodWeight;

    /**
     * 热量(kcal)
     */
    private Long calorie;

    /**
     * 份数
     */
    private Long amount;

    /**
     * 金额
     */
    private Long price;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    private String delFlag;


}
