Lots of fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
elias
2025-06-15 10:49:04 +02:00
parent 113cce73ad
commit 76656bb6a8
19 changed files with 1395 additions and 46 deletions

View File

@@ -16,7 +16,20 @@ namespace Aberwyn.Data
base.OnModelCreating(builder);
builder.Entity<WeeklyMenu>().ToTable("WeeklyMenu");
builder.Entity<MealCategory>().HasData(
new MealCategory
{
Id = 1,
Name = "Pizza",
Slug = "pizza",
Icon = "🍕",
Color = "#f97316",
IsActive = true,
DisplayOrder = 1
}
);
}
public DbSet<BudgetPeriod> BudgetPeriods { get; set; }
@@ -33,6 +46,7 @@ namespace Aberwyn.Data
public DbSet<Ingredient> Ingredients { get; set; }
public DbSet<UserPreferences> UserPreferences { get; set; }
public DbSet<StoredPushSubscription> PushSubscriptions { get; set; }
public DbSet<MealCategory> MealCategories { get; set; }
}
}