< 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 3/26/2026 - 12:14:14 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        {
 2213            migrationBuilder.AlterColumn<string>(
 2214                name: "SegmentProviderId",
 2215                table: "MediaSegments",
 2216                type: "TEXT",
 2217                nullable: false,
 2218                defaultValue: string.Empty,
 2219                oldClrType: typeof(string),
 2220                oldType: "TEXT",
 2221                oldNullable: true);
 2222        }
 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
 2221            modelBuilder.HasAnnotation("ProductVersion", "8.0.8");
 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.MediaSegment", b =>
 22277                {
 22278                    b.Property<Guid>("Id")
 22279                        .ValueGeneratedOnAdd()
 22280                        .HasColumnType("TEXT");
 22281
 22282                    b.Property<long>("EndTicks")
 22283                        .HasColumnType("INTEGER");
 22284
 22285                    b.Property<Guid>("ItemId")
 22286                        .HasColumnType("TEXT");
 22287
 22288                    b.Property<string>("SegmentProviderId")
 22289                        .IsRequired()
 22290                        .HasColumnType("TEXT");
 22291
 22292                    b.Property<long>("StartTicks")
 22293                        .HasColumnType("INTEGER");
 22294
 22295                    b.Property<int>("Type")
 22296                        .HasColumnType("INTEGER");
 22297
 22298                    b.HasKey("Id");
 22299
 22300                    b.ToTable("MediaSegments");
 22301                });
 302
 22303            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 22304                {
 22305                    b.Property<int>("Id")
 22306                        .ValueGeneratedOnAdd()
 22307                        .HasColumnType("INTEGER");
 22308
 22309                    b.Property<int>("Kind")
 22310                        .HasColumnType("INTEGER");
 22311
 22312                    b.Property<Guid?>("Permission_Permissions_Guid")
 22313                        .HasColumnType("TEXT");
 22314
 22315                    b.Property<uint>("RowVersion")
 22316                        .IsConcurrencyToken()
 22317                        .HasColumnType("INTEGER");
 22318
 22319                    b.Property<Guid?>("UserId")
 22320                        .HasColumnType("TEXT");
 22321
 22322                    b.Property<bool>("Value")
 22323                        .HasColumnType("INTEGER");
 22324
 22325                    b.HasKey("Id");
 22326
 22327                    b.HasIndex("UserId", "Kind")
 22328                        .IsUnique()
 22329                        .HasFilter("[UserId] IS NOT NULL");
 22330
 22331                    b.ToTable("Permissions");
 22332                });
 333
 22334            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 22335                {
 22336                    b.Property<int>("Id")
 22337                        .ValueGeneratedOnAdd()
 22338                        .HasColumnType("INTEGER");
 22339
 22340                    b.Property<int>("Kind")
 22341                        .HasColumnType("INTEGER");
 22342
 22343                    b.Property<Guid?>("Preference_Preferences_Guid")
 22344                        .HasColumnType("TEXT");
 22345
 22346                    b.Property<uint>("RowVersion")
 22347                        .IsConcurrencyToken()
 22348                        .HasColumnType("INTEGER");
 22349
 22350                    b.Property<Guid?>("UserId")
 22351                        .HasColumnType("TEXT");
 22352
 22353                    b.Property<string>("Value")
 22354                        .IsRequired()
 22355                        .HasMaxLength(65535)
 22356                        .HasColumnType("TEXT");
 22357
 22358                    b.HasKey("Id");
 22359
 22360                    b.HasIndex("UserId", "Kind")
 22361                        .IsUnique()
 22362                        .HasFilter("[UserId] IS NOT NULL");
 22363
 22364                    b.ToTable("Preferences");
 22365                });
 366
 22367            modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
 22368                {
 22369                    b.Property<int>("Id")
 22370                        .ValueGeneratedOnAdd()
 22371                        .HasColumnType("INTEGER");
 22372
 22373                    b.Property<string>("AccessToken")
 22374                        .IsRequired()
 22375                        .HasColumnType("TEXT");
 22376
 22377                    b.Property<DateTime>("DateCreated")
 22378                        .HasColumnType("TEXT");
 22379
 22380                    b.Property<DateTime>("DateLastActivity")
 22381                        .HasColumnType("TEXT");
 22382
 22383                    b.Property<string>("Name")
 22384                        .IsRequired()
 22385                        .HasMaxLength(64)
 22386                        .HasColumnType("TEXT");
 22387
 22388                    b.HasKey("Id");
 22389
 22390                    b.HasIndex("AccessToken")
 22391                        .IsUnique();
 22392
 22393                    b.ToTable("ApiKeys");
 22394                });
 395
 22396            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 22397                {
 22398                    b.Property<int>("Id")
 22399                        .ValueGeneratedOnAdd()
 22400                        .HasColumnType("INTEGER");
 22401
 22402                    b.Property<string>("AccessToken")
 22403                        .IsRequired()
 22404                        .HasColumnType("TEXT");
 22405
 22406                    b.Property<string>("AppName")
 22407                        .IsRequired()
 22408                        .HasMaxLength(64)
 22409                        .HasColumnType("TEXT");
 22410
 22411                    b.Property<string>("AppVersion")
 22412                        .IsRequired()
 22413                        .HasMaxLength(32)
 22414                        .HasColumnType("TEXT");
 22415
 22416                    b.Property<DateTime>("DateCreated")
 22417                        .HasColumnType("TEXT");
 22418
 22419                    b.Property<DateTime>("DateLastActivity")
 22420                        .HasColumnType("TEXT");
 22421
 22422                    b.Property<DateTime>("DateModified")
 22423                        .HasColumnType("TEXT");
 22424
 22425                    b.Property<string>("DeviceId")
 22426                        .IsRequired()
 22427                        .HasMaxLength(256)
 22428                        .HasColumnType("TEXT");
 22429
 22430                    b.Property<string>("DeviceName")
 22431                        .IsRequired()
 22432                        .HasMaxLength(64)
 22433                        .HasColumnType("TEXT");
 22434
 22435                    b.Property<bool>("IsActive")
 22436                        .HasColumnType("INTEGER");
 22437
 22438                    b.Property<Guid>("UserId")
 22439                        .HasColumnType("TEXT");
 22440
 22441                    b.HasKey("Id");
 22442
 22443                    b.HasIndex("DeviceId");
 22444
 22445                    b.HasIndex("AccessToken", "DateLastActivity");
 22446
 22447                    b.HasIndex("DeviceId", "DateLastActivity");
 22448
 22449                    b.HasIndex("UserId", "DeviceId");
 22450
 22451                    b.ToTable("Devices");
 22452                });
 453
 22454            modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
 22455                {
 22456                    b.Property<int>("Id")
 22457                        .ValueGeneratedOnAdd()
 22458                        .HasColumnType("INTEGER");
 22459
 22460                    b.Property<string>("CustomName")
 22461                        .HasColumnType("TEXT");
 22462
 22463                    b.Property<string>("DeviceId")
 22464                        .IsRequired()
 22465                        .HasColumnType("TEXT");
 22466
 22467                    b.HasKey("Id");
 22468
 22469                    b.HasIndex("DeviceId")
 22470                        .IsUnique();
 22471
 22472                    b.ToTable("DeviceOptions");
 22473                });
 474
 22475            modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
 22476                {
 22477                    b.Property<Guid>("ItemId")
 22478                        .HasColumnType("TEXT");
 22479
 22480                    b.Property<int>("Width")
 22481                        .HasColumnType("INTEGER");
 22482
 22483                    b.Property<int>("Bandwidth")
 22484                        .HasColumnType("INTEGER");
 22485
 22486                    b.Property<int>("Height")
 22487                        .HasColumnType("INTEGER");
 22488
 22489                    b.Property<int>("Interval")
 22490                        .HasColumnType("INTEGER");
 22491
 22492                    b.Property<int>("ThumbnailCount")
 22493                        .HasColumnType("INTEGER");
 22494
 22495                    b.Property<int>("TileHeight")
 22496                        .HasColumnType("INTEGER");
 22497
 22498                    b.Property<int>("TileWidth")
 22499                        .HasColumnType("INTEGER");
 22500
 22501                    b.HasKey("ItemId", "Width");
 22502
 22503                    b.ToTable("TrickplayInfos");
 22504                });
 505
 22506            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 22507                {
 22508                    b.Property<Guid>("Id")
 22509                        .ValueGeneratedOnAdd()
 22510                        .HasColumnType("TEXT");
 22511
 22512                    b.Property<string>("AudioLanguagePreference")
 22513                        .HasMaxLength(255)
 22514                        .HasColumnType("TEXT");
 22515
 22516                    b.Property<string>("AuthenticationProviderId")
 22517                        .IsRequired()
 22518                        .HasMaxLength(255)
 22519                        .HasColumnType("TEXT");
 22520
 22521                    b.Property<string>("CastReceiverId")
 22522                        .HasMaxLength(32)
 22523                        .HasColumnType("TEXT");
 22524
 22525                    b.Property<bool>("DisplayCollectionsView")
 22526                        .HasColumnType("INTEGER");
 22527
 22528                    b.Property<bool>("DisplayMissingEpisodes")
 22529                        .HasColumnType("INTEGER");
 22530
 22531                    b.Property<bool>("EnableAutoLogin")
 22532                        .HasColumnType("INTEGER");
 22533
 22534                    b.Property<bool>("EnableLocalPassword")
 22535                        .HasColumnType("INTEGER");
 22536
 22537                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 22538                        .HasColumnType("INTEGER");
 22539
 22540                    b.Property<bool>("EnableUserPreferenceAccess")
 22541                        .HasColumnType("INTEGER");
 22542
 22543                    b.Property<bool>("HidePlayedInLatest")
 22544                        .HasColumnType("INTEGER");
 22545
 22546                    b.Property<long>("InternalId")
 22547                        .HasColumnType("INTEGER");
 22548
 22549                    b.Property<int>("InvalidLoginAttemptCount")
 22550                        .HasColumnType("INTEGER");
 22551
 22552                    b.Property<DateTime?>("LastActivityDate")
 22553                        .HasColumnType("TEXT");
 22554
 22555                    b.Property<DateTime?>("LastLoginDate")
 22556                        .HasColumnType("TEXT");
 22557
 22558                    b.Property<int?>("LoginAttemptsBeforeLockout")
 22559                        .HasColumnType("INTEGER");
 22560
 22561                    b.Property<int>("MaxActiveSessions")
 22562                        .HasColumnType("INTEGER");
 22563
 22564                    b.Property<int?>("MaxParentalAgeRating")
 22565                        .HasColumnType("INTEGER");
 22566
 22567                    b.Property<bool>("MustUpdatePassword")
 22568                        .HasColumnType("INTEGER");
 22569
 22570                    b.Property<string>("Password")
 22571                        .HasMaxLength(65535)
 22572                        .HasColumnType("TEXT");
 22573
 22574                    b.Property<string>("PasswordResetProviderId")
 22575                        .IsRequired()
 22576                        .HasMaxLength(255)
 22577                        .HasColumnType("TEXT");
 22578
 22579                    b.Property<bool>("PlayDefaultAudioTrack")
 22580                        .HasColumnType("INTEGER");
 22581
 22582                    b.Property<bool>("RememberAudioSelections")
 22583                        .HasColumnType("INTEGER");
 22584
 22585                    b.Property<bool>("RememberSubtitleSelections")
 22586                        .HasColumnType("INTEGER");
 22587
 22588                    b.Property<int?>("RemoteClientBitrateLimit")
 22589                        .HasColumnType("INTEGER");
 22590
 22591                    b.Property<uint>("RowVersion")
 22592                        .IsConcurrencyToken()
 22593                        .HasColumnType("INTEGER");
 22594
 22595                    b.Property<string>("SubtitleLanguagePreference")
 22596                        .HasMaxLength(255)
 22597                        .HasColumnType("TEXT");
 22598
 22599                    b.Property<int>("SubtitleMode")
 22600                        .HasColumnType("INTEGER");
 22601
 22602                    b.Property<int>("SyncPlayAccess")
 22603                        .HasColumnType("INTEGER");
 22604
 22605                    b.Property<string>("Username")
 22606                        .IsRequired()
 22607                        .HasMaxLength(255)
 22608                        .HasColumnType("TEXT")
 22609                        .UseCollation("NOCASE");
 22610
 22611                    b.HasKey("Id");
 22612
 22613                    b.HasIndex("Username")
 22614                        .IsUnique();
 22615
 22616                    b.ToTable("Users");
 22617                });
 618
 22619            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 22620                {
 22621                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22622                        .WithMany("AccessSchedules")
 22623                        .HasForeignKey("UserId")
 22624                        .OnDelete(DeleteBehavior.Cascade)
 22625                        .IsRequired();
 22626                });
 627
 22628            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 22629                {
 22630                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22631                        .WithMany("DisplayPreferences")
 22632                        .HasForeignKey("UserId")
 22633                        .OnDelete(DeleteBehavior.Cascade)
 22634                        .IsRequired();
 22635                });
 636
 22637            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 22638                {
 22639                    b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
 22640                        .WithMany("HomeSections")
 22641                        .HasForeignKey("DisplayPreferencesId")
 22642                        .OnDelete(DeleteBehavior.Cascade)
 22643                        .IsRequired();
 22644                });
 645
 22646            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 22647                {
 22648                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22649                        .WithOne("ProfileImage")
 22650                        .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
 22651                        .OnDelete(DeleteBehavior.Cascade);
 22652                });
 653
 22654            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 22655                {
 22656                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22657                        .WithMany("ItemDisplayPreferences")
 22658                        .HasForeignKey("UserId")
 22659                        .OnDelete(DeleteBehavior.Cascade)
 22660                        .IsRequired();
 22661                });
 662
 22663            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 22664                {
 22665                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22666                        .WithMany("Permissions")
 22667                        .HasForeignKey("UserId")
 22668                        .OnDelete(DeleteBehavior.Cascade);
 22669                });
 670
 22671            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 22672                {
 22673                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22674                        .WithMany("Preferences")
 22675                        .HasForeignKey("UserId")
 22676                        .OnDelete(DeleteBehavior.Cascade);
 22677                });
 678
 22679            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 22680                {
 22681                    b.HasOne("Jellyfin.Data.Entities.User", "User")
 22682                        .WithMany()
 22683                        .HasForeignKey("UserId")
 22684                        .OnDelete(DeleteBehavior.Cascade)
 22685                        .IsRequired();
 22686
 22687                    b.Navigation("User");
 22688                });
 689
 22690            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 22691                {
 22692                    b.Navigation("HomeSections");
 22693                });
 694
 22695            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 22696                {
 22697                    b.Navigation("AccessSchedules");
 22698
 22699                    b.Navigation("DisplayPreferences");
 22700
 22701                    b.Navigation("ItemDisplayPreferences");
 22702
 22703                    b.Navigation("Permissions");
 22704
 22705                    b.Navigation("Preferences");
 22706
 22707                    b.Navigation("ProfileImage");
 22708                });
 709#pragma warning restore 612, 618
 22710        }
 711    }
 712}