summaryrefslogtreecommitdiff
path: root/Migrations/DataContextModelSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Migrations/DataContextModelSnapshot.cs')
-rw-r--r--Migrations/DataContextModelSnapshot.cs30
1 files changed, 13 insertions, 17 deletions
diff --git a/Migrations/DataContextModelSnapshot.cs b/Migrations/DataContextModelSnapshot.cs
index b2177d7..6a8e605 100644
--- a/Migrations/DataContextModelSnapshot.cs
+++ b/Migrations/DataContextModelSnapshot.cs
@@ -1,5 +1,4 @@
// <auto-generated />
-using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
@@ -19,33 +18,28 @@ namespace MyDarling.Migrations
modelBuilder.Entity("MyDarling.Models.Figure", b =>
{
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
+ b.Property<string>("Id")
+ .HasColumnType("TEXT");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("TEXT");
- b.Property<string>("FilePath")
+ b.Property<string>("ProductId")
.IsRequired()
.HasColumnType("TEXT");
- b.Property<int?>("UnderwearBundleId")
- .HasColumnType("INTEGER");
-
b.HasKey("Id");
- b.HasIndex("UnderwearBundleId");
+ b.HasIndex("ProductId");
b.ToTable("Figures");
});
- modelBuilder.Entity("MyDarling.Models.UnderwearBundle", b =>
+ modelBuilder.Entity("MyDarling.Models.Product", b =>
{
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
+ b.Property<string>("Id")
+ .HasColumnType("TEXT");
b.Property<string>("Description")
.IsRequired()
@@ -60,17 +54,19 @@ namespace MyDarling.Migrations
b.HasKey("Id");
- b.ToTable("UnderwearBundles");
+ b.ToTable("Products");
});
modelBuilder.Entity("MyDarling.Models.Figure", b =>
{
- b.HasOne("MyDarling.Models.UnderwearBundle", null)
+ b.HasOne("MyDarling.Models.Product", null)
.WithMany("Figures")
- .HasForeignKey("UnderwearBundleId");
+ .HasForeignKey("ProductId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
});
- modelBuilder.Entity("MyDarling.Models.UnderwearBundle", b =>
+ modelBuilder.Entity("MyDarling.Models.Product", b =>
{
b.Navigation("Figures");
});