image änderungen
This commit is contained in:
@@ -577,10 +577,6 @@ namespace Webshop.Infrastructure.Migrations
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("numeric(18,2)");
|
||||
|
||||
b.Property<string>("ImageUrl")
|
||||
.HasMaxLength(2000)
|
||||
.HasColumnType("character varying(2000)");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
@@ -667,6 +663,32 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.ToTable("ProductDiscounts");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.ProductImage", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<int>("DisplayOrder")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<bool>("IsMainImage")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<Guid>("ProductId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Url")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ProductId");
|
||||
|
||||
b.ToTable("ProductImages", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.ProductVariant", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -1133,6 +1155,17 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.Navigation("Product");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.ProductImage", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Entities.Product", "Product")
|
||||
.WithMany("Images")
|
||||
.HasForeignKey("ProductId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Product");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.ProductVariant", b =>
|
||||
{
|
||||
b.HasOne("Webshop.Domain.Entities.Product", "Product")
|
||||
@@ -1221,6 +1254,8 @@ namespace Webshop.Infrastructure.Migrations
|
||||
|
||||
modelBuilder.Entity("Webshop.Domain.Entities.Product", b =>
|
||||
{
|
||||
b.Navigation("Images");
|
||||
|
||||
b.Navigation("ProductDiscounts");
|
||||
|
||||
b.Navigation("Productcategories");
|
||||
|
||||
Reference in New Issue
Block a user