aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/BaseItemEntity.cs
diff options
context:
space:
mode:
authorNiels van Velzen <nielsvanvelzen@users.noreply.github.com>2026-05-03 21:56:34 +0200
committerGitHub <noreply@github.com>2026-05-03 21:56:34 +0200
commit6e22075a63432aae48859cf9c67fde158dc80d2e (patch)
treec3a33238cc56857d8e3daa56db01f290118c9215 /src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/BaseItemEntity.cs
parentd9ced0d6399c82ddad9e983605bb0d828a608e63 (diff)
parentd68d0fa96267ad96eaa5a0ba37e072f59a71442a (diff)
Merge pull request #16062 from Shadowghost/perf-rebased
Query Performance Improvements
Diffstat (limited to 'src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/BaseItemEntity.cs')
-rw-r--r--src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/BaseItemEntity.cs26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/BaseItemEntity.cs b/src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/BaseItemEntity.cs
index d58466e5ca..76c847e5f0 100644
--- a/src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/BaseItemEntity.cs
+++ b/src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/BaseItemEntity.cs
@@ -96,7 +96,7 @@ public class BaseItemEntity
public string? OriginalTitle { get; set; }
- public string? PrimaryVersionId { get; set; }
+ public Guid? PrimaryVersionId { get; set; }
public DateTime? DateLastMediaAdded { get; set; }
@@ -118,8 +118,6 @@ public class BaseItemEntity
public string? ProductionLocations { get; set; }
- public string? ExtraIds { get; set; }
-
public int? TotalBitrate { get; set; }
public BaseItemExtraType? ExtraType { get; set; }
@@ -134,7 +132,17 @@ public class BaseItemEntity
public string? ShowId { get; set; }
- public string? OwnerId { get; set; }
+ public Guid? OwnerId { get; set; }
+
+ /// <summary>
+ /// Gets or sets the owner item (for extras like trailers, theme songs, etc.).
+ /// </summary>
+ public BaseItemEntity? Owner { get; set; }
+
+ /// <summary>
+ /// Gets or sets the extras owned by this item (trailers, theme songs, behind the scenes, etc.).
+ /// </summary>
+ public ICollection<BaseItemEntity>? Extras { get; set; }
public int? Width { get; set; }
@@ -178,6 +186,16 @@ public class BaseItemEntity
public ICollection<BaseItemImageInfo>? Images { get; set; }
+ /// <summary>
+ /// Gets or sets the linked children (for BoxSets, Playlists, etc.).
+ /// </summary>
+ public ICollection<LinkedChildEntity>? LinkedChildEntities { get; set; }
+
+ /// <summary>
+ /// Gets or sets the items this entity is linked to as a child.
+ /// </summary>
+ public ICollection<LinkedChildEntity>? LinkedChildOfEntities { get; set; }
+
// those are references to __LOCAL__ ids not DB ids ... TODO: Bring the whole folder structure into the DB
// public ICollection<BaseItemEntity>? SeriesEpisodes { get; set; }
// public BaseItemEntity? Series { get; set; }