using CartWise.Application.Interfaces; using CartWise.Domain.Entities; using CartWise.Infrastructure.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace CartWise.Infrastructure.Data; public class CartWiseDbContext : IdentityDbContext, IApplicationDbContext { public CartWiseDbContext(DbContextOptions options) : base(options) { } public DbSet Households => Set(); public DbSet HouseholdMembers => Set(); public DbSet ProductCategories => Set(); public DbSet GroceryConcepts => Set(); public DbSet ShoppingLists => Set(); public DbSet ShoppingListItems => Set(); public DbSet Brands => Set(); public DbSet Products => Set(); public DbSet ProductIdentifiers => Set(); public DbSet HouseholdProductPreferences => Set(); public DbSet Retailers => Set(); public DbSet StoreLocations => Set(); public DbSet Purchases => Set(); public DbSet PurchaseItems => Set(); public DbSet PriceObservations => Set(); protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.ApplyConfigurationsFromAssembly(typeof(CartWiseDbContext).Assembly); } }