BaseItemEntity.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace Jellyfin.Data.Entities;
  6. #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
  7. #pragma warning disable CA2227 // Collection properties should be read only
  8. public class BaseItemEntity
  9. {
  10. public required Guid Id { get; set; }
  11. public required string Type { get; set; }
  12. public string? Data { get; set; }
  13. public string? Path { get; set; }
  14. public DateTime StartDate { get; set; }
  15. public DateTime EndDate { get; set; }
  16. public string? ChannelId { get; set; }
  17. public bool IsMovie { get; set; }
  18. public float? CommunityRating { get; set; }
  19. public string? CustomRating { get; set; }
  20. public int? IndexNumber { get; set; }
  21. public bool IsLocked { get; set; }
  22. public string? Name { get; set; }
  23. public string? OfficialRating { get; set; }
  24. public string? MediaType { get; set; }
  25. public string? Overview { get; set; }
  26. public int? ParentIndexNumber { get; set; }
  27. public DateTime? PremiereDate { get; set; }
  28. public int? ProductionYear { get; set; }
  29. public string? Genres { get; set; }
  30. public string? SortName { get; set; }
  31. public string? ForcedSortName { get; set; }
  32. public long? RunTimeTicks { get; set; }
  33. public DateTime? DateCreated { get; set; }
  34. public DateTime? DateModified { get; set; }
  35. public bool IsSeries { get; set; }
  36. public string? EpisodeTitle { get; set; }
  37. public bool IsRepeat { get; set; }
  38. public string? PreferredMetadataLanguage { get; set; }
  39. public string? PreferredMetadataCountryCode { get; set; }
  40. public DateTime? DateLastRefreshed { get; set; }
  41. public DateTime? DateLastSaved { get; set; }
  42. public bool IsInMixedFolder { get; set; }
  43. public string? Studios { get; set; }
  44. public string? ExternalServiceId { get; set; }
  45. public string? Tags { get; set; }
  46. public bool IsFolder { get; set; }
  47. public int? InheritedParentalRatingValue { get; set; }
  48. public string? UnratedType { get; set; }
  49. public float? CriticRating { get; set; }
  50. public string? CleanName { get; set; }
  51. public string? PresentationUniqueKey { get; set; }
  52. public string? OriginalTitle { get; set; }
  53. public string? PrimaryVersionId { get; set; }
  54. public DateTime? DateLastMediaAdded { get; set; }
  55. public string? Album { get; set; }
  56. public float? LUFS { get; set; }
  57. public float? NormalizationGain { get; set; }
  58. public bool IsVirtualItem { get; set; }
  59. public string? SeriesName { get; set; }
  60. public string? SeasonName { get; set; }
  61. public string? ExternalSeriesId { get; set; }
  62. public string? Tagline { get; set; }
  63. public string? ProductionLocations { get; set; }
  64. public string? ExtraIds { get; set; }
  65. public int? TotalBitrate { get; set; }
  66. public BaseItemExtraType? ExtraType { get; set; }
  67. public string? Artists { get; set; }
  68. public string? AlbumArtists { get; set; }
  69. public string? ExternalId { get; set; }
  70. public string? SeriesPresentationUniqueKey { get; set; }
  71. public string? ShowId { get; set; }
  72. public string? OwnerId { get; set; }
  73. public int? Width { get; set; }
  74. public int? Height { get; set; }
  75. public long? Size { get; set; }
  76. public ProgramAudioEntity? Audio { get; set; }
  77. public Guid? ParentId { get; set; }
  78. public Guid? TopParentId { get; set; }
  79. public Guid? SeasonId { get; set; }
  80. public Guid? SeriesId { get; set; }
  81. public ICollection<PeopleBaseItemMap>? Peoples { get; set; }
  82. public ICollection<UserData>? UserData { get; set; }
  83. public ICollection<ItemValueMap>? ItemValues { get; set; }
  84. public ICollection<MediaStreamInfo>? MediaStreams { get; set; }
  85. public ICollection<Chapter>? Chapters { get; set; }
  86. public ICollection<BaseItemProvider>? Provider { get; set; }
  87. public ICollection<AncestorId>? ParentAncestors { get; set; }
  88. public ICollection<AncestorId>? Children { get; set; }
  89. public ICollection<BaseItemMetadataField>? LockedFields { get; set; }
  90. public ICollection<BaseItemTrailerType>? TrailerTypes { get; set; }
  91. public ICollection<BaseItemImageInfo>? Images { get; set; }
  92. // those are references to __LOCAL__ ids not DB ids ... TODO: Bring the whole folder structure into the DB
  93. // public ICollection<BaseItemEntity>? SeriesEpisodes { get; set; }
  94. // public BaseItemEntity? Series { get; set; }
  95. // public BaseItemEntity? Season { get; set; }
  96. // public BaseItemEntity? Parent { get; set; }
  97. // public ICollection<BaseItemEntity>? DirectChildren { get; set; }
  98. // public BaseItemEntity? TopParent { get; set; }
  99. // public ICollection<BaseItemEntity>? AllChildren { get; set; }
  100. // public ICollection<BaseItemEntity>? SeasonEpisodes { get; set; }
  101. }