This commit is contained in:
Tizian.Breuch
2025-08-01 15:11:42 +02:00
parent 96f082b38f
commit 55eeaca7f4
29 changed files with 452 additions and 452 deletions

View File

@@ -215,7 +215,7 @@ namespace Webshop.Infrastructure.Migrations
b.ToTable("Addresses");
});
modelBuilder.Entity("Webshop.Domain.Entities.Category", b =>
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
@@ -246,7 +246,7 @@ namespace Webshop.Infrastructure.Migrations
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<Guid?>("ParentCategoryId")
b.Property<Guid?>("ParentcategorieId")
.HasColumnType("uuid");
b.Property<string>("Slug")
@@ -256,27 +256,27 @@ namespace Webshop.Infrastructure.Migrations
b.HasKey("Id");
b.HasIndex("ParentCategoryId");
b.HasIndex("ParentcategorieId");
b.HasIndex("Slug")
.IsUnique();
b.ToTable("categorys");
b.ToTable("categories");
});
modelBuilder.Entity("Webshop.Domain.Entities.CategoryDiscount", b =>
modelBuilder.Entity("Webshop.Domain.Entities.categorieDiscount", b =>
{
b.Property<Guid>("CategoryId")
b.Property<Guid>("categorieId")
.HasColumnType("uuid");
b.Property<Guid>("DiscountId")
.HasColumnType("uuid");
b.HasKey("CategoryId", "DiscountId");
b.HasKey("categorieId", "DiscountId");
b.HasIndex("DiscountId");
b.ToTable("CategoryDiscounts");
b.ToTable("categorieDiscounts");
});
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
@@ -652,19 +652,19 @@ namespace Webshop.Infrastructure.Migrations
b.ToTable("Products");
});
modelBuilder.Entity("Webshop.Domain.Entities.ProductCategory", b =>
modelBuilder.Entity("Webshop.Domain.Entities.Productcategorie", b =>
{
b.Property<Guid>("ProductId")
.HasColumnType("uuid");
b.Property<Guid>("CategoryId")
b.Property<Guid>("categorieId")
.HasColumnType("uuid");
b.HasKey("ProductId", "CategoryId");
b.HasKey("ProductId", "categorieId");
b.HasIndex("CategoryId");
b.HasIndex("categorieId");
b.ToTable("Productcategorys");
b.ToTable("Productcategories");
});
modelBuilder.Entity("Webshop.Domain.Entities.ProductDiscount", b =>
@@ -1003,31 +1003,31 @@ namespace Webshop.Infrastructure.Migrations
b.Navigation("Customer");
});
modelBuilder.Entity("Webshop.Domain.Entities.Category", b =>
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
{
b.HasOne("Webshop.Domain.Entities.Category", "ParentCategory")
.WithMany("Subcategorys")
.HasForeignKey("ParentCategoryId")
b.HasOne("Webshop.Domain.Entities.categorie", "Parentcategorie")
.WithMany("Subcategories")
.HasForeignKey("ParentcategorieId")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("ParentCategory");
b.Navigation("Parentcategorie");
});
modelBuilder.Entity("Webshop.Domain.Entities.CategoryDiscount", b =>
modelBuilder.Entity("Webshop.Domain.Entities.categorieDiscount", b =>
{
b.HasOne("Webshop.Domain.Entities.Category", "Category")
.WithMany("CategoryDiscounts")
.HasForeignKey("CategoryId")
b.HasOne("Webshop.Domain.Entities.categorie", "categorie")
.WithMany("categorieDiscounts")
.HasForeignKey("categorieId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Webshop.Domain.Entities.Discount", "Discount")
.WithMany("CategoryDiscounts")
.WithMany("categorieDiscounts")
.HasForeignKey("DiscountId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Category");
b.Navigation("categorie");
b.Navigation("Discount");
});
@@ -1114,21 +1114,21 @@ namespace Webshop.Infrastructure.Migrations
b.Navigation("Supplier");
});
modelBuilder.Entity("Webshop.Domain.Entities.ProductCategory", b =>
modelBuilder.Entity("Webshop.Domain.Entities.Productcategorie", b =>
{
b.HasOne("Webshop.Domain.Entities.Category", "Category")
.WithMany("Productcategorys")
.HasForeignKey("CategoryId")
b.HasOne("Webshop.Domain.Entities.categorie", "categorie")
.WithMany("Productcategories")
.HasForeignKey("categorieId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Webshop.Domain.Entities.Product", "Product")
.WithMany("Productcategorys")
.WithMany("Productcategories")
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Category");
b.Navigation("categorie");
b.Navigation("Product");
});
@@ -1189,13 +1189,13 @@ namespace Webshop.Infrastructure.Migrations
b.Navigation("Address");
});
modelBuilder.Entity("Webshop.Domain.Entities.Category", b =>
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
{
b.Navigation("CategoryDiscounts");
b.Navigation("categorieDiscounts");
b.Navigation("Productcategorys");
b.Navigation("Productcategories");
b.Navigation("Subcategorys");
b.Navigation("Subcategories");
});
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
@@ -1209,7 +1209,7 @@ namespace Webshop.Infrastructure.Migrations
modelBuilder.Entity("Webshop.Domain.Entities.Discount", b =>
{
b.Navigation("CategoryDiscounts");
b.Navigation("categorieDiscounts");
b.Navigation("ProductDiscounts");
});
@@ -1223,7 +1223,7 @@ namespace Webshop.Infrastructure.Migrations
{
b.Navigation("ProductDiscounts");
b.Navigation("Productcategorys");
b.Navigation("Productcategories");
b.Navigation("Reviews");