< Summary - Jellyfin

Line coverage
99%
Covered lines: 645
Uncovered lines: 4
Coverable lines: 649
Total lines: 714
Line coverage: 99.3%
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/6/2026 - 12:15:23 AM Line coverage: 99.3% (615/619) Total lines: 6838/11/2026 - 12:17:00 AM Line coverage: 99.3% (645/649) Total lines: 714

Coverage delta

Coverage delta 1 -1

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/20230923170422_UserCastReceiver.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Jellyfin.Server.Implementations.Migrations
 6{
 7    /// <inheritdoc />
 8    public partial class UserCastReceiver : Migration
 9    {
 10        /// <inheritdoc />
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 2213            migrationBuilder.AddColumn<string>(
 2214                name: "CastReceiverId",
 2215                table: "Users",
 2216                type: "TEXT",
 2217                maxLength: 32,
 2218                nullable: true);
 2219        }
 20
 21        /// <inheritdoc />
 22        protected override void Down(MigrationBuilder migrationBuilder)
 23        {
 024            migrationBuilder.DropColumn(
 025                name: "CastReceiverId",
 026                table: "Users");
 027        }
 28    }
 29}

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