< 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

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/Jellyfin.Server.Implementations/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        {
 2213            migrationBuilder.CreateIndex(
 2214                name: "IX_ActivityLogs_DateCreated",
 2215                schema: "jellyfin",
 2216                table: "ActivityLogs",
 2217                column: "DateCreated");
 2218        }
 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/Jellyfin.Server.Implementations/Migrations/20221022080052_AddIndexActivityLogsDateCreated.Designer.cs

#LineLine coverage
 1#pragma warning disable CS1591
 2
 3// <auto-generated />
 4using System;
 5using Jellyfin.Server.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
 2222            modelBuilder
 2223                .HasDefaultSchema("jellyfin")
 2224                .HasAnnotation("ProductVersion", "6.0.9");
 25
 2226            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 2227                {
 2228                    b.Property<int>("Id")
 2229                        .ValueGeneratedOnAdd()
 2230                        .HasColumnType("INTEGER");
 2231
 2232                    b.Property<int>("DayOfWeek")
 2233                        .HasColumnType("INTEGER");
 2234
 2235                    b.Property<double>("EndHour")
 2236                        .HasColumnType("REAL");
 2237
 2238                    b.Property<double>("StartHour")
 2239                        .HasColumnType("REAL");
 2240
 2241                    b.Property<Guid>("UserId")
 2242                        .HasColumnType("TEXT");
 2243
 2244                    b.HasKey("Id");
 2245
 2246                    b.HasIndex("UserId");
 2247
 2248                    b.ToTable("AccessSchedules", "jellyfin");
 2249                });
 50
 2251            modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
 2252                {
 2253                    b.Property<int>("Id")
 2254                        .ValueGeneratedOnAdd()
 2255                        .HasColumnType("INTEGER");
 2256
 2257                    b.Property<DateTime>("DateCreated")
 2258                        .HasColumnType("TEXT");
 2259
 2260                    b.Property<string>("ItemId")
 2261                        .HasMaxLength(256)
 2262                        .HasColumnType("TEXT");
 2263
 2264                    b.Property<int>("LogSeverity")
 2265                        .HasColumnType("INTEGER");
 2266
 2267                    b.Property<string>("Name")
 2268                        .IsRequired()
 2269                        .HasMaxLength(512)
 2270                        .HasColumnType("TEXT");
 2271
 2272                    b.Property<string>("Overview")
 2273                        .HasMaxLength(512)
 2274                        .HasColumnType("TEXT");
 2275
 2276                    b.Property<uint>("RowVersion")
 2277                        .IsConcurrencyToken()
 2278                        .HasColumnType("INTEGER");
 2279
 2280                    b.Property<string>("ShortOverview")
 2281                        .HasMaxLength(512)
 2282                        .HasColumnType("TEXT");
 2283
 2284                    b.Property<string>("Type")
 2285                        .IsRequired()
 2286                        .HasMaxLength(256)
 2287                        .HasColumnType("TEXT");
 2288
 2289                    b.Property<Guid>("UserId")
 2290                        .HasColumnType("TEXT");
 2291
 2292                    b.HasKey("Id");
 2293
 2294                    b.HasIndex("DateCreated");
 2295
 2296                    b.ToTable("ActivityLogs", "jellyfin");
 2297                });
 98
 2299            modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
 22100                {
 22101                    b.Property<int>("Id")
 22102                        .ValueGeneratedOnAdd()
 22103                        .HasColumnType("INTEGER");
 22104
 22105                    b.Property<string>("Client")
 22106                        .IsRequired()
 22107                        .HasMaxLength(32)
 22108                        .HasColumnType("TEXT");
 22109
 22110                    b.Property<Guid>("ItemId")
 22111                        .HasColumnType("TEXT");
 22112
 22113                    b.Property<string>("Key")
 22114                        .IsRequired()
 22115                        .HasColumnType("TEXT");
 22116
 22117                    b.Property<Guid>("UserId")
 22118                        .HasColumnType("TEXT");
 22119
 22120                    b.Property<string>("Value")
 22121                        .HasColumnType("TEXT");
 22122
 22123                    b.HasKey("Id");
 22124
 22125                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 22126                        .IsUnique();
 22127
 22128                    b.ToTable("CustomItemDisplayPreferences", "jellyfin");
 22129                });
 130
 22131            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 22132                {
 22133                    b.Property<int>("Id")
 22134                        .ValueGeneratedOnAdd()
 22135                        .HasColumnType("INTEGER");
 22136
 22137                    b.Property<int>("ChromecastVersion")
 22138                        .HasColumnType("INTEGER");
 22139
 22140                    b.Property<string>("Client")
 22141                        .IsRequired()
 22142                        .HasMaxLength(32)
 22143                        .HasColumnType("TEXT");
 22144
 22145                    b.Property<string>("DashboardTheme")
 22146                        .HasMaxLength(32)
 22147                        .HasColumnType("TEXT");
 22148
 22149                    b.Property<bool>("EnableNextVideoInfoOverlay")
 22150                        .HasColumnType("INTEGER");
 22151
 22152                    b.Property<int?>("IndexBy")
 22153                        .HasColumnType("INTEGER");
 22154
 22155                    b.Property<Guid>("ItemId")
 22156                        .HasColumnType("TEXT");
 22157
 22158                    b.Property<int>("ScrollDirection")
 22159                        .HasColumnType("INTEGER");
 22160
 22161                    b.Property<bool>("ShowBackdrop")
 22162                        .HasColumnType("INTEGER");
 22163
 22164                    b.Property<bool>("ShowSidebar")
 22165                        .HasColumnType("INTEGER");
 22166
 22167                    b.Property<int>("SkipBackwardLength")
 22168                        .HasColumnType("INTEGER");
 22169
 22170                    b.Property<int>("SkipForwardLength")
 22171                        .HasColumnType("INTEGER");
 22172
 22173                    b.Property<string>("TvHome")
 22174                        .HasMaxLength(32)
 22175                        .HasColumnType("TEXT");
 22176
 22177                    b.Property<Guid>("UserId")
 22178                        .HasColumnType("TEXT");
 22179
 22180                    b.HasKey("Id");
 22181
 22182                    b.HasIndex("UserId", "ItemId", "Client")
 22183                        .IsUnique();
 22184
 22185                    b.ToTable("DisplayPreferences", "jellyfin");
 22186                });
 187
 22188            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 22189                {
 22190                    b.Property<int>("Id")
 22191                        .ValueGeneratedOnAdd()
 22192                        .HasColumnType("INTEGER");
 22193
 22194                    b.Property<int>("DisplayPreferencesId")
 22195                        .HasColumnType("INTEGER");
 22196
 22197                    b.Property<int>("Order")
 22198                        .HasColumnType("INTEGER");
 22199
 22200                    b.Property<int>("Type")
 22201                        .HasColumnType("INTEGER");
 22202
 22203                    b.HasKey("Id");
 22204
 22205                    b.HasIndex("DisplayPreferencesId");
 22206
 22207                    b.ToTable("HomeSection", "jellyfin");
 22208                });
 209
 22210            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 22211                {
 22212                    b.Property<int>("Id")
 22213                        .ValueGeneratedOnAdd()
 22214                        .HasColumnType("INTEGER");
 22215
 22216                    b.Property<DateTime>("LastModified")
 22217                        .HasColumnType("TEXT");
 22218
 22219                    b.Property<string>("Path")
 22220                        .IsRequired()
 22221                        .HasMaxLength(512)
 22222                        .HasColumnType("TEXT");
 22223
 22224                    b.Property<Guid?>("UserId")
 22225                        .HasColumnType("TEXT");
 22226
 22227                    b.HasKey("Id");
 22228
 22229                    b.HasIndex("UserId")
 22230                        .IsUnique();
 22231
 22232                    b.ToTable("ImageInfos", "jellyfin");
 22233                });
 234
 22235            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 22236                {
 22237                    b.Property<int>("Id")
 22238                        .ValueGeneratedOnAdd()
 22239                        .HasColumnType("INTEGER");
 22240
 22241                    b.Property<string>("Client")
 22242                        .IsRequired()
 22243                        .HasMaxLength(32)
 22244                        .HasColumnType("TEXT");
 22245
 22246                    b.Property<int?>("IndexBy")
 22247                        .HasColumnType("INTEGER");
 22248
 22249                    b.Property<Guid>("ItemId")
 22250                        .HasColumnType("TEXT");
 22251
 22252                    b.Property<bool>("RememberIndexing")
 22253                        .HasColumnType("INTEGER");
 22254
 22255                    b.Property<bool>("RememberSorting")
 22256                        .HasColumnType("INTEGER");
 22257
 22258                    b.Property<string>("SortBy")
 22259                        .IsRequired()
 22260                        .HasMaxLength(64)
 22261                        .HasColumnType("TEXT");
 22262
 22263                    b.Property<int>("SortOrder")
 22264                        .HasColumnType("INTEGER");
 22265
 22266                    b.Property<Guid>("UserId")
 22267                        .HasColumnType("TEXT");
 22268
 22269                    b.Property<int>("ViewType")
 22270                        .HasColumnType("INTEGER");
 22271
 22272                    b.HasKey("Id");
 22273
 22274                    b.HasIndex("UserId");
 22275
 22276                    b.ToTable("ItemDisplayPreferences", "jellyfin");
 22277                });
 278
 22279            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 22280                {
 22281                    b.Property<int>("Id")
 22282                        .ValueGeneratedOnAdd()
 22283                        .HasColumnType("INTEGER");
 22284
 22285                    b.Property<int>("Kind")
 22286                        .HasColumnType("INTEGER");
 22287
 22288                    b.Property<Guid?>("Permission_Permissions_Guid")
 22289                        .HasColumnType("TEXT");
 22290
 22291                    b.Property<uint>("RowVersion")
 22292                        .IsConcurrencyToken()
 22293                        .HasColumnType("INTEGER");
 22294
 22295                    b.Property<Guid?>("UserId")
 22296                        .HasColumnType("TEXT");
 22297
 22298                    b.Property<bool>("Value")
 22299                        .HasColumnType("INTEGER");
 22300
 22301                    b.HasKey("Id");
 22302
 22303                    b.HasIndex("UserId", "Kind")
 22304                        .IsUnique()
 22305                        .HasFilter("[UserId] IS NOT NULL");
 22306
 22307                    b.ToTable("Permissions", "jellyfin");
 22308                });
 309
 22310            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 22311                {
 22312                    b.Property<int>("Id")
 22313                        .ValueGeneratedOnAdd()
 22314                        .HasColumnType("INTEGER");
 22315
 22316                    b.Property<int>("Kind")
 22317                        .HasColumnType("INTEGER");
 22318
 22319                    b.Property<Guid?>("Preference_Preferences_Guid")
 22320                        .HasColumnType("TEXT");
 22321
 22322                    b.Property<uint>("RowVersion")
 22323                        .IsConcurrencyToken()
 22324                        .HasColumnType("INTEGER");
 22325
 22326                    b.Property<Guid?>("UserId")
 22327                        .HasColumnType("TEXT");
 22328
 22329                    b.Property<string>("Value")
 22330                        .IsRequired()
 22331                        .HasMaxLength(65535)
 22332                        .HasColumnType("TEXT");
 22333
 22334                    b.HasKey("Id");
 22335
 22336                    b.HasIndex("UserId", "Kind")
 22337                        .IsUnique()
 22338                        .HasFilter("[UserId] IS NOT NULL");
 22339
 22340                    b.ToTable("Preferences", "jellyfin");
 22341                });
 342
 22343            modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
 22344                {
 22345                    b.Property<int>("Id")
 22346                        .ValueGeneratedOnAdd()
 22347                        .HasColumnType("INTEGER");
 22348
 22349                    b.Property<string>("AccessToken")
 22350                        .IsRequired()
 22351                        .HasColumnType("TEXT");
 22352
 22353                    b.Property<DateTime>("DateCreated")
 22354                        .HasColumnType("TEXT");
 22355
 22356                    b.Property<DateTime>("DateLastActivity")
 22357                        .HasColumnType("TEXT");
 22358
 22359                    b.Property<string>("Name")
 22360                        .IsRequired()
 22361                        .HasMaxLength(64)
 22362                        .HasColumnType("TEXT");
 22363
 22364                    b.HasKey("Id");
 22365
 22366                    b.HasIndex("AccessToken")
 22367                        .IsUnique();
 22368
 22369                    b.ToTable("ApiKeys", "jellyfin");
 22370                });
 371
 22372            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 22373                {
 22374                    b.Property<int>("Id")
 22375                        .ValueGeneratedOnAdd()
 22376                        .HasColumnType("INTEGER");
 22377
 22378                    b.Property<string>("AccessToken")
 22379                        .IsRequired()
 22380                        .HasColumnType("TEXT");
 22381
 22382                    b.Property<string>("AppName")
 22383                        .IsRequired()
 22384                        .HasMaxLength(64)
 22385                        .HasColumnType("TEXT");
 22386
 22387                    b.Property<string>("AppVersion")
 22388                        .IsRequired()
 22389                        .HasMaxLength(32)
 22390                        .HasColumnType("TEXT");
 22391
 22392                    b.Property<DateTime>("DateCreated")
 22393                        .HasColumnType("TEXT");
 22394
 22395                    b.Property<DateTime>("DateLastActivity")
 22396                        .HasColumnType("TEXT");
 22397
 22398                    b.Property<DateTime>("DateModified")
 22399                        .HasColumnType("TEXT");
 22400
 22401                    b.Property<string>("DeviceId")
 22402                        .IsRequired()
 22403                        .HasMaxLength(256)
 22404                        .HasColumnType("TEXT");
 22405
 22406                    b.Property<string>("DeviceName")
 22407                        .IsRequired()
 22408                        .HasMaxLength(64)
 22409                        .HasColumnType("TEXT");
 22410
 22411                    b.Property<bool>("IsActive")
 22412                        .HasColumnType("INTEGER");
 22413
 22414                    b.Property<Guid>("UserId")
 22415                        .HasColumnType("TEXT");
 22416
 22417                    b.HasKey("Id");
 22418
 22419                    b.HasIndex("DeviceId");
 22420
 22421                    b.HasIndex("AccessToken", "DateLastActivity");
 22422
 22423                    b.HasIndex("DeviceId", "DateLastActivity");
 22424
 22425                    b.HasIndex("UserId", "DeviceId");
 22426
 22427                    b.ToTable("Devices", "jellyfin");
 22428                });
 429
 22430            modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
 22431                {
 22432                    b.Property<int>("Id")
 22433                        .ValueGeneratedOnAdd()
 22434                        .HasColumnType("INTEGER");
 22435
 22436                    b.Property<string>("CustomName")
 22437                        .HasColumnType("TEXT");
 22438
 22439                    b.Property<string>("DeviceId")
 22440                        .IsRequired()
 22441                        .HasColumnType("TEXT");
 22442
 22443                    b.HasKey("Id");
 22444
 22445                    b.HasIndex("DeviceId")
 22446                        .IsUnique();
 22447
 22448                    b.ToTable("DeviceOptions", "jellyfin");
 22449                });
 450
 22451            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 22452                {
 22453                    b.Property<Guid>("Id")
 22454                        .ValueGeneratedOnAdd()
 22455                        .HasColumnType("TEXT");
 22456
 22457                    b.Property<string>("AudioLanguagePreference")
 22458                        .HasMaxLength(255)
 22459                        .HasColumnType("TEXT");
 22460
 22461                    b.Property<string>("AuthenticationProviderId")
 22462                        .IsRequired()
 22463                        .HasMaxLength(255)
 22464                        .HasColumnType("TEXT");
 22465
 22466                    b.Property<bool>("DisplayCollectionsView")
 22467                        .HasColumnType("INTEGER");
 22468
 22469                    b.Property<bool>("DisplayMissingEpisodes")
 22470                        .HasColumnType("INTEGER");
 22471
 22472                    b.Property<string>("EasyPassword")
 22473                        .HasMaxLength(65535)
 22474                        .HasColumnType("TEXT");
 22475
 22476                    b.Property<bool>("EnableAutoLogin")
 22477                        .HasColumnType("INTEGER");
 22478
 22479                    b.Property<bool>("EnableLocalPassword")
 22480                        .HasColumnType("INTEGER");
 22481
 22482                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 22483                        .HasColumnType("INTEGER");
 22484
 22485                    b.Property<bool>("EnableUserPreferenceAccess")
 22486                        .HasColumnType("INTEGER");
 22487
 22488                    b.Property<bool>("HidePlayedInLatest")
 22489                        .HasColumnType("INTEGER");
 22490
 22491                    b.Property<long>("InternalId")
 22492                        .HasColumnType("INTEGER");
 22493
 22494                    b.Property<int>("InvalidLoginAttemptCount")
 22495                        .HasColumnType("INTEGER");
 22496
 22497                    b.Property<DateTime?>("LastActivityDate")
 22498                        .HasColumnType("TEXT");
 22499
 22500                    b.Property<DateTime?>("LastLoginDate")
 22501                        .HasColumnType("TEXT");
 22502
 22503                    b.Property<int?>("LoginAttemptsBeforeLockout")
 22504                        .HasColumnType("INTEGER");
 22505
 22506                    b.Property<int>("MaxActiveSessions")
 22507                        .HasColumnType("INTEGER");
 22508
 22509                    b.Property<int?>("MaxParentalAgeRating")
 22510                        .HasColumnType("INTEGER");
 22511
 22512                    b.Property<bool>("MustUpdatePassword")
 22513                        .HasColumnType("INTEGER");
 22514
 22515                    b.Property<string>("Password")
 22516                        .HasMaxLength(65535)
 22517                        .HasColumnType("TEXT");
 22518
 22519                    b.Property<string>("PasswordResetProviderId")
 22520                        .IsRequired()
 22521                        .HasMaxLength(255)
 22522                        .HasColumnType("TEXT");
 22523
 22524                    b.Property<bool>("PlayDefaultAudioTrack")
 22525                        .HasColumnType("INTEGER");
 22526
 22527                    b.Property<bool>("RememberAudioSelections")
 22528                        .HasColumnType("INTEGER");
 22529
 22530                    b.Property<bool>("RememberSubtitleSelections")
 22531                        .HasColumnType("INTEGER");
 22532
 22533                    b.Property<int?>("RemoteClientBitrateLimit")
 22534                        .HasColumnType("INTEGER");
 22535
 22536                    b.Property<uint>("RowVersion")
 22537                        .IsConcurrencyToken()
 22538                        .HasColumnType("INTEGER");
 22539
 22540                    b.Property<string>("SubtitleLanguagePreference")
 22541                        .HasMaxLength(255)
 22542                        .HasColumnType("TEXT");
 22543
 22544                    b.Property<int>("SubtitleMode")
 22545                        .HasColumnType("INTEGER");
 22546
 22547                    b.Property<int>("SyncPlayAccess")
 22548                        .HasColumnType("INTEGER");
 22549
 22550                    b.Property<string>("Username")
 22551                        .IsRequired()
 22552                        .HasMaxLength(255)
 22553                        .HasColumnType("TEXT")
 22554                        .UseCollation("NOCASE");
 22555
 22556                    b.HasKey("Id");
 22557
 22558                    b.HasIndex("Username")
 22559                        .IsUnique();
 22560
 22561                    b.ToTable("Users", "jellyfin");
 22562                });
 563
 22564            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 22565                {
 22566                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22567                        .WithMany("AccessSchedules")
 22568                        .HasForeignKey("UserId")
 22569                        .OnDelete(DeleteBehavior.Cascade)
 22570                        .IsRequired();
 22571                });
 572
 22573            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 22574                {
 22575                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22576                        .WithMany("DisplayPreferences")
 22577                        .HasForeignKey("UserId")
 22578                        .OnDelete(DeleteBehavior.Cascade)
 22579                        .IsRequired();
 22580                });
 581
 22582            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 22583                {
 22584                    b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
 22585                        .WithMany("HomeSections")
 22586                        .HasForeignKey("DisplayPreferencesId")
 22587                        .OnDelete(DeleteBehavior.Cascade)
 22588                        .IsRequired();
 22589                });
 590
 22591            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 22592                {
 22593                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22594                        .WithOne("ProfileImage")
 22595                        .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
 22596                        .OnDelete(DeleteBehavior.Cascade);
 22597                });
 598
 22599            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 22600                {
 22601                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22602                        .WithMany("ItemDisplayPreferences")
 22603                        .HasForeignKey("UserId")
 22604                        .OnDelete(DeleteBehavior.Cascade)
 22605                        .IsRequired();
 22606                });
 607
 22608            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 22609                {
 22610                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22611                        .WithMany("Permissions")
 22612                        .HasForeignKey("UserId")
 22613                        .OnDelete(DeleteBehavior.Cascade);
 22614                });
 615
 22616            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 22617                {
 22618                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22619                        .WithMany("Preferences")
 22620                        .HasForeignKey("UserId")
 22621                        .OnDelete(DeleteBehavior.Cascade);
 22622                });
 623
 22624            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 22625                {
 22626                    b.HasOne("Jellyfin.Data.Entities.User", "User")
 22627                        .WithMany()
 22628                        .HasForeignKey("UserId")
 22629                        .OnDelete(DeleteBehavior.Cascade)
 22630                        .IsRequired();
 22631
 22632                    b.Navigation("User");
 22633                });
 634
 22635            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 22636                {
 22637                    b.Navigation("HomeSections");
 22638                });
 639
 22640            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 22641                {
 22642                    b.Navigation("AccessSchedules");
 22643
 22644                    b.Navigation("DisplayPreferences");
 22645
 22646                    b.Navigation("ItemDisplayPreferences");
 22647
 22648                    b.Navigation("Permissions");
 22649
 22650                    b.Navigation("Preferences");
 22651
 22652                    b.Navigation("ProfileImage");
 22653                });
 654#pragma warning restore 612, 618
 22655        }
 656    }
 657}