naming
This commit is contained in:
@@ -215,70 +215,6 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.ToTable("Addresses");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTimeOffset>("CreatedDate")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("character varying(1000)");
|
||||
|
||||
b.Property<int>("DisplayOrder")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ImageUrl")
|
||||
.HasMaxLength(2000)
|
||||
.HasColumnType("character varying(2000)");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<DateTimeOffset?>("LastModifiedDate")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("character varying(255)");
|
||||
|
||||
b.Property<Guid?>("ParentcategorieId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Slug")
|
||||
.IsRequired()
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("character varying(255)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ParentcategorieId");
|
||||
|
||||
b.HasIndex("Slug")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("categories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.categorieDiscount", b =>
|
||||
{
|
||||
b.Property<Guid>("categorieId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid>("DiscountId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("categorieId", "DiscountId");
|
||||
|
||||
b.HasIndex("DiscountId");
|
||||
|
||||
b.ToTable("categorieDiscounts");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -652,21 +588,6 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.ToTable("Products");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Productcategorie", b =>
|
||||
{
|
||||
b.Property<Guid>("ProductId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid>("categorieId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("ProductId", "categorieId");
|
||||
|
||||
b.HasIndex("categorieId");
|
||||
|
||||
b.ToTable("Productcategories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.ProductDiscount", b =>
|
||||
{
|
||||
b.Property<Guid>("ProductId")
|
||||
@@ -726,6 +647,21 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.ToTable("ProductVariants");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Productcategorie", b =>
|
||||
{
|
||||
b.Property<Guid>("ProductId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid>("categorieId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("ProductId", "categorieId");
|
||||
|
||||
b.HasIndex("categorieId");
|
||||
|
||||
b.ToTable("Productcategories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Review", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -873,6 +809,70 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.ToTable("Suppliers");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTimeOffset>("CreatedDate")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("character varying(1000)");
|
||||
|
||||
b.Property<int>("DisplayOrder")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ImageUrl")
|
||||
.HasMaxLength(2000)
|
||||
.HasColumnType("character varying(2000)");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<DateTimeOffset?>("LastModifiedDate")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("character varying(255)");
|
||||
|
||||
b.Property<Guid?>("ParentcategorieId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Slug")
|
||||
.IsRequired()
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("character varying(255)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ParentcategorieId");
|
||||
|
||||
b.HasIndex("Slug")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("categories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.categorieDiscount", b =>
|
||||
{
|
||||
b.Property<Guid>("categorieId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid>("DiscountId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("categorieId", "DiscountId");
|
||||
|
||||
b.HasIndex("DiscountId");
|
||||
|
||||
b.ToTable("categorieDiscounts");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Identity.ApplicationUser", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
@@ -1003,35 +1003,6 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.Navigation("Customer");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Entities.categorie", "Parentcategorie")
|
||||
.WithMany("Subcategories")
|
||||
.HasForeignKey("ParentcategorieId")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Parentcategorie");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.categorieDiscount", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Entities.categorie", "categorie")
|
||||
.WithMany("categorieDiscounts")
|
||||
.HasForeignKey("categorieId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Webshop.Domain.Entities.Discount", "Discount")
|
||||
.WithMany("categorieDiscounts")
|
||||
.HasForeignKey("DiscountId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("categorie");
|
||||
|
||||
b.Navigation("Discount");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Identity.ApplicationUser", "User")
|
||||
@@ -1114,25 +1085,6 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.Navigation("Supplier");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Productcategorie", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Entities.categorie", "categorie")
|
||||
.WithMany("Productcategories")
|
||||
.HasForeignKey("categorieId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Webshop.Domain.Entities.Product", "Product")
|
||||
.WithMany("Productcategories")
|
||||
.HasForeignKey("ProductId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("categorie");
|
||||
|
||||
b.Navigation("Product");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.ProductDiscount", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Entities.Discount", "Discount")
|
||||
@@ -1163,6 +1115,25 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.Navigation("Product");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Productcategorie", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Entities.Product", "Product")
|
||||
.WithMany("Productcategories")
|
||||
.HasForeignKey("ProductId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Webshop.Domain.Entities.categorie", "categorie")
|
||||
.WithMany("Productcategories")
|
||||
.HasForeignKey("categorieId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Product");
|
||||
|
||||
b.Navigation("categorie");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Review", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
|
||||
@@ -1191,11 +1162,31 @@ namespace Webshop.Infrastructure.Migrations
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
|
||||
{
|
||||
b.Navigation("categorieDiscounts");
|
||||
b.HasOne("Webshop.Domain.Entities.categorie", "Parentcategorie")
|
||||
.WithMany("Subcategories")
|
||||
.HasForeignKey("ParentcategorieId")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Productcategories");
|
||||
b.Navigation("Parentcategorie");
|
||||
});
|
||||
|
||||
b.Navigation("Subcategories");
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.categorieDiscount", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Entities.Discount", "Discount")
|
||||
.WithMany("categorieDiscounts")
|
||||
.HasForeignKey("DiscountId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Webshop.Domain.Entities.categorie", "categorie")
|
||||
.WithMany("categorieDiscounts")
|
||||
.HasForeignKey("categorieId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Discount");
|
||||
|
||||
b.Navigation("categorie");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
|
||||
@@ -1209,9 +1200,9 @@ namespace Webshop.Infrastructure.Migrations
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Discount", b =>
|
||||
{
|
||||
b.Navigation("categorieDiscounts");
|
||||
|
||||
b.Navigation("ProductDiscounts");
|
||||
|
||||
b.Navigation("categorieDiscounts");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Order", b =>
|
||||
@@ -1235,6 +1226,15 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.Navigation("Products");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
|
||||
{
|
||||
b.Navigation("Productcategories");
|
||||
|
||||
b.Navigation("Subcategories");
|
||||
|
||||
b.Navigation("categorieDiscounts");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Identity.ApplicationUser", b =>
|
||||
{
|
||||
b.Navigation("Customer");
|
||||
|
||||
Reference in New Issue
Block a user