naming
This commit is contained in:
@@ -12,7 +12,7 @@ using Webshop.Infrastructure.Data;
|
|||||||
namespace Webshop.Infrastructure.Migrations
|
namespace Webshop.Infrastructure.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(ApplicationDbContext))]
|
[DbContext(typeof(ApplicationDbContext))]
|
||||||
[Migration("20250801114205_FinalSchema")]
|
[Migration("20250801131532_FinalSchema")]
|
||||||
partial class FinalSchema
|
partial class FinalSchema
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@@ -218,70 +218,6 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.ToTable("Addresses");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -655,21 +591,6 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.ToTable("Products");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.ProductDiscount", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ProductId")
|
b.Property<Guid>("ProductId")
|
||||||
@@ -729,6 +650,21 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.ToTable("ProductVariants");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Review", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -876,6 +812,70 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.ToTable("Suppliers");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Identity.ApplicationUser", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("Id")
|
b.Property<string>("Id")
|
||||||
@@ -1006,35 +1006,6 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.Navigation("Customer");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Webshop.Domain.Identity.ApplicationUser", "User")
|
b.HasOne("Webshop.Domain.Identity.ApplicationUser", "User")
|
||||||
@@ -1117,25 +1088,6 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.Navigation("Supplier");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.ProductDiscount", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Webshop.Domain.Entities.Discount", "Discount")
|
b.HasOne("Webshop.Domain.Entities.Discount", "Discount")
|
||||||
@@ -1166,6 +1118,25 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.Navigation("Product");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Review", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
|
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
|
||||||
@@ -1194,11 +1165,31 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
|
||||||
@@ -1212,9 +1203,9 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Webshop.Domain.Entities.Discount", b =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Discount", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("categorieDiscounts");
|
|
||||||
|
|
||||||
b.Navigation("ProductDiscounts");
|
b.Navigation("ProductDiscounts");
|
||||||
|
|
||||||
|
b.Navigation("categorieDiscounts");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Webshop.Domain.Entities.Order", b =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Order", b =>
|
||||||
@@ -1238,6 +1229,15 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.Navigation("Products");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Identity.ApplicationUser", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Customer");
|
b.Navigation("Customer");
|
||||||
@@ -215,70 +215,6 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.ToTable("Addresses");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -652,21 +588,6 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.ToTable("Products");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.ProductDiscount", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ProductId")
|
b.Property<Guid>("ProductId")
|
||||||
@@ -726,6 +647,21 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.ToTable("ProductVariants");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Review", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -873,6 +809,70 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.ToTable("Suppliers");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Identity.ApplicationUser", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("Id")
|
b.Property<string>("Id")
|
||||||
@@ -1003,35 +1003,6 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.Navigation("Customer");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Webshop.Domain.Identity.ApplicationUser", "User")
|
b.HasOne("Webshop.Domain.Identity.ApplicationUser", "User")
|
||||||
@@ -1114,25 +1085,6 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.Navigation("Supplier");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.ProductDiscount", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Webshop.Domain.Entities.Discount", "Discount")
|
b.HasOne("Webshop.Domain.Entities.Discount", "Discount")
|
||||||
@@ -1163,6 +1115,25 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.Navigation("Product");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Review", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
|
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
|
||||||
@@ -1191,11 +1162,31 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Webshop.Domain.Entities.categorie", b =>
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Customer", b =>
|
||||||
@@ -1209,9 +1200,9 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Webshop.Domain.Entities.Discount", b =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Discount", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("categorieDiscounts");
|
|
||||||
|
|
||||||
b.Navigation("ProductDiscounts");
|
b.Navigation("ProductDiscounts");
|
||||||
|
|
||||||
|
b.Navigation("categorieDiscounts");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Webshop.Domain.Entities.Order", b =>
|
modelBuilder.Entity("Webshop.Domain.Entities.Order", b =>
|
||||||
@@ -1235,6 +1226,15 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
b.Navigation("Products");
|
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 =>
|
modelBuilder.Entity("Webshop.Domain.Identity.ApplicationUser", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Customer");
|
b.Navigation("Customer");
|
||||||
|
|||||||
Reference in New Issue
Block a user