using Aberwyn.Models; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace Aberwyn.Data { public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.Entity().ToTable("WeeklyMenu"); builder.Entity().HasData( new MealCategory { Id = 1, Name = "Pizza", Slug = "pizza", Icon = "🍕", Color = "#f97316", IsActive = true, DisplayOrder = 1 } ); } public DbSet BudgetPeriods { get; set; } public DbSet BudgetCategories { get; set; } public DbSet BudgetItems { get; set; } public DbSet PushSubscribers { get; set; } public DbSet PizzaOrders { get; set; } public DbSet AppSettings { get; set; } public DbSet TodoTasks { get; set; } public DbSet BudgetItemDefinitions { get; set; } public DbSet BudgetCategoryDefinitions { get; set; } public DbSet Meals { get; set; } public DbSet WeeklyMenus { get; set; } public DbSet Ingredients { get; set; } public DbSet UserPreferences { get; set; } public DbSet PushSubscriptions { get; set; } public DbSet MealCategories { get; set; } } }