40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using LiteCharms.Features.Shop.CartPackages.Entities;
|
|
using LiteCharms.Features.Shop.Customers.Entities;
|
|
using LiteCharms.Features.Shop.Leads.Entities;
|
|
using LiteCharms.Features.Shop.Notifications.Entities;
|
|
using LiteCharms.Features.Shop.Orders.Entities;
|
|
using LiteCharms.Features.Shop.Products.Entities;
|
|
using LiteCharms.Features.Shop.Quotes.Entities;
|
|
using LiteCharms.Features.Shop.ShoppingCarts.Entities;
|
|
|
|
namespace LiteCharms.Features.Shop.Postgres;
|
|
|
|
public class ShopDbContext(DbContextOptions<ShopDbContext> options) : DbContext(options)
|
|
{
|
|
public DbSet<Customer> Customers { get; set; }
|
|
|
|
public DbSet<Lead> Leads { get; set; }
|
|
|
|
public DbSet<Order> Orders { get; set; }
|
|
|
|
public DbSet<OrderRefund> OrderRefunds { get; set; }
|
|
|
|
public DbSet<Product> Products { get; set; }
|
|
|
|
public DbSet<ProductPrice> ProductPrices { get; set; }
|
|
|
|
public DbSet<Notification> Notifications { get; set; }
|
|
|
|
public DbSet<Quote> Quotes { get; set; }
|
|
|
|
public DbSet<ShoppingCart> ShoppingCarts { get; set; }
|
|
|
|
public DbSet<ShoppingCartItem> ShoppingCartItems { get; set; }
|
|
|
|
public DbSet<Package> Packages { get; set; }
|
|
|
|
public DbSet<PackageItem> PackageItems { get; set; }
|
|
|
|
public DbSet<ShoppingCartPackage> ShoppingCartPackages { get; set; }
|
|
}
|