< Summary - Jellyfin

Information
Class: Jellyfin.Server.Implementations.Migrations.JellyfinDbModelSnapshot
Assembly: Jellyfin.Server.Implementations
File(s): /srv/git/jellyfin/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 663
Coverable lines: 663
Total lines: 708
Line coverage: 0%
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
BuildModel(...)100%210%

File(s)

/srv/git/jellyfin/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Jellyfin.Server.Implementations;
 4using Microsoft.EntityFrameworkCore;
 5using Microsoft.EntityFrameworkCore.Infrastructure;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7
 8#nullable disable
 9
 10namespace Jellyfin.Server.Implementations.Migrations
 11{
 12    [DbContext(typeof(JellyfinDbContext))]
 13    partial class JellyfinDbModelSnapshot : ModelSnapshot
 14    {
 15        protected override void BuildModel(ModelBuilder modelBuilder)
 16        {
 17#pragma warning disable 612, 618
 018            modelBuilder.HasAnnotation("ProductVersion", "8.0.7");
 19
 020            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 021                {
 022                    b.Property<int>("Id")
 023                        .ValueGeneratedOnAdd()
 024                        .HasColumnType("INTEGER");
 025
 026                    b.Property<int>("DayOfWeek")
 027                        .HasColumnType("INTEGER");
 028
 029                    b.Property<double>("EndHour")
 030                        .HasColumnType("REAL");
 031
 032                    b.Property<double>("StartHour")
 033                        .HasColumnType("REAL");
 034
 035                    b.Property<Guid>("UserId")
 036                        .HasColumnType("TEXT");
 037
 038                    b.HasKey("Id");
 039
 040                    b.HasIndex("UserId");
 041
 042                    b.ToTable("AccessSchedules");
 043                });
 44
 045            modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
 046                {
 047                    b.Property<int>("Id")
 048                        .ValueGeneratedOnAdd()
 049                        .HasColumnType("INTEGER");
 050
 051                    b.Property<DateTime>("DateCreated")
 052                        .HasColumnType("TEXT");
 053
 054                    b.Property<string>("ItemId")
 055                        .HasMaxLength(256)
 056                        .HasColumnType("TEXT");
 057
 058                    b.Property<int>("LogSeverity")
 059                        .HasColumnType("INTEGER");
 060
 061                    b.Property<string>("Name")
 062                        .IsRequired()
 063                        .HasMaxLength(512)
 064                        .HasColumnType("TEXT");
 065
 066                    b.Property<string>("Overview")
 067                        .HasMaxLength(512)
 068                        .HasColumnType("TEXT");
 069
 070                    b.Property<uint>("RowVersion")
 071                        .IsConcurrencyToken()
 072                        .HasColumnType("INTEGER");
 073
 074                    b.Property<string>("ShortOverview")
 075                        .HasMaxLength(512)
 076                        .HasColumnType("TEXT");
 077
 078                    b.Property<string>("Type")
 079                        .IsRequired()
 080                        .HasMaxLength(256)
 081                        .HasColumnType("TEXT");
 082
 083                    b.Property<Guid>("UserId")
 084                        .HasColumnType("TEXT");
 085
 086                    b.HasKey("Id");
 087
 088                    b.HasIndex("DateCreated");
 089
 090                    b.ToTable("ActivityLogs");
 091                });
 92
 093            modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
 094                {
 095                    b.Property<int>("Id")
 096                        .ValueGeneratedOnAdd()
 097                        .HasColumnType("INTEGER");
 098
 099                    b.Property<string>("Client")
 0100                        .IsRequired()
 0101                        .HasMaxLength(32)
 0102                        .HasColumnType("TEXT");
 0103
 0104                    b.Property<Guid>("ItemId")
 0105                        .HasColumnType("TEXT");
 0106
 0107                    b.Property<string>("Key")
 0108                        .IsRequired()
 0109                        .HasColumnType("TEXT");
 0110
 0111                    b.Property<Guid>("UserId")
 0112                        .HasColumnType("TEXT");
 0113
 0114                    b.Property<string>("Value")
 0115                        .HasColumnType("TEXT");
 0116
 0117                    b.HasKey("Id");
 0118
 0119                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 0120                        .IsUnique();
 0121
 0122                    b.ToTable("CustomItemDisplayPreferences");
 0123                });
 124
 0125            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 0126                {
 0127                    b.Property<int>("Id")
 0128                        .ValueGeneratedOnAdd()
 0129                        .HasColumnType("INTEGER");
 0130
 0131                    b.Property<int>("ChromecastVersion")
 0132                        .HasColumnType("INTEGER");
 0133
 0134                    b.Property<string>("Client")
 0135                        .IsRequired()
 0136                        .HasMaxLength(32)
 0137                        .HasColumnType("TEXT");
 0138
 0139                    b.Property<string>("DashboardTheme")
 0140                        .HasMaxLength(32)
 0141                        .HasColumnType("TEXT");
 0142
 0143                    b.Property<bool>("EnableNextVideoInfoOverlay")
 0144                        .HasColumnType("INTEGER");
 0145
 0146                    b.Property<int?>("IndexBy")
 0147                        .HasColumnType("INTEGER");
 0148
 0149                    b.Property<Guid>("ItemId")
 0150                        .HasColumnType("TEXT");
 0151
 0152                    b.Property<int>("ScrollDirection")
 0153                        .HasColumnType("INTEGER");
 0154
 0155                    b.Property<bool>("ShowBackdrop")
 0156                        .HasColumnType("INTEGER");
 0157
 0158                    b.Property<bool>("ShowSidebar")
 0159                        .HasColumnType("INTEGER");
 0160
 0161                    b.Property<int>("SkipBackwardLength")
 0162                        .HasColumnType("INTEGER");
 0163
 0164                    b.Property<int>("SkipForwardLength")
 0165                        .HasColumnType("INTEGER");
 0166
 0167                    b.Property<string>("TvHome")
 0168                        .HasMaxLength(32)
 0169                        .HasColumnType("TEXT");
 0170
 0171                    b.Property<Guid>("UserId")
 0172                        .HasColumnType("TEXT");
 0173
 0174                    b.HasKey("Id");
 0175
 0176                    b.HasIndex("UserId", "ItemId", "Client")
 0177                        .IsUnique();
 0178
 0179                    b.ToTable("DisplayPreferences");
 0180                });
 181
 0182            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 0183                {
 0184                    b.Property<int>("Id")
 0185                        .ValueGeneratedOnAdd()
 0186                        .HasColumnType("INTEGER");
 0187
 0188                    b.Property<int>("DisplayPreferencesId")
 0189                        .HasColumnType("INTEGER");
 0190
 0191                    b.Property<int>("Order")
 0192                        .HasColumnType("INTEGER");
 0193
 0194                    b.Property<int>("Type")
 0195                        .HasColumnType("INTEGER");
 0196
 0197                    b.HasKey("Id");
 0198
 0199                    b.HasIndex("DisplayPreferencesId");
 0200
 0201                    b.ToTable("HomeSection");
 0202                });
 203
 0204            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 0205                {
 0206                    b.Property<int>("Id")
 0207                        .ValueGeneratedOnAdd()
 0208                        .HasColumnType("INTEGER");
 0209
 0210                    b.Property<DateTime>("LastModified")
 0211                        .HasColumnType("TEXT");
 0212
 0213                    b.Property<string>("Path")
 0214                        .IsRequired()
 0215                        .HasMaxLength(512)
 0216                        .HasColumnType("TEXT");
 0217
 0218                    b.Property<Guid?>("UserId")
 0219                        .HasColumnType("TEXT");
 0220
 0221                    b.HasKey("Id");
 0222
 0223                    b.HasIndex("UserId")
 0224                        .IsUnique();
 0225
 0226                    b.ToTable("ImageInfos");
 0227                });
 228
 0229            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 0230                {
 0231                    b.Property<int>("Id")
 0232                        .ValueGeneratedOnAdd()
 0233                        .HasColumnType("INTEGER");
 0234
 0235                    b.Property<string>("Client")
 0236                        .IsRequired()
 0237                        .HasMaxLength(32)
 0238                        .HasColumnType("TEXT");
 0239
 0240                    b.Property<int?>("IndexBy")
 0241                        .HasColumnType("INTEGER");
 0242
 0243                    b.Property<Guid>("ItemId")
 0244                        .HasColumnType("TEXT");
 0245
 0246                    b.Property<bool>("RememberIndexing")
 0247                        .HasColumnType("INTEGER");
 0248
 0249                    b.Property<bool>("RememberSorting")
 0250                        .HasColumnType("INTEGER");
 0251
 0252                    b.Property<string>("SortBy")
 0253                        .IsRequired()
 0254                        .HasMaxLength(64)
 0255                        .HasColumnType("TEXT");
 0256
 0257                    b.Property<int>("SortOrder")
 0258                        .HasColumnType("INTEGER");
 0259
 0260                    b.Property<Guid>("UserId")
 0261                        .HasColumnType("TEXT");
 0262
 0263                    b.Property<int>("ViewType")
 0264                        .HasColumnType("INTEGER");
 0265
 0266                    b.HasKey("Id");
 0267
 0268                    b.HasIndex("UserId");
 0269
 0270                    b.ToTable("ItemDisplayPreferences");
 0271                });
 272
 0273            modelBuilder.Entity("Jellyfin.Data.Entities.MediaSegment", b =>
 0274                {
 0275                    b.Property<Guid>("Id")
 0276                        .ValueGeneratedOnAdd()
 0277                        .HasColumnType("TEXT");
 0278
 0279                    b.Property<long>("EndTicks")
 0280                        .HasColumnType("INTEGER");
 0281
 0282                    b.Property<Guid>("ItemId")
 0283                        .HasColumnType("TEXT");
 0284
 0285                    b.Property<long>("StartTicks")
 0286                        .HasColumnType("INTEGER");
 0287
 0288                    b.Property<int>("Type")
 0289                        .HasColumnType("INTEGER");
 0290
 0291                    b.Property<string>("SegmentProviderId")
 0292                        .HasColumnType("TEXT");
 0293
 0294                    b.HasKey("Id");
 0295
 0296                    b.ToTable("MediaSegments");
 0297                });
 298
 0299            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 0300                {
 0301                    b.Property<int>("Id")
 0302                        .ValueGeneratedOnAdd()
 0303                        .HasColumnType("INTEGER");
 0304
 0305                    b.Property<int>("Kind")
 0306                        .HasColumnType("INTEGER");
 0307
 0308                    b.Property<Guid?>("Permission_Permissions_Guid")
 0309                        .HasColumnType("TEXT");
 0310
 0311                    b.Property<uint>("RowVersion")
 0312                        .IsConcurrencyToken()
 0313                        .HasColumnType("INTEGER");
 0314
 0315                    b.Property<Guid?>("UserId")
 0316                        .HasColumnType("TEXT");
 0317
 0318                    b.Property<bool>("Value")
 0319                        .HasColumnType("INTEGER");
 0320
 0321                    b.HasKey("Id");
 0322
 0323                    b.HasIndex("UserId", "Kind")
 0324                        .IsUnique()
 0325                        .HasFilter("[UserId] IS NOT NULL");
 0326
 0327                    b.ToTable("Permissions");
 0328                });
 329
 0330            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 0331                {
 0332                    b.Property<int>("Id")
 0333                        .ValueGeneratedOnAdd()
 0334                        .HasColumnType("INTEGER");
 0335
 0336                    b.Property<int>("Kind")
 0337                        .HasColumnType("INTEGER");
 0338
 0339                    b.Property<Guid?>("Preference_Preferences_Guid")
 0340                        .HasColumnType("TEXT");
 0341
 0342                    b.Property<uint>("RowVersion")
 0343                        .IsConcurrencyToken()
 0344                        .HasColumnType("INTEGER");
 0345
 0346                    b.Property<Guid?>("UserId")
 0347                        .HasColumnType("TEXT");
 0348
 0349                    b.Property<string>("Value")
 0350                        .IsRequired()
 0351                        .HasMaxLength(65535)
 0352                        .HasColumnType("TEXT");
 0353
 0354                    b.HasKey("Id");
 0355
 0356                    b.HasIndex("UserId", "Kind")
 0357                        .IsUnique()
 0358                        .HasFilter("[UserId] IS NOT NULL");
 0359
 0360                    b.ToTable("Preferences");
 0361                });
 362
 0363            modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
 0364                {
 0365                    b.Property<int>("Id")
 0366                        .ValueGeneratedOnAdd()
 0367                        .HasColumnType("INTEGER");
 0368
 0369                    b.Property<string>("AccessToken")
 0370                        .IsRequired()
 0371                        .HasColumnType("TEXT");
 0372
 0373                    b.Property<DateTime>("DateCreated")
 0374                        .HasColumnType("TEXT");
 0375
 0376                    b.Property<DateTime>("DateLastActivity")
 0377                        .HasColumnType("TEXT");
 0378
 0379                    b.Property<string>("Name")
 0380                        .IsRequired()
 0381                        .HasMaxLength(64)
 0382                        .HasColumnType("TEXT");
 0383
 0384                    b.HasKey("Id");
 0385
 0386                    b.HasIndex("AccessToken")
 0387                        .IsUnique();
 0388
 0389                    b.ToTable("ApiKeys");
 0390                });
 391
 0392            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 0393                {
 0394                    b.Property<int>("Id")
 0395                        .ValueGeneratedOnAdd()
 0396                        .HasColumnType("INTEGER");
 0397
 0398                    b.Property<string>("AccessToken")
 0399                        .IsRequired()
 0400                        .HasColumnType("TEXT");
 0401
 0402                    b.Property<string>("AppName")
 0403                        .IsRequired()
 0404                        .HasMaxLength(64)
 0405                        .HasColumnType("TEXT");
 0406
 0407                    b.Property<string>("AppVersion")
 0408                        .IsRequired()
 0409                        .HasMaxLength(32)
 0410                        .HasColumnType("TEXT");
 0411
 0412                    b.Property<DateTime>("DateCreated")
 0413                        .HasColumnType("TEXT");
 0414
 0415                    b.Property<DateTime>("DateLastActivity")
 0416                        .HasColumnType("TEXT");
 0417
 0418                    b.Property<DateTime>("DateModified")
 0419                        .HasColumnType("TEXT");
 0420
 0421                    b.Property<string>("DeviceId")
 0422                        .IsRequired()
 0423                        .HasMaxLength(256)
 0424                        .HasColumnType("TEXT");
 0425
 0426                    b.Property<string>("DeviceName")
 0427                        .IsRequired()
 0428                        .HasMaxLength(64)
 0429                        .HasColumnType("TEXT");
 0430
 0431                    b.Property<bool>("IsActive")
 0432                        .HasColumnType("INTEGER");
 0433
 0434                    b.Property<Guid>("UserId")
 0435                        .HasColumnType("TEXT");
 0436
 0437                    b.HasKey("Id");
 0438
 0439                    b.HasIndex("DeviceId");
 0440
 0441                    b.HasIndex("AccessToken", "DateLastActivity");
 0442
 0443                    b.HasIndex("DeviceId", "DateLastActivity");
 0444
 0445                    b.HasIndex("UserId", "DeviceId");
 0446
 0447                    b.ToTable("Devices");
 0448                });
 449
 0450            modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
 0451                {
 0452                    b.Property<int>("Id")
 0453                        .ValueGeneratedOnAdd()
 0454                        .HasColumnType("INTEGER");
 0455
 0456                    b.Property<string>("CustomName")
 0457                        .HasColumnType("TEXT");
 0458
 0459                    b.Property<string>("DeviceId")
 0460                        .IsRequired()
 0461                        .HasColumnType("TEXT");
 0462
 0463                    b.HasKey("Id");
 0464
 0465                    b.HasIndex("DeviceId")
 0466                        .IsUnique();
 0467
 0468                    b.ToTable("DeviceOptions");
 0469                });
 470
 0471            modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
 0472                {
 0473                    b.Property<Guid>("ItemId")
 0474                        .HasColumnType("TEXT");
 0475
 0476                    b.Property<int>("Width")
 0477                        .HasColumnType("INTEGER");
 0478
 0479                    b.Property<int>("Bandwidth")
 0480                        .HasColumnType("INTEGER");
 0481
 0482                    b.Property<int>("Height")
 0483                        .HasColumnType("INTEGER");
 0484
 0485                    b.Property<int>("Interval")
 0486                        .HasColumnType("INTEGER");
 0487
 0488                    b.Property<int>("ThumbnailCount")
 0489                        .HasColumnType("INTEGER");
 0490
 0491                    b.Property<int>("TileHeight")
 0492                        .HasColumnType("INTEGER");
 0493
 0494                    b.Property<int>("TileWidth")
 0495                        .HasColumnType("INTEGER");
 0496
 0497                    b.HasKey("ItemId", "Width");
 0498
 0499                    b.ToTable("TrickplayInfos");
 0500                });
 501
 0502            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 0503                {
 0504                    b.Property<Guid>("Id")
 0505                        .ValueGeneratedOnAdd()
 0506                        .HasColumnType("TEXT");
 0507
 0508                    b.Property<string>("AudioLanguagePreference")
 0509                        .HasMaxLength(255)
 0510                        .HasColumnType("TEXT");
 0511
 0512                    b.Property<string>("AuthenticationProviderId")
 0513                        .IsRequired()
 0514                        .HasMaxLength(255)
 0515                        .HasColumnType("TEXT");
 0516
 0517                    b.Property<string>("CastReceiverId")
 0518                        .HasMaxLength(32)
 0519                        .HasColumnType("TEXT");
 0520
 0521                    b.Property<bool>("DisplayCollectionsView")
 0522                        .HasColumnType("INTEGER");
 0523
 0524                    b.Property<bool>("DisplayMissingEpisodes")
 0525                        .HasColumnType("INTEGER");
 0526
 0527                    b.Property<bool>("EnableAutoLogin")
 0528                        .HasColumnType("INTEGER");
 0529
 0530                    b.Property<bool>("EnableLocalPassword")
 0531                        .HasColumnType("INTEGER");
 0532
 0533                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 0534                        .HasColumnType("INTEGER");
 0535
 0536                    b.Property<bool>("EnableUserPreferenceAccess")
 0537                        .HasColumnType("INTEGER");
 0538
 0539                    b.Property<bool>("HidePlayedInLatest")
 0540                        .HasColumnType("INTEGER");
 0541
 0542                    b.Property<long>("InternalId")
 0543                        .HasColumnType("INTEGER");
 0544
 0545                    b.Property<int>("InvalidLoginAttemptCount")
 0546                        .HasColumnType("INTEGER");
 0547
 0548                    b.Property<DateTime?>("LastActivityDate")
 0549                        .HasColumnType("TEXT");
 0550
 0551                    b.Property<DateTime?>("LastLoginDate")
 0552                        .HasColumnType("TEXT");
 0553
 0554                    b.Property<int?>("LoginAttemptsBeforeLockout")
 0555                        .HasColumnType("INTEGER");
 0556
 0557                    b.Property<int>("MaxActiveSessions")
 0558                        .HasColumnType("INTEGER");
 0559
 0560                    b.Property<int?>("MaxParentalAgeRating")
 0561                        .HasColumnType("INTEGER");
 0562
 0563                    b.Property<bool>("MustUpdatePassword")
 0564                        .HasColumnType("INTEGER");
 0565
 0566                    b.Property<string>("Password")
 0567                        .HasMaxLength(65535)
 0568                        .HasColumnType("TEXT");
 0569
 0570                    b.Property<string>("PasswordResetProviderId")
 0571                        .IsRequired()
 0572                        .HasMaxLength(255)
 0573                        .HasColumnType("TEXT");
 0574
 0575                    b.Property<bool>("PlayDefaultAudioTrack")
 0576                        .HasColumnType("INTEGER");
 0577
 0578                    b.Property<bool>("RememberAudioSelections")
 0579                        .HasColumnType("INTEGER");
 0580
 0581                    b.Property<bool>("RememberSubtitleSelections")
 0582                        .HasColumnType("INTEGER");
 0583
 0584                    b.Property<int?>("RemoteClientBitrateLimit")
 0585                        .HasColumnType("INTEGER");
 0586
 0587                    b.Property<uint>("RowVersion")
 0588                        .IsConcurrencyToken()
 0589                        .HasColumnType("INTEGER");
 0590
 0591                    b.Property<string>("SubtitleLanguagePreference")
 0592                        .HasMaxLength(255)
 0593                        .HasColumnType("TEXT");
 0594
 0595                    b.Property<int>("SubtitleMode")
 0596                        .HasColumnType("INTEGER");
 0597
 0598                    b.Property<int>("SyncPlayAccess")
 0599                        .HasColumnType("INTEGER");
 0600
 0601                    b.Property<string>("Username")
 0602                        .IsRequired()
 0603                        .HasMaxLength(255)
 0604                        .HasColumnType("TEXT")
 0605                        .UseCollation("NOCASE");
 0606
 0607                    b.HasKey("Id");
 0608
 0609                    b.HasIndex("Username")
 0610                        .IsUnique();
 0611
 0612                    b.ToTable("Users");
 0613                });
 614
 0615            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 0616                {
 0617                    b.HasOne("Jellyfin.Data.Entities.User", null)
 0618                        .WithMany("AccessSchedules")
 0619                        .HasForeignKey("UserId")
 0620                        .OnDelete(DeleteBehavior.Cascade)
 0621                        .IsRequired();
 0622                });
 623
 0624            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 0625                {
 0626                    b.HasOne("Jellyfin.Data.Entities.User", null)
 0627                        .WithMany("DisplayPreferences")
 0628                        .HasForeignKey("UserId")
 0629                        .OnDelete(DeleteBehavior.Cascade)
 0630                        .IsRequired();
 0631                });
 632
 0633            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 0634                {
 0635                    b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
 0636                        .WithMany("HomeSections")
 0637                        .HasForeignKey("DisplayPreferencesId")
 0638                        .OnDelete(DeleteBehavior.Cascade)
 0639                        .IsRequired();
 0640                });
 641
 0642            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 0643                {
 0644                    b.HasOne("Jellyfin.Data.Entities.User", null)
 0645                        .WithOne("ProfileImage")
 0646                        .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
 0647                        .OnDelete(DeleteBehavior.Cascade);
 0648                });
 649
 0650            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 0651                {
 0652                    b.HasOne("Jellyfin.Data.Entities.User", null)
 0653                        .WithMany("ItemDisplayPreferences")
 0654                        .HasForeignKey("UserId")
 0655                        .OnDelete(DeleteBehavior.Cascade)
 0656                        .IsRequired();
 0657                });
 658
 0659            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 0660                {
 0661                    b.HasOne("Jellyfin.Data.Entities.User", null)
 0662                        .WithMany("Permissions")
 0663                        .HasForeignKey("UserId")
 0664                        .OnDelete(DeleteBehavior.Cascade);
 0665                });
 666
 0667            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 0668                {
 0669                    b.HasOne("Jellyfin.Data.Entities.User", null)
 0670                        .WithMany("Preferences")
 0671                        .HasForeignKey("UserId")
 0672                        .OnDelete(DeleteBehavior.Cascade);
 0673                });
 674
 0675            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 0676                {
 0677                    b.HasOne("Jellyfin.Data.Entities.User", "User")
 0678                        .WithMany()
 0679                        .HasForeignKey("UserId")
 0680                        .OnDelete(DeleteBehavior.Cascade)
 0681                        .IsRequired();
 0682
 0683                    b.Navigation("User");
 0684                });
 685
 0686            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 0687                {
 0688                    b.Navigation("HomeSections");
 0689                });
 690
 0691            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 0692                {
 0693                    b.Navigation("AccessSchedules");
 0694
 0695                    b.Navigation("DisplayPreferences");
 0696
 0697                    b.Navigation("ItemDisplayPreferences");
 0698
 0699                    b.Navigation("Permissions");
 0700
 0701                    b.Navigation("Preferences");
 0702
 0703                    b.Navigation("ProfileImage");
 0704                });
 705#pragma warning restore 612, 618
 0706        }
 707    }
 708}