< Summary - Jellyfin

Line coverage
97%
Covered lines: 1783
Uncovered lines: 44
Coverable lines: 1827
Total lines: 1954
Line coverage: 97.5%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 5/4/2026 - 12:15:16 AM Line coverage: 97.5% (1783/1827) Total lines: 1954

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
File 1: Up(...)100%11100%
File 1: Down(...)100%210%
File 2: BuildTargetModel(...)100%11100%

File(s)

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260113203012_ChangeOwnerIdToGuid.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4#nullable disable
 5
 6namespace Jellyfin.Database.Providers.Sqlite.Migrations
 7{
 8    /// <inheritdoc />
 9    public partial class ChangeOwnerIdToGuid : Migration
 10    {
 11        /// <inheritdoc />
 12        protected override void Up(MigrationBuilder migrationBuilder)
 13        {
 14            // Normalize OwnerId to uppercase GUID format
 2115            migrationBuilder.Sql(
 2116                @"UPDATE BaseItems
 2117                  SET OwnerId = UPPER(OwnerId)
 2118                  WHERE OwnerId IS NOT NULL");
 19
 20            // Clear invalid OwnerId values (not 36 characters = not a valid GUID)
 2121            migrationBuilder.Sql(
 2122                @"UPDATE BaseItems
 2123                  SET OwnerId = null
 2124                  WHERE OwnerId IS NOT NULL AND length(OwnerId) != 36");
 25
 26            // Clear placeholder/empty GUIDs
 2127            migrationBuilder.UpdateData(
 2128                table: "BaseItems",
 2129                keyColumn: "OwnerId",
 2130                keyValue: new Guid("00000000-0000-0000-0000-000000000000"),
 2131                column: "OwnerId",
 2132                value: null);
 33
 2134            migrationBuilder.UpdateData(
 2135                table: "BaseItems",
 2136                keyColumn: "OwnerId",
 2137                keyValue: new Guid("00000000-0000-0000-0000-000000000001"),
 2138                column: "OwnerId",
 2139                value: null);
 40
 2141            migrationBuilder.AddColumn<Guid>(
 2142                name: "BaseItemEntityId",
 2143                table: "BaseItems",
 2144                type: "TEXT",
 2145                nullable: true);
 46
 2147            migrationBuilder.UpdateData(
 2148                table: "BaseItems",
 2149                keyColumn: "Id",
 2150                keyValue: new Guid("00000000-0000-0000-0000-000000000001"),
 2151                columns: new[] { "BaseItemEntityId", "Name", "OwnerId" },
 2152                values: new object[] { null, "This is a placeholder item for UserData that has been detached from its or
 53
 2154            migrationBuilder.CreateIndex(
 2155                name: "IX_BaseItems_BaseItemEntityId",
 2156                table: "BaseItems",
 2157                column: "BaseItemEntityId");
 58
 2159            migrationBuilder.CreateIndex(
 2160                name: "IX_BaseItems_ExtraType",
 2161                table: "BaseItems",
 2162                column: "ExtraType");
 63
 2164            migrationBuilder.CreateIndex(
 2165                name: "IX_BaseItems_ExtraType_OwnerId",
 2166                table: "BaseItems",
 2167                columns: new[] { "ExtraType", "OwnerId" });
 68
 2169            migrationBuilder.CreateIndex(
 2170                name: "IX_BaseItems_OwnerId",
 2171                table: "BaseItems",
 2172                column: "OwnerId");
 73
 2174            migrationBuilder.CreateIndex(
 2175                name: "IX_BaseItems_TopParentId_IsFolder_IsVirtualItem_DateCreated",
 2176                table: "BaseItems",
 2177                columns: new[] { "TopParentId", "IsFolder", "IsVirtualItem", "DateCreated" });
 78
 2179            migrationBuilder.CreateIndex(
 2180                name: "IX_BaseItems_TopParentId_MediaType_IsVirtualItem_DateCreated",
 2181                table: "BaseItems",
 2182                columns: new[] { "TopParentId", "MediaType", "IsVirtualItem", "DateCreated" });
 83
 2184            migrationBuilder.CreateIndex(
 2185                name: "IX_BaseItems_TopParentId_Type_IsVirtualItem_DateCreated",
 2186                table: "BaseItems",
 2187                columns: new[] { "TopParentId", "Type", "IsVirtualItem", "DateCreated" });
 88
 2189            migrationBuilder.AddForeignKey(
 2190                name: "FK_BaseItems_BaseItems_BaseItemEntityId",
 2191                table: "BaseItems",
 2192                column: "BaseItemEntityId",
 2193                principalTable: "BaseItems",
 2194                principalColumn: "Id");
 2195        }
 96
 97        /// <inheritdoc />
 98        protected override void Down(MigrationBuilder migrationBuilder)
 99        {
 0100            migrationBuilder.UpdateData(
 0101                table: "BaseItems",
 0102                keyColumn: "Id",
 0103                keyValue: new Guid("00000000-0000-0000-0000-000000000001"),
 0104                column: "OwnerId",
 0105                value: null);
 106
 0107            migrationBuilder.Sql(
 0108                @"UPDATE BaseItems
 0109                  SET OwnerId = LOWER(OwnerId)
 0110                  WHERE OwnerId IS NOT NULL");
 111
 0112            migrationBuilder.DropForeignKey(
 0113                name: "FK_BaseItems_BaseItems_BaseItemEntityId",
 0114                table: "BaseItems");
 115
 0116            migrationBuilder.DropIndex(
 0117                name: "IX_BaseItems_BaseItemEntityId",
 0118                table: "BaseItems");
 119
 0120            migrationBuilder.DropIndex(
 0121                name: "IX_BaseItems_ExtraType",
 0122                table: "BaseItems");
 123
 0124            migrationBuilder.DropIndex(
 0125                name: "IX_BaseItems_ExtraType_OwnerId",
 0126                table: "BaseItems");
 127
 0128            migrationBuilder.DropIndex(
 0129                name: "IX_BaseItems_OwnerId",
 0130                table: "BaseItems");
 131
 0132            migrationBuilder.DropIndex(
 0133                name: "IX_BaseItems_TopParentId_IsFolder_IsVirtualItem_DateCreated",
 0134                table: "BaseItems");
 135
 0136            migrationBuilder.DropIndex(
 0137                name: "IX_BaseItems_TopParentId_MediaType_IsVirtualItem_DateCreated",
 0138                table: "BaseItems");
 139
 0140            migrationBuilder.DropIndex(
 0141                name: "IX_BaseItems_TopParentId_Type_IsVirtualItem_DateCreated",
 0142                table: "BaseItems");
 143
 0144            migrationBuilder.DropColumn(
 0145                name: "BaseItemEntityId",
 0146                table: "BaseItems");
 147
 0148            migrationBuilder.UpdateData(
 0149                table: "BaseItems",
 0150                keyColumn: "Id",
 0151                keyValue: new Guid("00000000-0000-0000-0000-000000000001"),
 0152                columns: new[] { "Name", "OwnerId" },
 0153                values: new object[] { "This is a placeholder item for UserData that has been detacted from its original
 0154        }
 155    }
 156}

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260113203012_ChangeOwnerIdToGuid.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Jellyfin.Database.Implementations;
 4using Microsoft.EntityFrameworkCore;
 5using Microsoft.EntityFrameworkCore.Infrastructure;
 6using Microsoft.EntityFrameworkCore.Migrations;
 7using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 8
 9#nullable disable
 10
 11namespace Jellyfin.Database.Providers.Sqlite.Migrations
 12{
 13    [DbContext(typeof(JellyfinDbContext))]
 14    [Migration("20260113203012_ChangeOwnerIdToGuid")]
 15    partial class ChangeOwnerIdToGuid
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 2121            modelBuilder.HasAnnotation("ProductVersion", "10.0.2");
 22
 2123            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 2124                {
 2125                    b.Property<int>("Id")
 2126                        .ValueGeneratedOnAdd()
 2127                        .HasColumnType("INTEGER");
 2128
 2129                    b.Property<int>("DayOfWeek")
 2130                        .HasColumnType("INTEGER");
 2131
 2132                    b.Property<double>("EndHour")
 2133                        .HasColumnType("REAL");
 2134
 2135                    b.Property<double>("StartHour")
 2136                        .HasColumnType("REAL");
 2137
 2138                    b.Property<Guid>("UserId")
 2139                        .HasColumnType("TEXT");
 2140
 2141                    b.HasKey("Id");
 2142
 2143                    b.HasIndex("UserId");
 2144
 2145                    b.ToTable("AccessSchedules");
 2146
 2147                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2148                });
 49
 2150            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ActivityLog", b =>
 2151                {
 2152                    b.Property<int>("Id")
 2153                        .ValueGeneratedOnAdd()
 2154                        .HasColumnType("INTEGER");
 2155
 2156                    b.Property<DateTime>("DateCreated")
 2157                        .HasColumnType("TEXT");
 2158
 2159                    b.Property<string>("ItemId")
 2160                        .HasMaxLength(256)
 2161                        .HasColumnType("TEXT");
 2162
 2163                    b.Property<int>("LogSeverity")
 2164                        .HasColumnType("INTEGER");
 2165
 2166                    b.Property<string>("Name")
 2167                        .IsRequired()
 2168                        .HasMaxLength(512)
 2169                        .HasColumnType("TEXT");
 2170
 2171                    b.Property<string>("Overview")
 2172                        .HasMaxLength(512)
 2173                        .HasColumnType("TEXT");
 2174
 2175                    b.Property<uint>("RowVersion")
 2176                        .IsConcurrencyToken()
 2177                        .HasColumnType("INTEGER");
 2178
 2179                    b.Property<string>("ShortOverview")
 2180                        .HasMaxLength(512)
 2181                        .HasColumnType("TEXT");
 2182
 2183                    b.Property<string>("Type")
 2184                        .IsRequired()
 2185                        .HasMaxLength(256)
 2186                        .HasColumnType("TEXT");
 2187
 2188                    b.Property<Guid>("UserId")
 2189                        .HasColumnType("TEXT");
 2190
 2191                    b.HasKey("Id");
 2192
 2193                    b.HasIndex("DateCreated");
 2194
 2195                    b.ToTable("ActivityLogs");
 2196
 2197                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2198                });
 99
 21100            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 21101                {
 21102                    b.Property<Guid>("ItemId")
 21103                        .HasColumnType("TEXT");
 21104
 21105                    b.Property<Guid>("ParentItemId")
 21106                        .HasColumnType("TEXT");
 21107
 21108                    b.HasKey("ItemId", "ParentItemId");
 21109
 21110                    b.HasIndex("ParentItemId");
 21111
 21112                    b.ToTable("AncestorIds");
 21113
 21114                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21115                });
 116
 21117            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 21118                {
 21119                    b.Property<Guid>("ItemId")
 21120                        .HasColumnType("TEXT");
 21121
 21122                    b.Property<int>("Index")
 21123                        .HasColumnType("INTEGER");
 21124
 21125                    b.Property<string>("Codec")
 21126                        .HasColumnType("TEXT");
 21127
 21128                    b.Property<string>("CodecTag")
 21129                        .HasColumnType("TEXT");
 21130
 21131                    b.Property<string>("Comment")
 21132                        .HasColumnType("TEXT");
 21133
 21134                    b.Property<string>("Filename")
 21135                        .HasColumnType("TEXT");
 21136
 21137                    b.Property<string>("MimeType")
 21138                        .HasColumnType("TEXT");
 21139
 21140                    b.HasKey("ItemId", "Index");
 21141
 21142                    b.ToTable("AttachmentStreamInfos");
 21143
 21144                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21145                });
 146
 21147            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 21148                {
 21149                    b.Property<Guid>("Id")
 21150                        .ValueGeneratedOnAdd()
 21151                        .HasColumnType("TEXT");
 21152
 21153                    b.Property<string>("Album")
 21154                        .HasColumnType("TEXT");
 21155
 21156                    b.Property<string>("AlbumArtists")
 21157                        .HasColumnType("TEXT");
 21158
 21159                    b.Property<string>("Artists")
 21160                        .HasColumnType("TEXT");
 21161
 21162                    b.Property<int?>("Audio")
 21163                        .HasColumnType("INTEGER");
 21164
 21165                    b.Property<Guid?>("BaseItemEntityId")
 21166                        .HasColumnType("TEXT");
 21167
 21168                    b.Property<Guid?>("ChannelId")
 21169                        .HasColumnType("TEXT");
 21170
 21171                    b.Property<string>("CleanName")
 21172                        .HasColumnType("TEXT");
 21173
 21174                    b.Property<float?>("CommunityRating")
 21175                        .HasColumnType("REAL");
 21176
 21177                    b.Property<float?>("CriticRating")
 21178                        .HasColumnType("REAL");
 21179
 21180                    b.Property<string>("CustomRating")
 21181                        .HasColumnType("TEXT");
 21182
 21183                    b.Property<string>("Data")
 21184                        .HasColumnType("TEXT");
 21185
 21186                    b.Property<DateTime?>("DateCreated")
 21187                        .HasColumnType("TEXT");
 21188
 21189                    b.Property<DateTime?>("DateLastMediaAdded")
 21190                        .HasColumnType("TEXT");
 21191
 21192                    b.Property<DateTime?>("DateLastRefreshed")
 21193                        .HasColumnType("TEXT");
 21194
 21195                    b.Property<DateTime?>("DateLastSaved")
 21196                        .HasColumnType("TEXT");
 21197
 21198                    b.Property<DateTime?>("DateModified")
 21199                        .HasColumnType("TEXT");
 21200
 21201                    b.Property<DateTime?>("EndDate")
 21202                        .HasColumnType("TEXT");
 21203
 21204                    b.Property<string>("EpisodeTitle")
 21205                        .HasColumnType("TEXT");
 21206
 21207                    b.Property<string>("ExternalId")
 21208                        .HasColumnType("TEXT");
 21209
 21210                    b.Property<string>("ExternalSeriesId")
 21211                        .HasColumnType("TEXT");
 21212
 21213                    b.Property<string>("ExternalServiceId")
 21214                        .HasColumnType("TEXT");
 21215
 21216                    b.Property<string>("ExtraIds")
 21217                        .HasColumnType("TEXT");
 21218
 21219                    b.Property<int?>("ExtraType")
 21220                        .HasColumnType("INTEGER");
 21221
 21222                    b.Property<string>("ForcedSortName")
 21223                        .HasColumnType("TEXT");
 21224
 21225                    b.Property<string>("Genres")
 21226                        .HasColumnType("TEXT");
 21227
 21228                    b.Property<int?>("Height")
 21229                        .HasColumnType("INTEGER");
 21230
 21231                    b.Property<int?>("IndexNumber")
 21232                        .HasColumnType("INTEGER");
 21233
 21234                    b.Property<int?>("InheritedParentalRatingSubValue")
 21235                        .HasColumnType("INTEGER");
 21236
 21237                    b.Property<int?>("InheritedParentalRatingValue")
 21238                        .HasColumnType("INTEGER");
 21239
 21240                    b.Property<bool>("IsFolder")
 21241                        .HasColumnType("INTEGER");
 21242
 21243                    b.Property<bool>("IsInMixedFolder")
 21244                        .HasColumnType("INTEGER");
 21245
 21246                    b.Property<bool>("IsLocked")
 21247                        .HasColumnType("INTEGER");
 21248
 21249                    b.Property<bool>("IsMovie")
 21250                        .HasColumnType("INTEGER");
 21251
 21252                    b.Property<bool>("IsRepeat")
 21253                        .HasColumnType("INTEGER");
 21254
 21255                    b.Property<bool>("IsSeries")
 21256                        .HasColumnType("INTEGER");
 21257
 21258                    b.Property<bool>("IsVirtualItem")
 21259                        .HasColumnType("INTEGER");
 21260
 21261                    b.Property<float?>("LUFS")
 21262                        .HasColumnType("REAL");
 21263
 21264                    b.Property<string>("MediaType")
 21265                        .HasColumnType("TEXT");
 21266
 21267                    b.Property<string>("Name")
 21268                        .HasColumnType("TEXT");
 21269
 21270                    b.Property<float?>("NormalizationGain")
 21271                        .HasColumnType("REAL");
 21272
 21273                    b.Property<string>("OfficialRating")
 21274                        .HasColumnType("TEXT");
 21275
 21276                    b.Property<string>("OriginalTitle")
 21277                        .HasColumnType("TEXT");
 21278
 21279                    b.Property<string>("Overview")
 21280                        .HasColumnType("TEXT");
 21281
 21282                    b.Property<Guid?>("OwnerId")
 21283                        .HasColumnType("TEXT");
 21284
 21285                    b.Property<Guid?>("ParentId")
 21286                        .HasColumnType("TEXT");
 21287
 21288                    b.Property<int?>("ParentIndexNumber")
 21289                        .HasColumnType("INTEGER");
 21290
 21291                    b.Property<string>("Path")
 21292                        .HasColumnType("TEXT");
 21293
 21294                    b.Property<string>("PreferredMetadataCountryCode")
 21295                        .HasColumnType("TEXT");
 21296
 21297                    b.Property<string>("PreferredMetadataLanguage")
 21298                        .HasColumnType("TEXT");
 21299
 21300                    b.Property<DateTime?>("PremiereDate")
 21301                        .HasColumnType("TEXT");
 21302
 21303                    b.Property<string>("PresentationUniqueKey")
 21304                        .HasColumnType("TEXT");
 21305
 21306                    b.Property<string>("PrimaryVersionId")
 21307                        .HasColumnType("TEXT");
 21308
 21309                    b.Property<string>("ProductionLocations")
 21310                        .HasColumnType("TEXT");
 21311
 21312                    b.Property<int?>("ProductionYear")
 21313                        .HasColumnType("INTEGER");
 21314
 21315                    b.Property<long?>("RunTimeTicks")
 21316                        .HasColumnType("INTEGER");
 21317
 21318                    b.Property<Guid?>("SeasonId")
 21319                        .HasColumnType("TEXT");
 21320
 21321                    b.Property<string>("SeasonName")
 21322                        .HasColumnType("TEXT");
 21323
 21324                    b.Property<Guid?>("SeriesId")
 21325                        .HasColumnType("TEXT");
 21326
 21327                    b.Property<string>("SeriesName")
 21328                        .HasColumnType("TEXT");
 21329
 21330                    b.Property<string>("SeriesPresentationUniqueKey")
 21331                        .HasColumnType("TEXT");
 21332
 21333                    b.Property<string>("ShowId")
 21334                        .HasColumnType("TEXT");
 21335
 21336                    b.Property<long?>("Size")
 21337                        .HasColumnType("INTEGER");
 21338
 21339                    b.Property<string>("SortName")
 21340                        .HasColumnType("TEXT");
 21341
 21342                    b.Property<DateTime?>("StartDate")
 21343                        .HasColumnType("TEXT");
 21344
 21345                    b.Property<string>("Studios")
 21346                        .HasColumnType("TEXT");
 21347
 21348                    b.Property<string>("Tagline")
 21349                        .HasColumnType("TEXT");
 21350
 21351                    b.Property<string>("Tags")
 21352                        .HasColumnType("TEXT");
 21353
 21354                    b.Property<Guid?>("TopParentId")
 21355                        .HasColumnType("TEXT");
 21356
 21357                    b.Property<int?>("TotalBitrate")
 21358                        .HasColumnType("INTEGER");
 21359
 21360                    b.Property<string>("Type")
 21361                        .IsRequired()
 21362                        .HasColumnType("TEXT");
 21363
 21364                    b.Property<string>("UnratedType")
 21365                        .HasColumnType("TEXT");
 21366
 21367                    b.Property<int?>("Width")
 21368                        .HasColumnType("INTEGER");
 21369
 21370                    b.HasKey("Id");
 21371
 21372                    b.HasIndex("BaseItemEntityId");
 21373
 21374                    b.HasIndex("ExtraType");
 21375
 21376                    b.HasIndex("OwnerId");
 21377
 21378                    b.HasIndex("ParentId");
 21379
 21380                    b.HasIndex("Path");
 21381
 21382                    b.HasIndex("PresentationUniqueKey");
 21383
 21384                    b.HasIndex("ExtraType", "OwnerId");
 21385
 21386                    b.HasIndex("TopParentId", "Id");
 21387
 21388                    b.HasIndex("Type", "TopParentId", "Id");
 21389
 21390                    b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
 21391
 21392                    b.HasIndex("Type", "TopParentId", "StartDate");
 21393
 21394                    b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
 21395
 21396                    b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
 21397
 21398                    b.HasIndex("TopParentId", "IsFolder", "IsVirtualItem", "DateCreated");
 21399
 21400                    b.HasIndex("TopParentId", "MediaType", "IsVirtualItem", "DateCreated");
 21401
 21402                    b.HasIndex("TopParentId", "Type", "IsVirtualItem", "DateCreated");
 21403
 21404                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
 21405
 21406                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
 21407
 21408                    b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 21409
 21410                    b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 21411
 21412                    b.ToTable("BaseItems");
 21413
 21414                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21415
 21416                    b.HasData(
 21417                        new
 21418                        {
 21419                            Id = new Guid("00000000-0000-0000-0000-000000000001"),
 21420                            IsFolder = false,
 21421                            IsInMixedFolder = false,
 21422                            IsLocked = false,
 21423                            IsMovie = false,
 21424                            IsRepeat = false,
 21425                            IsSeries = false,
 21426                            IsVirtualItem = false,
 21427                            Name = "This is a placeholder item for UserData that has been detached from its original ite
 21428                            Type = "PLACEHOLDER"
 21429                        });
 21430                });
 431
 21432            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 21433                {
 21434                    b.Property<Guid>("Id")
 21435                        .ValueGeneratedOnAdd()
 21436                        .HasColumnType("TEXT");
 21437
 21438                    b.Property<byte[]>("Blurhash")
 21439                        .HasColumnType("BLOB");
 21440
 21441                    b.Property<DateTime?>("DateModified")
 21442                        .HasColumnType("TEXT");
 21443
 21444                    b.Property<int>("Height")
 21445                        .HasColumnType("INTEGER");
 21446
 21447                    b.Property<int>("ImageType")
 21448                        .HasColumnType("INTEGER");
 21449
 21450                    b.Property<Guid>("ItemId")
 21451                        .HasColumnType("TEXT");
 21452
 21453                    b.Property<string>("Path")
 21454                        .IsRequired()
 21455                        .HasColumnType("TEXT");
 21456
 21457                    b.Property<int>("Width")
 21458                        .HasColumnType("INTEGER");
 21459
 21460                    b.HasKey("Id");
 21461
 21462                    b.HasIndex("ItemId");
 21463
 21464                    b.ToTable("BaseItemImageInfos");
 21465
 21466                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21467                });
 468
 21469            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 21470                {
 21471                    b.Property<int>("Id")
 21472                        .HasColumnType("INTEGER");
 21473
 21474                    b.Property<Guid>("ItemId")
 21475                        .HasColumnType("TEXT");
 21476
 21477                    b.HasKey("Id", "ItemId");
 21478
 21479                    b.HasIndex("ItemId");
 21480
 21481                    b.ToTable("BaseItemMetadataFields");
 21482
 21483                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21484                });
 485
 21486            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 21487                {
 21488                    b.Property<Guid>("ItemId")
 21489                        .HasColumnType("TEXT");
 21490
 21491                    b.Property<string>("ProviderId")
 21492                        .HasColumnType("TEXT");
 21493
 21494                    b.Property<string>("ProviderValue")
 21495                        .IsRequired()
 21496                        .HasColumnType("TEXT");
 21497
 21498                    b.HasKey("ItemId", "ProviderId");
 21499
 21500                    b.HasIndex("ProviderId", "ProviderValue", "ItemId");
 21501
 21502                    b.ToTable("BaseItemProviders");
 21503
 21504                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21505                });
 506
 21507            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 21508                {
 21509                    b.Property<int>("Id")
 21510                        .HasColumnType("INTEGER");
 21511
 21512                    b.Property<Guid>("ItemId")
 21513                        .HasColumnType("TEXT");
 21514
 21515                    b.HasKey("Id", "ItemId");
 21516
 21517                    b.HasIndex("ItemId");
 21518
 21519                    b.ToTable("BaseItemTrailerTypes");
 21520
 21521                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21522                });
 523
 21524            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 21525                {
 21526                    b.Property<Guid>("ItemId")
 21527                        .HasColumnType("TEXT");
 21528
 21529                    b.Property<int>("ChapterIndex")
 21530                        .HasColumnType("INTEGER");
 21531
 21532                    b.Property<DateTime?>("ImageDateModified")
 21533                        .HasColumnType("TEXT");
 21534
 21535                    b.Property<string>("ImagePath")
 21536                        .HasColumnType("TEXT");
 21537
 21538                    b.Property<string>("Name")
 21539                        .HasColumnType("TEXT");
 21540
 21541                    b.Property<long>("StartPositionTicks")
 21542                        .HasColumnType("INTEGER");
 21543
 21544                    b.HasKey("ItemId", "ChapterIndex");
 21545
 21546                    b.ToTable("Chapters");
 21547
 21548                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21549                });
 550
 21551            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.CustomItemDisplayPreferences", b =>
 21552                {
 21553                    b.Property<int>("Id")
 21554                        .ValueGeneratedOnAdd()
 21555                        .HasColumnType("INTEGER");
 21556
 21557                    b.Property<string>("Client")
 21558                        .IsRequired()
 21559                        .HasMaxLength(32)
 21560                        .HasColumnType("TEXT");
 21561
 21562                    b.Property<Guid>("ItemId")
 21563                        .HasColumnType("TEXT");
 21564
 21565                    b.Property<string>("Key")
 21566                        .IsRequired()
 21567                        .HasColumnType("TEXT");
 21568
 21569                    b.Property<Guid>("UserId")
 21570                        .HasColumnType("TEXT");
 21571
 21572                    b.Property<string>("Value")
 21573                        .HasColumnType("TEXT");
 21574
 21575                    b.HasKey("Id");
 21576
 21577                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 21578                        .IsUnique();
 21579
 21580                    b.ToTable("CustomItemDisplayPreferences");
 21581
 21582                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21583                });
 584
 21585            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 21586                {
 21587                    b.Property<int>("Id")
 21588                        .ValueGeneratedOnAdd()
 21589                        .HasColumnType("INTEGER");
 21590
 21591                    b.Property<int>("ChromecastVersion")
 21592                        .HasColumnType("INTEGER");
 21593
 21594                    b.Property<string>("Client")
 21595                        .IsRequired()
 21596                        .HasMaxLength(32)
 21597                        .HasColumnType("TEXT");
 21598
 21599                    b.Property<string>("DashboardTheme")
 21600                        .HasMaxLength(32)
 21601                        .HasColumnType("TEXT");
 21602
 21603                    b.Property<bool>("EnableNextVideoInfoOverlay")
 21604                        .HasColumnType("INTEGER");
 21605
 21606                    b.Property<int?>("IndexBy")
 21607                        .HasColumnType("INTEGER");
 21608
 21609                    b.Property<Guid>("ItemId")
 21610                        .HasColumnType("TEXT");
 21611
 21612                    b.Property<int>("ScrollDirection")
 21613                        .HasColumnType("INTEGER");
 21614
 21615                    b.Property<bool>("ShowBackdrop")
 21616                        .HasColumnType("INTEGER");
 21617
 21618                    b.Property<bool>("ShowSidebar")
 21619                        .HasColumnType("INTEGER");
 21620
 21621                    b.Property<int>("SkipBackwardLength")
 21622                        .HasColumnType("INTEGER");
 21623
 21624                    b.Property<int>("SkipForwardLength")
 21625                        .HasColumnType("INTEGER");
 21626
 21627                    b.Property<string>("TvHome")
 21628                        .HasMaxLength(32)
 21629                        .HasColumnType("TEXT");
 21630
 21631                    b.Property<Guid>("UserId")
 21632                        .HasColumnType("TEXT");
 21633
 21634                    b.HasKey("Id");
 21635
 21636                    b.HasIndex("UserId", "ItemId", "Client")
 21637                        .IsUnique();
 21638
 21639                    b.ToTable("DisplayPreferences");
 21640
 21641                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21642                });
 643
 21644            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 21645                {
 21646                    b.Property<int>("Id")
 21647                        .ValueGeneratedOnAdd()
 21648                        .HasColumnType("INTEGER");
 21649
 21650                    b.Property<int>("DisplayPreferencesId")
 21651                        .HasColumnType("INTEGER");
 21652
 21653                    b.Property<int>("Order")
 21654                        .HasColumnType("INTEGER");
 21655
 21656                    b.Property<int>("Type")
 21657                        .HasColumnType("INTEGER");
 21658
 21659                    b.HasKey("Id");
 21660
 21661                    b.HasIndex("DisplayPreferencesId");
 21662
 21663                    b.ToTable("HomeSection");
 21664
 21665                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21666                });
 667
 21668            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 21669                {
 21670                    b.Property<int>("Id")
 21671                        .ValueGeneratedOnAdd()
 21672                        .HasColumnType("INTEGER");
 21673
 21674                    b.Property<DateTime>("LastModified")
 21675                        .HasColumnType("TEXT");
 21676
 21677                    b.Property<string>("Path")
 21678                        .IsRequired()
 21679                        .HasMaxLength(512)
 21680                        .HasColumnType("TEXT");
 21681
 21682                    b.Property<Guid?>("UserId")
 21683                        .HasColumnType("TEXT");
 21684
 21685                    b.HasKey("Id");
 21686
 21687                    b.HasIndex("UserId")
 21688                        .IsUnique();
 21689
 21690                    b.ToTable("ImageInfos");
 21691
 21692                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21693                });
 694
 21695            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 21696                {
 21697                    b.Property<int>("Id")
 21698                        .ValueGeneratedOnAdd()
 21699                        .HasColumnType("INTEGER");
 21700
 21701                    b.Property<string>("Client")
 21702                        .IsRequired()
 21703                        .HasMaxLength(32)
 21704                        .HasColumnType("TEXT");
 21705
 21706                    b.Property<int?>("IndexBy")
 21707                        .HasColumnType("INTEGER");
 21708
 21709                    b.Property<Guid>("ItemId")
 21710                        .HasColumnType("TEXT");
 21711
 21712                    b.Property<bool>("RememberIndexing")
 21713                        .HasColumnType("INTEGER");
 21714
 21715                    b.Property<bool>("RememberSorting")
 21716                        .HasColumnType("INTEGER");
 21717
 21718                    b.Property<string>("SortBy")
 21719                        .IsRequired()
 21720                        .HasMaxLength(64)
 21721                        .HasColumnType("TEXT");
 21722
 21723                    b.Property<int>("SortOrder")
 21724                        .HasColumnType("INTEGER");
 21725
 21726                    b.Property<Guid>("UserId")
 21727                        .HasColumnType("TEXT");
 21728
 21729                    b.Property<int>("ViewType")
 21730                        .HasColumnType("INTEGER");
 21731
 21732                    b.HasKey("Id");
 21733
 21734                    b.HasIndex("UserId");
 21735
 21736                    b.ToTable("ItemDisplayPreferences");
 21737
 21738                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21739                });
 740
 21741            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 21742                {
 21743                    b.Property<Guid>("ItemValueId")
 21744                        .ValueGeneratedOnAdd()
 21745                        .HasColumnType("TEXT");
 21746
 21747                    b.Property<string>("CleanValue")
 21748                        .IsRequired()
 21749                        .HasColumnType("TEXT");
 21750
 21751                    b.Property<int>("Type")
 21752                        .HasColumnType("INTEGER");
 21753
 21754                    b.Property<string>("Value")
 21755                        .IsRequired()
 21756                        .HasColumnType("TEXT");
 21757
 21758                    b.HasKey("ItemValueId");
 21759
 21760                    b.HasIndex("Type", "CleanValue");
 21761
 21762                    b.HasIndex("Type", "Value")
 21763                        .IsUnique();
 21764
 21765                    b.ToTable("ItemValues");
 21766
 21767                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21768                });
 769
 21770            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 21771                {
 21772                    b.Property<Guid>("ItemValueId")
 21773                        .HasColumnType("TEXT");
 21774
 21775                    b.Property<Guid>("ItemId")
 21776                        .HasColumnType("TEXT");
 21777
 21778                    b.HasKey("ItemValueId", "ItemId");
 21779
 21780                    b.HasIndex("ItemId");
 21781
 21782                    b.ToTable("ItemValuesMap");
 21783
 21784                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21785                });
 786
 21787            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 21788                {
 21789                    b.Property<Guid>("ItemId")
 21790                        .HasColumnType("TEXT");
 21791
 21792                    b.PrimitiveCollection<string>("KeyframeTicks")
 21793                        .HasColumnType("TEXT");
 21794
 21795                    b.Property<long>("TotalDuration")
 21796                        .HasColumnType("INTEGER");
 21797
 21798                    b.HasKey("ItemId");
 21799
 21800                    b.ToTable("KeyframeData");
 21801
 21802                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21803                });
 804
 21805            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 21806                {
 21807                    b.Property<Guid>("ParentId")
 21808                        .HasColumnType("TEXT");
 21809
 21810                    b.Property<Guid>("ChildId")
 21811                        .HasColumnType("TEXT");
 21812
 21813                    b.Property<int>("ChildType")
 21814                        .HasColumnType("INTEGER");
 21815
 21816                    b.Property<int?>("SortOrder")
 21817                        .HasColumnType("INTEGER");
 21818
 21819                    b.HasKey("ParentId", "ChildId");
 21820
 21821                    b.HasIndex("ChildId");
 21822
 21823                    b.HasIndex("ParentId");
 21824
 21825                    b.HasIndex("ChildId", "ChildType");
 21826
 21827                    b.HasIndex("ParentId", "ChildType");
 21828
 21829                    b.HasIndex("ParentId", "SortOrder");
 21830
 21831                    b.ToTable("LinkedChildren", (string)null);
 21832
 21833                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21834                });
 835
 21836            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaSegment", b =>
 21837                {
 21838                    b.Property<Guid>("Id")
 21839                        .ValueGeneratedOnAdd()
 21840                        .HasColumnType("TEXT");
 21841
 21842                    b.Property<long>("EndTicks")
 21843                        .HasColumnType("INTEGER");
 21844
 21845                    b.Property<Guid>("ItemId")
 21846                        .HasColumnType("TEXT");
 21847
 21848                    b.Property<string>("SegmentProviderId")
 21849                        .IsRequired()
 21850                        .HasColumnType("TEXT");
 21851
 21852                    b.Property<long>("StartTicks")
 21853                        .HasColumnType("INTEGER");
 21854
 21855                    b.Property<int>("Type")
 21856                        .HasColumnType("INTEGER");
 21857
 21858                    b.HasKey("Id");
 21859
 21860                    b.ToTable("MediaSegments");
 21861
 21862                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 21863                });
 864
 21865            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 21866                {
 21867                    b.Property<Guid>("ItemId")
 21868                        .HasColumnType("TEXT");
 21869
 21870                    b.Property<int>("StreamIndex")
 21871                        .HasColumnType("INTEGER");
 21872
 21873                    b.Property<string>("AspectRatio")
 21874                        .HasColumnType("TEXT");
 21875
 21876                    b.Property<float?>("AverageFrameRate")
 21877                        .HasColumnType("REAL");
 21878
 21879                    b.Property<int?>("BitDepth")
 21880                        .HasColumnType("INTEGER");
 21881
 21882                    b.Property<int?>("BitRate")
 21883                        .HasColumnType("INTEGER");
 21884
 21885                    b.Property<int?>("BlPresentFlag")
 21886                        .HasColumnType("INTEGER");
 21887
 21888                    b.Property<string>("ChannelLayout")
 21889                        .HasColumnType("TEXT");
 21890
 21891                    b.Property<int?>("Channels")
 21892                        .HasColumnType("INTEGER");
 21893
 21894                    b.Property<string>("Codec")
 21895                        .HasColumnType("TEXT");
 21896
 21897                    b.Property<string>("CodecTag")
 21898                        .HasColumnType("TEXT");
 21899
 21900                    b.Property<string>("CodecTimeBase")
 21901                        .HasColumnType("TEXT");
 21902
 21903                    b.Property<string>("ColorPrimaries")
 21904                        .HasColumnType("TEXT");
 21905
 21906                    b.Property<string>("ColorSpace")
 21907                        .HasColumnType("TEXT");
 21908
 21909                    b.Property<string>("ColorTransfer")
 21910                        .HasColumnType("TEXT");
 21911
 21912                    b.Property<string>("Comment")
 21913                        .HasColumnType("TEXT");
 21914
 21915                    b.Property<int?>("DvBlSignalCompatibilityId")
 21916                        .HasColumnType("INTEGER");
 21917
 21918                    b.Property<int?>("DvLevel")
 21919                        .HasColumnType("INTEGER");
 21920
 21921                    b.Property<int?>("DvProfile")
 21922                        .HasColumnType("INTEGER");
 21923
 21924                    b.Property<int?>("DvVersionMajor")
 21925                        .HasColumnType("INTEGER");
 21926
 21927                    b.Property<int?>("DvVersionMinor")
 21928                        .HasColumnType("INTEGER");
 21929
 21930                    b.Property<int?>("ElPresentFlag")
 21931                        .HasColumnType("INTEGER");
 21932
 21933                    b.Property<bool?>("Hdr10PlusPresentFlag")
 21934                        .HasColumnType("INTEGER");
 21935
 21936                    b.Property<int?>("Height")
 21937                        .HasColumnType("INTEGER");
 21938
 21939                    b.Property<bool?>("IsAnamorphic")
 21940                        .HasColumnType("INTEGER");
 21941
 21942                    b.Property<bool?>("IsAvc")
 21943                        .HasColumnType("INTEGER");
 21944
 21945                    b.Property<bool>("IsDefault")
 21946                        .HasColumnType("INTEGER");
 21947
 21948                    b.Property<bool>("IsExternal")
 21949                        .HasColumnType("INTEGER");
 21950
 21951                    b.Property<bool>("IsForced")
 21952                        .HasColumnType("INTEGER");
 21953
 21954                    b.Property<bool?>("IsHearingImpaired")
 21955                        .HasColumnType("INTEGER");
 21956
 21957                    b.Property<bool?>("IsInterlaced")
 21958                        .HasColumnType("INTEGER");
 21959
 21960                    b.Property<string>("KeyFrames")
 21961                        .HasColumnType("TEXT");
 21962
 21963                    b.Property<string>("Language")
 21964                        .HasColumnType("TEXT");
 21965
 21966                    b.Property<float?>("Level")
 21967                        .HasColumnType("REAL");
 21968
 21969                    b.Property<string>("NalLengthSize")
 21970                        .HasColumnType("TEXT");
 21971
 21972                    b.Property<string>("Path")
 21973                        .HasColumnType("TEXT");
 21974
 21975                    b.Property<string>("PixelFormat")
 21976                        .HasColumnType("TEXT");
 21977
 21978                    b.Property<string>("Profile")
 21979                        .HasColumnType("TEXT");
 21980
 21981                    b.Property<float?>("RealFrameRate")
 21982                        .HasColumnType("REAL");
 21983
 21984                    b.Property<int?>("RefFrames")
 21985                        .HasColumnType("INTEGER");
 21986
 21987                    b.Property<int?>("Rotation")
 21988                        .HasColumnType("INTEGER");
 21989
 21990                    b.Property<int?>("RpuPresentFlag")
 21991                        .HasColumnType("INTEGER");
 21992
 21993                    b.Property<int?>("SampleRate")
 21994                        .HasColumnType("INTEGER");
 21995
 21996                    b.Property<int>("StreamType")
 21997                        .HasColumnType("INTEGER");
 21998
 21999                    b.Property<string>("TimeBase")
 211000                        .HasColumnType("TEXT");
 211001
 211002                    b.Property<string>("Title")
 211003                        .HasColumnType("TEXT");
 211004
 211005                    b.Property<int?>("Width")
 211006                        .HasColumnType("INTEGER");
 211007
 211008                    b.HasKey("ItemId", "StreamIndex");
 211009
 211010                    b.HasIndex("StreamIndex");
 211011
 211012                    b.HasIndex("StreamType");
 211013
 211014                    b.HasIndex("StreamIndex", "StreamType");
 211015
 211016                    b.HasIndex("StreamIndex", "StreamType", "Language");
 211017
 211018                    b.ToTable("MediaStreamInfos");
 211019
 211020                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211021                });
 1022
 211023            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 211024                {
 211025                    b.Property<Guid>("Id")
 211026                        .ValueGeneratedOnAdd()
 211027                        .HasColumnType("TEXT");
 211028
 211029                    b.Property<string>("Name")
 211030                        .IsRequired()
 211031                        .HasColumnType("TEXT");
 211032
 211033                    b.Property<string>("PersonType")
 211034                        .HasColumnType("TEXT");
 211035
 211036                    b.HasKey("Id");
 211037
 211038                    b.HasIndex("Name");
 211039
 211040                    b.ToTable("Peoples");
 211041
 211042                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211043                });
 1044
 211045            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 211046                {
 211047                    b.Property<Guid>("ItemId")
 211048                        .HasColumnType("TEXT");
 211049
 211050                    b.Property<Guid>("PeopleId")
 211051                        .HasColumnType("TEXT");
 211052
 211053                    b.Property<string>("Role")
 211054                        .HasColumnType("TEXT");
 211055
 211056                    b.Property<int?>("ListOrder")
 211057                        .HasColumnType("INTEGER");
 211058
 211059                    b.Property<int?>("SortOrder")
 211060                        .HasColumnType("INTEGER");
 211061
 211062                    b.HasKey("ItemId", "PeopleId", "Role");
 211063
 211064                    b.HasIndex("PeopleId");
 211065
 211066                    b.HasIndex("ItemId", "ListOrder");
 211067
 211068                    b.HasIndex("ItemId", "SortOrder");
 211069
 211070                    b.ToTable("PeopleBaseItemMap");
 211071
 211072                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211073                });
 1074
 211075            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 211076                {
 211077                    b.Property<int>("Id")
 211078                        .ValueGeneratedOnAdd()
 211079                        .HasColumnType("INTEGER");
 211080
 211081                    b.Property<int>("Kind")
 211082                        .HasColumnType("INTEGER");
 211083
 211084                    b.Property<Guid?>("Permission_Permissions_Guid")
 211085                        .HasColumnType("TEXT");
 211086
 211087                    b.Property<uint>("RowVersion")
 211088                        .IsConcurrencyToken()
 211089                        .HasColumnType("INTEGER");
 211090
 211091                    b.Property<Guid?>("UserId")
 211092                        .HasColumnType("TEXT");
 211093
 211094                    b.Property<bool>("Value")
 211095                        .HasColumnType("INTEGER");
 211096
 211097                    b.HasKey("Id");
 211098
 211099                    b.HasIndex("UserId", "Kind")
 211100                        .IsUnique()
 211101                        .HasFilter("[UserId] IS NOT NULL");
 211102
 211103                    b.ToTable("Permissions");
 211104
 211105                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211106                });
 1107
 211108            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 211109                {
 211110                    b.Property<int>("Id")
 211111                        .ValueGeneratedOnAdd()
 211112                        .HasColumnType("INTEGER");
 211113
 211114                    b.Property<int>("Kind")
 211115                        .HasColumnType("INTEGER");
 211116
 211117                    b.Property<Guid?>("Preference_Preferences_Guid")
 211118                        .HasColumnType("TEXT");
 211119
 211120                    b.Property<uint>("RowVersion")
 211121                        .IsConcurrencyToken()
 211122                        .HasColumnType("INTEGER");
 211123
 211124                    b.Property<Guid?>("UserId")
 211125                        .HasColumnType("TEXT");
 211126
 211127                    b.Property<string>("Value")
 211128                        .IsRequired()
 211129                        .HasMaxLength(65535)
 211130                        .HasColumnType("TEXT");
 211131
 211132                    b.HasKey("Id");
 211133
 211134                    b.HasIndex("UserId", "Kind")
 211135                        .IsUnique()
 211136                        .HasFilter("[UserId] IS NOT NULL");
 211137
 211138                    b.ToTable("Preferences");
 211139
 211140                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211141                });
 1142
 211143            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.ApiKey", b =>
 211144                {
 211145                    b.Property<int>("Id")
 211146                        .ValueGeneratedOnAdd()
 211147                        .HasColumnType("INTEGER");
 211148
 211149                    b.Property<string>("AccessToken")
 211150                        .IsRequired()
 211151                        .HasColumnType("TEXT");
 211152
 211153                    b.Property<DateTime>("DateCreated")
 211154                        .HasColumnType("TEXT");
 211155
 211156                    b.Property<DateTime>("DateLastActivity")
 211157                        .HasColumnType("TEXT");
 211158
 211159                    b.Property<string>("Name")
 211160                        .IsRequired()
 211161                        .HasMaxLength(64)
 211162                        .HasColumnType("TEXT");
 211163
 211164                    b.HasKey("Id");
 211165
 211166                    b.HasIndex("AccessToken")
 211167                        .IsUnique();
 211168
 211169                    b.ToTable("ApiKeys");
 211170
 211171                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211172                });
 1173
 211174            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 211175                {
 211176                    b.Property<int>("Id")
 211177                        .ValueGeneratedOnAdd()
 211178                        .HasColumnType("INTEGER");
 211179
 211180                    b.Property<string>("AccessToken")
 211181                        .IsRequired()
 211182                        .HasColumnType("TEXT");
 211183
 211184                    b.Property<string>("AppName")
 211185                        .IsRequired()
 211186                        .HasMaxLength(64)
 211187                        .HasColumnType("TEXT");
 211188
 211189                    b.Property<string>("AppVersion")
 211190                        .IsRequired()
 211191                        .HasMaxLength(32)
 211192                        .HasColumnType("TEXT");
 211193
 211194                    b.Property<DateTime>("DateCreated")
 211195                        .HasColumnType("TEXT");
 211196
 211197                    b.Property<DateTime>("DateLastActivity")
 211198                        .HasColumnType("TEXT");
 211199
 211200                    b.Property<DateTime>("DateModified")
 211201                        .HasColumnType("TEXT");
 211202
 211203                    b.Property<string>("DeviceId")
 211204                        .IsRequired()
 211205                        .HasMaxLength(256)
 211206                        .HasColumnType("TEXT");
 211207
 211208                    b.Property<string>("DeviceName")
 211209                        .IsRequired()
 211210                        .HasMaxLength(64)
 211211                        .HasColumnType("TEXT");
 211212
 211213                    b.Property<bool>("IsActive")
 211214                        .HasColumnType("INTEGER");
 211215
 211216                    b.Property<Guid>("UserId")
 211217                        .HasColumnType("TEXT");
 211218
 211219                    b.HasKey("Id");
 211220
 211221                    b.HasIndex("DeviceId");
 211222
 211223                    b.HasIndex("AccessToken", "DateLastActivity");
 211224
 211225                    b.HasIndex("DeviceId", "DateLastActivity");
 211226
 211227                    b.HasIndex("UserId", "DeviceId");
 211228
 211229                    b.ToTable("Devices");
 211230
 211231                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211232                });
 1233
 211234            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.DeviceOptions", b =>
 211235                {
 211236                    b.Property<int>("Id")
 211237                        .ValueGeneratedOnAdd()
 211238                        .HasColumnType("INTEGER");
 211239
 211240                    b.Property<string>("CustomName")
 211241                        .HasColumnType("TEXT");
 211242
 211243                    b.Property<string>("DeviceId")
 211244                        .IsRequired()
 211245                        .HasColumnType("TEXT");
 211246
 211247                    b.HasKey("Id");
 211248
 211249                    b.HasIndex("DeviceId")
 211250                        .IsUnique();
 211251
 211252                    b.ToTable("DeviceOptions");
 211253
 211254                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211255                });
 1256
 211257            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.TrickplayInfo", b =>
 211258                {
 211259                    b.Property<Guid>("ItemId")
 211260                        .HasColumnType("TEXT");
 211261
 211262                    b.Property<int>("Width")
 211263                        .HasColumnType("INTEGER");
 211264
 211265                    b.Property<int>("Bandwidth")
 211266                        .HasColumnType("INTEGER");
 211267
 211268                    b.Property<int>("Height")
 211269                        .HasColumnType("INTEGER");
 211270
 211271                    b.Property<int>("Interval")
 211272                        .HasColumnType("INTEGER");
 211273
 211274                    b.Property<int>("ThumbnailCount")
 211275                        .HasColumnType("INTEGER");
 211276
 211277                    b.Property<int>("TileHeight")
 211278                        .HasColumnType("INTEGER");
 211279
 211280                    b.Property<int>("TileWidth")
 211281                        .HasColumnType("INTEGER");
 211282
 211283                    b.HasKey("ItemId", "Width");
 211284
 211285                    b.ToTable("TrickplayInfos");
 211286
 211287                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211288                });
 1289
 211290            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 211291                {
 211292                    b.Property<Guid>("Id")
 211293                        .ValueGeneratedOnAdd()
 211294                        .HasColumnType("TEXT");
 211295
 211296                    b.Property<string>("AudioLanguagePreference")
 211297                        .HasMaxLength(255)
 211298                        .HasColumnType("TEXT");
 211299
 211300                    b.Property<string>("AuthenticationProviderId")
 211301                        .IsRequired()
 211302                        .HasMaxLength(255)
 211303                        .HasColumnType("TEXT");
 211304
 211305                    b.Property<string>("CastReceiverId")
 211306                        .HasMaxLength(32)
 211307                        .HasColumnType("TEXT");
 211308
 211309                    b.Property<bool>("DisplayCollectionsView")
 211310                        .HasColumnType("INTEGER");
 211311
 211312                    b.Property<bool>("DisplayMissingEpisodes")
 211313                        .HasColumnType("INTEGER");
 211314
 211315                    b.Property<bool>("EnableAutoLogin")
 211316                        .HasColumnType("INTEGER");
 211317
 211318                    b.Property<bool>("EnableLocalPassword")
 211319                        .HasColumnType("INTEGER");
 211320
 211321                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 211322                        .HasColumnType("INTEGER");
 211323
 211324                    b.Property<bool>("EnableUserPreferenceAccess")
 211325                        .HasColumnType("INTEGER");
 211326
 211327                    b.Property<bool>("HidePlayedInLatest")
 211328                        .HasColumnType("INTEGER");
 211329
 211330                    b.Property<long>("InternalId")
 211331                        .HasColumnType("INTEGER");
 211332
 211333                    b.Property<int>("InvalidLoginAttemptCount")
 211334                        .HasColumnType("INTEGER");
 211335
 211336                    b.Property<DateTime?>("LastActivityDate")
 211337                        .HasColumnType("TEXT");
 211338
 211339                    b.Property<DateTime?>("LastLoginDate")
 211340                        .HasColumnType("TEXT");
 211341
 211342                    b.Property<int?>("LoginAttemptsBeforeLockout")
 211343                        .HasColumnType("INTEGER");
 211344
 211345                    b.Property<int>("MaxActiveSessions")
 211346                        .HasColumnType("INTEGER");
 211347
 211348                    b.Property<int?>("MaxParentalRatingScore")
 211349                        .HasColumnType("INTEGER");
 211350
 211351                    b.Property<int?>("MaxParentalRatingSubScore")
 211352                        .HasColumnType("INTEGER");
 211353
 211354                    b.Property<bool>("MustUpdatePassword")
 211355                        .HasColumnType("INTEGER");
 211356
 211357                    b.Property<string>("Password")
 211358                        .HasMaxLength(65535)
 211359                        .HasColumnType("TEXT");
 211360
 211361                    b.Property<string>("PasswordResetProviderId")
 211362                        .IsRequired()
 211363                        .HasMaxLength(255)
 211364                        .HasColumnType("TEXT");
 211365
 211366                    b.Property<bool>("PlayDefaultAudioTrack")
 211367                        .HasColumnType("INTEGER");
 211368
 211369                    b.Property<bool>("RememberAudioSelections")
 211370                        .HasColumnType("INTEGER");
 211371
 211372                    b.Property<bool>("RememberSubtitleSelections")
 211373                        .HasColumnType("INTEGER");
 211374
 211375                    b.Property<int?>("RemoteClientBitrateLimit")
 211376                        .HasColumnType("INTEGER");
 211377
 211378                    b.Property<uint>("RowVersion")
 211379                        .IsConcurrencyToken()
 211380                        .HasColumnType("INTEGER");
 211381
 211382                    b.Property<string>("SubtitleLanguagePreference")
 211383                        .HasMaxLength(255)
 211384                        .HasColumnType("TEXT");
 211385
 211386                    b.Property<int>("SubtitleMode")
 211387                        .HasColumnType("INTEGER");
 211388
 211389                    b.Property<int>("SyncPlayAccess")
 211390                        .HasColumnType("INTEGER");
 211391
 211392                    b.Property<string>("Username")
 211393                        .IsRequired()
 211394                        .HasMaxLength(255)
 211395                        .HasColumnType("TEXT");
 211396
 211397                    b.HasKey("Id");
 211398
 211399                    b.HasIndex("Username")
 211400                        .IsUnique();
 211401
 211402                    b.ToTable("Users");
 211403
 211404                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211405                });
 1406
 211407            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 211408                {
 211409                    b.Property<Guid>("ItemId")
 211410                        .HasColumnType("TEXT");
 211411
 211412                    b.Property<Guid>("UserId")
 211413                        .HasColumnType("TEXT");
 211414
 211415                    b.Property<string>("CustomDataKey")
 211416                        .HasColumnType("TEXT");
 211417
 211418                    b.Property<int?>("AudioStreamIndex")
 211419                        .HasColumnType("INTEGER");
 211420
 211421                    b.Property<bool>("IsFavorite")
 211422                        .HasColumnType("INTEGER");
 211423
 211424                    b.Property<DateTime?>("LastPlayedDate")
 211425                        .HasColumnType("TEXT");
 211426
 211427                    b.Property<bool?>("Likes")
 211428                        .HasColumnType("INTEGER");
 211429
 211430                    b.Property<int>("PlayCount")
 211431                        .HasColumnType("INTEGER");
 211432
 211433                    b.Property<long>("PlaybackPositionTicks")
 211434                        .HasColumnType("INTEGER");
 211435
 211436                    b.Property<bool>("Played")
 211437                        .HasColumnType("INTEGER");
 211438
 211439                    b.Property<double?>("Rating")
 211440                        .HasColumnType("REAL");
 211441
 211442                    b.Property<DateTime?>("RetentionDate")
 211443                        .HasColumnType("TEXT");
 211444
 211445                    b.Property<int?>("SubtitleStreamIndex")
 211446                        .HasColumnType("INTEGER");
 211447
 211448                    b.HasKey("ItemId", "UserId", "CustomDataKey");
 211449
 211450                    b.HasIndex("UserId");
 211451
 211452                    b.HasIndex("ItemId", "UserId", "IsFavorite");
 211453
 211454                    b.HasIndex("ItemId", "UserId", "LastPlayedDate");
 211455
 211456                    b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
 211457
 211458                    b.HasIndex("ItemId", "UserId", "Played");
 211459
 211460                    b.ToTable("UserData");
 211461
 211462                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 211463                });
 1464
 211465            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 211466                {
 211467                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 211468                        .WithMany("AccessSchedules")
 211469                        .HasForeignKey("UserId")
 211470                        .OnDelete(DeleteBehavior.Cascade)
 211471                        .IsRequired();
 211472                });
 1473
 211474            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 211475                {
 211476                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211477                        .WithMany("Parents")
 211478                        .HasForeignKey("ItemId")
 211479                        .OnDelete(DeleteBehavior.Cascade)
 211480                        .IsRequired();
 211481
 211482                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "ParentItem")
 211483                        .WithMany("Children")
 211484                        .HasForeignKey("ParentItemId")
 211485                        .OnDelete(DeleteBehavior.Cascade)
 211486                        .IsRequired();
 211487
 211488                    b.Navigation("Item");
 211489
 211490                    b.Navigation("ParentItem");
 211491                });
 1492
 211493            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 211494                {
 211495                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211496                        .WithMany()
 211497                        .HasForeignKey("ItemId")
 211498                        .OnDelete(DeleteBehavior.Cascade)
 211499                        .IsRequired();
 211500
 211501                    b.Navigation("Item");
 211502                });
 1503
 211504            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 211505                {
 211506                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", null)
 211507                        .WithMany("Extras")
 211508                        .HasForeignKey("BaseItemEntityId");
 211509
 211510                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "DirectParent")
 211511                        .WithMany("DirectChildren")
 211512                        .HasForeignKey("ParentId")
 211513                        .OnDelete(DeleteBehavior.Cascade);
 211514
 211515                    b.Navigation("DirectParent");
 211516                });
 1517
 211518            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 211519                {
 211520                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211521                        .WithMany("Images")
 211522                        .HasForeignKey("ItemId")
 211523                        .OnDelete(DeleteBehavior.Cascade)
 211524                        .IsRequired();
 211525
 211526                    b.Navigation("Item");
 211527                });
 1528
 211529            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 211530                {
 211531                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211532                        .WithMany("LockedFields")
 211533                        .HasForeignKey("ItemId")
 211534                        .OnDelete(DeleteBehavior.Cascade)
 211535                        .IsRequired();
 211536
 211537                    b.Navigation("Item");
 211538                });
 1539
 211540            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 211541                {
 211542                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211543                        .WithMany("Provider")
 211544                        .HasForeignKey("ItemId")
 211545                        .OnDelete(DeleteBehavior.Cascade)
 211546                        .IsRequired();
 211547
 211548                    b.Navigation("Item");
 211549                });
 1550
 211551            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 211552                {
 211553                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211554                        .WithMany("TrailerTypes")
 211555                        .HasForeignKey("ItemId")
 211556                        .OnDelete(DeleteBehavior.Cascade)
 211557                        .IsRequired();
 211558
 211559                    b.Navigation("Item");
 211560                });
 1561
 211562            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 211563                {
 211564                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211565                        .WithMany("Chapters")
 211566                        .HasForeignKey("ItemId")
 211567                        .OnDelete(DeleteBehavior.Cascade)
 211568                        .IsRequired();
 211569
 211570                    b.Navigation("Item");
 211571                });
 1572
 211573            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 211574                {
 211575                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 211576                        .WithMany("DisplayPreferences")
 211577                        .HasForeignKey("UserId")
 211578                        .OnDelete(DeleteBehavior.Cascade)
 211579                        .IsRequired();
 211580                });
 1581
 211582            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 211583                {
 211584                    b.HasOne("Jellyfin.Database.Implementations.Entities.DisplayPreferences", null)
 211585                        .WithMany("HomeSections")
 211586                        .HasForeignKey("DisplayPreferencesId")
 211587                        .OnDelete(DeleteBehavior.Cascade)
 211588                        .IsRequired();
 211589                });
 1590
 211591            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 211592                {
 211593                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 211594                        .WithOne("ProfileImage")
 211595                        .HasForeignKey("Jellyfin.Database.Implementations.Entities.ImageInfo", "UserId")
 211596                        .OnDelete(DeleteBehavior.Cascade);
 211597                });
 1598
 211599            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 211600                {
 211601                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 211602                        .WithMany("ItemDisplayPreferences")
 211603                        .HasForeignKey("UserId")
 211604                        .OnDelete(DeleteBehavior.Cascade)
 211605                        .IsRequired();
 211606                });
 1607
 211608            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 211609                {
 211610                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211611                        .WithMany("ItemValues")
 211612                        .HasForeignKey("ItemId")
 211613                        .OnDelete(DeleteBehavior.Cascade)
 211614                        .IsRequired();
 211615
 211616                    b.HasOne("Jellyfin.Database.Implementations.Entities.ItemValue", "ItemValue")
 211617                        .WithMany("BaseItemsMap")
 211618                        .HasForeignKey("ItemValueId")
 211619                        .OnDelete(DeleteBehavior.Cascade)
 211620                        .IsRequired();
 211621
 211622                    b.Navigation("Item");
 211623
 211624                    b.Navigation("ItemValue");
 211625                });
 1626
 211627            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 211628                {
 211629                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211630                        .WithMany()
 211631                        .HasForeignKey("ItemId")
 211632                        .OnDelete(DeleteBehavior.Cascade)
 211633                        .IsRequired();
 211634
 211635                    b.Navigation("Item");
 211636                });
 1637
 211638            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 211639                {
 211640                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Child")
 211641                        .WithMany("LinkedChildOfEntities")
 211642                        .HasForeignKey("ChildId")
 211643                        .OnDelete(DeleteBehavior.NoAction)
 211644                        .IsRequired();
 211645
 211646                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Parent")
 211647                        .WithMany("LinkedChildEntities")
 211648                        .HasForeignKey("ParentId")
 211649                        .OnDelete(DeleteBehavior.NoAction)
 211650                        .IsRequired();
 211651
 211652                    b.Navigation("Child");
 211653
 211654                    b.Navigation("Parent");
 211655                });
 1656
 211657            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 211658                {
 211659                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211660                        .WithMany("MediaStreams")
 211661                        .HasForeignKey("ItemId")
 211662                        .OnDelete(DeleteBehavior.Cascade)
 211663                        .IsRequired();
 211664
 211665                    b.Navigation("Item");
 211666                });
 1667
 211668            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 211669                {
 211670                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211671                        .WithMany("Peoples")
 211672                        .HasForeignKey("ItemId")
 211673                        .OnDelete(DeleteBehavior.Cascade)
 211674                        .IsRequired();
 211675
 211676                    b.HasOne("Jellyfin.Database.Implementations.Entities.People", "People")
 211677                        .WithMany("BaseItems")
 211678                        .HasForeignKey("PeopleId")
 211679                        .OnDelete(DeleteBehavior.Cascade)
 211680                        .IsRequired();
 211681
 211682                    b.Navigation("Item");
 211683
 211684                    b.Navigation("People");
 211685                });
 1686
 211687            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 211688                {
 211689                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 211690                        .WithMany("Permissions")
 211691                        .HasForeignKey("UserId")
 211692                        .OnDelete(DeleteBehavior.Cascade);
 211693                });
 1694
 211695            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 211696                {
 211697                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 211698                        .WithMany("Preferences")
 211699                        .HasForeignKey("UserId")
 211700                        .OnDelete(DeleteBehavior.Cascade);
 211701                });
 1702
 211703            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 211704                {
 211705                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 211706                        .WithMany()
 211707                        .HasForeignKey("UserId")
 211708                        .OnDelete(DeleteBehavior.Cascade)
 211709                        .IsRequired();
 211710
 211711                    b.Navigation("User");
 211712                });
 1713
 211714            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 211715                {
 211716                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 211717                        .WithMany("UserData")
 211718                        .HasForeignKey("ItemId")
 211719                        .OnDelete(DeleteBehavior.Cascade)
 211720                        .IsRequired();
 211721
 211722                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 211723                        .WithMany()
 211724                        .HasForeignKey("UserId")
 211725                        .OnDelete(DeleteBehavior.Cascade)
 211726                        .IsRequired();
 211727
 211728                    b.Navigation("Item");
 211729
 211730                    b.Navigation("User");
 211731                });
 1732
 211733            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 211734                {
 211735                    b.Navigation("Chapters");
 211736
 211737                    b.Navigation("Children");
 211738
 211739                    b.Navigation("DirectChildren");
 211740
 211741                    b.Navigation("Extras");
 211742
 211743                    b.Navigation("Images");
 211744
 211745                    b.Navigation("ItemValues");
 211746
 211747                    b.Navigation("LinkedChildEntities");
 211748
 211749                    b.Navigation("LinkedChildOfEntities");
 211750
 211751                    b.Navigation("LockedFields");
 211752
 211753                    b.Navigation("MediaStreams");
 211754
 211755                    b.Navigation("Parents");
 211756
 211757                    b.Navigation("Peoples");
 211758
 211759                    b.Navigation("Provider");
 211760
 211761                    b.Navigation("TrailerTypes");
 211762
 211763                    b.Navigation("UserData");
 211764                });
 1765
 211766            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 211767                {
 211768                    b.Navigation("HomeSections");
 211769                });
 1770
 211771            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 211772                {
 211773                    b.Navigation("BaseItemsMap");
 211774                });
 1775
 211776            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 211777                {
 211778                    b.Navigation("BaseItems");
 211779                });
 1780
 211781            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 211782                {
 211783                    b.Navigation("AccessSchedules");
 211784
 211785                    b.Navigation("DisplayPreferences");
 211786
 211787                    b.Navigation("ItemDisplayPreferences");
 211788
 211789                    b.Navigation("Permissions");
 211790
 211791                    b.Navigation("Preferences");
 211792
 211793                    b.Navigation("ProfileImage");
 211794                });
 1795#pragma warning restore 612, 618
 211796        }
 1797    }
 1798}