package org.dromara.system.domain;

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

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 食谱与食材关联对象 sys_recipe_food_ingredient
 *
 * @author Lion Li
 * @date 2025-07-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_recipe_food_ingredient")
public class SysRecipeFoodIngredient extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 食谱ID
     */
    private Long recipeId;

    /**
     * 食材ID
     */
    private Long foodIngredientId;

    /**
     * 用量（可选，单位自定义）
     */
    private BigDecimal quantity;

    /**
     * 热量（kcal）
     */
    private BigDecimal calories;

    /**
     * 备注
     */
    private String remark;
}
