< Summary - Jellyfin

Line coverage
98%
Covered lines: 674
Uncovered lines: 8
Coverable lines: 682
Total lines: 748
Line coverage: 98.8%
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/31/2026 - 12:15:44 AM Line coverage: 98.8% (674/682) Total lines: 748

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/20240928082930_MarkSegmentProviderIdNonNullable.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Jellyfin.Server.Implementations.Migrations
 6{
 7    /// <inheritdoc />
 8    public partial class MarkSegmentProviderIdNonNullable : Migration
 9    {
 10        /// <inheritdoc />
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 2713            migrationBuilder.AlterColumn<string>(
 2714                name: "SegmentProviderId",
 2715                table: "MediaSegments",
 2716                type: "TEXT",
 2717                nullable: false,
 2718                defaultValue: string.Empty,
 2719                oldClrType: typeof(string),
 2720                oldType: "TEXT",
 2721                oldNullable: true);
 2722        }
 23
 24        /// <inheritdoc />
 25        protected override void Down(MigrationBuilder migrationBuilder)
 26        {
 027            migrationBuilder.AlterColumn<string>(
 028                name: "SegmentProviderId",
 029                table: "MediaSegments",
 030                type: "TEXT",
 031                nullable: true,
 032                oldClrType: typeof(string),
 033                oldType: "TEXT");
 034        }
 35    }
 36}

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20240928082930_MarkSegmentProviderIdNonNullable.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.Server.Implementations.Migrations
 12{
 13    [DbContext(typeof(JellyfinDbContext))]
 14    [Migration("20240928082930_MarkSegmentProviderIdNonNullable")]
 15    partial class MarkSegmentProviderIdNonNullable
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 2721            modelBuilder.HasAnnotation("ProductVersion", "8.0.8");
 22
 2723            modelBuilder.Entity("Jellyfin.Data.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                });
 47
 2748            modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
 2749                {
 2750                    b.Property<int>("Id")
 2751                        .ValueGeneratedOnAdd()
 2752                        .HasColumnType("INTEGER");
 2753
 2754                    b.Property<DateTime>("DateCreated")
 2755                        .HasColumnType("TEXT");
 2756
 2757                    b.Property<string>("ItemId")
 2758                        .HasMaxLength(256)
 2759                        .HasColumnType("TEXT");
 2760
 2761                    b.Property<int>("LogSeverity")
 2762                        .HasColumnType("INTEGER");
 2763
 2764                    b.Property<string>("Name")
 2765                        .IsRequired()
 2766                        .HasMaxLength(512)
 2767                        .HasColumnType("TEXT");
 2768
 2769                    b.Property<string>("Overview")
 2770                        .HasMaxLength(512)
 2771                        .HasColumnType("TEXT");
 2772
 2773                    b.Property<uint>("RowVersion")
 2774                        .IsConcurrencyToken()
 2775                        .HasColumnType("INTEGER");
 2776
 2777                    b.Property<string>("ShortOverview")
 2778                        .HasMaxLength(512)
 2779                        .HasColumnType("TEXT");
 2780
 2781                    b.Property<string>("Type")
 2782                        .IsRequired()
 2783                        .HasMaxLength(256)
 2784                        .HasColumnType("TEXT");
 2785
 2786                    b.Property<Guid>("UserId")
 2787                        .HasColumnType("TEXT");
 2788
 2789                    b.HasKey("Id");
 2790
 2791                    b.HasIndex("DateCreated");
 2792
 2793                    b.ToTable("ActivityLogs");
 2794                });
 95
 2796            modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
 2797                {
 2798                    b.Property<int>("Id")
 2799                        .ValueGeneratedOnAdd()
 27100                        .HasColumnType("INTEGER");
 27101
 27102                    b.Property<string>("Client")
 27103                        .IsRequired()
 27104                        .HasMaxLength(32)
 27105                        .HasColumnType("TEXT");
 27106
 27107                    b.Property<Guid>("ItemId")
 27108                        .HasColumnType("TEXT");
 27109
 27110                    b.Property<string>("Key")
 27111                        .IsRequired()
 27112                        .HasColumnType("TEXT");
 27113
 27114                    b.Property<Guid>("UserId")
 27115                        .HasColumnType("TEXT");
 27116
 27117                    b.Property<string>("Value")
 27118                        .HasColumnType("TEXT");
 27119
 27120                    b.HasKey("Id");
 27121
 27122                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 27123                        .IsUnique();
 27124
 27125                    b.ToTable("CustomItemDisplayPreferences");
 27126                });
 127
 27128            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 27129                {
 27130                    b.Property<int>("Id")
 27131                        .ValueGeneratedOnAdd()
 27132                        .HasColumnType("INTEGER");
 27133
 27134                    b.Property<int>("ChromecastVersion")
 27135                        .HasColumnType("INTEGER");
 27136
 27137                    b.Property<string>("Client")
 27138                        .IsRequired()
 27139                        .HasMaxLength(32)
 27140                        .HasColumnType("TEXT");
 27141
 27142                    b.Property<string>("DashboardTheme")
 27143                        .HasMaxLength(32)
 27144                        .HasColumnType("TEXT");
 27145
 27146                    b.Property<bool>("EnableNextVideoInfoOverlay")
 27147                        .HasColumnType("INTEGER");
 27148
 27149                    b.Property<int?>("IndexBy")
 27150                        .HasColumnType("INTEGER");
 27151
 27152                    b.Property<Guid>("ItemId")
 27153                        .HasColumnType("TEXT");
 27154
 27155                    b.Property<int>("ScrollDirection")
 27156                        .HasColumnType("INTEGER");
 27157
 27158                    b.Property<bool>("ShowBackdrop")
 27159                        .HasColumnType("INTEGER");
 27160
 27161                    b.Property<bool>("ShowSidebar")
 27162                        .HasColumnType("INTEGER");
 27163
 27164                    b.Property<int>("SkipBackwardLength")
 27165                        .HasColumnType("INTEGER");
 27166
 27167                    b.Property<int>("SkipForwardLength")
 27168                        .HasColumnType("INTEGER");
 27169
 27170                    b.Property<string>("TvHome")
 27171                        .HasMaxLength(32)
 27172                        .HasColumnType("TEXT");
 27173
 27174                    b.Property<Guid>("UserId")
 27175                        .HasColumnType("TEXT");
 27176
 27177                    b.HasKey("Id");
 27178
 27179                    b.HasIndex("UserId", "ItemId", "Client")
 27180                        .IsUnique();
 27181
 27182                    b.ToTable("DisplayPreferences");
 27183                });
 184
 27185            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 27186                {
 27187                    b.Property<int>("Id")
 27188                        .ValueGeneratedOnAdd()
 27189                        .HasColumnType("INTEGER");
 27190
 27191                    b.Property<int>("DisplayPreferencesId")
 27192                        .HasColumnType("INTEGER");
 27193
 27194                    b.Property<int>("Order")
 27195                        .HasColumnType("INTEGER");
 27196
 27197                    b.Property<int>("Type")
 27198                        .HasColumnType("INTEGER");
 27199
 27200                    b.HasKey("Id");
 27201
 27202                    b.HasIndex("DisplayPreferencesId");
 27203
 27204                    b.ToTable("HomeSection");
 27205                });
 206
 27207            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 27208                {
 27209                    b.Property<int>("Id")
 27210                        .ValueGeneratedOnAdd()
 27211                        .HasColumnType("INTEGER");
 27212
 27213                    b.Property<DateTime>("LastModified")
 27214                        .HasColumnType("TEXT");
 27215
 27216                    b.Property<string>("Path")
 27217                        .IsRequired()
 27218                        .HasMaxLength(512)
 27219                        .HasColumnType("TEXT");
 27220
 27221                    b.Property<Guid?>("UserId")
 27222                        .HasColumnType("TEXT");
 27223
 27224                    b.HasKey("Id");
 27225
 27226                    b.HasIndex("UserId")
 27227                        .IsUnique();
 27228
 27229                    b.ToTable("ImageInfos");
 27230                });
 231
 27232            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 27233                {
 27234                    b.Property<int>("Id")
 27235                        .ValueGeneratedOnAdd()
 27236                        .HasColumnType("INTEGER");
 27237
 27238                    b.Property<string>("Client")
 27239                        .IsRequired()
 27240                        .HasMaxLength(32)
 27241                        .HasColumnType("TEXT");
 27242
 27243                    b.Property<int?>("IndexBy")
 27244                        .HasColumnType("INTEGER");
 27245
 27246                    b.Property<Guid>("ItemId")
 27247                        .HasColumnType("TEXT");
 27248
 27249                    b.Property<bool>("RememberIndexing")
 27250                        .HasColumnType("INTEGER");
 27251
 27252                    b.Property<bool>("RememberSorting")
 27253                        .HasColumnType("INTEGER");
 27254
 27255                    b.Property<string>("SortBy")
 27256                        .IsRequired()
 27257                        .HasMaxLength(64)
 27258                        .HasColumnType("TEXT");
 27259
 27260                    b.Property<int>("SortOrder")
 27261                        .HasColumnType("INTEGER");
 27262
 27263                    b.Property<Guid>("UserId")
 27264                        .HasColumnType("TEXT");
 27265
 27266                    b.Property<int>("ViewType")
 27267                        .HasColumnType("INTEGER");
 27268
 27269                    b.HasKey("Id");
 27270
 27271                    b.HasIndex("UserId");
 27272
 27273                    b.ToTable("ItemDisplayPreferences");
 27274                });
 275
 27276            modelBuilder.Entity("Jellyfin.Data.Entities.MediaSegment", b =>
 27277                {
 27278                    b.Property<Guid>("Id")
 27279                        .ValueGeneratedOnAdd()
 27280                        .HasColumnType("TEXT");
 27281
 27282                    b.Property<long>("EndTicks")
 27283                        .HasColumnType("INTEGER");
 27284
 27285                    b.Property<Guid>("ItemId")
 27286                        .HasColumnType("TEXT");
 27287
 27288                    b.Property<string>("SegmentProviderId")
 27289                        .IsRequired()
 27290                        .HasColumnType("TEXT");
 27291
 27292                    b.Property<long>("StartTicks")
 27293                        .HasColumnType("INTEGER");
 27294
 27295                    b.Property<int>("Type")
 27296                        .HasColumnType("INTEGER");
 27297
 27298                    b.HasKey("Id");
 27299
 27300                    b.ToTable("MediaSegments");
 27301                });
 302
 27303            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 27304                {
 27305                    b.Property<int>("Id")
 27306                        .ValueGeneratedOnAdd()
 27307                        .HasColumnType("INTEGER");
 27308
 27309                    b.Property<int>("Kind")
 27310                        .HasColumnType("INTEGER");
 27311
 27312                    b.Property<Guid?>("Permission_Permissions_Guid")
 27313                        .HasColumnType("TEXT");
 27314
 27315                    b.Property<uint>("RowVersion")
 27316                        .IsConcurrencyToken()
 27317                        .HasColumnType("INTEGER");
 27318
 27319                    b.Property<Guid?>("UserId")
 27320                        .HasColumnType("TEXT");
 27321
 27322                    b.Property<bool>("Value")
 27323                        .HasColumnType("INTEGER");
 27324
 27325                    b.HasKey("Id");
 27326
 27327                    b.HasIndex("UserId", "Kind")
 27328                        .IsUnique()
 27329                        .HasFilter("[UserId] IS NOT NULL");
 27330
 27331                    b.ToTable("Permissions");
 27332                });
 333
 27334            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 27335                {
 27336                    b.Property<int>("Id")
 27337                        .ValueGeneratedOnAdd()
 27338                        .HasColumnType("INTEGER");
 27339
 27340                    b.Property<int>("Kind")
 27341                        .HasColumnType("INTEGER");
 27342
 27343                    b.Property<Guid?>("Preference_Preferences_Guid")
 27344                        .HasColumnType("TEXT");
 27345
 27346                    b.Property<uint>("RowVersion")
 27347                        .IsConcurrencyToken()
 27348                        .HasColumnType("INTEGER");
 27349
 27350                    b.Property<Guid?>("UserId")
 27351                        .HasColumnType("TEXT");
 27352
 27353                    b.Property<string>("Value")
 27354                        .IsRequired()
 27355                        .HasMaxLength(65535)
 27356                        .HasColumnType("TEXT");
 27357
 27358                    b.HasKey("Id");
 27359
 27360                    b.HasIndex("UserId", "Kind")
 27361                        .IsUnique()
 27362                        .HasFilter("[UserId] IS NOT NULL");
 27363
 27364                    b.ToTable("Preferences");
 27365                });
 366
 27367            modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
 27368                {
 27369                    b.Property<int>("Id")
 27370                        .ValueGeneratedOnAdd()
 27371                        .HasColumnType("INTEGER");
 27372
 27373                    b.Property<string>("AccessToken")
 27374                        .IsRequired()
 27375                        .HasColumnType("TEXT");
 27376
 27377                    b.Property<DateTime>("DateCreated")
 27378                        .HasColumnType("TEXT");
 27379
 27380                    b.Property<DateTime>("DateLastActivity")
 27381                        .HasColumnType("TEXT");
 27382
 27383                    b.Property<string>("Name")
 27384                        .IsRequired()
 27385                        .HasMaxLength(64)
 27386                        .HasColumnType("TEXT");
 27387
 27388                    b.HasKey("Id");
 27389
 27390                    b.HasIndex("AccessToken")
 27391                        .IsUnique();
 27392
 27393                    b.ToTable("ApiKeys");
 27394                });
 395
 27396            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 27397                {
 27398                    b.Property<int>("Id")
 27399                        .ValueGeneratedOnAdd()
 27400                        .HasColumnType("INTEGER");
 27401
 27402                    b.Property<string>("AccessToken")
 27403                        .IsRequired()
 27404                        .HasColumnType("TEXT");
 27405
 27406                    b.Property<string>("AppName")
 27407                        .IsRequired()
 27408                        .HasMaxLength(64)
 27409                        .HasColumnType("TEXT");
 27410
 27411                    b.Property<string>("AppVersion")
 27412                        .IsRequired()
 27413                        .HasMaxLength(32)
 27414                        .HasColumnType("TEXT");
 27415
 27416                    b.Property<DateTime>("DateCreated")
 27417                        .HasColumnType("TEXT");
 27418
 27419                    b.Property<DateTime>("DateLastActivity")
 27420                        .HasColumnType("TEXT");
 27421
 27422                    b.Property<DateTime>("DateModified")
 27423                        .HasColumnType("TEXT");
 27424
 27425                    b.Property<string>("DeviceId")
 27426                        .IsRequired()
 27427                        .HasMaxLength(256)
 27428                        .HasColumnType("TEXT");
 27429
 27430                    b.Property<string>("DeviceName")
 27431                        .IsRequired()
 27432                        .HasMaxLength(64)
 27433                        .HasColumnType("TEXT");
 27434
 27435                    b.Property<bool>("IsActive")
 27436                        .HasColumnType("INTEGER");
 27437
 27438                    b.Property<Guid>("UserId")
 27439                        .HasColumnType("TEXT");
 27440
 27441                    b.HasKey("Id");
 27442
 27443                    b.HasIndex("DeviceId");
 27444
 27445                    b.HasIndex("AccessToken", "DateLastActivity");
 27446
 27447                    b.HasIndex("DeviceId", "DateLastActivity");
 27448
 27449                    b.HasIndex("UserId", "DeviceId");
 27450
 27451                    b.ToTable("Devices");
 27452                });
 453
 27454            modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
 27455                {
 27456                    b.Property<int>("Id")
 27457                        .ValueGeneratedOnAdd()
 27458                        .HasColumnType("INTEGER");
 27459
 27460                    b.Property<string>("CustomName")
 27461                        .HasColumnType("TEXT");
 27462
 27463                    b.Property<string>("DeviceId")
 27464                        .IsRequired()
 27465                        .HasColumnType("TEXT");
 27466
 27467                    b.HasKey("Id");
 27468
 27469                    b.HasIndex("DeviceId")
 27470                        .IsUnique();
 27471
 27472                    b.ToTable("DeviceOptions");
 27473                });
 474
 27475            modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
 27476                {
 27477                    b.Property<Guid>("ItemId")
 27478                        .HasColumnType("TEXT");
 27479
 27480                    b.Property<int>("Width")
 27481                        .HasColumnType("INTEGER");
 27482
 27483                    b.Property<int>("Bandwidth")
 27484                        .HasColumnType("INTEGER");
 27485
 27486                    b.Property<int>("Height")
 27487                        .HasColumnType("INTEGER");
 27488
 27489                    b.Property<int>("Interval")
 27490                        .HasColumnType("INTEGER");
 27491
 27492                    b.Property<int>("ThumbnailCount")
 27493                        .HasColumnType("INTEGER");
 27494
 27495                    b.Property<int>("TileHeight")
 27496                        .HasColumnType("INTEGER");
 27497
 27498                    b.Property<int>("TileWidth")
 27499                        .HasColumnType("INTEGER");
 27500
 27501                    b.HasKey("ItemId", "Width");
 27502
 27503                    b.ToTable("TrickplayInfos");
 27504                });
 505
 27506            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 27507                {
 27508                    b.Property<Guid>("Id")
 27509                        .ValueGeneratedOnAdd()
 27510                        .HasColumnType("TEXT");
 27511
 27512                    b.Property<string>("AudioLanguagePreference")
 27513                        .HasMaxLength(255)
 27514                        .HasColumnType("TEXT");
 27515
 27516                    b.Property<string>("AuthenticationProviderId")
 27517                        .IsRequired()
 27518                        .HasMaxLength(255)
 27519                        .HasColumnType("TEXT");
 27520
 27521                    b.Property<string>("CastReceiverId")
 27522                        .HasMaxLength(32)
 27523                        .HasColumnType("TEXT");
 27524
 27525                    b.Property<bool>("DisplayCollectionsView")
 27526                        .HasColumnType("INTEGER");
 27527
 27528                    b.Property<bool>("DisplayMissingEpisodes")
 27529                        .HasColumnType("INTEGER");
 27530
 27531                    b.Property<bool>("EnableAutoLogin")
 27532                        .HasColumnType("INTEGER");
 27533
 27534                    b.Property<bool>("EnableLocalPassword")
 27535                        .HasColumnType("INTEGER");
 27536
 27537                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 27538                        .HasColumnType("INTEGER");
 27539
 27540                    b.Property<bool>("EnableUserPreferenceAccess")
 27541                        .HasColumnType("INTEGER");
 27542
 27543                    b.Property<bool>("HidePlayedInLatest")
 27544                        .HasColumnType("INTEGER");
 27545
 27546                    b.Property<long>("InternalId")
 27547                        .HasColumnType("INTEGER");
 27548
 27549                    b.Property<int>("InvalidLoginAttemptCount")
 27550                        .HasColumnType("INTEGER");
 27551
 27552                    b.Property<DateTime?>("LastActivityDate")
 27553                        .HasColumnType("TEXT");
 27554
 27555                    b.Property<DateTime?>("LastLoginDate")
 27556                        .HasColumnType("TEXT");
 27557
 27558                    b.Property<int?>("LoginAttemptsBeforeLockout")
 27559                        .HasColumnType("INTEGER");
 27560
 27561                    b.Property<int>("MaxActiveSessions")
 27562                        .HasColumnType("INTEGER");
 27563
 27564                    b.Property<int?>("MaxParentalAgeRating")
 27565                        .HasColumnType("INTEGER");
 27566
 27567                    b.Property<bool>("MustUpdatePassword")
 27568                        .HasColumnType("INTEGER");
 27569
 27570                    b.Property<string>("Password")
 27571                        .HasMaxLength(65535)
 27572                        .HasColumnType("TEXT");
 27573
 27574                    b.Property<string>("PasswordResetProviderId")
 27575                        .IsRequired()
 27576                        .HasMaxLength(255)
 27577                        .HasColumnType("TEXT");
 27578
 27579                    b.Property<bool>("PlayDefaultAudioTrack")
 27580                        .HasColumnType("INTEGER");
 27581
 27582                    b.Property<bool>("RememberAudioSelections")
 27583                        .HasColumnType("INTEGER");
 27584
 27585                    b.Property<bool>("RememberSubtitleSelections")
 27586                        .HasColumnType("INTEGER");
 27587
 27588                    b.Property<int?>("RemoteClientBitrateLimit")
 27589                        .HasColumnType("INTEGER");
 27590
 27591                    b.Property<uint>("RowVersion")
 27592                        .IsConcurrencyToken()
 27593                        .HasColumnType("INTEGER");
 27594
 27595                    b.Property<string>("SubtitleLanguagePreference")
 27596                        .HasMaxLength(255)
 27597                        .HasColumnType("TEXT");
 27598
 27599                    b.Property<int>("SubtitleMode")
 27600                        .HasColumnType("INTEGER");
 27601
 27602                    b.Property<int>("SyncPlayAccess")
 27603                        .HasColumnType("INTEGER");
 27604
 27605                    b.Property<string>("Username")
 27606                        .IsRequired()
 27607                        .HasMaxLength(255)
 27608                        .HasColumnType("TEXT")
 27609                        .UseCollation("NOCASE");
 27610
 27611                    b.HasKey("Id");
 27612
 27613                    b.HasIndex("Username")
 27614                        .IsUnique();
 27615
 27616                    b.ToTable("Users");
 27617                });
 618
 27619            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 27620                {
 27621                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27622                        .WithMany("AccessSchedules")
 27623                        .HasForeignKey("UserId")
 27624                        .OnDelete(DeleteBehavior.Cascade)
 27625                        .IsRequired();
 27626                });
 627
 27628            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 27629                {
 27630                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27631                        .WithMany("DisplayPreferences")
 27632                        .HasForeignKey("UserId")
 27633                        .OnDelete(DeleteBehavior.Cascade)
 27634                        .IsRequired();
 27635                });
 636
 27637            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 27638                {
 27639                    b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
 27640                        .WithMany("HomeSections")
 27641                        .HasForeignKey("DisplayPreferencesId")
 27642                        .OnDelete(DeleteBehavior.Cascade)
 27643                        .IsRequired();
 27644                });
 645
 27646            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 27647                {
 27648                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27649                        .WithOne("ProfileImage")
 27650                        .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
 27651                        .OnDelete(DeleteBehavior.Cascade);
 27652                });
 653
 27654            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 27655                {
 27656                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27657                        .WithMany("ItemDisplayPreferences")
 27658                        .HasForeignKey("UserId")
 27659                        .OnDelete(DeleteBehavior.Cascade)
 27660                        .IsRequired();
 27661                });
 662
 27663            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 27664                {
 27665                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27666                        .WithMany("Permissions")
 27667                        .HasForeignKey("UserId")
 27668                        .OnDelete(DeleteBehavior.Cascade);
 27669                });
 670
 27671            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 27672                {
 27673                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27674                        .WithMany("Preferences")
 27675                        .HasForeignKey("UserId")
 27676                        .OnDelete(DeleteBehavior.Cascade);
 27677                });
 678
 27679            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 27680                {
 27681                    b.HasOne("Jellyfin.Data.Entities.User", "User")
 27682                        .WithMany()
 27683                        .HasForeignKey("UserId")
 27684                        .OnDelete(DeleteBehavior.Cascade)
 27685                        .IsRequired();
 27686
 27687                    b.Navigation("User");
 27688                });
 689
 27690            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 27691                {
 27692                    b.Navigation("HomeSections");
 27693                });
 694
 27695            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 27696                {
 27697                    b.Navigation("AccessSchedules");
 27698
 27699                    b.Navigation("DisplayPreferences");
 27700
 27701                    b.Navigation("ItemDisplayPreferences");
 27702
 27703                    b.Navigation("Permissions");
 27704
 27705                    b.Navigation("Preferences");
 27706
 27707                    b.Navigation("ProfileImage");
 27708                });
 709#pragma warning restore 612, 618
 27710        }
 711    }
 712}