This commit is contained in:
Tizian.Breuch
2025-08-01 10:06:00 +02:00
parent 8a4590ee5a
commit 6f86d0de87
15 changed files with 79 additions and 79 deletions

View File

@@ -261,7 +261,7 @@ namespace Webshop.Infrastructure.Migrations
b.HasIndex("Slug")
.IsUnique();
b.ToTable("Categories");
b.ToTable("categorys");
});
modelBuilder.Entity("Webshop.Domain.Entities.CategoryDiscount", b =>
@@ -664,7 +664,7 @@ namespace Webshop.Infrastructure.Migrations
b.HasIndex("CategoryId");
b.ToTable("ProductCategories");
b.ToTable("Productcategorys");
});
modelBuilder.Entity("Webshop.Domain.Entities.ProductDiscount", b =>
@@ -1006,7 +1006,7 @@ namespace Webshop.Infrastructure.Migrations
modelBuilder.Entity("Webshop.Domain.Entities.Category", b =>
{
b.HasOne("Webshop.Domain.Entities.Category", "ParentCategory")
.WithMany("SubCategories")
.WithMany("Subcategorys")
.HasForeignKey("ParentCategoryId")
.OnDelete(DeleteBehavior.Restrict);
@@ -1117,13 +1117,13 @@ namespace Webshop.Infrastructure.Migrations
modelBuilder.Entity("Webshop.Domain.Entities.ProductCategory", b =>
{
b.HasOne("Webshop.Domain.Entities.Category", "Category")
.WithMany("ProductCategories")
.WithMany("Productcategorys")
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Webshop.Domain.Entities.Product", "Product")
.WithMany("ProductCategories")
.WithMany("Productcategorys")
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
@@ -1193,9 +1193,9 @@ namespace Webshop.Infrastructure.Migrations
{
b.Navigation("CategoryDiscounts");
b.Navigation("ProductCategories");
b.Navigation("Productcategorys");
b.Navigation("SubCategories");
b.Navigation("Subcategorys");
});
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
@@ -1221,7 +1221,7 @@ namespace Webshop.Infrastructure.Migrations
modelBuilder.Entity("Webshop.Domain.Entities.Product", b =>
{
b.Navigation("ProductCategories");
b.Navigation("Productcategorys");
b.Navigation("ProductDiscounts");