< 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
 2215            migrationBuilder.Sql(
 2216                @"UPDATE BaseItems
 2217                  SET OwnerId = UPPER(OwnerId)
 2218                  WHERE OwnerId IS NOT NULL");
 19
 20            // Clear invalid OwnerId values (not 36 characters = not a valid GUID)
 2221            migrationBuilder.Sql(
 2222                @"UPDATE BaseItems
 2223                  SET OwnerId = null
 2224                  WHERE OwnerId IS NOT NULL AND length(OwnerId) != 36");
 25
 26            // Clear placeholder/empty GUIDs
 2227            migrationBuilder.UpdateData(
 2228                table: "BaseItems",
 2229                keyColumn: "OwnerId",
 2230                keyValue: new Guid("00000000-0000-0000-0000-000000000000"),
 2231                column: "OwnerId",
 2232                value: null);
 33
 2234            migrationBuilder.UpdateData(
 2235                table: "BaseItems",
 2236                keyColumn: "OwnerId",
 2237                keyValue: new Guid("00000000-0000-0000-0000-000000000001"),
 2238                column: "OwnerId",
 2239                value: null);
 40
 2241            migrationBuilder.AddColumn<Guid>(
 2242                name: "BaseItemEntityId",
 2243                table: "BaseItems",
 2244                type: "TEXT",
 2245                nullable: true);
 46
 2247            migrationBuilder.UpdateData(
 2248                table: "BaseItems",
 2249                keyColumn: "Id",
 2250                keyValue: new Guid("00000000-0000-0000-0000-000000000001"),
 2251                columns: new[] { "BaseItemEntityId", "Name", "OwnerId" },
 2252                values: new object[] { null, "This is a placeholder item for UserData that has been detached from its or
 53
 2254            migrationBuilder.CreateIndex(
 2255                name: "IX_BaseItems_BaseItemEntityId",
 2256                table: "BaseItems",
 2257                column: "BaseItemEntityId");
 58
 2259            migrationBuilder.CreateIndex(
 2260                name: "IX_BaseItems_ExtraType",
 2261                table: "BaseItems",
 2262                column: "ExtraType");
 63
 2264            migrationBuilder.CreateIndex(
 2265                name: "IX_BaseItems_ExtraType_OwnerId",
 2266                table: "BaseItems",
 2267                columns: new[] { "ExtraType", "OwnerId" });
 68
 2269            migrationBuilder.CreateIndex(
 2270                name: "IX_BaseItems_OwnerId",
 2271                table: "BaseItems",
 2272                column: "OwnerId");
 73
 2274            migrationBuilder.CreateIndex(
 2275                name: "IX_BaseItems_TopParentId_IsFolder_IsVirtualItem_DateCreated",
 2276                table: "BaseItems",
 2277                columns: new[] { "TopParentId", "IsFolder", "IsVirtualItem", "DateCreated" });
 78
 2279            migrationBuilder.CreateIndex(
 2280                name: "IX_BaseItems_TopParentId_MediaType_IsVirtualItem_DateCreated",
 2281                table: "BaseItems",
 2282                columns: new[] { "TopParentId", "MediaType", "IsVirtualItem", "DateCreated" });
 83
 2284            migrationBuilder.CreateIndex(
 2285                name: "IX_BaseItems_TopParentId_Type_IsVirtualItem_DateCreated",
 2286                table: "BaseItems",
 2287                columns: new[] { "TopParentId", "Type", "IsVirtualItem", "DateCreated" });
 88
 2289            migrationBuilder.AddForeignKey(
 2290                name: "FK_BaseItems_BaseItems_BaseItemEntityId",
 2291                table: "BaseItems",
 2292                column: "BaseItemEntityId",
 2293                principalTable: "BaseItems",
 2294                principalColumn: "Id");
 2295        }
 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
 2221            modelBuilder.HasAnnotation("ProductVersion", "10.0.2");
 22
 2223            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 2224                {
 2225                    b.Property<int>("Id")
 2226                        .ValueGeneratedOnAdd()
 2227                        .HasColumnType("INTEGER");
 2228
 2229                    b.Property<int>("DayOfWeek")
 2230                        .HasColumnType("INTEGER");
 2231
 2232                    b.Property<double>("EndHour")
 2233                        .HasColumnType("REAL");
 2234
 2235                    b.Property<double>("StartHour")
 2236                        .HasColumnType("REAL");
 2237
 2238                    b.Property<Guid>("UserId")
 2239                        .HasColumnType("TEXT");
 2240
 2241                    b.HasKey("Id");
 2242
 2243                    b.HasIndex("UserId");
 2244
 2245                    b.ToTable("AccessSchedules");
 2246
 2247                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2248                });
 49
 2250            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ActivityLog", b =>
 2251                {
 2252                    b.Property<int>("Id")
 2253                        .ValueGeneratedOnAdd()
 2254                        .HasColumnType("INTEGER");
 2255
 2256                    b.Property<DateTime>("DateCreated")
 2257                        .HasColumnType("TEXT");
 2258
 2259                    b.Property<string>("ItemId")
 2260                        .HasMaxLength(256)
 2261                        .HasColumnType("TEXT");
 2262
 2263                    b.Property<int>("LogSeverity")
 2264                        .HasColumnType("INTEGER");
 2265
 2266                    b.Property<string>("Name")
 2267                        .IsRequired()
 2268                        .HasMaxLength(512)
 2269                        .HasColumnType("TEXT");
 2270
 2271                    b.Property<string>("Overview")
 2272                        .HasMaxLength(512)
 2273                        .HasColumnType("TEXT");
 2274
 2275                    b.Property<uint>("RowVersion")
 2276                        .IsConcurrencyToken()
 2277                        .HasColumnType("INTEGER");
 2278
 2279                    b.Property<string>("ShortOverview")
 2280                        .HasMaxLength(512)
 2281                        .HasColumnType("TEXT");
 2282
 2283                    b.Property<string>("Type")
 2284                        .IsRequired()
 2285                        .HasMaxLength(256)
 2286                        .HasColumnType("TEXT");
 2287
 2288                    b.Property<Guid>("UserId")
 2289                        .HasColumnType("TEXT");
 2290
 2291                    b.HasKey("Id");
 2292
 2293                    b.HasIndex("DateCreated");
 2294
 2295                    b.ToTable("ActivityLogs");
 2296
 2297                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2298                });
 99
 22100            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 22101                {
 22102                    b.Property<Guid>("ItemId")
 22103                        .HasColumnType("TEXT");
 22104
 22105                    b.Property<Guid>("ParentItemId")
 22106                        .HasColumnType("TEXT");
 22107
 22108                    b.HasKey("ItemId", "ParentItemId");
 22109
 22110                    b.HasIndex("ParentItemId");
 22111
 22112                    b.ToTable("AncestorIds");
 22113
 22114                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22115                });
 116
 22117            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 22118                {
 22119                    b.Property<Guid>("ItemId")
 22120                        .HasColumnType("TEXT");
 22121
 22122                    b.Property<int>("Index")
 22123                        .HasColumnType("INTEGER");
 22124
 22125                    b.Property<string>("Codec")
 22126                        .HasColumnType("TEXT");
 22127
 22128                    b.Property<string>("CodecTag")
 22129                        .HasColumnType("TEXT");
 22130
 22131                    b.Property<string>("Comment")
 22132                        .HasColumnType("TEXT");
 22133
 22134                    b.Property<string>("Filename")
 22135                        .HasColumnType("TEXT");
 22136
 22137                    b.Property<string>("MimeType")
 22138                        .HasColumnType("TEXT");
 22139
 22140                    b.HasKey("ItemId", "Index");
 22141
 22142                    b.ToTable("AttachmentStreamInfos");
 22143
 22144                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22145                });
 146
 22147            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 22148                {
 22149                    b.Property<Guid>("Id")
 22150                        .ValueGeneratedOnAdd()
 22151                        .HasColumnType("TEXT");
 22152
 22153                    b.Property<string>("Album")
 22154                        .HasColumnType("TEXT");
 22155
 22156                    b.Property<string>("AlbumArtists")
 22157                        .HasColumnType("TEXT");
 22158
 22159                    b.Property<string>("Artists")
 22160                        .HasColumnType("TEXT");
 22161
 22162                    b.Property<int?>("Audio")
 22163                        .HasColumnType("INTEGER");
 22164
 22165                    b.Property<Guid?>("BaseItemEntityId")
 22166                        .HasColumnType("TEXT");
 22167
 22168                    b.Property<Guid?>("ChannelId")
 22169                        .HasColumnType("TEXT");
 22170
 22171                    b.Property<string>("CleanName")
 22172                        .HasColumnType("TEXT");
 22173
 22174                    b.Property<float?>("CommunityRating")
 22175                        .HasColumnType("REAL");
 22176
 22177                    b.Property<float?>("CriticRating")
 22178                        .HasColumnType("REAL");
 22179
 22180                    b.Property<string>("CustomRating")
 22181                        .HasColumnType("TEXT");
 22182
 22183                    b.Property<string>("Data")
 22184                        .HasColumnType("TEXT");
 22185
 22186                    b.Property<DateTime?>("DateCreated")
 22187                        .HasColumnType("TEXT");
 22188
 22189                    b.Property<DateTime?>("DateLastMediaAdded")
 22190                        .HasColumnType("TEXT");
 22191
 22192                    b.Property<DateTime?>("DateLastRefreshed")
 22193                        .HasColumnType("TEXT");
 22194
 22195                    b.Property<DateTime?>("DateLastSaved")
 22196                        .HasColumnType("TEXT");
 22197
 22198                    b.Property<DateTime?>("DateModified")
 22199                        .HasColumnType("TEXT");
 22200
 22201                    b.Property<DateTime?>("EndDate")
 22202                        .HasColumnType("TEXT");
 22203
 22204                    b.Property<string>("EpisodeTitle")
 22205                        .HasColumnType("TEXT");
 22206
 22207                    b.Property<string>("ExternalId")
 22208                        .HasColumnType("TEXT");
 22209
 22210                    b.Property<string>("ExternalSeriesId")
 22211                        .HasColumnType("TEXT");
 22212
 22213                    b.Property<string>("ExternalServiceId")
 22214                        .HasColumnType("TEXT");
 22215
 22216                    b.Property<string>("ExtraIds")
 22217                        .HasColumnType("TEXT");
 22218
 22219                    b.Property<int?>("ExtraType")
 22220                        .HasColumnType("INTEGER");
 22221
 22222                    b.Property<string>("ForcedSortName")
 22223                        .HasColumnType("TEXT");
 22224
 22225                    b.Property<string>("Genres")
 22226                        .HasColumnType("TEXT");
 22227
 22228                    b.Property<int?>("Height")
 22229                        .HasColumnType("INTEGER");
 22230
 22231                    b.Property<int?>("IndexNumber")
 22232                        .HasColumnType("INTEGER");
 22233
 22234                    b.Property<int?>("InheritedParentalRatingSubValue")
 22235                        .HasColumnType("INTEGER");
 22236
 22237                    b.Property<int?>("InheritedParentalRatingValue")
 22238                        .HasColumnType("INTEGER");
 22239
 22240                    b.Property<bool>("IsFolder")
 22241                        .HasColumnType("INTEGER");
 22242
 22243                    b.Property<bool>("IsInMixedFolder")
 22244                        .HasColumnType("INTEGER");
 22245
 22246                    b.Property<bool>("IsLocked")
 22247                        .HasColumnType("INTEGER");
 22248
 22249                    b.Property<bool>("IsMovie")
 22250                        .HasColumnType("INTEGER");
 22251
 22252                    b.Property<bool>("IsRepeat")
 22253                        .HasColumnType("INTEGER");
 22254
 22255                    b.Property<bool>("IsSeries")
 22256                        .HasColumnType("INTEGER");
 22257
 22258                    b.Property<bool>("IsVirtualItem")
 22259                        .HasColumnType("INTEGER");
 22260
 22261                    b.Property<float?>("LUFS")
 22262                        .HasColumnType("REAL");
 22263
 22264                    b.Property<string>("MediaType")
 22265                        .HasColumnType("TEXT");
 22266
 22267                    b.Property<string>("Name")
 22268                        .HasColumnType("TEXT");
 22269
 22270                    b.Property<float?>("NormalizationGain")
 22271                        .HasColumnType("REAL");
 22272
 22273                    b.Property<string>("OfficialRating")
 22274                        .HasColumnType("TEXT");
 22275
 22276                    b.Property<string>("OriginalTitle")
 22277                        .HasColumnType("TEXT");
 22278
 22279                    b.Property<string>("Overview")
 22280                        .HasColumnType("TEXT");
 22281
 22282                    b.Property<Guid?>("OwnerId")
 22283                        .HasColumnType("TEXT");
 22284
 22285                    b.Property<Guid?>("ParentId")
 22286                        .HasColumnType("TEXT");
 22287
 22288                    b.Property<int?>("ParentIndexNumber")
 22289                        .HasColumnType("INTEGER");
 22290
 22291                    b.Property<string>("Path")
 22292                        .HasColumnType("TEXT");
 22293
 22294                    b.Property<string>("PreferredMetadataCountryCode")
 22295                        .HasColumnType("TEXT");
 22296
 22297                    b.Property<string>("PreferredMetadataLanguage")
 22298                        .HasColumnType("TEXT");
 22299
 22300                    b.Property<DateTime?>("PremiereDate")
 22301                        .HasColumnType("TEXT");
 22302
 22303                    b.Property<string>("PresentationUniqueKey")
 22304                        .HasColumnType("TEXT");
 22305
 22306                    b.Property<string>("PrimaryVersionId")
 22307                        .HasColumnType("TEXT");
 22308
 22309                    b.Property<string>("ProductionLocations")
 22310                        .HasColumnType("TEXT");
 22311
 22312                    b.Property<int?>("ProductionYear")
 22313                        .HasColumnType("INTEGER");
 22314
 22315                    b.Property<long?>("RunTimeTicks")
 22316                        .HasColumnType("INTEGER");
 22317
 22318                    b.Property<Guid?>("SeasonId")
 22319                        .HasColumnType("TEXT");
 22320
 22321                    b.Property<string>("SeasonName")
 22322                        .HasColumnType("TEXT");
 22323
 22324                    b.Property<Guid?>("SeriesId")
 22325                        .HasColumnType("TEXT");
 22326
 22327                    b.Property<string>("SeriesName")
 22328                        .HasColumnType("TEXT");
 22329
 22330                    b.Property<string>("SeriesPresentationUniqueKey")
 22331                        .HasColumnType("TEXT");
 22332
 22333                    b.Property<string>("ShowId")
 22334                        .HasColumnType("TEXT");
 22335
 22336                    b.Property<long?>("Size")
 22337                        .HasColumnType("INTEGER");
 22338
 22339                    b.Property<string>("SortName")
 22340                        .HasColumnType("TEXT");
 22341
 22342                    b.Property<DateTime?>("StartDate")
 22343                        .HasColumnType("TEXT");
 22344
 22345                    b.Property<string>("Studios")
 22346                        .HasColumnType("TEXT");
 22347
 22348                    b.Property<string>("Tagline")
 22349                        .HasColumnType("TEXT");
 22350
 22351                    b.Property<string>("Tags")
 22352                        .HasColumnType("TEXT");
 22353
 22354                    b.Property<Guid?>("TopParentId")
 22355                        .HasColumnType("TEXT");
 22356
 22357                    b.Property<int?>("TotalBitrate")
 22358                        .HasColumnType("INTEGER");
 22359
 22360                    b.Property<string>("Type")
 22361                        .IsRequired()
 22362                        .HasColumnType("TEXT");
 22363
 22364                    b.Property<string>("UnratedType")
 22365                        .HasColumnType("TEXT");
 22366
 22367                    b.Property<int?>("Width")
 22368                        .HasColumnType("INTEGER");
 22369
 22370                    b.HasKey("Id");
 22371
 22372                    b.HasIndex("BaseItemEntityId");
 22373
 22374                    b.HasIndex("ExtraType");
 22375
 22376                    b.HasIndex("OwnerId");
 22377
 22378                    b.HasIndex("ParentId");
 22379
 22380                    b.HasIndex("Path");
 22381
 22382                    b.HasIndex("PresentationUniqueKey");
 22383
 22384                    b.HasIndex("ExtraType", "OwnerId");
 22385
 22386                    b.HasIndex("TopParentId", "Id");
 22387
 22388                    b.HasIndex("Type", "TopParentId", "Id");
 22389
 22390                    b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
 22391
 22392                    b.HasIndex("Type", "TopParentId", "StartDate");
 22393
 22394                    b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
 22395
 22396                    b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
 22397
 22398                    b.HasIndex("TopParentId", "IsFolder", "IsVirtualItem", "DateCreated");
 22399
 22400                    b.HasIndex("TopParentId", "MediaType", "IsVirtualItem", "DateCreated");
 22401
 22402                    b.HasIndex("TopParentId", "Type", "IsVirtualItem", "DateCreated");
 22403
 22404                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
 22405
 22406                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
 22407
 22408                    b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 22409
 22410                    b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 22411
 22412                    b.ToTable("BaseItems");
 22413
 22414                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22415
 22416                    b.HasData(
 22417                        new
 22418                        {
 22419                            Id = new Guid("00000000-0000-0000-0000-000000000001"),
 22420                            IsFolder = false,
 22421                            IsInMixedFolder = false,
 22422                            IsLocked = false,
 22423                            IsMovie = false,
 22424                            IsRepeat = false,
 22425                            IsSeries = false,
 22426                            IsVirtualItem = false,
 22427                            Name = "This is a placeholder item for UserData that has been detached from its original ite
 22428                            Type = "PLACEHOLDER"
 22429                        });
 22430                });
 431
 22432            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 22433                {
 22434                    b.Property<Guid>("Id")
 22435                        .ValueGeneratedOnAdd()
 22436                        .HasColumnType("TEXT");
 22437
 22438                    b.Property<byte[]>("Blurhash")
 22439                        .HasColumnType("BLOB");
 22440
 22441                    b.Property<DateTime?>("DateModified")
 22442                        .HasColumnType("TEXT");
 22443
 22444                    b.Property<int>("Height")
 22445                        .HasColumnType("INTEGER");
 22446
 22447                    b.Property<int>("ImageType")
 22448                        .HasColumnType("INTEGER");
 22449
 22450                    b.Property<Guid>("ItemId")
 22451                        .HasColumnType("TEXT");
 22452
 22453                    b.Property<string>("Path")
 22454                        .IsRequired()
 22455                        .HasColumnType("TEXT");
 22456
 22457                    b.Property<int>("Width")
 22458                        .HasColumnType("INTEGER");
 22459
 22460                    b.HasKey("Id");
 22461
 22462                    b.HasIndex("ItemId");
 22463
 22464                    b.ToTable("BaseItemImageInfos");
 22465
 22466                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22467                });
 468
 22469            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 22470                {
 22471                    b.Property<int>("Id")
 22472                        .HasColumnType("INTEGER");
 22473
 22474                    b.Property<Guid>("ItemId")
 22475                        .HasColumnType("TEXT");
 22476
 22477                    b.HasKey("Id", "ItemId");
 22478
 22479                    b.HasIndex("ItemId");
 22480
 22481                    b.ToTable("BaseItemMetadataFields");
 22482
 22483                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22484                });
 485
 22486            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 22487                {
 22488                    b.Property<Guid>("ItemId")
 22489                        .HasColumnType("TEXT");
 22490
 22491                    b.Property<string>("ProviderId")
 22492                        .HasColumnType("TEXT");
 22493
 22494                    b.Property<string>("ProviderValue")
 22495                        .IsRequired()
 22496                        .HasColumnType("TEXT");
 22497
 22498                    b.HasKey("ItemId", "ProviderId");
 22499
 22500                    b.HasIndex("ProviderId", "ProviderValue", "ItemId");
 22501
 22502                    b.ToTable("BaseItemProviders");
 22503
 22504                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22505                });
 506
 22507            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 22508                {
 22509                    b.Property<int>("Id")
 22510                        .HasColumnType("INTEGER");
 22511
 22512                    b.Property<Guid>("ItemId")
 22513                        .HasColumnType("TEXT");
 22514
 22515                    b.HasKey("Id", "ItemId");
 22516
 22517                    b.HasIndex("ItemId");
 22518
 22519                    b.ToTable("BaseItemTrailerTypes");
 22520
 22521                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22522                });
 523
 22524            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 22525                {
 22526                    b.Property<Guid>("ItemId")
 22527                        .HasColumnType("TEXT");
 22528
 22529                    b.Property<int>("ChapterIndex")
 22530                        .HasColumnType("INTEGER");
 22531
 22532                    b.Property<DateTime?>("ImageDateModified")
 22533                        .HasColumnType("TEXT");
 22534
 22535                    b.Property<string>("ImagePath")
 22536                        .HasColumnType("TEXT");
 22537
 22538                    b.Property<string>("Name")
 22539                        .HasColumnType("TEXT");
 22540
 22541                    b.Property<long>("StartPositionTicks")
 22542                        .HasColumnType("INTEGER");
 22543
 22544                    b.HasKey("ItemId", "ChapterIndex");
 22545
 22546                    b.ToTable("Chapters");
 22547
 22548                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22549                });
 550
 22551            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.CustomItemDisplayPreferences", b =>
 22552                {
 22553                    b.Property<int>("Id")
 22554                        .ValueGeneratedOnAdd()
 22555                        .HasColumnType("INTEGER");
 22556
 22557                    b.Property<string>("Client")
 22558                        .IsRequired()
 22559                        .HasMaxLength(32)
 22560                        .HasColumnType("TEXT");
 22561
 22562                    b.Property<Guid>("ItemId")
 22563                        .HasColumnType("TEXT");
 22564
 22565                    b.Property<string>("Key")
 22566                        .IsRequired()
 22567                        .HasColumnType("TEXT");
 22568
 22569                    b.Property<Guid>("UserId")
 22570                        .HasColumnType("TEXT");
 22571
 22572                    b.Property<string>("Value")
 22573                        .HasColumnType("TEXT");
 22574
 22575                    b.HasKey("Id");
 22576
 22577                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 22578                        .IsUnique();
 22579
 22580                    b.ToTable("CustomItemDisplayPreferences");
 22581
 22582                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22583                });
 584
 22585            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 22586                {
 22587                    b.Property<int>("Id")
 22588                        .ValueGeneratedOnAdd()
 22589                        .HasColumnType("INTEGER");
 22590
 22591                    b.Property<int>("ChromecastVersion")
 22592                        .HasColumnType("INTEGER");
 22593
 22594                    b.Property<string>("Client")
 22595                        .IsRequired()
 22596                        .HasMaxLength(32)
 22597                        .HasColumnType("TEXT");
 22598
 22599                    b.Property<string>("DashboardTheme")
 22600                        .HasMaxLength(32)
 22601                        .HasColumnType("TEXT");
 22602
 22603                    b.Property<bool>("EnableNextVideoInfoOverlay")
 22604                        .HasColumnType("INTEGER");
 22605
 22606                    b.Property<int?>("IndexBy")
 22607                        .HasColumnType("INTEGER");
 22608
 22609                    b.Property<Guid>("ItemId")
 22610                        .HasColumnType("TEXT");
 22611
 22612                    b.Property<int>("ScrollDirection")
 22613                        .HasColumnType("INTEGER");
 22614
 22615                    b.Property<bool>("ShowBackdrop")
 22616                        .HasColumnType("INTEGER");
 22617
 22618                    b.Property<bool>("ShowSidebar")
 22619                        .HasColumnType("INTEGER");
 22620
 22621                    b.Property<int>("SkipBackwardLength")
 22622                        .HasColumnType("INTEGER");
 22623
 22624                    b.Property<int>("SkipForwardLength")
 22625                        .HasColumnType("INTEGER");
 22626
 22627                    b.Property<string>("TvHome")
 22628                        .HasMaxLength(32)
 22629                        .HasColumnType("TEXT");
 22630
 22631                    b.Property<Guid>("UserId")
 22632                        .HasColumnType("TEXT");
 22633
 22634                    b.HasKey("Id");
 22635
 22636                    b.HasIndex("UserId", "ItemId", "Client")
 22637                        .IsUnique();
 22638
 22639                    b.ToTable("DisplayPreferences");
 22640
 22641                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22642                });
 643
 22644            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 22645                {
 22646                    b.Property<int>("Id")
 22647                        .ValueGeneratedOnAdd()
 22648                        .HasColumnType("INTEGER");
 22649
 22650                    b.Property<int>("DisplayPreferencesId")
 22651                        .HasColumnType("INTEGER");
 22652
 22653                    b.Property<int>("Order")
 22654                        .HasColumnType("INTEGER");
 22655
 22656                    b.Property<int>("Type")
 22657                        .HasColumnType("INTEGER");
 22658
 22659                    b.HasKey("Id");
 22660
 22661                    b.HasIndex("DisplayPreferencesId");
 22662
 22663                    b.ToTable("HomeSection");
 22664
 22665                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22666                });
 667
 22668            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 22669                {
 22670                    b.Property<int>("Id")
 22671                        .ValueGeneratedOnAdd()
 22672                        .HasColumnType("INTEGER");
 22673
 22674                    b.Property<DateTime>("LastModified")
 22675                        .HasColumnType("TEXT");
 22676
 22677                    b.Property<string>("Path")
 22678                        .IsRequired()
 22679                        .HasMaxLength(512)
 22680                        .HasColumnType("TEXT");
 22681
 22682                    b.Property<Guid?>("UserId")
 22683                        .HasColumnType("TEXT");
 22684
 22685                    b.HasKey("Id");
 22686
 22687                    b.HasIndex("UserId")
 22688                        .IsUnique();
 22689
 22690                    b.ToTable("ImageInfos");
 22691
 22692                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22693                });
 694
 22695            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 22696                {
 22697                    b.Property<int>("Id")
 22698                        .ValueGeneratedOnAdd()
 22699                        .HasColumnType("INTEGER");
 22700
 22701                    b.Property<string>("Client")
 22702                        .IsRequired()
 22703                        .HasMaxLength(32)
 22704                        .HasColumnType("TEXT");
 22705
 22706                    b.Property<int?>("IndexBy")
 22707                        .HasColumnType("INTEGER");
 22708
 22709                    b.Property<Guid>("ItemId")
 22710                        .HasColumnType("TEXT");
 22711
 22712                    b.Property<bool>("RememberIndexing")
 22713                        .HasColumnType("INTEGER");
 22714
 22715                    b.Property<bool>("RememberSorting")
 22716                        .HasColumnType("INTEGER");
 22717
 22718                    b.Property<string>("SortBy")
 22719                        .IsRequired()
 22720                        .HasMaxLength(64)
 22721                        .HasColumnType("TEXT");
 22722
 22723                    b.Property<int>("SortOrder")
 22724                        .HasColumnType("INTEGER");
 22725
 22726                    b.Property<Guid>("UserId")
 22727                        .HasColumnType("TEXT");
 22728
 22729                    b.Property<int>("ViewType")
 22730                        .HasColumnType("INTEGER");
 22731
 22732                    b.HasKey("Id");
 22733
 22734                    b.HasIndex("UserId");
 22735
 22736                    b.ToTable("ItemDisplayPreferences");
 22737
 22738                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22739                });
 740
 22741            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 22742                {
 22743                    b.Property<Guid>("ItemValueId")
 22744                        .ValueGeneratedOnAdd()
 22745                        .HasColumnType("TEXT");
 22746
 22747                    b.Property<string>("CleanValue")
 22748                        .IsRequired()
 22749                        .HasColumnType("TEXT");
 22750
 22751                    b.Property<int>("Type")
 22752                        .HasColumnType("INTEGER");
 22753
 22754                    b.Property<string>("Value")
 22755                        .IsRequired()
 22756                        .HasColumnType("TEXT");
 22757
 22758                    b.HasKey("ItemValueId");
 22759
 22760                    b.HasIndex("Type", "CleanValue");
 22761
 22762                    b.HasIndex("Type", "Value")
 22763                        .IsUnique();
 22764
 22765                    b.ToTable("ItemValues");
 22766
 22767                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22768                });
 769
 22770            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 22771                {
 22772                    b.Property<Guid>("ItemValueId")
 22773                        .HasColumnType("TEXT");
 22774
 22775                    b.Property<Guid>("ItemId")
 22776                        .HasColumnType("TEXT");
 22777
 22778                    b.HasKey("ItemValueId", "ItemId");
 22779
 22780                    b.HasIndex("ItemId");
 22781
 22782                    b.ToTable("ItemValuesMap");
 22783
 22784                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22785                });
 786
 22787            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 22788                {
 22789                    b.Property<Guid>("ItemId")
 22790                        .HasColumnType("TEXT");
 22791
 22792                    b.PrimitiveCollection<string>("KeyframeTicks")
 22793                        .HasColumnType("TEXT");
 22794
 22795                    b.Property<long>("TotalDuration")
 22796                        .HasColumnType("INTEGER");
 22797
 22798                    b.HasKey("ItemId");
 22799
 22800                    b.ToTable("KeyframeData");
 22801
 22802                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22803                });
 804
 22805            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 22806                {
 22807                    b.Property<Guid>("ParentId")
 22808                        .HasColumnType("TEXT");
 22809
 22810                    b.Property<Guid>("ChildId")
 22811                        .HasColumnType("TEXT");
 22812
 22813                    b.Property<int>("ChildType")
 22814                        .HasColumnType("INTEGER");
 22815
 22816                    b.Property<int?>("SortOrder")
 22817                        .HasColumnType("INTEGER");
 22818
 22819                    b.HasKey("ParentId", "ChildId");
 22820
 22821                    b.HasIndex("ChildId");
 22822
 22823                    b.HasIndex("ParentId");
 22824
 22825                    b.HasIndex("ChildId", "ChildType");
 22826
 22827                    b.HasIndex("ParentId", "ChildType");
 22828
 22829                    b.HasIndex("ParentId", "SortOrder");
 22830
 22831                    b.ToTable("LinkedChildren", (string)null);
 22832
 22833                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22834                });
 835
 22836            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaSegment", b =>
 22837                {
 22838                    b.Property<Guid>("Id")
 22839                        .ValueGeneratedOnAdd()
 22840                        .HasColumnType("TEXT");
 22841
 22842                    b.Property<long>("EndTicks")
 22843                        .HasColumnType("INTEGER");
 22844
 22845                    b.Property<Guid>("ItemId")
 22846                        .HasColumnType("TEXT");
 22847
 22848                    b.Property<string>("SegmentProviderId")
 22849                        .IsRequired()
 22850                        .HasColumnType("TEXT");
 22851
 22852                    b.Property<long>("StartTicks")
 22853                        .HasColumnType("INTEGER");
 22854
 22855                    b.Property<int>("Type")
 22856                        .HasColumnType("INTEGER");
 22857
 22858                    b.HasKey("Id");
 22859
 22860                    b.ToTable("MediaSegments");
 22861
 22862                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22863                });
 864
 22865            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 22866                {
 22867                    b.Property<Guid>("ItemId")
 22868                        .HasColumnType("TEXT");
 22869
 22870                    b.Property<int>("StreamIndex")
 22871                        .HasColumnType("INTEGER");
 22872
 22873                    b.Property<string>("AspectRatio")
 22874                        .HasColumnType("TEXT");
 22875
 22876                    b.Property<float?>("AverageFrameRate")
 22877                        .HasColumnType("REAL");
 22878
 22879                    b.Property<int?>("BitDepth")
 22880                        .HasColumnType("INTEGER");
 22881
 22882                    b.Property<int?>("BitRate")
 22883                        .HasColumnType("INTEGER");
 22884
 22885                    b.Property<int?>("BlPresentFlag")
 22886                        .HasColumnType("INTEGER");
 22887
 22888                    b.Property<string>("ChannelLayout")
 22889                        .HasColumnType("TEXT");
 22890
 22891                    b.Property<int?>("Channels")
 22892                        .HasColumnType("INTEGER");
 22893
 22894                    b.Property<string>("Codec")
 22895                        .HasColumnType("TEXT");
 22896
 22897                    b.Property<string>("CodecTag")
 22898                        .HasColumnType("TEXT");
 22899
 22900                    b.Property<string>("CodecTimeBase")
 22901                        .HasColumnType("TEXT");
 22902
 22903                    b.Property<string>("ColorPrimaries")
 22904                        .HasColumnType("TEXT");
 22905
 22906                    b.Property<string>("ColorSpace")
 22907                        .HasColumnType("TEXT");
 22908
 22909                    b.Property<string>("ColorTransfer")
 22910                        .HasColumnType("TEXT");
 22911
 22912                    b.Property<string>("Comment")
 22913                        .HasColumnType("TEXT");
 22914
 22915                    b.Property<int?>("DvBlSignalCompatibilityId")
 22916                        .HasColumnType("INTEGER");
 22917
 22918                    b.Property<int?>("DvLevel")
 22919                        .HasColumnType("INTEGER");
 22920
 22921                    b.Property<int?>("DvProfile")
 22922                        .HasColumnType("INTEGER");
 22923
 22924                    b.Property<int?>("DvVersionMajor")
 22925                        .HasColumnType("INTEGER");
 22926
 22927                    b.Property<int?>("DvVersionMinor")
 22928                        .HasColumnType("INTEGER");
 22929
 22930                    b.Property<int?>("ElPresentFlag")
 22931                        .HasColumnType("INTEGER");
 22932
 22933                    b.Property<bool?>("Hdr10PlusPresentFlag")
 22934                        .HasColumnType("INTEGER");
 22935
 22936                    b.Property<int?>("Height")
 22937                        .HasColumnType("INTEGER");
 22938
 22939                    b.Property<bool?>("IsAnamorphic")
 22940                        .HasColumnType("INTEGER");
 22941
 22942                    b.Property<bool?>("IsAvc")
 22943                        .HasColumnType("INTEGER");
 22944
 22945                    b.Property<bool>("IsDefault")
 22946                        .HasColumnType("INTEGER");
 22947
 22948                    b.Property<bool>("IsExternal")
 22949                        .HasColumnType("INTEGER");
 22950
 22951                    b.Property<bool>("IsForced")
 22952                        .HasColumnType("INTEGER");
 22953
 22954                    b.Property<bool?>("IsHearingImpaired")
 22955                        .HasColumnType("INTEGER");
 22956
 22957                    b.Property<bool?>("IsInterlaced")
 22958                        .HasColumnType("INTEGER");
 22959
 22960                    b.Property<string>("KeyFrames")
 22961                        .HasColumnType("TEXT");
 22962
 22963                    b.Property<string>("Language")
 22964                        .HasColumnType("TEXT");
 22965
 22966                    b.Property<float?>("Level")
 22967                        .HasColumnType("REAL");
 22968
 22969                    b.Property<string>("NalLengthSize")
 22970                        .HasColumnType("TEXT");
 22971
 22972                    b.Property<string>("Path")
 22973                        .HasColumnType("TEXT");
 22974
 22975                    b.Property<string>("PixelFormat")
 22976                        .HasColumnType("TEXT");
 22977
 22978                    b.Property<string>("Profile")
 22979                        .HasColumnType("TEXT");
 22980
 22981                    b.Property<float?>("RealFrameRate")
 22982                        .HasColumnType("REAL");
 22983
 22984                    b.Property<int?>("RefFrames")
 22985                        .HasColumnType("INTEGER");
 22986
 22987                    b.Property<int?>("Rotation")
 22988                        .HasColumnType("INTEGER");
 22989
 22990                    b.Property<int?>("RpuPresentFlag")
 22991                        .HasColumnType("INTEGER");
 22992
 22993                    b.Property<int?>("SampleRate")
 22994                        .HasColumnType("INTEGER");
 22995
 22996                    b.Property<int>("StreamType")
 22997                        .HasColumnType("INTEGER");
 22998
 22999                    b.Property<string>("TimeBase")
 221000                        .HasColumnType("TEXT");
 221001
 221002                    b.Property<string>("Title")
 221003                        .HasColumnType("TEXT");
 221004
 221005                    b.Property<int?>("Width")
 221006                        .HasColumnType("INTEGER");
 221007
 221008                    b.HasKey("ItemId", "StreamIndex");
 221009
 221010                    b.HasIndex("StreamIndex");
 221011
 221012                    b.HasIndex("StreamType");
 221013
 221014                    b.HasIndex("StreamIndex", "StreamType");
 221015
 221016                    b.HasIndex("StreamIndex", "StreamType", "Language");
 221017
 221018                    b.ToTable("MediaStreamInfos");
 221019
 221020                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221021                });
 1022
 221023            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 221024                {
 221025                    b.Property<Guid>("Id")
 221026                        .ValueGeneratedOnAdd()
 221027                        .HasColumnType("TEXT");
 221028
 221029                    b.Property<string>("Name")
 221030                        .IsRequired()
 221031                        .HasColumnType("TEXT");
 221032
 221033                    b.Property<string>("PersonType")
 221034                        .HasColumnType("TEXT");
 221035
 221036                    b.HasKey("Id");
 221037
 221038                    b.HasIndex("Name");
 221039
 221040                    b.ToTable("Peoples");
 221041
 221042                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221043                });
 1044
 221045            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 221046                {
 221047                    b.Property<Guid>("ItemId")
 221048                        .HasColumnType("TEXT");
 221049
 221050                    b.Property<Guid>("PeopleId")
 221051                        .HasColumnType("TEXT");
 221052
 221053                    b.Property<string>("Role")
 221054                        .HasColumnType("TEXT");
 221055
 221056                    b.Property<int?>("ListOrder")
 221057                        .HasColumnType("INTEGER");
 221058
 221059                    b.Property<int?>("SortOrder")
 221060                        .HasColumnType("INTEGER");
 221061
 221062                    b.HasKey("ItemId", "PeopleId", "Role");
 221063
 221064                    b.HasIndex("PeopleId");
 221065
 221066                    b.HasIndex("ItemId", "ListOrder");
 221067
 221068                    b.HasIndex("ItemId", "SortOrder");
 221069
 221070                    b.ToTable("PeopleBaseItemMap");
 221071
 221072                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221073                });
 1074
 221075            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 221076                {
 221077                    b.Property<int>("Id")
 221078                        .ValueGeneratedOnAdd()
 221079                        .HasColumnType("INTEGER");
 221080
 221081                    b.Property<int>("Kind")
 221082                        .HasColumnType("INTEGER");
 221083
 221084                    b.Property<Guid?>("Permission_Permissions_Guid")
 221085                        .HasColumnType("TEXT");
 221086
 221087                    b.Property<uint>("RowVersion")
 221088                        .IsConcurrencyToken()
 221089                        .HasColumnType("INTEGER");
 221090
 221091                    b.Property<Guid?>("UserId")
 221092                        .HasColumnType("TEXT");
 221093
 221094                    b.Property<bool>("Value")
 221095                        .HasColumnType("INTEGER");
 221096
 221097                    b.HasKey("Id");
 221098
 221099                    b.HasIndex("UserId", "Kind")
 221100                        .IsUnique()
 221101                        .HasFilter("[UserId] IS NOT NULL");
 221102
 221103                    b.ToTable("Permissions");
 221104
 221105                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221106                });
 1107
 221108            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 221109                {
 221110                    b.Property<int>("Id")
 221111                        .ValueGeneratedOnAdd()
 221112                        .HasColumnType("INTEGER");
 221113
 221114                    b.Property<int>("Kind")
 221115                        .HasColumnType("INTEGER");
 221116
 221117                    b.Property<Guid?>("Preference_Preferences_Guid")
 221118                        .HasColumnType("TEXT");
 221119
 221120                    b.Property<uint>("RowVersion")
 221121                        .IsConcurrencyToken()
 221122                        .HasColumnType("INTEGER");
 221123
 221124                    b.Property<Guid?>("UserId")
 221125                        .HasColumnType("TEXT");
 221126
 221127                    b.Property<string>("Value")
 221128                        .IsRequired()
 221129                        .HasMaxLength(65535)
 221130                        .HasColumnType("TEXT");
 221131
 221132                    b.HasKey("Id");
 221133
 221134                    b.HasIndex("UserId", "Kind")
 221135                        .IsUnique()
 221136                        .HasFilter("[UserId] IS NOT NULL");
 221137
 221138                    b.ToTable("Preferences");
 221139
 221140                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221141                });
 1142
 221143            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.ApiKey", b =>
 221144                {
 221145                    b.Property<int>("Id")
 221146                        .ValueGeneratedOnAdd()
 221147                        .HasColumnType("INTEGER");
 221148
 221149                    b.Property<string>("AccessToken")
 221150                        .IsRequired()
 221151                        .HasColumnType("TEXT");
 221152
 221153                    b.Property<DateTime>("DateCreated")
 221154                        .HasColumnType("TEXT");
 221155
 221156                    b.Property<DateTime>("DateLastActivity")
 221157                        .HasColumnType("TEXT");
 221158
 221159                    b.Property<string>("Name")
 221160                        .IsRequired()
 221161                        .HasMaxLength(64)
 221162                        .HasColumnType("TEXT");
 221163
 221164                    b.HasKey("Id");
 221165
 221166                    b.HasIndex("AccessToken")
 221167                        .IsUnique();
 221168
 221169                    b.ToTable("ApiKeys");
 221170
 221171                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221172                });
 1173
 221174            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 221175                {
 221176                    b.Property<int>("Id")
 221177                        .ValueGeneratedOnAdd()
 221178                        .HasColumnType("INTEGER");
 221179
 221180                    b.Property<string>("AccessToken")
 221181                        .IsRequired()
 221182                        .HasColumnType("TEXT");
 221183
 221184                    b.Property<string>("AppName")
 221185                        .IsRequired()
 221186                        .HasMaxLength(64)
 221187                        .HasColumnType("TEXT");
 221188
 221189                    b.Property<string>("AppVersion")
 221190                        .IsRequired()
 221191                        .HasMaxLength(32)
 221192                        .HasColumnType("TEXT");
 221193
 221194                    b.Property<DateTime>("DateCreated")
 221195                        .HasColumnType("TEXT");
 221196
 221197                    b.Property<DateTime>("DateLastActivity")
 221198                        .HasColumnType("TEXT");
 221199
 221200                    b.Property<DateTime>("DateModified")
 221201                        .HasColumnType("TEXT");
 221202
 221203                    b.Property<string>("DeviceId")
 221204                        .IsRequired()
 221205                        .HasMaxLength(256)
 221206                        .HasColumnType("TEXT");
 221207
 221208                    b.Property<string>("DeviceName")
 221209                        .IsRequired()
 221210                        .HasMaxLength(64)
 221211                        .HasColumnType("TEXT");
 221212
 221213                    b.Property<bool>("IsActive")
 221214                        .HasColumnType("INTEGER");
 221215
 221216                    b.Property<Guid>("UserId")
 221217                        .HasColumnType("TEXT");
 221218
 221219                    b.HasKey("Id");
 221220
 221221                    b.HasIndex("DeviceId");
 221222
 221223                    b.HasIndex("AccessToken", "DateLastActivity");
 221224
 221225                    b.HasIndex("DeviceId", "DateLastActivity");
 221226
 221227                    b.HasIndex("UserId", "DeviceId");
 221228
 221229                    b.ToTable("Devices");
 221230
 221231                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221232                });
 1233
 221234            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.DeviceOptions", b =>
 221235                {
 221236                    b.Property<int>("Id")
 221237                        .ValueGeneratedOnAdd()
 221238                        .HasColumnType("INTEGER");
 221239
 221240                    b.Property<string>("CustomName")
 221241                        .HasColumnType("TEXT");
 221242
 221243                    b.Property<string>("DeviceId")
 221244                        .IsRequired()
 221245                        .HasColumnType("TEXT");
 221246
 221247                    b.HasKey("Id");
 221248
 221249                    b.HasIndex("DeviceId")
 221250                        .IsUnique();
 221251
 221252                    b.ToTable("DeviceOptions");
 221253
 221254                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221255                });
 1256
 221257            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.TrickplayInfo", b =>
 221258                {
 221259                    b.Property<Guid>("ItemId")
 221260                        .HasColumnType("TEXT");
 221261
 221262                    b.Property<int>("Width")
 221263                        .HasColumnType("INTEGER");
 221264
 221265                    b.Property<int>("Bandwidth")
 221266                        .HasColumnType("INTEGER");
 221267
 221268                    b.Property<int>("Height")
 221269                        .HasColumnType("INTEGER");
 221270
 221271                    b.Property<int>("Interval")
 221272                        .HasColumnType("INTEGER");
 221273
 221274                    b.Property<int>("ThumbnailCount")
 221275                        .HasColumnType("INTEGER");
 221276
 221277                    b.Property<int>("TileHeight")
 221278                        .HasColumnType("INTEGER");
 221279
 221280                    b.Property<int>("TileWidth")
 221281                        .HasColumnType("INTEGER");
 221282
 221283                    b.HasKey("ItemId", "Width");
 221284
 221285                    b.ToTable("TrickplayInfos");
 221286
 221287                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221288                });
 1289
 221290            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 221291                {
 221292                    b.Property<Guid>("Id")
 221293                        .ValueGeneratedOnAdd()
 221294                        .HasColumnType("TEXT");
 221295
 221296                    b.Property<string>("AudioLanguagePreference")
 221297                        .HasMaxLength(255)
 221298                        .HasColumnType("TEXT");
 221299
 221300                    b.Property<string>("AuthenticationProviderId")
 221301                        .IsRequired()
 221302                        .HasMaxLength(255)
 221303                        .HasColumnType("TEXT");
 221304
 221305                    b.Property<string>("CastReceiverId")
 221306                        .HasMaxLength(32)
 221307                        .HasColumnType("TEXT");
 221308
 221309                    b.Property<bool>("DisplayCollectionsView")
 221310                        .HasColumnType("INTEGER");
 221311
 221312                    b.Property<bool>("DisplayMissingEpisodes")
 221313                        .HasColumnType("INTEGER");
 221314
 221315                    b.Property<bool>("EnableAutoLogin")
 221316                        .HasColumnType("INTEGER");
 221317
 221318                    b.Property<bool>("EnableLocalPassword")
 221319                        .HasColumnType("INTEGER");
 221320
 221321                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 221322                        .HasColumnType("INTEGER");
 221323
 221324                    b.Property<bool>("EnableUserPreferenceAccess")
 221325                        .HasColumnType("INTEGER");
 221326
 221327                    b.Property<bool>("HidePlayedInLatest")
 221328                        .HasColumnType("INTEGER");
 221329
 221330                    b.Property<long>("InternalId")
 221331                        .HasColumnType("INTEGER");
 221332
 221333                    b.Property<int>("InvalidLoginAttemptCount")
 221334                        .HasColumnType("INTEGER");
 221335
 221336                    b.Property<DateTime?>("LastActivityDate")
 221337                        .HasColumnType("TEXT");
 221338
 221339                    b.Property<DateTime?>("LastLoginDate")
 221340                        .HasColumnType("TEXT");
 221341
 221342                    b.Property<int?>("LoginAttemptsBeforeLockout")
 221343                        .HasColumnType("INTEGER");
 221344
 221345                    b.Property<int>("MaxActiveSessions")
 221346                        .HasColumnType("INTEGER");
 221347
 221348                    b.Property<int?>("MaxParentalRatingScore")
 221349                        .HasColumnType("INTEGER");
 221350
 221351                    b.Property<int?>("MaxParentalRatingSubScore")
 221352                        .HasColumnType("INTEGER");
 221353
 221354                    b.Property<bool>("MustUpdatePassword")
 221355                        .HasColumnType("INTEGER");
 221356
 221357                    b.Property<string>("Password")
 221358                        .HasMaxLength(65535)
 221359                        .HasColumnType("TEXT");
 221360
 221361                    b.Property<string>("PasswordResetProviderId")
 221362                        .IsRequired()
 221363                        .HasMaxLength(255)
 221364                        .HasColumnType("TEXT");
 221365
 221366                    b.Property<bool>("PlayDefaultAudioTrack")
 221367                        .HasColumnType("INTEGER");
 221368
 221369                    b.Property<bool>("RememberAudioSelections")
 221370                        .HasColumnType("INTEGER");
 221371
 221372                    b.Property<bool>("RememberSubtitleSelections")
 221373                        .HasColumnType("INTEGER");
 221374
 221375                    b.Property<int?>("RemoteClientBitrateLimit")
 221376                        .HasColumnType("INTEGER");
 221377
 221378                    b.Property<uint>("RowVersion")
 221379                        .IsConcurrencyToken()
 221380                        .HasColumnType("INTEGER");
 221381
 221382                    b.Property<string>("SubtitleLanguagePreference")
 221383                        .HasMaxLength(255)
 221384                        .HasColumnType("TEXT");
 221385
 221386                    b.Property<int>("SubtitleMode")
 221387                        .HasColumnType("INTEGER");
 221388
 221389                    b.Property<int>("SyncPlayAccess")
 221390                        .HasColumnType("INTEGER");
 221391
 221392                    b.Property<string>("Username")
 221393                        .IsRequired()
 221394                        .HasMaxLength(255)
 221395                        .HasColumnType("TEXT");
 221396
 221397                    b.HasKey("Id");
 221398
 221399                    b.HasIndex("Username")
 221400                        .IsUnique();
 221401
 221402                    b.ToTable("Users");
 221403
 221404                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221405                });
 1406
 221407            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 221408                {
 221409                    b.Property<Guid>("ItemId")
 221410                        .HasColumnType("TEXT");
 221411
 221412                    b.Property<Guid>("UserId")
 221413                        .HasColumnType("TEXT");
 221414
 221415                    b.Property<string>("CustomDataKey")
 221416                        .HasColumnType("TEXT");
 221417
 221418                    b.Property<int?>("AudioStreamIndex")
 221419                        .HasColumnType("INTEGER");
 221420
 221421                    b.Property<bool>("IsFavorite")
 221422                        .HasColumnType("INTEGER");
 221423
 221424                    b.Property<DateTime?>("LastPlayedDate")
 221425                        .HasColumnType("TEXT");
 221426
 221427                    b.Property<bool?>("Likes")
 221428                        .HasColumnType("INTEGER");
 221429
 221430                    b.Property<int>("PlayCount")
 221431                        .HasColumnType("INTEGER");
 221432
 221433                    b.Property<long>("PlaybackPositionTicks")
 221434                        .HasColumnType("INTEGER");
 221435
 221436                    b.Property<bool>("Played")
 221437                        .HasColumnType("INTEGER");
 221438
 221439                    b.Property<double?>("Rating")
 221440                        .HasColumnType("REAL");
 221441
 221442                    b.Property<DateTime?>("RetentionDate")
 221443                        .HasColumnType("TEXT");
 221444
 221445                    b.Property<int?>("SubtitleStreamIndex")
 221446                        .HasColumnType("INTEGER");
 221447
 221448                    b.HasKey("ItemId", "UserId", "CustomDataKey");
 221449
 221450                    b.HasIndex("UserId");
 221451
 221452                    b.HasIndex("ItemId", "UserId", "IsFavorite");
 221453
 221454                    b.HasIndex("ItemId", "UserId", "LastPlayedDate");
 221455
 221456                    b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
 221457
 221458                    b.HasIndex("ItemId", "UserId", "Played");
 221459
 221460                    b.ToTable("UserData");
 221461
 221462                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221463                });
 1464
 221465            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 221466                {
 221467                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221468                        .WithMany("AccessSchedules")
 221469                        .HasForeignKey("UserId")
 221470                        .OnDelete(DeleteBehavior.Cascade)
 221471                        .IsRequired();
 221472                });
 1473
 221474            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 221475                {
 221476                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221477                        .WithMany("Parents")
 221478                        .HasForeignKey("ItemId")
 221479                        .OnDelete(DeleteBehavior.Cascade)
 221480                        .IsRequired();
 221481
 221482                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "ParentItem")
 221483                        .WithMany("Children")
 221484                        .HasForeignKey("ParentItemId")
 221485                        .OnDelete(DeleteBehavior.Cascade)
 221486                        .IsRequired();
 221487
 221488                    b.Navigation("Item");
 221489
 221490                    b.Navigation("ParentItem");
 221491                });
 1492
 221493            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 221494                {
 221495                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221496                        .WithMany()
 221497                        .HasForeignKey("ItemId")
 221498                        .OnDelete(DeleteBehavior.Cascade)
 221499                        .IsRequired();
 221500
 221501                    b.Navigation("Item");
 221502                });
 1503
 221504            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 221505                {
 221506                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", null)
 221507                        .WithMany("Extras")
 221508                        .HasForeignKey("BaseItemEntityId");
 221509
 221510                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "DirectParent")
 221511                        .WithMany("DirectChildren")
 221512                        .HasForeignKey("ParentId")
 221513                        .OnDelete(DeleteBehavior.Cascade);
 221514
 221515                    b.Navigation("DirectParent");
 221516                });
 1517
 221518            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 221519                {
 221520                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221521                        .WithMany("Images")
 221522                        .HasForeignKey("ItemId")
 221523                        .OnDelete(DeleteBehavior.Cascade)
 221524                        .IsRequired();
 221525
 221526                    b.Navigation("Item");
 221527                });
 1528
 221529            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 221530                {
 221531                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221532                        .WithMany("LockedFields")
 221533                        .HasForeignKey("ItemId")
 221534                        .OnDelete(DeleteBehavior.Cascade)
 221535                        .IsRequired();
 221536
 221537                    b.Navigation("Item");
 221538                });
 1539
 221540            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 221541                {
 221542                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221543                        .WithMany("Provider")
 221544                        .HasForeignKey("ItemId")
 221545                        .OnDelete(DeleteBehavior.Cascade)
 221546                        .IsRequired();
 221547
 221548                    b.Navigation("Item");
 221549                });
 1550
 221551            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 221552                {
 221553                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221554                        .WithMany("TrailerTypes")
 221555                        .HasForeignKey("ItemId")
 221556                        .OnDelete(DeleteBehavior.Cascade)
 221557                        .IsRequired();
 221558
 221559                    b.Navigation("Item");
 221560                });
 1561
 221562            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 221563                {
 221564                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221565                        .WithMany("Chapters")
 221566                        .HasForeignKey("ItemId")
 221567                        .OnDelete(DeleteBehavior.Cascade)
 221568                        .IsRequired();
 221569
 221570                    b.Navigation("Item");
 221571                });
 1572
 221573            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 221574                {
 221575                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221576                        .WithMany("DisplayPreferences")
 221577                        .HasForeignKey("UserId")
 221578                        .OnDelete(DeleteBehavior.Cascade)
 221579                        .IsRequired();
 221580                });
 1581
 221582            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 221583                {
 221584                    b.HasOne("Jellyfin.Database.Implementations.Entities.DisplayPreferences", null)
 221585                        .WithMany("HomeSections")
 221586                        .HasForeignKey("DisplayPreferencesId")
 221587                        .OnDelete(DeleteBehavior.Cascade)
 221588                        .IsRequired();
 221589                });
 1590
 221591            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 221592                {
 221593                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221594                        .WithOne("ProfileImage")
 221595                        .HasForeignKey("Jellyfin.Database.Implementations.Entities.ImageInfo", "UserId")
 221596                        .OnDelete(DeleteBehavior.Cascade);
 221597                });
 1598
 221599            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 221600                {
 221601                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221602                        .WithMany("ItemDisplayPreferences")
 221603                        .HasForeignKey("UserId")
 221604                        .OnDelete(DeleteBehavior.Cascade)
 221605                        .IsRequired();
 221606                });
 1607
 221608            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 221609                {
 221610                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221611                        .WithMany("ItemValues")
 221612                        .HasForeignKey("ItemId")
 221613                        .OnDelete(DeleteBehavior.Cascade)
 221614                        .IsRequired();
 221615
 221616                    b.HasOne("Jellyfin.Database.Implementations.Entities.ItemValue", "ItemValue")
 221617                        .WithMany("BaseItemsMap")
 221618                        .HasForeignKey("ItemValueId")
 221619                        .OnDelete(DeleteBehavior.Cascade)
 221620                        .IsRequired();
 221621
 221622                    b.Navigation("Item");
 221623
 221624                    b.Navigation("ItemValue");
 221625                });
 1626
 221627            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 221628                {
 221629                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221630                        .WithMany()
 221631                        .HasForeignKey("ItemId")
 221632                        .OnDelete(DeleteBehavior.Cascade)
 221633                        .IsRequired();
 221634
 221635                    b.Navigation("Item");
 221636                });
 1637
 221638            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 221639                {
 221640                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Child")
 221641                        .WithMany("LinkedChildOfEntities")
 221642                        .HasForeignKey("ChildId")
 221643                        .OnDelete(DeleteBehavior.NoAction)
 221644                        .IsRequired();
 221645
 221646                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Parent")
 221647                        .WithMany("LinkedChildEntities")
 221648                        .HasForeignKey("ParentId")
 221649                        .OnDelete(DeleteBehavior.NoAction)
 221650                        .IsRequired();
 221651
 221652                    b.Navigation("Child");
 221653
 221654                    b.Navigation("Parent");
 221655                });
 1656
 221657            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 221658                {
 221659                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221660                        .WithMany("MediaStreams")
 221661                        .HasForeignKey("ItemId")
 221662                        .OnDelete(DeleteBehavior.Cascade)
 221663                        .IsRequired();
 221664
 221665                    b.Navigation("Item");
 221666                });
 1667
 221668            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 221669                {
 221670                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221671                        .WithMany("Peoples")
 221672                        .HasForeignKey("ItemId")
 221673                        .OnDelete(DeleteBehavior.Cascade)
 221674                        .IsRequired();
 221675
 221676                    b.HasOne("Jellyfin.Database.Implementations.Entities.People", "People")
 221677                        .WithMany("BaseItems")
 221678                        .HasForeignKey("PeopleId")
 221679                        .OnDelete(DeleteBehavior.Cascade)
 221680                        .IsRequired();
 221681
 221682                    b.Navigation("Item");
 221683
 221684                    b.Navigation("People");
 221685                });
 1686
 221687            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 221688                {
 221689                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221690                        .WithMany("Permissions")
 221691                        .HasForeignKey("UserId")
 221692                        .OnDelete(DeleteBehavior.Cascade);
 221693                });
 1694
 221695            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 221696                {
 221697                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221698                        .WithMany("Preferences")
 221699                        .HasForeignKey("UserId")
 221700                        .OnDelete(DeleteBehavior.Cascade);
 221701                });
 1702
 221703            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 221704                {
 221705                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 221706                        .WithMany()
 221707                        .HasForeignKey("UserId")
 221708                        .OnDelete(DeleteBehavior.Cascade)
 221709                        .IsRequired();
 221710
 221711                    b.Navigation("User");
 221712                });
 1713
 221714            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 221715                {
 221716                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221717                        .WithMany("UserData")
 221718                        .HasForeignKey("ItemId")
 221719                        .OnDelete(DeleteBehavior.Cascade)
 221720                        .IsRequired();
 221721
 221722                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 221723                        .WithMany()
 221724                        .HasForeignKey("UserId")
 221725                        .OnDelete(DeleteBehavior.Cascade)
 221726                        .IsRequired();
 221727
 221728                    b.Navigation("Item");
 221729
 221730                    b.Navigation("User");
 221731                });
 1732
 221733            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 221734                {
 221735                    b.Navigation("Chapters");
 221736
 221737                    b.Navigation("Children");
 221738
 221739                    b.Navigation("DirectChildren");
 221740
 221741                    b.Navigation("Extras");
 221742
 221743                    b.Navigation("Images");
 221744
 221745                    b.Navigation("ItemValues");
 221746
 221747                    b.Navigation("LinkedChildEntities");
 221748
 221749                    b.Navigation("LinkedChildOfEntities");
 221750
 221751                    b.Navigation("LockedFields");
 221752
 221753                    b.Navigation("MediaStreams");
 221754
 221755                    b.Navigation("Parents");
 221756
 221757                    b.Navigation("Peoples");
 221758
 221759                    b.Navigation("Provider");
 221760
 221761                    b.Navigation("TrailerTypes");
 221762
 221763                    b.Navigation("UserData");
 221764                });
 1765
 221766            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 221767                {
 221768                    b.Navigation("HomeSections");
 221769                });
 1770
 221771            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 221772                {
 221773                    b.Navigation("BaseItemsMap");
 221774                });
 1775
 221776            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 221777                {
 221778                    b.Navigation("BaseItems");
 221779                });
 1780
 221781            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 221782                {
 221783                    b.Navigation("AccessSchedules");
 221784
 221785                    b.Navigation("DisplayPreferences");
 221786
 221787                    b.Navigation("ItemDisplayPreferences");
 221788
 221789                    b.Navigation("Permissions");
 221790
 221791                    b.Navigation("Preferences");
 221792
 221793                    b.Navigation("ProfileImage");
 221794                });
 1795#pragma warning restore 612, 618
 221796        }
 1797    }
 1798}