using System.Collections.Generic;
using Aberwyn.Data;
using Aberwyn.Models;

namespace Aberwyn.Models
{
    public class MenuViewModel
    {
        public List<Meal> Meals { get; set; }  // List of all available meals
        public List<WeeklyMenu> WeeklyMenus { get; set; }  // List of weekly menu entries
        public int WeekNumber { get; set; }  // Week number for the menu
        public int Year { get; set; }  // Year for the menu
    }
    public class WeeklyMenu
    {
        public int Id { get; set; }
        public int DayOfWeek { get; set; }
        public int? BreakfastMealId { get; set; }         // 👈 Lägg till denna
        public int? LunchMealId { get; set; }
        public int? DinnerMealId { get; set; }
        public string Cook { get; set; }
        public int WeekNumber { get; set; }
        public int Year { get; set; }
        public string BreakfastMealName { get; set; }     // 👈 Och denna
        public string LunchMealName { get; set; }
        public string DinnerMealName { get; set; }
        public DateTime Date { get; set; }
    }

    public class RecentMenuEntry
    {
        public DateTime Date { get; set; }
        public string BreakfastMealName { get; set; }
        public string LunchMealName { get; set; }
        public string DinnerMealName { get; set; }
    }
    public class Meal
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string ProteinType { get; set; }
        public string CarbType { get; set; }
        public string RecipeUrl { get; set; }
        public string ImageUrl { get; set; }
        public DateTime CreatedAt { get; set; }
    }
}

