Add Order/Address/OrderAddress repos, and handlers

This commit is contained in:
lumijiez
2025-06-25 22:34:39 +03:00
parent 3887e7bc44
commit c21c01c432
19 changed files with 484 additions and 6 deletions

View File

@@ -11,7 +11,6 @@ public class ApplicationDbContext(DbContextOptions<ApplicationDbContext> options
public DbSet<Product> Products { get; set; }
public DbSet<ProductVariant> ProductVariants { get; set; }
public DbSet<Order> Orders { get; set; }
public DbSet<OrderAddress> OrderAddresses { get; set; }
public DbSet<Address> Addresses { get; set; }
public DbSet<OrderStatus> OrderStatuses { get; set; }
public DbSet<ShippingStatus> ShippingStatuses { get; set; }
@@ -19,6 +18,7 @@ public class ApplicationDbContext(DbContextOptions<ApplicationDbContext> options
public DbSet<UserRole> UserRole { get; set; }
public DbSet<Role> Roles { get; set; }
public DbSet<Category> Categories { get; set; }
public DbSet<OrderAddress> OrderAddresses { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{