namespace Meezi.Core.Entities;

/// <summary>Bill of materials: how much of an ingredient each menu item consumes per unit sold.</summary>
public class MenuItemIngredient : TenantEntity
{
    public string MenuItemId { get; set; } = string.Empty;
    public string IngredientId { get; set; } = string.Empty;
    /// <summary>Amount of ingredient used per 1 sold unit (e.g. 10 g coffee per espresso).</summary>
    public decimal QuantityPerUnit { get; set; }

    public MenuItem MenuItem { get; set; } = null!;
    public Ingredient Ingredient { get; set; } = null!;
}
