< Summary - Jellyfin

Line coverage
99%
Covered lines: 652
Uncovered lines: 3
Coverable lines: 655
Total lines: 721
Line coverage: 99.5%
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/20230626233818_AddTrickplayInfos.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4#nullable disable
 5
 6namespace Jellyfin.Server.Implementations.Migrations
 7{
 8    /// <inheritdoc />
 9    public partial class AddTrickplayInfos : Migration
 10    {
 11        /// <inheritdoc />
 12        protected override void Up(MigrationBuilder migrationBuilder)
 13        {
 2214            migrationBuilder.CreateTable(
 2215                name: "TrickplayInfos",
 2216                columns: table => new
 2217                {
 2218                    ItemId = table.Column<Guid>(type: "TEXT", nullable: false),
 2219                    Width = table.Column<int>(type: "INTEGER", nullable: false),
 2220                    Height = table.Column<int>(type: "INTEGER", nullable: false),
 2221                    TileWidth = table.Column<int>(type: "INTEGER", nullable: false),
 2222                    TileHeight = table.Column<int>(type: "INTEGER", nullable: false),
 2223                    ThumbnailCount = table.Column<int>(type: "INTEGER", nullable: false),
 2224                    Interval = table.Column<int>(type: "INTEGER", nullable: false),
 2225                    Bandwidth = table.Column<int>(type: "INTEGER", nullable: false)
 2226                },
 2227                constraints: table =>
 2228                {
 2229                    table.PrimaryKey("PK_TrickplayInfos", x => new { x.ItemId, x.Width });
 2230                });
 2231        }
 32
 33        /// <inheritdoc />
 34        protected override void Down(MigrationBuilder migrationBuilder)
 35        {
 036            migrationBuilder.DropTable(
 037                name: "TrickplayInfos");
 038        }
 39    }
 40}

/srv/git/jellyfin/Jellyfin.Server.Implementations/Migrations/20230626233818_AddTrickplayInfos.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Jellyfin.Server.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("20230626233818_AddTrickplayInfos")]
 15    partial class AddTrickplayInfos
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 2221            modelBuilder.HasAnnotation("ProductVersion", "7.0.7");
 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<bool>("DisplayCollectionsView")
 22495                        .HasColumnType("INTEGER");
 22496
 22497                    b.Property<bool>("DisplayMissingEpisodes")
 22498                        .HasColumnType("INTEGER");
 22499
 22500                    b.Property<bool>("EnableAutoLogin")
 22501                        .HasColumnType("INTEGER");
 22502
 22503                    b.Property<bool>("EnableLocalPassword")
 22504                        .HasColumnType("INTEGER");
 22505
 22506                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 22507                        .HasColumnType("INTEGER");
 22508
 22509                    b.Property<bool>("EnableUserPreferenceAccess")
 22510                        .HasColumnType("INTEGER");
 22511
 22512                    b.Property<bool>("HidePlayedInLatest")
 22513                        .HasColumnType("INTEGER");
 22514
 22515                    b.Property<long>("InternalId")
 22516                        .HasColumnType("INTEGER");
 22517
 22518                    b.Property<int>("InvalidLoginAttemptCount")
 22519                        .HasColumnType("INTEGER");
 22520
 22521                    b.Property<DateTime?>("LastActivityDate")
 22522                        .HasColumnType("TEXT");
 22523
 22524                    b.Property<DateTime?>("LastLoginDate")
 22525                        .HasColumnType("TEXT");
 22526
 22527                    b.Property<int?>("LoginAttemptsBeforeLockout")
 22528                        .HasColumnType("INTEGER");
 22529
 22530                    b.Property<int>("MaxActiveSessions")
 22531                        .HasColumnType("INTEGER");
 22532
 22533                    b.Property<int?>("MaxParentalAgeRating")
 22534                        .HasColumnType("INTEGER");
 22535
 22536                    b.Property<bool>("MustUpdatePassword")
 22537                        .HasColumnType("INTEGER");
 22538
 22539                    b.Property<string>("Password")
 22540                        .HasMaxLength(65535)
 22541                        .HasColumnType("TEXT");
 22542
 22543                    b.Property<string>("PasswordResetProviderId")
 22544                        .IsRequired()
 22545                        .HasMaxLength(255)
 22546                        .HasColumnType("TEXT");
 22547
 22548                    b.Property<bool>("PlayDefaultAudioTrack")
 22549                        .HasColumnType("INTEGER");
 22550
 22551                    b.Property<bool>("RememberAudioSelections")
 22552                        .HasColumnType("INTEGER");
 22553
 22554                    b.Property<bool>("RememberSubtitleSelections")
 22555                        .HasColumnType("INTEGER");
 22556
 22557                    b.Property<int?>("RemoteClientBitrateLimit")
 22558                        .HasColumnType("INTEGER");
 22559
 22560                    b.Property<uint>("RowVersion")
 22561                        .IsConcurrencyToken()
 22562                        .HasColumnType("INTEGER");
 22563
 22564                    b.Property<string>("SubtitleLanguagePreference")
 22565                        .HasMaxLength(255)
 22566                        .HasColumnType("TEXT");
 22567
 22568                    b.Property<int>("SubtitleMode")
 22569                        .HasColumnType("INTEGER");
 22570
 22571                    b.Property<int>("SyncPlayAccess")
 22572                        .HasColumnType("INTEGER");
 22573
 22574                    b.Property<string>("Username")
 22575                        .IsRequired()
 22576                        .HasMaxLength(255)
 22577                        .HasColumnType("TEXT")
 22578                        .UseCollation("NOCASE");
 22579
 22580                    b.HasKey("Id");
 22581
 22582                    b.HasIndex("Username")
 22583                        .IsUnique();
 22584
 22585                    b.ToTable("Users");
 22586                });
 587
 22588            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 22589                {
 22590                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22591                        .WithMany("AccessSchedules")
 22592                        .HasForeignKey("UserId")
 22593                        .OnDelete(DeleteBehavior.Cascade)
 22594                        .IsRequired();
 22595                });
 596
 22597            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 22598                {
 22599                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22600                        .WithMany("DisplayPreferences")
 22601                        .HasForeignKey("UserId")
 22602                        .OnDelete(DeleteBehavior.Cascade)
 22603                        .IsRequired();
 22604                });
 605
 22606            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 22607                {
 22608                    b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
 22609                        .WithMany("HomeSections")
 22610                        .HasForeignKey("DisplayPreferencesId")
 22611                        .OnDelete(DeleteBehavior.Cascade)
 22612                        .IsRequired();
 22613                });
 614
 22615            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 22616                {
 22617                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22618                        .WithOne("ProfileImage")
 22619                        .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
 22620                        .OnDelete(DeleteBehavior.Cascade);
 22621                });
 622
 22623            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 22624                {
 22625                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22626                        .WithMany("ItemDisplayPreferences")
 22627                        .HasForeignKey("UserId")
 22628                        .OnDelete(DeleteBehavior.Cascade)
 22629                        .IsRequired();
 22630                });
 631
 22632            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 22633                {
 22634                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22635                        .WithMany("Permissions")
 22636                        .HasForeignKey("UserId")
 22637                        .OnDelete(DeleteBehavior.Cascade);
 22638                });
 639
 22640            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 22641                {
 22642                    b.HasOne("Jellyfin.Data.Entities.User", null)
 22643                        .WithMany("Preferences")
 22644                        .HasForeignKey("UserId")
 22645                        .OnDelete(DeleteBehavior.Cascade);
 22646                });
 647
 22648            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 22649                {
 22650                    b.HasOne("Jellyfin.Data.Entities.User", "User")
 22651                        .WithMany()
 22652                        .HasForeignKey("UserId")
 22653                        .OnDelete(DeleteBehavior.Cascade)
 22654                        .IsRequired();
 22655
 22656                    b.Navigation("User");
 22657                });
 658
 22659            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 22660                {
 22661                    b.Navigation("HomeSections");
 22662                });
 663
 22664            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 22665                {
 22666                    b.Navigation("AccessSchedules");
 22667
 22668                    b.Navigation("DisplayPreferences");
 22669
 22670                    b.Navigation("ItemDisplayPreferences");
 22671
 22672                    b.Navigation("Permissions");
 22673
 22674                    b.Navigation("Preferences");
 22675
 22676                    b.Navigation("ProfileImage");
 22677                });
 678#pragma warning restore 612, 618
 22679        }
 680    }
 681}