< Summary - Jellyfin

Line coverage
99%
Covered lines: 616
Uncovered lines: 5
Coverable lines: 621
Total lines: 685
Line coverage: 99.1%
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/16/2026 - 12:15:55 AM Line coverage: 99.1% (616/621) Total lines: 685

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/20221022080052_AddIndexActivityLogsDateCreated.cs

#LineLine coverage
 1#pragma warning disable CS1591, SA1601
 2
 3using Microsoft.EntityFrameworkCore.Migrations;
 4
 5#nullable disable
 6
 7namespace Jellyfin.Server.Implementations.Migrations
 8{
 9    public partial class AddIndexActivityLogsDateCreated : Migration
 10    {
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 2713            migrationBuilder.CreateIndex(
 2714                name: "IX_ActivityLogs_DateCreated",
 2715                schema: "jellyfin",
 2716                table: "ActivityLogs",
 2717                column: "DateCreated");
 2718        }
 19
 20        protected override void Down(MigrationBuilder migrationBuilder)
 21        {
 022            migrationBuilder.DropIndex(
 023                name: "IX_ActivityLogs_DateCreated",
 024                schema: "jellyfin",
 025                table: "ActivityLogs");
 026        }
 27    }
 28}

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20221022080052_AddIndexActivityLogsDateCreated.Designer.cs

#LineLine coverage
 1#pragma warning disable CS1591
 2
 3// <auto-generated />
 4using System;
 5using Jellyfin.Database.Implementations;
 6using Microsoft.EntityFrameworkCore;
 7using Microsoft.EntityFrameworkCore.Infrastructure;
 8using Microsoft.EntityFrameworkCore.Migrations;
 9using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 10
 11#nullable disable
 12
 13namespace Jellyfin.Server.Implementations.Migrations
 14{
 15    [DbContext(typeof(JellyfinDbContext))]
 16    [Migration("20221022080052_AddIndexActivityLogsDateCreated")]
 17    partial class AddIndexActivityLogsDateCreated
 18    {
 19        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 20        {
 21#pragma warning disable 612, 618
 2722            modelBuilder
 2723                .HasDefaultSchema("jellyfin")
 2724                .HasAnnotation("ProductVersion", "6.0.9");
 25
 2726            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 2727                {
 2728                    b.Property<int>("Id")
 2729                        .ValueGeneratedOnAdd()
 2730                        .HasColumnType("INTEGER");
 2731
 2732                    b.Property<int>("DayOfWeek")
 2733                        .HasColumnType("INTEGER");
 2734
 2735                    b.Property<double>("EndHour")
 2736                        .HasColumnType("REAL");
 2737
 2738                    b.Property<double>("StartHour")
 2739                        .HasColumnType("REAL");
 2740
 2741                    b.Property<Guid>("UserId")
 2742                        .HasColumnType("TEXT");
 2743
 2744                    b.HasKey("Id");
 2745
 2746                    b.HasIndex("UserId");
 2747
 2748                    b.ToTable("AccessSchedules", "jellyfin");
 2749                });
 50
 2751            modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
 2752                {
 2753                    b.Property<int>("Id")
 2754                        .ValueGeneratedOnAdd()
 2755                        .HasColumnType("INTEGER");
 2756
 2757                    b.Property<DateTime>("DateCreated")
 2758                        .HasColumnType("TEXT");
 2759
 2760                    b.Property<string>("ItemId")
 2761                        .HasMaxLength(256)
 2762                        .HasColumnType("TEXT");
 2763
 2764                    b.Property<int>("LogSeverity")
 2765                        .HasColumnType("INTEGER");
 2766
 2767                    b.Property<string>("Name")
 2768                        .IsRequired()
 2769                        .HasMaxLength(512)
 2770                        .HasColumnType("TEXT");
 2771
 2772                    b.Property<string>("Overview")
 2773                        .HasMaxLength(512)
 2774                        .HasColumnType("TEXT");
 2775
 2776                    b.Property<uint>("RowVersion")
 2777                        .IsConcurrencyToken()
 2778                        .HasColumnType("INTEGER");
 2779
 2780                    b.Property<string>("ShortOverview")
 2781                        .HasMaxLength(512)
 2782                        .HasColumnType("TEXT");
 2783
 2784                    b.Property<string>("Type")
 2785                        .IsRequired()
 2786                        .HasMaxLength(256)
 2787                        .HasColumnType("TEXT");
 2788
 2789                    b.Property<Guid>("UserId")
 2790                        .HasColumnType("TEXT");
 2791
 2792                    b.HasKey("Id");
 2793
 2794                    b.HasIndex("DateCreated");
 2795
 2796                    b.ToTable("ActivityLogs", "jellyfin");
 2797                });
 98
 2799            modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
 27100                {
 27101                    b.Property<int>("Id")
 27102                        .ValueGeneratedOnAdd()
 27103                        .HasColumnType("INTEGER");
 27104
 27105                    b.Property<string>("Client")
 27106                        .IsRequired()
 27107                        .HasMaxLength(32)
 27108                        .HasColumnType("TEXT");
 27109
 27110                    b.Property<Guid>("ItemId")
 27111                        .HasColumnType("TEXT");
 27112
 27113                    b.Property<string>("Key")
 27114                        .IsRequired()
 27115                        .HasColumnType("TEXT");
 27116
 27117                    b.Property<Guid>("UserId")
 27118                        .HasColumnType("TEXT");
 27119
 27120                    b.Property<string>("Value")
 27121                        .HasColumnType("TEXT");
 27122
 27123                    b.HasKey("Id");
 27124
 27125                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 27126                        .IsUnique();
 27127
 27128                    b.ToTable("CustomItemDisplayPreferences", "jellyfin");
 27129                });
 130
 27131            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 27132                {
 27133                    b.Property<int>("Id")
 27134                        .ValueGeneratedOnAdd()
 27135                        .HasColumnType("INTEGER");
 27136
 27137                    b.Property<int>("ChromecastVersion")
 27138                        .HasColumnType("INTEGER");
 27139
 27140                    b.Property<string>("Client")
 27141                        .IsRequired()
 27142                        .HasMaxLength(32)
 27143                        .HasColumnType("TEXT");
 27144
 27145                    b.Property<string>("DashboardTheme")
 27146                        .HasMaxLength(32)
 27147                        .HasColumnType("TEXT");
 27148
 27149                    b.Property<bool>("EnableNextVideoInfoOverlay")
 27150                        .HasColumnType("INTEGER");
 27151
 27152                    b.Property<int?>("IndexBy")
 27153                        .HasColumnType("INTEGER");
 27154
 27155                    b.Property<Guid>("ItemId")
 27156                        .HasColumnType("TEXT");
 27157
 27158                    b.Property<int>("ScrollDirection")
 27159                        .HasColumnType("INTEGER");
 27160
 27161                    b.Property<bool>("ShowBackdrop")
 27162                        .HasColumnType("INTEGER");
 27163
 27164                    b.Property<bool>("ShowSidebar")
 27165                        .HasColumnType("INTEGER");
 27166
 27167                    b.Property<int>("SkipBackwardLength")
 27168                        .HasColumnType("INTEGER");
 27169
 27170                    b.Property<int>("SkipForwardLength")
 27171                        .HasColumnType("INTEGER");
 27172
 27173                    b.Property<string>("TvHome")
 27174                        .HasMaxLength(32)
 27175                        .HasColumnType("TEXT");
 27176
 27177                    b.Property<Guid>("UserId")
 27178                        .HasColumnType("TEXT");
 27179
 27180                    b.HasKey("Id");
 27181
 27182                    b.HasIndex("UserId", "ItemId", "Client")
 27183                        .IsUnique();
 27184
 27185                    b.ToTable("DisplayPreferences", "jellyfin");
 27186                });
 187
 27188            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 27189                {
 27190                    b.Property<int>("Id")
 27191                        .ValueGeneratedOnAdd()
 27192                        .HasColumnType("INTEGER");
 27193
 27194                    b.Property<int>("DisplayPreferencesId")
 27195                        .HasColumnType("INTEGER");
 27196
 27197                    b.Property<int>("Order")
 27198                        .HasColumnType("INTEGER");
 27199
 27200                    b.Property<int>("Type")
 27201                        .HasColumnType("INTEGER");
 27202
 27203                    b.HasKey("Id");
 27204
 27205                    b.HasIndex("DisplayPreferencesId");
 27206
 27207                    b.ToTable("HomeSection", "jellyfin");
 27208                });
 209
 27210            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 27211                {
 27212                    b.Property<int>("Id")
 27213                        .ValueGeneratedOnAdd()
 27214                        .HasColumnType("INTEGER");
 27215
 27216                    b.Property<DateTime>("LastModified")
 27217                        .HasColumnType("TEXT");
 27218
 27219                    b.Property<string>("Path")
 27220                        .IsRequired()
 27221                        .HasMaxLength(512)
 27222                        .HasColumnType("TEXT");
 27223
 27224                    b.Property<Guid?>("UserId")
 27225                        .HasColumnType("TEXT");
 27226
 27227                    b.HasKey("Id");
 27228
 27229                    b.HasIndex("UserId")
 27230                        .IsUnique();
 27231
 27232                    b.ToTable("ImageInfos", "jellyfin");
 27233                });
 234
 27235            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 27236                {
 27237                    b.Property<int>("Id")
 27238                        .ValueGeneratedOnAdd()
 27239                        .HasColumnType("INTEGER");
 27240
 27241                    b.Property<string>("Client")
 27242                        .IsRequired()
 27243                        .HasMaxLength(32)
 27244                        .HasColumnType("TEXT");
 27245
 27246                    b.Property<int?>("IndexBy")
 27247                        .HasColumnType("INTEGER");
 27248
 27249                    b.Property<Guid>("ItemId")
 27250                        .HasColumnType("TEXT");
 27251
 27252                    b.Property<bool>("RememberIndexing")
 27253                        .HasColumnType("INTEGER");
 27254
 27255                    b.Property<bool>("RememberSorting")
 27256                        .HasColumnType("INTEGER");
 27257
 27258                    b.Property<string>("SortBy")
 27259                        .IsRequired()
 27260                        .HasMaxLength(64)
 27261                        .HasColumnType("TEXT");
 27262
 27263                    b.Property<int>("SortOrder")
 27264                        .HasColumnType("INTEGER");
 27265
 27266                    b.Property<Guid>("UserId")
 27267                        .HasColumnType("TEXT");
 27268
 27269                    b.Property<int>("ViewType")
 27270                        .HasColumnType("INTEGER");
 27271
 27272                    b.HasKey("Id");
 27273
 27274                    b.HasIndex("UserId");
 27275
 27276                    b.ToTable("ItemDisplayPreferences", "jellyfin");
 27277                });
 278
 27279            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 27280                {
 27281                    b.Property<int>("Id")
 27282                        .ValueGeneratedOnAdd()
 27283                        .HasColumnType("INTEGER");
 27284
 27285                    b.Property<int>("Kind")
 27286                        .HasColumnType("INTEGER");
 27287
 27288                    b.Property<Guid?>("Permission_Permissions_Guid")
 27289                        .HasColumnType("TEXT");
 27290
 27291                    b.Property<uint>("RowVersion")
 27292                        .IsConcurrencyToken()
 27293                        .HasColumnType("INTEGER");
 27294
 27295                    b.Property<Guid?>("UserId")
 27296                        .HasColumnType("TEXT");
 27297
 27298                    b.Property<bool>("Value")
 27299                        .HasColumnType("INTEGER");
 27300
 27301                    b.HasKey("Id");
 27302
 27303                    b.HasIndex("UserId", "Kind")
 27304                        .IsUnique()
 27305                        .HasFilter("[UserId] IS NOT NULL");
 27306
 27307                    b.ToTable("Permissions", "jellyfin");
 27308                });
 309
 27310            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 27311                {
 27312                    b.Property<int>("Id")
 27313                        .ValueGeneratedOnAdd()
 27314                        .HasColumnType("INTEGER");
 27315
 27316                    b.Property<int>("Kind")
 27317                        .HasColumnType("INTEGER");
 27318
 27319                    b.Property<Guid?>("Preference_Preferences_Guid")
 27320                        .HasColumnType("TEXT");
 27321
 27322                    b.Property<uint>("RowVersion")
 27323                        .IsConcurrencyToken()
 27324                        .HasColumnType("INTEGER");
 27325
 27326                    b.Property<Guid?>("UserId")
 27327                        .HasColumnType("TEXT");
 27328
 27329                    b.Property<string>("Value")
 27330                        .IsRequired()
 27331                        .HasMaxLength(65535)
 27332                        .HasColumnType("TEXT");
 27333
 27334                    b.HasKey("Id");
 27335
 27336                    b.HasIndex("UserId", "Kind")
 27337                        .IsUnique()
 27338                        .HasFilter("[UserId] IS NOT NULL");
 27339
 27340                    b.ToTable("Preferences", "jellyfin");
 27341                });
 342
 27343            modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
 27344                {
 27345                    b.Property<int>("Id")
 27346                        .ValueGeneratedOnAdd()
 27347                        .HasColumnType("INTEGER");
 27348
 27349                    b.Property<string>("AccessToken")
 27350                        .IsRequired()
 27351                        .HasColumnType("TEXT");
 27352
 27353                    b.Property<DateTime>("DateCreated")
 27354                        .HasColumnType("TEXT");
 27355
 27356                    b.Property<DateTime>("DateLastActivity")
 27357                        .HasColumnType("TEXT");
 27358
 27359                    b.Property<string>("Name")
 27360                        .IsRequired()
 27361                        .HasMaxLength(64)
 27362                        .HasColumnType("TEXT");
 27363
 27364                    b.HasKey("Id");
 27365
 27366                    b.HasIndex("AccessToken")
 27367                        .IsUnique();
 27368
 27369                    b.ToTable("ApiKeys", "jellyfin");
 27370                });
 371
 27372            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 27373                {
 27374                    b.Property<int>("Id")
 27375                        .ValueGeneratedOnAdd()
 27376                        .HasColumnType("INTEGER");
 27377
 27378                    b.Property<string>("AccessToken")
 27379                        .IsRequired()
 27380                        .HasColumnType("TEXT");
 27381
 27382                    b.Property<string>("AppName")
 27383                        .IsRequired()
 27384                        .HasMaxLength(64)
 27385                        .HasColumnType("TEXT");
 27386
 27387                    b.Property<string>("AppVersion")
 27388                        .IsRequired()
 27389                        .HasMaxLength(32)
 27390                        .HasColumnType("TEXT");
 27391
 27392                    b.Property<DateTime>("DateCreated")
 27393                        .HasColumnType("TEXT");
 27394
 27395                    b.Property<DateTime>("DateLastActivity")
 27396                        .HasColumnType("TEXT");
 27397
 27398                    b.Property<DateTime>("DateModified")
 27399                        .HasColumnType("TEXT");
 27400
 27401                    b.Property<string>("DeviceId")
 27402                        .IsRequired()
 27403                        .HasMaxLength(256)
 27404                        .HasColumnType("TEXT");
 27405
 27406                    b.Property<string>("DeviceName")
 27407                        .IsRequired()
 27408                        .HasMaxLength(64)
 27409                        .HasColumnType("TEXT");
 27410
 27411                    b.Property<bool>("IsActive")
 27412                        .HasColumnType("INTEGER");
 27413
 27414                    b.Property<Guid>("UserId")
 27415                        .HasColumnType("TEXT");
 27416
 27417                    b.HasKey("Id");
 27418
 27419                    b.HasIndex("DeviceId");
 27420
 27421                    b.HasIndex("AccessToken", "DateLastActivity");
 27422
 27423                    b.HasIndex("DeviceId", "DateLastActivity");
 27424
 27425                    b.HasIndex("UserId", "DeviceId");
 27426
 27427                    b.ToTable("Devices", "jellyfin");
 27428                });
 429
 27430            modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
 27431                {
 27432                    b.Property<int>("Id")
 27433                        .ValueGeneratedOnAdd()
 27434                        .HasColumnType("INTEGER");
 27435
 27436                    b.Property<string>("CustomName")
 27437                        .HasColumnType("TEXT");
 27438
 27439                    b.Property<string>("DeviceId")
 27440                        .IsRequired()
 27441                        .HasColumnType("TEXT");
 27442
 27443                    b.HasKey("Id");
 27444
 27445                    b.HasIndex("DeviceId")
 27446                        .IsUnique();
 27447
 27448                    b.ToTable("DeviceOptions", "jellyfin");
 27449                });
 450
 27451            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 27452                {
 27453                    b.Property<Guid>("Id")
 27454                        .ValueGeneratedOnAdd()
 27455                        .HasColumnType("TEXT");
 27456
 27457                    b.Property<string>("AudioLanguagePreference")
 27458                        .HasMaxLength(255)
 27459                        .HasColumnType("TEXT");
 27460
 27461                    b.Property<string>("AuthenticationProviderId")
 27462                        .IsRequired()
 27463                        .HasMaxLength(255)
 27464                        .HasColumnType("TEXT");
 27465
 27466                    b.Property<bool>("DisplayCollectionsView")
 27467                        .HasColumnType("INTEGER");
 27468
 27469                    b.Property<bool>("DisplayMissingEpisodes")
 27470                        .HasColumnType("INTEGER");
 27471
 27472                    b.Property<string>("EasyPassword")
 27473                        .HasMaxLength(65535)
 27474                        .HasColumnType("TEXT");
 27475
 27476                    b.Property<bool>("EnableAutoLogin")
 27477                        .HasColumnType("INTEGER");
 27478
 27479                    b.Property<bool>("EnableLocalPassword")
 27480                        .HasColumnType("INTEGER");
 27481
 27482                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 27483                        .HasColumnType("INTEGER");
 27484
 27485                    b.Property<bool>("EnableUserPreferenceAccess")
 27486                        .HasColumnType("INTEGER");
 27487
 27488                    b.Property<bool>("HidePlayedInLatest")
 27489                        .HasColumnType("INTEGER");
 27490
 27491                    b.Property<long>("InternalId")
 27492                        .HasColumnType("INTEGER");
 27493
 27494                    b.Property<int>("InvalidLoginAttemptCount")
 27495                        .HasColumnType("INTEGER");
 27496
 27497                    b.Property<DateTime?>("LastActivityDate")
 27498                        .HasColumnType("TEXT");
 27499
 27500                    b.Property<DateTime?>("LastLoginDate")
 27501                        .HasColumnType("TEXT");
 27502
 27503                    b.Property<int?>("LoginAttemptsBeforeLockout")
 27504                        .HasColumnType("INTEGER");
 27505
 27506                    b.Property<int>("MaxActiveSessions")
 27507                        .HasColumnType("INTEGER");
 27508
 27509                    b.Property<int?>("MaxParentalAgeRating")
 27510                        .HasColumnType("INTEGER");
 27511
 27512                    b.Property<bool>("MustUpdatePassword")
 27513                        .HasColumnType("INTEGER");
 27514
 27515                    b.Property<string>("Password")
 27516                        .HasMaxLength(65535)
 27517                        .HasColumnType("TEXT");
 27518
 27519                    b.Property<string>("PasswordResetProviderId")
 27520                        .IsRequired()
 27521                        .HasMaxLength(255)
 27522                        .HasColumnType("TEXT");
 27523
 27524                    b.Property<bool>("PlayDefaultAudioTrack")
 27525                        .HasColumnType("INTEGER");
 27526
 27527                    b.Property<bool>("RememberAudioSelections")
 27528                        .HasColumnType("INTEGER");
 27529
 27530                    b.Property<bool>("RememberSubtitleSelections")
 27531                        .HasColumnType("INTEGER");
 27532
 27533                    b.Property<int?>("RemoteClientBitrateLimit")
 27534                        .HasColumnType("INTEGER");
 27535
 27536                    b.Property<uint>("RowVersion")
 27537                        .IsConcurrencyToken()
 27538                        .HasColumnType("INTEGER");
 27539
 27540                    b.Property<string>("SubtitleLanguagePreference")
 27541                        .HasMaxLength(255)
 27542                        .HasColumnType("TEXT");
 27543
 27544                    b.Property<int>("SubtitleMode")
 27545                        .HasColumnType("INTEGER");
 27546
 27547                    b.Property<int>("SyncPlayAccess")
 27548                        .HasColumnType("INTEGER");
 27549
 27550                    b.Property<string>("Username")
 27551                        .IsRequired()
 27552                        .HasMaxLength(255)
 27553                        .HasColumnType("TEXT")
 27554                        .UseCollation("NOCASE");
 27555
 27556                    b.HasKey("Id");
 27557
 27558                    b.HasIndex("Username")
 27559                        .IsUnique();
 27560
 27561                    b.ToTable("Users", "jellyfin");
 27562                });
 563
 27564            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 27565                {
 27566                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27567                        .WithMany("AccessSchedules")
 27568                        .HasForeignKey("UserId")
 27569                        .OnDelete(DeleteBehavior.Cascade)
 27570                        .IsRequired();
 27571                });
 572
 27573            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 27574                {
 27575                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27576                        .WithMany("DisplayPreferences")
 27577                        .HasForeignKey("UserId")
 27578                        .OnDelete(DeleteBehavior.Cascade)
 27579                        .IsRequired();
 27580                });
 581
 27582            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 27583                {
 27584                    b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
 27585                        .WithMany("HomeSections")
 27586                        .HasForeignKey("DisplayPreferencesId")
 27587                        .OnDelete(DeleteBehavior.Cascade)
 27588                        .IsRequired();
 27589                });
 590
 27591            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 27592                {
 27593                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27594                        .WithOne("ProfileImage")
 27595                        .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
 27596                        .OnDelete(DeleteBehavior.Cascade);
 27597                });
 598
 27599            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 27600                {
 27601                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27602                        .WithMany("ItemDisplayPreferences")
 27603                        .HasForeignKey("UserId")
 27604                        .OnDelete(DeleteBehavior.Cascade)
 27605                        .IsRequired();
 27606                });
 607
 27608            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 27609                {
 27610                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27611                        .WithMany("Permissions")
 27612                        .HasForeignKey("UserId")
 27613                        .OnDelete(DeleteBehavior.Cascade);
 27614                });
 615
 27616            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 27617                {
 27618                    b.HasOne("Jellyfin.Data.Entities.User", null)
 27619                        .WithMany("Preferences")
 27620                        .HasForeignKey("UserId")
 27621                        .OnDelete(DeleteBehavior.Cascade);
 27622                });
 623
 27624            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 27625                {
 27626                    b.HasOne("Jellyfin.Data.Entities.User", "User")
 27627                        .WithMany()
 27628                        .HasForeignKey("UserId")
 27629                        .OnDelete(DeleteBehavior.Cascade)
 27630                        .IsRequired();
 27631
 27632                    b.Navigation("User");
 27633                });
 634
 27635            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 27636                {
 27637                    b.Navigation("HomeSections");
 27638                });
 639
 27640            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 27641                {
 27642                    b.Navigation("AccessSchedules");
 27643
 27644                    b.Navigation("DisplayPreferences");
 27645
 27646                    b.Navigation("ItemDisplayPreferences");
 27647
 27648                    b.Navigation("Permissions");
 27649
 27650                    b.Navigation("Preferences");
 27651
 27652                    b.Navigation("ProfileImage");
 27653                });
 654#pragma warning restore 612, 618
 27655        }
 656    }
 657}