using System.ComponentModel.DataAnnotations;

namespace Recepie.Models
{
    public class WeekPlan
    {
        public int Id { get; set; }
        public string Name { get; set; } = string.Empty;
        public DateTime StartDate { get; set; }
        public List<DayPlan> DayPlans { get; set; } = new List<DayPlan>();
        public DateTime CreatedAt { get; set; } = DateTime.Now;
    }

    public class DayPlan
    {
        public int Id { get; set; }
        public int WeekPlanId { get; set; }
        public WeekPlan WeekPlan { get; set; } = null!;
        public DayOfWeek DayOfWeek { get; set; }
        public DateTime Date { get; set; }
        public int? RecipeId { get; set; }
        public Recipe? Recipe { get; set; }
        public string? MainIngredient { get; set; }
        public string? BannedIngredients { get; set; }
        public string? RequiredIngredients { get; set; }
    }
}