naming
This commit is contained in:
@@ -218,7 +218,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()
|
||||
@@ -249,7 +249,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")
|
||||
@@ -259,27 +259,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 =>
|
||||
@@ -655,19 +655,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 =>
|
||||
@@ -1006,31 +1006,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");
|
||||
});
|
||||
@@ -1117,21 +1117,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");
|
||||
});
|
||||
@@ -1192,13 +1192,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 =>
|
||||
@@ -1212,7 +1212,7 @@ namespace Webshop.Infrastructure.Migrations
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Discount", b =>
|
||||
{
|
||||
b.Navigation("CategoryDiscounts");
|
||||
b.Navigation("categorieDiscounts");
|
||||
|
||||
b.Navigation("ProductDiscounts");
|
||||
});
|
||||
@@ -1226,7 +1226,7 @@ namespace Webshop.Infrastructure.Migrations
|
||||
{
|
||||
b.Navigation("ProductDiscounts");
|
||||
|
||||
b.Navigation("Productcategorys");
|
||||
b.Navigation("Productcategories");
|
||||
|
||||
b.Navigation("Reviews");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user