aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs')
-rw-r--r--Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs19
1 files changed, 6 insertions, 13 deletions
diff --git a/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs b/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs
index f3424434d6..5c3f1fadbd 100644
--- a/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs
+++ b/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs
@@ -98,13 +98,8 @@ namespace Jellyfin.Server.Implementations.Migrations
b.Property<Guid>("ParentItemId")
.HasColumnType("TEXT");
- b.Property<Guid?>("BaseItemEntityId")
- .HasColumnType("TEXT");
-
b.HasKey("ItemId", "ParentItemId");
- b.HasIndex("BaseItemEntityId");
-
b.HasIndex("ParentItemId");
b.ToTable("AncestorIds");
@@ -1332,18 +1327,14 @@ namespace Jellyfin.Server.Implementations.Migrations
modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
{
- b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", null)
- .WithMany("AncestorIds")
- .HasForeignKey("BaseItemEntityId");
-
b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
- .WithMany()
+ .WithMany("Children")
.HasForeignKey("ItemId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "ParentItem")
- .WithMany()
+ .WithMany("ParentAncestors")
.HasForeignKey("ParentItemId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
@@ -1551,10 +1542,10 @@ namespace Jellyfin.Server.Implementations.Migrations
modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
{
- b.Navigation("AncestorIds");
-
b.Navigation("Chapters");
+ b.Navigation("Children");
+
b.Navigation("Images");
b.Navigation("ItemValues");
@@ -1563,6 +1554,8 @@ namespace Jellyfin.Server.Implementations.Migrations
b.Navigation("MediaStreams");
+ b.Navigation("ParentAncestors");
+
b.Navigation("Peoples");
b.Navigation("Provider");