< Summary - Jellyfin

Line coverage
97%
Covered lines: 1769
Uncovered lines: 43
Coverable lines: 1812
Total lines: 1927
Line coverage: 97.6%
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 10/29/2026 - 12:17:11 AM Line coverage: 97.6% (1769/1812) Total lines: 1927

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/20260815063607_RemoveOrphanedUserPermissionsAndPreferences.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 RemoveOrphanedUserPermissionsAndPreferences : Migration
 10    {
 11        /// <inheritdoc />
 12        protected override void Up(MigrationBuilder migrationBuilder)
 13        {
 2714            migrationBuilder.Sql("DELETE FROM Permissions WHERE UserId IS NULL OR UserId NOT IN (SELECT Id FROM Users);"
 2715            migrationBuilder.Sql("DELETE FROM Preferences WHERE UserId IS NULL OR UserId NOT IN (SELECT Id FROM Users);"
 16
 2717            migrationBuilder.DropIndex(
 2718                name: "IX_Preferences_UserId_Kind",
 2719                table: "Preferences");
 20
 2721            migrationBuilder.DropIndex(
 2722                name: "IX_Permissions_UserId_Kind",
 2723                table: "Permissions");
 24
 2725            migrationBuilder.DropColumn(
 2726                name: "Preference_Preferences_Guid",
 2727                table: "Preferences");
 28
 2729            migrationBuilder.DropColumn(
 2730                name: "Permission_Permissions_Guid",
 2731                table: "Permissions");
 32
 2733            migrationBuilder.AlterColumn<Guid>(
 2734                name: "UserId",
 2735                table: "Preferences",
 2736                type: "TEXT",
 2737                nullable: false,
 2738                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
 2739                oldClrType: typeof(Guid),
 2740                oldType: "TEXT",
 2741                oldNullable: true);
 42
 2743            migrationBuilder.AlterColumn<Guid>(
 2744                name: "UserId",
 2745                table: "Permissions",
 2746                type: "TEXT",
 2747                nullable: false,
 2748                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
 2749                oldClrType: typeof(Guid),
 2750                oldType: "TEXT",
 2751                oldNullable: true);
 52
 2753            migrationBuilder.CreateIndex(
 2754                name: "IX_Preferences_UserId_Kind",
 2755                table: "Preferences",
 2756                columns: ["UserId", "Kind"],
 2757                unique: true);
 58
 2759            migrationBuilder.CreateIndex(
 2760                name: "IX_Permissions_UserId_Kind",
 2761                table: "Permissions",
 2762                columns: ["UserId", "Kind"],
 2763                unique: true);
 2764        }
 65
 66        /// <inheritdoc />
 67        protected override void Down(MigrationBuilder migrationBuilder)
 68        {
 069            migrationBuilder.DropIndex(
 070                name: "IX_Preferences_UserId_Kind",
 071                table: "Preferences");
 72
 073            migrationBuilder.DropIndex(
 074                name: "IX_Permissions_UserId_Kind",
 075                table: "Permissions");
 76
 077            migrationBuilder.AlterColumn<Guid>(
 078                name: "UserId",
 079                table: "Preferences",
 080                type: "TEXT",
 081                nullable: true,
 082                oldClrType: typeof(Guid),
 083                oldType: "TEXT");
 84
 085            migrationBuilder.AddColumn<Guid>(
 086                name: "Preference_Preferences_Guid",
 087                table: "Preferences",
 088                type: "TEXT",
 089                nullable: true);
 90
 091            migrationBuilder.AlterColumn<Guid>(
 092                name: "UserId",
 093                table: "Permissions",
 094                type: "TEXT",
 095                nullable: true,
 096                oldClrType: typeof(Guid),
 097                oldType: "TEXT");
 98
 099            migrationBuilder.AddColumn<Guid>(
 0100                name: "Permission_Permissions_Guid",
 0101                table: "Permissions",
 0102                type: "TEXT",
 0103                nullable: true);
 104
 0105            migrationBuilder.CreateIndex(
 0106                name: "IX_Preferences_UserId_Kind",
 0107                table: "Preferences",
 0108                columns: ["UserId", "Kind"],
 0109                unique: true,
 0110                filter: "[UserId] IS NOT NULL");
 111
 0112            migrationBuilder.CreateIndex(
 0113                name: "IX_Permissions_UserId_Kind",
 0114                table: "Permissions",
 0115                columns: ["UserId", "Kind"],
 0116                unique: true,
 0117                filter: "[UserId] IS NOT NULL");
 0118        }
 119    }
 120}

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260815063607_RemoveOrphanedUserPermissionsAndPreferences.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("20260815063607_RemoveOrphanedUserPermissionsAndPreferences")]
 15    partial class RemoveOrphanedUserPermissionsAndPreferences
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 2721            modelBuilder.HasAnnotation("ProductVersion", "10.0.11");
 22
 2723            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 2724                {
 2725                    b.Property<int>("Id")
 2726                        .ValueGeneratedOnAdd()
 2727                        .HasColumnType("INTEGER");
 2728
 2729                    b.Property<int>("DayOfWeek")
 2730                        .HasColumnType("INTEGER");
 2731
 2732                    b.Property<double>("EndHour")
 2733                        .HasColumnType("REAL");
 2734
 2735                    b.Property<double>("StartHour")
 2736                        .HasColumnType("REAL");
 2737
 2738                    b.Property<Guid>("UserId")
 2739                        .HasColumnType("TEXT");
 2740
 2741                    b.HasKey("Id");
 2742
 2743                    b.HasIndex("UserId");
 2744
 2745                    b.ToTable("AccessSchedules");
 2746
 2747                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2748                });
 49
 2750            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ActivityLog", b =>
 2751                {
 2752                    b.Property<int>("Id")
 2753                        .ValueGeneratedOnAdd()
 2754                        .HasColumnType("INTEGER");
 2755
 2756                    b.Property<DateTime>("DateCreated")
 2757                        .HasColumnType("TEXT");
 2758
 2759                    b.Property<string>("ItemId")
 2760                        .HasMaxLength(256)
 2761                        .HasColumnType("TEXT");
 2762
 2763                    b.Property<int>("LogSeverity")
 2764                        .HasColumnType("INTEGER");
 2765
 2766                    b.Property<string>("Name")
 2767                        .IsRequired()
 2768                        .HasMaxLength(512)
 2769                        .HasColumnType("TEXT");
 2770
 2771                    b.Property<string>("Overview")
 2772                        .HasMaxLength(512)
 2773                        .HasColumnType("TEXT");
 2774
 2775                    b.Property<uint>("RowVersion")
 2776                        .IsConcurrencyToken()
 2777                        .HasColumnType("INTEGER");
 2778
 2779                    b.Property<string>("ShortOverview")
 2780                        .HasMaxLength(512)
 2781                        .HasColumnType("TEXT");
 2782
 2783                    b.Property<string>("Type")
 2784                        .IsRequired()
 2785                        .HasMaxLength(256)
 2786                        .HasColumnType("TEXT");
 2787
 2788                    b.Property<Guid>("UserId")
 2789                        .HasColumnType("TEXT");
 2790
 2791                    b.HasKey("Id");
 2792
 2793                    b.HasIndex("DateCreated");
 2794
 2795                    b.ToTable("ActivityLogs");
 2796
 2797                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2798                });
 99
 27100            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 27101                {
 27102                    b.Property<Guid>("ItemId")
 27103                        .HasColumnType("TEXT");
 27104
 27105                    b.Property<Guid>("ParentItemId")
 27106                        .HasColumnType("TEXT");
 27107
 27108                    b.HasKey("ItemId", "ParentItemId");
 27109
 27110                    b.HasIndex("ParentItemId");
 27111
 27112                    b.ToTable("AncestorIds");
 27113
 27114                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27115                });
 116
 27117            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 27118                {
 27119                    b.Property<Guid>("ItemId")
 27120                        .HasColumnType("TEXT");
 27121
 27122                    b.Property<int>("Index")
 27123                        .HasColumnType("INTEGER");
 27124
 27125                    b.Property<string>("Codec")
 27126                        .HasColumnType("TEXT");
 27127
 27128                    b.Property<string>("CodecTag")
 27129                        .HasColumnType("TEXT");
 27130
 27131                    b.Property<string>("Comment")
 27132                        .HasColumnType("TEXT");
 27133
 27134                    b.Property<string>("Filename")
 27135                        .HasColumnType("TEXT");
 27136
 27137                    b.Property<string>("MimeType")
 27138                        .HasColumnType("TEXT");
 27139
 27140                    b.HasKey("ItemId", "Index");
 27141
 27142                    b.ToTable("AttachmentStreamInfos");
 27143
 27144                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27145                });
 146
 27147            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 27148                {
 27149                    b.Property<Guid>("Id")
 27150                        .ValueGeneratedOnAdd()
 27151                        .HasColumnType("TEXT");
 27152
 27153                    b.Property<string>("Album")
 27154                        .HasColumnType("TEXT");
 27155
 27156                    b.Property<string>("AlbumArtists")
 27157                        .HasColumnType("TEXT");
 27158
 27159                    b.Property<string>("Artists")
 27160                        .HasColumnType("TEXT");
 27161
 27162                    b.Property<int?>("Audio")
 27163                        .HasColumnType("INTEGER");
 27164
 27165                    b.Property<Guid?>("ChannelId")
 27166                        .HasColumnType("TEXT");
 27167
 27168                    b.Property<string>("CleanName")
 27169                        .HasColumnType("TEXT");
 27170
 27171                    b.Property<float?>("CommunityRating")
 27172                        .HasColumnType("REAL");
 27173
 27174                    b.Property<float?>("CriticRating")
 27175                        .HasColumnType("REAL");
 27176
 27177                    b.Property<string>("CustomRating")
 27178                        .HasColumnType("TEXT");
 27179
 27180                    b.Property<string>("Data")
 27181                        .HasColumnType("TEXT");
 27182
 27183                    b.Property<DateTime?>("DateCreated")
 27184                        .HasColumnType("TEXT");
 27185
 27186                    b.Property<DateTime?>("DateLastMediaAdded")
 27187                        .HasColumnType("TEXT");
 27188
 27189                    b.Property<DateTime?>("DateLastRefreshed")
 27190                        .HasColumnType("TEXT");
 27191
 27192                    b.Property<DateTime?>("DateLastSaved")
 27193                        .HasColumnType("TEXT");
 27194
 27195                    b.Property<DateTime?>("DateModified")
 27196                        .HasColumnType("TEXT");
 27197
 27198                    b.Property<DateTime?>("EndDate")
 27199                        .HasColumnType("TEXT");
 27200
 27201                    b.Property<string>("EpisodeTitle")
 27202                        .HasColumnType("TEXT");
 27203
 27204                    b.Property<string>("ExternalId")
 27205                        .HasColumnType("TEXT");
 27206
 27207                    b.Property<string>("ExternalSeriesId")
 27208                        .HasColumnType("TEXT");
 27209
 27210                    b.Property<string>("ExternalServiceId")
 27211                        .HasColumnType("TEXT");
 27212
 27213                    b.Property<int?>("ExtraType")
 27214                        .HasColumnType("INTEGER");
 27215
 27216                    b.Property<string>("ForcedSortName")
 27217                        .HasColumnType("TEXT");
 27218
 27219                    b.Property<string>("Genres")
 27220                        .HasColumnType("TEXT");
 27221
 27222                    b.Property<int?>("Height")
 27223                        .HasColumnType("INTEGER");
 27224
 27225                    b.Property<int?>("IndexNumber")
 27226                        .HasColumnType("INTEGER");
 27227
 27228                    b.Property<int?>("InheritedParentalRatingSubValue")
 27229                        .HasColumnType("INTEGER");
 27230
 27231                    b.Property<int?>("InheritedParentalRatingValue")
 27232                        .HasColumnType("INTEGER");
 27233
 27234                    b.Property<bool>("IsFolder")
 27235                        .HasColumnType("INTEGER");
 27236
 27237                    b.Property<bool>("IsInMixedFolder")
 27238                        .HasColumnType("INTEGER");
 27239
 27240                    b.Property<bool>("IsLocked")
 27241                        .HasColumnType("INTEGER");
 27242
 27243                    b.Property<bool>("IsMovie")
 27244                        .HasColumnType("INTEGER");
 27245
 27246                    b.Property<bool>("IsRepeat")
 27247                        .HasColumnType("INTEGER");
 27248
 27249                    b.Property<bool>("IsSeries")
 27250                        .HasColumnType("INTEGER");
 27251
 27252                    b.Property<bool>("IsVirtualItem")
 27253                        .HasColumnType("INTEGER");
 27254
 27255                    b.Property<float?>("LUFS")
 27256                        .HasColumnType("REAL");
 27257
 27258                    b.Property<string>("MediaType")
 27259                        .HasColumnType("TEXT");
 27260
 27261                    b.Property<string>("Name")
 27262                        .HasColumnType("TEXT");
 27263
 27264                    b.Property<float?>("NormalizationGain")
 27265                        .HasColumnType("REAL");
 27266
 27267                    b.Property<string>("OfficialRating")
 27268                        .HasColumnType("TEXT");
 27269
 27270                    b.Property<string>("OriginalLanguage")
 27271                        .HasColumnType("TEXT");
 27272
 27273                    b.Property<string>("OriginalTitle")
 27274                        .HasColumnType("TEXT");
 27275
 27276                    b.Property<string>("Overview")
 27277                        .HasColumnType("TEXT");
 27278
 27279                    b.Property<Guid?>("OwnerId")
 27280                        .HasColumnType("TEXT");
 27281
 27282                    b.Property<Guid?>("ParentId")
 27283                        .HasColumnType("TEXT");
 27284
 27285                    b.Property<int?>("ParentIndexNumber")
 27286                        .HasColumnType("INTEGER");
 27287
 27288                    b.Property<string>("Path")
 27289                        .HasColumnType("TEXT");
 27290
 27291                    b.Property<string>("PreferredMetadataCountryCode")
 27292                        .HasColumnType("TEXT");
 27293
 27294                    b.Property<string>("PreferredMetadataLanguage")
 27295                        .HasColumnType("TEXT");
 27296
 27297                    b.Property<DateTime?>("PremiereDate")
 27298                        .HasColumnType("TEXT");
 27299
 27300                    b.Property<string>("PresentationUniqueKey")
 27301                        .HasColumnType("TEXT");
 27302
 27303                    b.Property<Guid?>("PrimaryVersionId")
 27304                        .HasColumnType("TEXT");
 27305
 27306                    b.Property<string>("ProductionLocations")
 27307                        .HasColumnType("TEXT");
 27308
 27309                    b.Property<int?>("ProductionYear")
 27310                        .HasColumnType("INTEGER");
 27311
 27312                    b.Property<long?>("RunTimeTicks")
 27313                        .HasColumnType("INTEGER");
 27314
 27315                    b.Property<Guid?>("SeasonId")
 27316                        .HasColumnType("TEXT");
 27317
 27318                    b.Property<string>("SeasonName")
 27319                        .HasColumnType("TEXT");
 27320
 27321                    b.Property<Guid?>("SeriesId")
 27322                        .HasColumnType("TEXT");
 27323
 27324                    b.Property<string>("SeriesName")
 27325                        .HasColumnType("TEXT");
 27326
 27327                    b.Property<string>("SeriesPresentationUniqueKey")
 27328                        .HasColumnType("TEXT");
 27329
 27330                    b.Property<string>("ShowId")
 27331                        .HasColumnType("TEXT");
 27332
 27333                    b.Property<long?>("Size")
 27334                        .HasColumnType("INTEGER");
 27335
 27336                    b.Property<string>("SortName")
 27337                        .HasColumnType("TEXT");
 27338
 27339                    b.Property<DateTime?>("StartDate")
 27340                        .HasColumnType("TEXT");
 27341
 27342                    b.Property<string>("Studios")
 27343                        .HasColumnType("TEXT");
 27344
 27345                    b.Property<string>("Tagline")
 27346                        .HasColumnType("TEXT");
 27347
 27348                    b.Property<string>("Tags")
 27349                        .HasColumnType("TEXT");
 27350
 27351                    b.Property<Guid?>("TopParentId")
 27352                        .HasColumnType("TEXT");
 27353
 27354                    b.Property<int?>("TotalBitrate")
 27355                        .HasColumnType("INTEGER");
 27356
 27357                    b.Property<string>("Type")
 27358                        .IsRequired()
 27359                        .HasColumnType("TEXT");
 27360
 27361                    b.Property<string>("UnratedType")
 27362                        .HasColumnType("TEXT");
 27363
 27364                    b.Property<int?>("Width")
 27365                        .HasColumnType("INTEGER");
 27366
 27367                    b.HasKey("Id");
 27368
 27369                    b.HasIndex("Name");
 27370
 27371                    b.HasIndex("OwnerId");
 27372
 27373                    b.HasIndex("ParentId");
 27374
 27375                    b.HasIndex("Path");
 27376
 27377                    b.HasIndex("PresentationUniqueKey");
 27378
 27379                    b.HasIndex("PrimaryVersionId")
 27380                        .HasFilter("\"PrimaryVersionId\" IS NOT NULL");
 27381
 27382                    b.HasIndex("SeasonId");
 27383
 27384                    b.HasIndex("SeriesId");
 27385
 27386                    b.HasIndex("SeriesName");
 27387
 27388                    b.HasIndex("ExtraType", "OwnerId");
 27389
 27390                    b.HasIndex("TopParentId", "Id");
 27391
 27392                    b.HasIndex("Type", "CleanName");
 27393
 27394                    b.HasIndex("TopParentId", "Type", "IsVirtualItem")
 27395                        .HasFilter("\"PrimaryVersionId\" IS NULL AND (\"OwnerId\" IS NULL OR \"ExtraType\" IS NOT NULL)"
 27396
 27397                    b.HasIndex("Type", "TopParentId", "Id");
 27398
 27399                    b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
 27400
 27401                    b.HasIndex("Type", "TopParentId", "SortName");
 27402
 27403                    b.HasIndex("Type", "TopParentId", "StartDate");
 27404
 27405                    b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
 27406
 27407                    b.HasIndex("TopParentId", "IsFolder", "IsVirtualItem", "DateCreated");
 27408
 27409                    b.HasIndex("TopParentId", "MediaType", "IsVirtualItem", "DateCreated");
 27410
 27411                    b.HasIndex("TopParentId", "Type", "IsVirtualItem", "DateCreated");
 27412
 27413                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
 27414
 27415                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "ParentIndexNumber", "IndexNumber");
 27416
 27417                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
 27418
 27419                    b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 27420
 27421                    b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 27422
 27423                    b.ToTable("BaseItems");
 27424
 27425                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27426
 27427                    b.HasData(
 27428                        new
 27429                        {
 27430                            Id = new Guid("00000000-0000-0000-0000-000000000001"),
 27431                            IsFolder = false,
 27432                            IsInMixedFolder = false,
 27433                            IsLocked = false,
 27434                            IsMovie = false,
 27435                            IsRepeat = false,
 27436                            IsSeries = false,
 27437                            IsVirtualItem = false,
 27438                            Name = "This is a placeholder item for UserData that has been detached from its original ite
 27439                            Type = "PLACEHOLDER"
 27440                        });
 27441                });
 442
 27443            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 27444                {
 27445                    b.Property<Guid>("Id")
 27446                        .ValueGeneratedOnAdd()
 27447                        .HasColumnType("TEXT");
 27448
 27449                    b.Property<byte[]>("Blurhash")
 27450                        .HasColumnType("BLOB");
 27451
 27452                    b.Property<DateTime?>("DateModified")
 27453                        .HasColumnType("TEXT");
 27454
 27455                    b.Property<int>("Height")
 27456                        .HasColumnType("INTEGER");
 27457
 27458                    b.Property<int>("ImageType")
 27459                        .HasColumnType("INTEGER");
 27460
 27461                    b.Property<Guid>("ItemId")
 27462                        .HasColumnType("TEXT");
 27463
 27464                    b.Property<string>("Path")
 27465                        .IsRequired()
 27466                        .HasColumnType("TEXT");
 27467
 27468                    b.Property<int>("Width")
 27469                        .HasColumnType("INTEGER");
 27470
 27471                    b.HasKey("Id");
 27472
 27473                    b.HasIndex("ItemId", "ImageType");
 27474
 27475                    b.ToTable("BaseItemImageInfos");
 27476
 27477                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27478                });
 479
 27480            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 27481                {
 27482                    b.Property<int>("Id")
 27483                        .HasColumnType("INTEGER");
 27484
 27485                    b.Property<Guid>("ItemId")
 27486                        .HasColumnType("TEXT");
 27487
 27488                    b.HasKey("Id", "ItemId");
 27489
 27490                    b.HasIndex("ItemId");
 27491
 27492                    b.ToTable("BaseItemMetadataFields");
 27493
 27494                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27495                });
 496
 27497            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 27498                {
 27499                    b.Property<Guid>("ItemId")
 27500                        .HasColumnType("TEXT");
 27501
 27502                    b.Property<string>("ProviderId")
 27503                        .HasColumnType("TEXT");
 27504
 27505                    b.Property<string>("ProviderValue")
 27506                        .IsRequired()
 27507                        .HasColumnType("TEXT");
 27508
 27509                    b.HasKey("ItemId", "ProviderId");
 27510
 27511                    b.HasIndex("ProviderId", "ItemId", "ProviderValue");
 27512
 27513                    b.ToTable("BaseItemProviders");
 27514
 27515                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27516                });
 517
 27518            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 27519                {
 27520                    b.Property<int>("Id")
 27521                        .HasColumnType("INTEGER");
 27522
 27523                    b.Property<Guid>("ItemId")
 27524                        .HasColumnType("TEXT");
 27525
 27526                    b.HasKey("Id", "ItemId");
 27527
 27528                    b.HasIndex("ItemId");
 27529
 27530                    b.ToTable("BaseItemTrailerTypes");
 27531
 27532                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27533                });
 534
 27535            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 27536                {
 27537                    b.Property<Guid>("ItemId")
 27538                        .HasColumnType("TEXT");
 27539
 27540                    b.Property<int>("ChapterIndex")
 27541                        .HasColumnType("INTEGER");
 27542
 27543                    b.Property<DateTime?>("ImageDateModified")
 27544                        .HasColumnType("TEXT");
 27545
 27546                    b.Property<string>("ImagePath")
 27547                        .HasColumnType("TEXT");
 27548
 27549                    b.Property<string>("Name")
 27550                        .HasColumnType("TEXT");
 27551
 27552                    b.Property<long>("StartPositionTicks")
 27553                        .HasColumnType("INTEGER");
 27554
 27555                    b.HasKey("ItemId", "ChapterIndex");
 27556
 27557                    b.ToTable("Chapters");
 27558
 27559                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27560                });
 561
 27562            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.CustomItemDisplayPreferences", b =>
 27563                {
 27564                    b.Property<int>("Id")
 27565                        .ValueGeneratedOnAdd()
 27566                        .HasColumnType("INTEGER");
 27567
 27568                    b.Property<string>("Client")
 27569                        .IsRequired()
 27570                        .HasMaxLength(32)
 27571                        .HasColumnType("TEXT");
 27572
 27573                    b.Property<Guid>("ItemId")
 27574                        .HasColumnType("TEXT");
 27575
 27576                    b.Property<string>("Key")
 27577                        .IsRequired()
 27578                        .HasColumnType("TEXT");
 27579
 27580                    b.Property<Guid>("UserId")
 27581                        .HasColumnType("TEXT");
 27582
 27583                    b.Property<string>("Value")
 27584                        .HasColumnType("TEXT");
 27585
 27586                    b.HasKey("Id");
 27587
 27588                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 27589                        .IsUnique();
 27590
 27591                    b.ToTable("CustomItemDisplayPreferences");
 27592
 27593                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27594                });
 595
 27596            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 27597                {
 27598                    b.Property<int>("Id")
 27599                        .ValueGeneratedOnAdd()
 27600                        .HasColumnType("INTEGER");
 27601
 27602                    b.Property<int>("ChromecastVersion")
 27603                        .HasColumnType("INTEGER");
 27604
 27605                    b.Property<string>("Client")
 27606                        .IsRequired()
 27607                        .HasMaxLength(32)
 27608                        .HasColumnType("TEXT");
 27609
 27610                    b.Property<string>("DashboardTheme")
 27611                        .HasMaxLength(32)
 27612                        .HasColumnType("TEXT");
 27613
 27614                    b.Property<bool>("EnableNextVideoInfoOverlay")
 27615                        .HasColumnType("INTEGER");
 27616
 27617                    b.Property<int?>("IndexBy")
 27618                        .HasColumnType("INTEGER");
 27619
 27620                    b.Property<Guid>("ItemId")
 27621                        .HasColumnType("TEXT");
 27622
 27623                    b.Property<int>("ScrollDirection")
 27624                        .HasColumnType("INTEGER");
 27625
 27626                    b.Property<bool>("ShowBackdrop")
 27627                        .HasColumnType("INTEGER");
 27628
 27629                    b.Property<bool>("ShowSidebar")
 27630                        .HasColumnType("INTEGER");
 27631
 27632                    b.Property<int>("SkipBackwardLength")
 27633                        .HasColumnType("INTEGER");
 27634
 27635                    b.Property<int>("SkipForwardLength")
 27636                        .HasColumnType("INTEGER");
 27637
 27638                    b.Property<string>("TvHome")
 27639                        .HasMaxLength(32)
 27640                        .HasColumnType("TEXT");
 27641
 27642                    b.Property<Guid>("UserId")
 27643                        .HasColumnType("TEXT");
 27644
 27645                    b.HasKey("Id");
 27646
 27647                    b.HasIndex("UserId", "ItemId", "Client")
 27648                        .IsUnique();
 27649
 27650                    b.ToTable("DisplayPreferences");
 27651
 27652                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27653                });
 654
 27655            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 27656                {
 27657                    b.Property<int>("Id")
 27658                        .ValueGeneratedOnAdd()
 27659                        .HasColumnType("INTEGER");
 27660
 27661                    b.Property<int>("DisplayPreferencesId")
 27662                        .HasColumnType("INTEGER");
 27663
 27664                    b.Property<int>("Order")
 27665                        .HasColumnType("INTEGER");
 27666
 27667                    b.Property<int>("Type")
 27668                        .HasColumnType("INTEGER");
 27669
 27670                    b.HasKey("Id");
 27671
 27672                    b.HasIndex("DisplayPreferencesId");
 27673
 27674                    b.ToTable("HomeSection");
 27675
 27676                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27677                });
 678
 27679            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 27680                {
 27681                    b.Property<int>("Id")
 27682                        .ValueGeneratedOnAdd()
 27683                        .HasColumnType("INTEGER");
 27684
 27685                    b.Property<DateTime>("LastModified")
 27686                        .HasColumnType("TEXT");
 27687
 27688                    b.Property<string>("Path")
 27689                        .IsRequired()
 27690                        .HasMaxLength(512)
 27691                        .HasColumnType("TEXT");
 27692
 27693                    b.Property<Guid?>("UserId")
 27694                        .HasColumnType("TEXT");
 27695
 27696                    b.HasKey("Id");
 27697
 27698                    b.HasIndex("UserId")
 27699                        .IsUnique();
 27700
 27701                    b.ToTable("ImageInfos");
 27702
 27703                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27704                });
 705
 27706            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 27707                {
 27708                    b.Property<int>("Id")
 27709                        .ValueGeneratedOnAdd()
 27710                        .HasColumnType("INTEGER");
 27711
 27712                    b.Property<string>("Client")
 27713                        .IsRequired()
 27714                        .HasMaxLength(32)
 27715                        .HasColumnType("TEXT");
 27716
 27717                    b.Property<int?>("IndexBy")
 27718                        .HasColumnType("INTEGER");
 27719
 27720                    b.Property<Guid>("ItemId")
 27721                        .HasColumnType("TEXT");
 27722
 27723                    b.Property<bool>("RememberIndexing")
 27724                        .HasColumnType("INTEGER");
 27725
 27726                    b.Property<bool>("RememberSorting")
 27727                        .HasColumnType("INTEGER");
 27728
 27729                    b.Property<string>("SortBy")
 27730                        .IsRequired()
 27731                        .HasMaxLength(64)
 27732                        .HasColumnType("TEXT");
 27733
 27734                    b.Property<int>("SortOrder")
 27735                        .HasColumnType("INTEGER");
 27736
 27737                    b.Property<Guid>("UserId")
 27738                        .HasColumnType("TEXT");
 27739
 27740                    b.Property<int>("ViewType")
 27741                        .HasColumnType("INTEGER");
 27742
 27743                    b.HasKey("Id");
 27744
 27745                    b.HasIndex("UserId");
 27746
 27747                    b.ToTable("ItemDisplayPreferences");
 27748
 27749                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27750                });
 751
 27752            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 27753                {
 27754                    b.Property<Guid>("ItemValueId")
 27755                        .ValueGeneratedOnAdd()
 27756                        .HasColumnType("TEXT");
 27757
 27758                    b.Property<string>("CleanValue")
 27759                        .IsRequired()
 27760                        .HasColumnType("TEXT");
 27761
 27762                    b.Property<int>("Type")
 27763                        .HasColumnType("INTEGER");
 27764
 27765                    b.Property<string>("Value")
 27766                        .IsRequired()
 27767                        .HasColumnType("TEXT");
 27768
 27769                    b.HasKey("ItemValueId");
 27770
 27771                    b.HasIndex("Type", "CleanValue");
 27772
 27773                    b.HasIndex("Type", "Value")
 27774                        .IsUnique();
 27775
 27776                    b.ToTable("ItemValues");
 27777
 27778                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27779                });
 780
 27781            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 27782                {
 27783                    b.Property<Guid>("ItemValueId")
 27784                        .HasColumnType("TEXT");
 27785
 27786                    b.Property<Guid>("ItemId")
 27787                        .HasColumnType("TEXT");
 27788
 27789                    b.HasKey("ItemValueId", "ItemId");
 27790
 27791                    b.HasIndex("ItemId");
 27792
 27793                    b.ToTable("ItemValuesMap");
 27794
 27795                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27796                });
 797
 27798            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 27799                {
 27800                    b.Property<Guid>("ItemId")
 27801                        .HasColumnType("TEXT");
 27802
 27803                    b.PrimitiveCollection<string>("KeyframeTicks")
 27804                        .HasColumnType("TEXT");
 27805
 27806                    b.Property<long>("TotalDuration")
 27807                        .HasColumnType("INTEGER");
 27808
 27809                    b.HasKey("ItemId");
 27810
 27811                    b.ToTable("KeyframeData");
 27812
 27813                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27814                });
 815
 27816            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 27817                {
 27818                    b.Property<Guid>("ParentId")
 27819                        .HasColumnType("TEXT");
 27820
 27821                    b.Property<int>("SortOrder")
 27822                        .HasColumnType("INTEGER");
 27823
 27824                    b.Property<Guid>("ChildId")
 27825                        .HasColumnType("TEXT");
 27826
 27827                    b.Property<int>("ChildType")
 27828                        .HasColumnType("INTEGER");
 27829
 27830                    b.HasKey("ParentId", "SortOrder");
 27831
 27832                    b.HasIndex("ChildId", "ChildType");
 27833
 27834                    b.HasIndex("ParentId", "ChildType");
 27835
 27836                    b.ToTable("LinkedChildren", (string)null);
 27837
 27838                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27839                });
 840
 27841            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaSegment", b =>
 27842                {
 27843                    b.Property<Guid>("Id")
 27844                        .ValueGeneratedOnAdd()
 27845                        .HasColumnType("TEXT");
 27846
 27847                    b.Property<long>("EndTicks")
 27848                        .HasColumnType("INTEGER");
 27849
 27850                    b.Property<Guid>("ItemId")
 27851                        .HasColumnType("TEXT");
 27852
 27853                    b.Property<string>("SegmentProviderId")
 27854                        .IsRequired()
 27855                        .HasColumnType("TEXT");
 27856
 27857                    b.Property<long>("StartTicks")
 27858                        .HasColumnType("INTEGER");
 27859
 27860                    b.Property<int>("Type")
 27861                        .HasColumnType("INTEGER");
 27862
 27863                    b.HasKey("Id");
 27864
 27865                    b.ToTable("MediaSegments");
 27866
 27867                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27868                });
 869
 27870            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 27871                {
 27872                    b.Property<Guid>("ItemId")
 27873                        .HasColumnType("TEXT");
 27874
 27875                    b.Property<int>("StreamIndex")
 27876                        .HasColumnType("INTEGER");
 27877
 27878                    b.Property<string>("AspectRatio")
 27879                        .HasColumnType("TEXT");
 27880
 27881                    b.Property<float?>("AverageFrameRate")
 27882                        .HasColumnType("REAL");
 27883
 27884                    b.Property<int?>("BitDepth")
 27885                        .HasColumnType("INTEGER");
 27886
 27887                    b.Property<int?>("BitRate")
 27888                        .HasColumnType("INTEGER");
 27889
 27890                    b.Property<int?>("BlPresentFlag")
 27891                        .HasColumnType("INTEGER");
 27892
 27893                    b.Property<string>("ChannelLayout")
 27894                        .HasColumnType("TEXT");
 27895
 27896                    b.Property<int?>("Channels")
 27897                        .HasColumnType("INTEGER");
 27898
 27899                    b.Property<string>("Codec")
 27900                        .HasColumnType("TEXT");
 27901
 27902                    b.Property<string>("CodecTag")
 27903                        .HasColumnType("TEXT");
 27904
 27905                    b.Property<string>("CodecTimeBase")
 27906                        .HasColumnType("TEXT");
 27907
 27908                    b.Property<string>("ColorPrimaries")
 27909                        .HasColumnType("TEXT");
 27910
 27911                    b.Property<string>("ColorSpace")
 27912                        .HasColumnType("TEXT");
 27913
 27914                    b.Property<string>("ColorTransfer")
 27915                        .HasColumnType("TEXT");
 27916
 27917                    b.Property<string>("Comment")
 27918                        .HasColumnType("TEXT");
 27919
 27920                    b.Property<int?>("DvBlSignalCompatibilityId")
 27921                        .HasColumnType("INTEGER");
 27922
 27923                    b.Property<int?>("DvLevel")
 27924                        .HasColumnType("INTEGER");
 27925
 27926                    b.Property<int?>("DvProfile")
 27927                        .HasColumnType("INTEGER");
 27928
 27929                    b.Property<int?>("DvVersionMajor")
 27930                        .HasColumnType("INTEGER");
 27931
 27932                    b.Property<int?>("DvVersionMinor")
 27933                        .HasColumnType("INTEGER");
 27934
 27935                    b.Property<int?>("ElPresentFlag")
 27936                        .HasColumnType("INTEGER");
 27937
 27938                    b.Property<bool?>("Hdr10PlusPresentFlag")
 27939                        .HasColumnType("INTEGER");
 27940
 27941                    b.Property<int?>("Height")
 27942                        .HasColumnType("INTEGER");
 27943
 27944                    b.Property<bool?>("IsAnamorphic")
 27945                        .HasColumnType("INTEGER");
 27946
 27947                    b.Property<bool?>("IsAvc")
 27948                        .HasColumnType("INTEGER");
 27949
 27950                    b.Property<bool>("IsDefault")
 27951                        .HasColumnType("INTEGER");
 27952
 27953                    b.Property<bool>("IsExternal")
 27954                        .HasColumnType("INTEGER");
 27955
 27956                    b.Property<bool>("IsForced")
 27957                        .HasColumnType("INTEGER");
 27958
 27959                    b.Property<bool?>("IsHearingImpaired")
 27960                        .HasColumnType("INTEGER");
 27961
 27962                    b.Property<bool?>("IsInterlaced")
 27963                        .HasColumnType("INTEGER");
 27964
 27965                    b.Property<bool>("IsOriginal")
 27966                        .HasColumnType("INTEGER");
 27967
 27968                    b.Property<string>("KeyFrames")
 27969                        .HasColumnType("TEXT");
 27970
 27971                    b.Property<string>("Language")
 27972                        .HasColumnType("TEXT");
 27973
 27974                    b.Property<float?>("Level")
 27975                        .HasColumnType("REAL");
 27976
 27977                    b.Property<string>("NalLengthSize")
 27978                        .HasColumnType("TEXT");
 27979
 27980                    b.Property<string>("Path")
 27981                        .HasColumnType("TEXT");
 27982
 27983                    b.Property<string>("PixelFormat")
 27984                        .HasColumnType("TEXT");
 27985
 27986                    b.Property<string>("Profile")
 27987                        .HasColumnType("TEXT");
 27988
 27989                    b.Property<float?>("RealFrameRate")
 27990                        .HasColumnType("REAL");
 27991
 27992                    b.Property<int?>("RefFrames")
 27993                        .HasColumnType("INTEGER");
 27994
 27995                    b.Property<int?>("Rotation")
 27996                        .HasColumnType("INTEGER");
 27997
 27998                    b.Property<int?>("RpuPresentFlag")
 27999                        .HasColumnType("INTEGER");
 271000
 271001                    b.Property<int?>("SampleRate")
 271002                        .HasColumnType("INTEGER");
 271003
 271004                    b.Property<int>("StreamType")
 271005                        .HasColumnType("INTEGER");
 271006
 271007                    b.Property<string>("TimeBase")
 271008                        .HasColumnType("TEXT");
 271009
 271010                    b.Property<string>("Title")
 271011                        .HasColumnType("TEXT");
 271012
 271013                    b.Property<int?>("Width")
 271014                        .HasColumnType("INTEGER");
 271015
 271016                    b.HasKey("ItemId", "StreamIndex");
 271017
 271018                    b.HasIndex("StreamType", "ItemId", "Language", "IsExternal");
 271019
 271020                    b.ToTable("MediaStreamInfos");
 271021
 271022                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271023                });
 1024
 271025            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 271026                {
 271027                    b.Property<Guid>("Id")
 271028                        .ValueGeneratedOnAdd()
 271029                        .HasColumnType("TEXT");
 271030
 271031                    b.Property<string>("Name")
 271032                        .IsRequired()
 271033                        .HasColumnType("TEXT");
 271034
 271035                    b.Property<string>("PersonType")
 271036                        .HasColumnType("TEXT");
 271037
 271038                    b.HasKey("Id");
 271039
 271040                    b.HasIndex("Name");
 271041
 271042                    b.ToTable("Peoples");
 271043
 271044                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271045                });
 1046
 271047            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 271048                {
 271049                    b.Property<Guid>("ItemId")
 271050                        .HasColumnType("TEXT");
 271051
 271052                    b.Property<Guid>("PeopleId")
 271053                        .HasColumnType("TEXT");
 271054
 271055                    b.Property<string>("Role")
 271056                        .HasColumnType("TEXT");
 271057
 271058                    b.Property<int?>("ListOrder")
 271059                        .HasColumnType("INTEGER");
 271060
 271061                    b.Property<int?>("SortOrder")
 271062                        .HasColumnType("INTEGER");
 271063
 271064                    b.HasKey("ItemId", "PeopleId", "Role");
 271065
 271066                    b.HasIndex("ItemId", "ListOrder");
 271067
 271068                    b.HasIndex("ItemId", "SortOrder");
 271069
 271070                    b.HasIndex("PeopleId", "ItemId");
 271071
 271072                    b.ToTable("PeopleBaseItemMap");
 271073
 271074                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271075                });
 1076
 271077            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 271078                {
 271079                    b.Property<int>("Id")
 271080                        .ValueGeneratedOnAdd()
 271081                        .HasColumnType("INTEGER");
 271082
 271083                    b.Property<int>("Kind")
 271084                        .HasColumnType("INTEGER");
 271085
 271086                    b.Property<uint>("RowVersion")
 271087                        .IsConcurrencyToken()
 271088                        .HasColumnType("INTEGER");
 271089
 271090                    b.Property<Guid>("UserId")
 271091                        .HasColumnType("TEXT");
 271092
 271093                    b.Property<bool>("Value")
 271094                        .HasColumnType("INTEGER");
 271095
 271096                    b.HasKey("Id");
 271097
 271098                    b.HasIndex("UserId", "Kind")
 271099                        .IsUnique();
 271100
 271101                    b.ToTable("Permissions");
 271102
 271103                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271104                });
 1105
 271106            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 271107                {
 271108                    b.Property<int>("Id")
 271109                        .ValueGeneratedOnAdd()
 271110                        .HasColumnType("INTEGER");
 271111
 271112                    b.Property<int>("Kind")
 271113                        .HasColumnType("INTEGER");
 271114
 271115                    b.Property<uint>("RowVersion")
 271116                        .IsConcurrencyToken()
 271117                        .HasColumnType("INTEGER");
 271118
 271119                    b.Property<Guid>("UserId")
 271120                        .HasColumnType("TEXT");
 271121
 271122                    b.Property<string>("Value")
 271123                        .IsRequired()
 271124                        .HasMaxLength(65535)
 271125                        .HasColumnType("TEXT");
 271126
 271127                    b.HasKey("Id");
 271128
 271129                    b.HasIndex("UserId", "Kind")
 271130                        .IsUnique();
 271131
 271132                    b.ToTable("Preferences");
 271133
 271134                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271135                });
 1136
 271137            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.ApiKey", b =>
 271138                {
 271139                    b.Property<int>("Id")
 271140                        .ValueGeneratedOnAdd()
 271141                        .HasColumnType("INTEGER");
 271142
 271143                    b.Property<string>("AccessToken")
 271144                        .IsRequired()
 271145                        .HasColumnType("TEXT");
 271146
 271147                    b.Property<DateTime>("DateCreated")
 271148                        .HasColumnType("TEXT");
 271149
 271150                    b.Property<DateTime>("DateLastActivity")
 271151                        .HasColumnType("TEXT");
 271152
 271153                    b.Property<string>("Name")
 271154                        .IsRequired()
 271155                        .HasMaxLength(64)
 271156                        .HasColumnType("TEXT");
 271157
 271158                    b.HasKey("Id");
 271159
 271160                    b.HasIndex("AccessToken")
 271161                        .IsUnique();
 271162
 271163                    b.ToTable("ApiKeys");
 271164
 271165                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271166                });
 1167
 271168            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 271169                {
 271170                    b.Property<int>("Id")
 271171                        .ValueGeneratedOnAdd()
 271172                        .HasColumnType("INTEGER");
 271173
 271174                    b.Property<string>("AccessToken")
 271175                        .IsRequired()
 271176                        .HasColumnType("TEXT");
 271177
 271178                    b.Property<string>("AppName")
 271179                        .IsRequired()
 271180                        .HasMaxLength(64)
 271181                        .HasColumnType("TEXT");
 271182
 271183                    b.Property<string>("AppVersion")
 271184                        .IsRequired()
 271185                        .HasMaxLength(32)
 271186                        .HasColumnType("TEXT");
 271187
 271188                    b.Property<DateTime>("DateCreated")
 271189                        .HasColumnType("TEXT");
 271190
 271191                    b.Property<DateTime>("DateLastActivity")
 271192                        .HasColumnType("TEXT");
 271193
 271194                    b.Property<DateTime>("DateModified")
 271195                        .HasColumnType("TEXT");
 271196
 271197                    b.Property<string>("DeviceId")
 271198                        .IsRequired()
 271199                        .HasMaxLength(256)
 271200                        .HasColumnType("TEXT");
 271201
 271202                    b.Property<string>("DeviceName")
 271203                        .IsRequired()
 271204                        .HasMaxLength(64)
 271205                        .HasColumnType("TEXT");
 271206
 271207                    b.Property<bool>("IsActive")
 271208                        .HasColumnType("INTEGER");
 271209
 271210                    b.Property<Guid>("UserId")
 271211                        .HasColumnType("TEXT");
 271212
 271213                    b.HasKey("Id");
 271214
 271215                    b.HasIndex("AccessToken", "DateLastActivity");
 271216
 271217                    b.HasIndex("DeviceId", "DateLastActivity");
 271218
 271219                    b.HasIndex("UserId", "DeviceId");
 271220
 271221                    b.ToTable("Devices");
 271222
 271223                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271224                });
 1225
 271226            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.DeviceOptions", b =>
 271227                {
 271228                    b.Property<int>("Id")
 271229                        .ValueGeneratedOnAdd()
 271230                        .HasColumnType("INTEGER");
 271231
 271232                    b.Property<string>("CustomName")
 271233                        .HasColumnType("TEXT");
 271234
 271235                    b.Property<string>("DeviceId")
 271236                        .IsRequired()
 271237                        .HasColumnType("TEXT");
 271238
 271239                    b.HasKey("Id");
 271240
 271241                    b.HasIndex("DeviceId")
 271242                        .IsUnique();
 271243
 271244                    b.ToTable("DeviceOptions");
 271245
 271246                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271247                });
 1248
 271249            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.TrickplayInfo", b =>
 271250                {
 271251                    b.Property<Guid>("ItemId")
 271252                        .HasColumnType("TEXT");
 271253
 271254                    b.Property<int>("Width")
 271255                        .HasColumnType("INTEGER");
 271256
 271257                    b.Property<int>("Bandwidth")
 271258                        .HasColumnType("INTEGER");
 271259
 271260                    b.Property<int>("Height")
 271261                        .HasColumnType("INTEGER");
 271262
 271263                    b.Property<int>("Interval")
 271264                        .HasColumnType("INTEGER");
 271265
 271266                    b.Property<int>("ThumbnailCount")
 271267                        .HasColumnType("INTEGER");
 271268
 271269                    b.Property<int>("TileHeight")
 271270                        .HasColumnType("INTEGER");
 271271
 271272                    b.Property<int>("TileWidth")
 271273                        .HasColumnType("INTEGER");
 271274
 271275                    b.HasKey("ItemId", "Width");
 271276
 271277                    b.ToTable("TrickplayInfos");
 271278
 271279                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271280                });
 1281
 271282            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 271283                {
 271284                    b.Property<Guid>("Id")
 271285                        .ValueGeneratedOnAdd()
 271286                        .HasColumnType("TEXT");
 271287
 271288                    b.Property<string>("AudioLanguagePreference")
 271289                        .HasMaxLength(255)
 271290                        .HasColumnType("TEXT");
 271291
 271292                    b.Property<string>("AuthenticationProviderId")
 271293                        .IsRequired()
 271294                        .HasMaxLength(255)
 271295                        .HasColumnType("TEXT");
 271296
 271297                    b.Property<string>("CastReceiverId")
 271298                        .HasMaxLength(32)
 271299                        .HasColumnType("TEXT");
 271300
 271301                    b.Property<bool>("DisplayCollectionsView")
 271302                        .HasColumnType("INTEGER");
 271303
 271304                    b.Property<bool>("DisplayMissingEpisodes")
 271305                        .HasColumnType("INTEGER");
 271306
 271307                    b.Property<bool>("EnableAutoLogin")
 271308                        .HasColumnType("INTEGER");
 271309
 271310                    b.Property<bool>("EnableLocalPassword")
 271311                        .HasColumnType("INTEGER");
 271312
 271313                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 271314                        .HasColumnType("INTEGER");
 271315
 271316                    b.Property<bool>("EnableUserPreferenceAccess")
 271317                        .HasColumnType("INTEGER");
 271318
 271319                    b.Property<bool>("HidePlayedInLatest")
 271320                        .HasColumnType("INTEGER");
 271321
 271322                    b.Property<long>("InternalId")
 271323                        .HasColumnType("INTEGER");
 271324
 271325                    b.Property<int>("InvalidLoginAttemptCount")
 271326                        .HasColumnType("INTEGER");
 271327
 271328                    b.Property<DateTime?>("LastActivityDate")
 271329                        .HasColumnType("TEXT");
 271330
 271331                    b.Property<DateTime?>("LastLoginDate")
 271332                        .HasColumnType("TEXT");
 271333
 271334                    b.Property<int?>("LoginAttemptsBeforeLockout")
 271335                        .HasColumnType("INTEGER");
 271336
 271337                    b.Property<int>("MaxActiveSessions")
 271338                        .HasColumnType("INTEGER");
 271339
 271340                    b.Property<int?>("MaxParentalRatingScore")
 271341                        .HasColumnType("INTEGER");
 271342
 271343                    b.Property<int?>("MaxParentalRatingSubScore")
 271344                        .HasColumnType("INTEGER");
 271345
 271346                    b.Property<bool>("MustUpdatePassword")
 271347                        .HasColumnType("INTEGER");
 271348
 271349                    b.Property<string>("NormalizedUsername")
 271350                        .IsRequired()
 271351                        .HasMaxLength(255)
 271352                        .HasColumnType("TEXT");
 271353
 271354                    b.Property<string>("Password")
 271355                        .HasMaxLength(65535)
 271356                        .HasColumnType("TEXT");
 271357
 271358                    b.Property<string>("PasswordResetProviderId")
 271359                        .IsRequired()
 271360                        .HasMaxLength(255)
 271361                        .HasColumnType("TEXT");
 271362
 271363                    b.Property<bool>("PlayDefaultAudioTrack")
 271364                        .HasColumnType("INTEGER");
 271365
 271366                    b.Property<bool>("RememberAudioSelections")
 271367                        .HasColumnType("INTEGER");
 271368
 271369                    b.Property<bool>("RememberSubtitleSelections")
 271370                        .HasColumnType("INTEGER");
 271371
 271372                    b.Property<int?>("RemoteClientBitrateLimit")
 271373                        .HasColumnType("INTEGER");
 271374
 271375                    b.Property<uint>("RowVersion")
 271376                        .IsConcurrencyToken()
 271377                        .HasColumnType("INTEGER");
 271378
 271379                    b.Property<string>("SubtitleLanguagePreference")
 271380                        .HasMaxLength(255)
 271381                        .HasColumnType("TEXT");
 271382
 271383                    b.Property<int>("SubtitleMode")
 271384                        .HasColumnType("INTEGER");
 271385
 271386                    b.Property<int>("SyncPlayAccess")
 271387                        .HasColumnType("INTEGER");
 271388
 271389                    b.Property<string>("Username")
 271390                        .IsRequired()
 271391                        .HasMaxLength(255)
 271392                        .HasColumnType("TEXT");
 271393
 271394                    b.HasKey("Id");
 271395
 271396                    b.HasIndex("NormalizedUsername")
 271397                        .IsUnique();
 271398
 271399                    b.HasIndex("Username")
 271400                        .IsUnique();
 271401
 271402                    b.ToTable("Users");
 271403
 271404                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271405                });
 1406
 271407            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 271408                {
 271409                    b.Property<Guid>("ItemId")
 271410                        .HasColumnType("TEXT");
 271411
 271412                    b.Property<Guid>("UserId")
 271413                        .HasColumnType("TEXT");
 271414
 271415                    b.Property<string>("CustomDataKey")
 271416                        .HasColumnType("TEXT");
 271417
 271418                    b.Property<int?>("AudioStreamIndex")
 271419                        .HasColumnType("INTEGER");
 271420
 271421                    b.Property<bool>("IsFavorite")
 271422                        .HasColumnType("INTEGER");
 271423
 271424                    b.Property<DateTime?>("LastPlayedDate")
 271425                        .HasColumnType("TEXT");
 271426
 271427                    b.Property<bool?>("Likes")
 271428                        .HasColumnType("INTEGER");
 271429
 271430                    b.Property<int>("PlayCount")
 271431                        .HasColumnType("INTEGER");
 271432
 271433                    b.Property<long>("PlaybackPositionTicks")
 271434                        .HasColumnType("INTEGER");
 271435
 271436                    b.Property<bool>("Played")
 271437                        .HasColumnType("INTEGER");
 271438
 271439                    b.Property<double?>("Rating")
 271440                        .HasColumnType("REAL");
 271441
 271442                    b.Property<DateTime?>("RetentionDate")
 271443                        .HasColumnType("TEXT");
 271444
 271445                    b.Property<int?>("SubtitleStreamIndex")
 271446                        .HasColumnType("INTEGER");
 271447
 271448                    b.HasKey("ItemId", "UserId", "CustomDataKey");
 271449
 271450                    b.HasIndex("ItemId", "UserId", "IsFavorite");
 271451
 271452                    b.HasIndex("ItemId", "UserId", "LastPlayedDate");
 271453
 271454                    b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
 271455
 271456                    b.HasIndex("ItemId", "UserId", "Played");
 271457
 271458                    b.HasIndex("UserId", "IsFavorite", "ItemId");
 271459
 271460                    b.HasIndex("UserId", "ItemId", "LastPlayedDate");
 271461
 271462                    b.HasIndex("UserId", "Played", "ItemId");
 271463
 271464                    b.ToTable("UserData");
 271465
 271466                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271467                });
 1468
 271469            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 271470                {
 271471                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271472                        .WithMany("AccessSchedules")
 271473                        .HasForeignKey("UserId")
 271474                        .OnDelete(DeleteBehavior.Cascade)
 271475                        .IsRequired();
 271476                });
 1477
 271478            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 271479                {
 271480                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271481                        .WithMany("Parents")
 271482                        .HasForeignKey("ItemId")
 271483                        .OnDelete(DeleteBehavior.Cascade)
 271484                        .IsRequired();
 271485
 271486                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "ParentItem")
 271487                        .WithMany("Children")
 271488                        .HasForeignKey("ParentItemId")
 271489                        .OnDelete(DeleteBehavior.Cascade)
 271490                        .IsRequired();
 271491
 271492                    b.Navigation("Item");
 271493
 271494                    b.Navigation("ParentItem");
 271495                });
 1496
 271497            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 271498                {
 271499                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271500                        .WithMany()
 271501                        .HasForeignKey("ItemId")
 271502                        .OnDelete(DeleteBehavior.Cascade)
 271503                        .IsRequired();
 271504
 271505                    b.Navigation("Item");
 271506                });
 1507
 271508            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 271509                {
 271510                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Owner")
 271511                        .WithMany("Extras")
 271512                        .HasForeignKey("OwnerId")
 271513                        .OnDelete(DeleteBehavior.NoAction);
 271514
 271515                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "DirectParent")
 271516                        .WithMany("DirectChildren")
 271517                        .HasForeignKey("ParentId")
 271518                        .OnDelete(DeleteBehavior.Cascade);
 271519
 271520                    b.Navigation("DirectParent");
 271521
 271522                    b.Navigation("Owner");
 271523                });
 1524
 271525            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 271526                {
 271527                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271528                        .WithMany("Images")
 271529                        .HasForeignKey("ItemId")
 271530                        .OnDelete(DeleteBehavior.Cascade)
 271531                        .IsRequired();
 271532
 271533                    b.Navigation("Item");
 271534                });
 1535
 271536            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 271537                {
 271538                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271539                        .WithMany("LockedFields")
 271540                        .HasForeignKey("ItemId")
 271541                        .OnDelete(DeleteBehavior.Cascade)
 271542                        .IsRequired();
 271543
 271544                    b.Navigation("Item");
 271545                });
 1546
 271547            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 271548                {
 271549                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271550                        .WithMany("Provider")
 271551                        .HasForeignKey("ItemId")
 271552                        .OnDelete(DeleteBehavior.Cascade)
 271553                        .IsRequired();
 271554
 271555                    b.Navigation("Item");
 271556                });
 1557
 271558            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 271559                {
 271560                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271561                        .WithMany("TrailerTypes")
 271562                        .HasForeignKey("ItemId")
 271563                        .OnDelete(DeleteBehavior.Cascade)
 271564                        .IsRequired();
 271565
 271566                    b.Navigation("Item");
 271567                });
 1568
 271569            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 271570                {
 271571                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271572                        .WithMany("Chapters")
 271573                        .HasForeignKey("ItemId")
 271574                        .OnDelete(DeleteBehavior.Cascade)
 271575                        .IsRequired();
 271576
 271577                    b.Navigation("Item");
 271578                });
 1579
 271580            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 271581                {
 271582                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271583                        .WithMany("DisplayPreferences")
 271584                        .HasForeignKey("UserId")
 271585                        .OnDelete(DeleteBehavior.Cascade)
 271586                        .IsRequired();
 271587                });
 1588
 271589            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 271590                {
 271591                    b.HasOne("Jellyfin.Database.Implementations.Entities.DisplayPreferences", null)
 271592                        .WithMany("HomeSections")
 271593                        .HasForeignKey("DisplayPreferencesId")
 271594                        .OnDelete(DeleteBehavior.Cascade)
 271595                        .IsRequired();
 271596                });
 1597
 271598            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 271599                {
 271600                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271601                        .WithOne("ProfileImage")
 271602                        .HasForeignKey("Jellyfin.Database.Implementations.Entities.ImageInfo", "UserId")
 271603                        .OnDelete(DeleteBehavior.Cascade);
 271604                });
 1605
 271606            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 271607                {
 271608                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271609                        .WithMany("ItemDisplayPreferences")
 271610                        .HasForeignKey("UserId")
 271611                        .OnDelete(DeleteBehavior.Cascade)
 271612                        .IsRequired();
 271613                });
 1614
 271615            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 271616                {
 271617                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271618                        .WithMany("ItemValues")
 271619                        .HasForeignKey("ItemId")
 271620                        .OnDelete(DeleteBehavior.Cascade)
 271621                        .IsRequired();
 271622
 271623                    b.HasOne("Jellyfin.Database.Implementations.Entities.ItemValue", "ItemValue")
 271624                        .WithMany("BaseItemsMap")
 271625                        .HasForeignKey("ItemValueId")
 271626                        .OnDelete(DeleteBehavior.Cascade)
 271627                        .IsRequired();
 271628
 271629                    b.Navigation("Item");
 271630
 271631                    b.Navigation("ItemValue");
 271632                });
 1633
 271634            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 271635                {
 271636                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271637                        .WithMany()
 271638                        .HasForeignKey("ItemId")
 271639                        .OnDelete(DeleteBehavior.Cascade)
 271640                        .IsRequired();
 271641
 271642                    b.Navigation("Item");
 271643                });
 1644
 271645            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 271646                {
 271647                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Child")
 271648                        .WithMany("LinkedChildOfEntities")
 271649                        .HasForeignKey("ChildId")
 271650                        .OnDelete(DeleteBehavior.NoAction)
 271651                        .IsRequired();
 271652
 271653                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Parent")
 271654                        .WithMany("LinkedChildEntities")
 271655                        .HasForeignKey("ParentId")
 271656                        .OnDelete(DeleteBehavior.NoAction)
 271657                        .IsRequired();
 271658
 271659                    b.Navigation("Child");
 271660
 271661                    b.Navigation("Parent");
 271662                });
 1663
 271664            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 271665                {
 271666                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271667                        .WithMany("MediaStreams")
 271668                        .HasForeignKey("ItemId")
 271669                        .OnDelete(DeleteBehavior.Cascade)
 271670                        .IsRequired();
 271671
 271672                    b.Navigation("Item");
 271673                });
 1674
 271675            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 271676                {
 271677                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271678                        .WithMany("Peoples")
 271679                        .HasForeignKey("ItemId")
 271680                        .OnDelete(DeleteBehavior.Cascade)
 271681                        .IsRequired();
 271682
 271683                    b.HasOne("Jellyfin.Database.Implementations.Entities.People", "People")
 271684                        .WithMany("BaseItems")
 271685                        .HasForeignKey("PeopleId")
 271686                        .OnDelete(DeleteBehavior.Cascade)
 271687                        .IsRequired();
 271688
 271689                    b.Navigation("Item");
 271690
 271691                    b.Navigation("People");
 271692                });
 1693
 271694            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 271695                {
 271696                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271697                        .WithMany("Permissions")
 271698                        .HasForeignKey("UserId")
 271699                        .OnDelete(DeleteBehavior.Cascade)
 271700                        .IsRequired();
 271701                });
 1702
 271703            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 271704                {
 271705                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271706                        .WithMany("Preferences")
 271707                        .HasForeignKey("UserId")
 271708                        .OnDelete(DeleteBehavior.Cascade)
 271709                        .IsRequired();
 271710                });
 1711
 271712            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 271713                {
 271714                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 271715                        .WithMany()
 271716                        .HasForeignKey("UserId")
 271717                        .OnDelete(DeleteBehavior.Cascade)
 271718                        .IsRequired();
 271719
 271720                    b.Navigation("User");
 271721                });
 1722
 271723            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 271724                {
 271725                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271726                        .WithMany("UserData")
 271727                        .HasForeignKey("ItemId")
 271728                        .OnDelete(DeleteBehavior.Cascade)
 271729                        .IsRequired();
 271730
 271731                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 271732                        .WithMany()
 271733                        .HasForeignKey("UserId")
 271734                        .OnDelete(DeleteBehavior.Cascade)
 271735                        .IsRequired();
 271736
 271737                    b.Navigation("Item");
 271738
 271739                    b.Navigation("User");
 271740                });
 1741
 271742            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 271743                {
 271744                    b.Navigation("Chapters");
 271745
 271746                    b.Navigation("Children");
 271747
 271748                    b.Navigation("DirectChildren");
 271749
 271750                    b.Navigation("Extras");
 271751
 271752                    b.Navigation("Images");
 271753
 271754                    b.Navigation("ItemValues");
 271755
 271756                    b.Navigation("LinkedChildEntities");
 271757
 271758                    b.Navigation("LinkedChildOfEntities");
 271759
 271760                    b.Navigation("LockedFields");
 271761
 271762                    b.Navigation("MediaStreams");
 271763
 271764                    b.Navigation("Parents");
 271765
 271766                    b.Navigation("Peoples");
 271767
 271768                    b.Navigation("Provider");
 271769
 271770                    b.Navigation("TrailerTypes");
 271771
 271772                    b.Navigation("UserData");
 271773                });
 1774
 271775            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 271776                {
 271777                    b.Navigation("HomeSections");
 271778                });
 1779
 271780            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 271781                {
 271782                    b.Navigation("BaseItemsMap");
 271783                });
 1784
 271785            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 271786                {
 271787                    b.Navigation("BaseItems");
 271788                });
 1789
 271790            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 271791                {
 271792                    b.Navigation("AccessSchedules");
 271793
 271794                    b.Navigation("DisplayPreferences");
 271795
 271796                    b.Navigation("ItemDisplayPreferences");
 271797
 271798                    b.Navigation("Permissions");
 271799
 271800                    b.Navigation("Preferences");
 271801
 271802                    b.Navigation("ProfileImage");
 271803                });
 1804#pragma warning restore 612, 618
 271805        }
 1806    }
 1807}