namespace MealPlan.Api.DTOs.MealPlan;

public class MealPlanEntryDto
{
    public int Id { get; set; }
    public DateOnly PlanDate { get; set; }
    public int MealCategory { get; set; }
    public int RecipeId { get; set; }
    public string RecipeName { get; set; } = string.Empty;
    public decimal Portions { get; set; }
    public int? Calories { get; set; }
}

public class UpsertMealPlanEntryDto
{
    public DateOnly PlanDate { get; set; }
    public int MealCategory { get; set; }
    public int RecipeId { get; set; }
    public decimal Portions { get; set; } = 1m;
}

public class ShoppingListItemDto
{
    public string Name { get; set; } = string.Empty;
    public string? Unit { get; set; }
    public decimal? TotalGrams { get; set; }
    public decimal? TotalAmount { get; set; }
    public IReadOnlyList<string> Breakdown { get; set; } = Array.Empty<string>();
}
