< Summary - Jellyfin

Line coverage
99%
Covered lines: 1618
Uncovered lines: 4
Coverable lines: 1622
Total lines: 1718
Line coverage: 99.7%
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/11/2026 - 12:15:59 AM Line coverage: 99.7% (1585/1589) Total lines: 16838/11/2026 - 12:17:00 AM Line coverage: 99.7% (1618/1622) Total lines: 1718

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/20250327171413_AddHdr10PlusFlag.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Jellyfin.Server.Implementations.Migrations
 6{
 7    /// <inheritdoc />
 8    public partial class AddHdr10PlusFlag : Migration
 9    {
 10        /// <inheritdoc />
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 2713            migrationBuilder.AddColumn<bool>(
 2714                name: "Hdr10PlusPresentFlag",
 2715                table: "MediaStreamInfos",
 2716                type: "INTEGER",
 2717                nullable: true);
 2718        }
 19
 20        /// <inheritdoc />
 21        protected override void Down(MigrationBuilder migrationBuilder)
 22        {
 023            migrationBuilder.DropColumn(
 024                name: "Hdr10PlusPresentFlag",
 025                table: "MediaStreamInfos");
 026        }
 27    }
 28}

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20250327171413_AddHdr10PlusFlag.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("20250327171413_AddHdr10PlusFlag")]
 15    partial class AddHdr10PlusFlag
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 2721            modelBuilder.HasAnnotation("ProductVersion", "9.0.3");
 22
 2723            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 2724                {
 2725                    b.Property<int>("Id")
 2726                        .ValueGeneratedOnAdd()
 2727                        .HasColumnType("INTEGER");
 2728
 2729                    b.Property<int>("DayOfWeek")
 2730                        .HasColumnType("INTEGER");
 2731
 2732                    b.Property<double>("EndHour")
 2733                        .HasColumnType("REAL");
 2734
 2735                    b.Property<double>("StartHour")
 2736                        .HasColumnType("REAL");
 2737
 2738                    b.Property<Guid>("UserId")
 2739                        .HasColumnType("TEXT");
 2740
 2741                    b.HasKey("Id");
 2742
 2743                    b.HasIndex("UserId");
 2744
 2745                    b.ToTable("AccessSchedules");
 2746
 2747                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2748                });
 49
 2750            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ActivityLog", b =>
 2751                {
 2752                    b.Property<int>("Id")
 2753                        .ValueGeneratedOnAdd()
 2754                        .HasColumnType("INTEGER");
 2755
 2756                    b.Property<DateTime>("DateCreated")
 2757                        .HasColumnType("TEXT");
 2758
 2759                    b.Property<string>("ItemId")
 2760                        .HasMaxLength(256)
 2761                        .HasColumnType("TEXT");
 2762
 2763                    b.Property<int>("LogSeverity")
 2764                        .HasColumnType("INTEGER");
 2765
 2766                    b.Property<string>("Name")
 2767                        .IsRequired()
 2768                        .HasMaxLength(512)
 2769                        .HasColumnType("TEXT");
 2770
 2771                    b.Property<string>("Overview")
 2772                        .HasMaxLength(512)
 2773                        .HasColumnType("TEXT");
 2774
 2775                    b.Property<uint>("RowVersion")
 2776                        .IsConcurrencyToken()
 2777                        .HasColumnType("INTEGER");
 2778
 2779                    b.Property<string>("ShortOverview")
 2780                        .HasMaxLength(512)
 2781                        .HasColumnType("TEXT");
 2782
 2783                    b.Property<string>("Type")
 2784                        .IsRequired()
 2785                        .HasMaxLength(256)
 2786                        .HasColumnType("TEXT");
 2787
 2788                    b.Property<Guid>("UserId")
 2789                        .HasColumnType("TEXT");
 2790
 2791                    b.HasKey("Id");
 2792
 2793                    b.HasIndex("DateCreated");
 2794
 2795                    b.ToTable("ActivityLogs");
 2796
 2797                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2798                });
 99
 27100            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 27101                {
 27102                    b.Property<Guid>("ItemId")
 27103                        .HasColumnType("TEXT");
 27104
 27105                    b.Property<Guid>("ParentItemId")
 27106                        .HasColumnType("TEXT");
 27107
 27108                    b.HasKey("ItemId", "ParentItemId");
 27109
 27110                    b.HasIndex("ParentItemId");
 27111
 27112                    b.ToTable("AncestorIds");
 27113
 27114                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27115                });
 116
 27117            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 27118                {
 27119                    b.Property<Guid>("ItemId")
 27120                        .HasColumnType("TEXT");
 27121
 27122                    b.Property<int>("Index")
 27123                        .HasColumnType("INTEGER");
 27124
 27125                    b.Property<string>("Codec")
 27126                        .IsRequired()
 27127                        .HasColumnType("TEXT");
 27128
 27129                    b.Property<string>("CodecTag")
 27130                        .HasColumnType("TEXT");
 27131
 27132                    b.Property<string>("Comment")
 27133                        .HasColumnType("TEXT");
 27134
 27135                    b.Property<string>("Filename")
 27136                        .HasColumnType("TEXT");
 27137
 27138                    b.Property<string>("MimeType")
 27139                        .HasColumnType("TEXT");
 27140
 27141                    b.HasKey("ItemId", "Index");
 27142
 27143                    b.ToTable("AttachmentStreamInfos");
 27144
 27145                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27146                });
 147
 27148            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 27149                {
 27150                    b.Property<Guid>("Id")
 27151                        .ValueGeneratedOnAdd()
 27152                        .HasColumnType("TEXT");
 27153
 27154                    b.Property<string>("Album")
 27155                        .HasColumnType("TEXT");
 27156
 27157                    b.Property<string>("AlbumArtists")
 27158                        .HasColumnType("TEXT");
 27159
 27160                    b.Property<string>("Artists")
 27161                        .HasColumnType("TEXT");
 27162
 27163                    b.Property<int?>("Audio")
 27164                        .HasColumnType("INTEGER");
 27165
 27166                    b.Property<Guid?>("ChannelId")
 27167                        .HasColumnType("TEXT");
 27168
 27169                    b.Property<string>("CleanName")
 27170                        .HasColumnType("TEXT");
 27171
 27172                    b.Property<float?>("CommunityRating")
 27173                        .HasColumnType("REAL");
 27174
 27175                    b.Property<float?>("CriticRating")
 27176                        .HasColumnType("REAL");
 27177
 27178                    b.Property<string>("CustomRating")
 27179                        .HasColumnType("TEXT");
 27180
 27181                    b.Property<string>("Data")
 27182                        .HasColumnType("TEXT");
 27183
 27184                    b.Property<DateTime?>("DateCreated")
 27185                        .HasColumnType("TEXT");
 27186
 27187                    b.Property<DateTime?>("DateLastMediaAdded")
 27188                        .HasColumnType("TEXT");
 27189
 27190                    b.Property<DateTime?>("DateLastRefreshed")
 27191                        .HasColumnType("TEXT");
 27192
 27193                    b.Property<DateTime?>("DateLastSaved")
 27194                        .HasColumnType("TEXT");
 27195
 27196                    b.Property<DateTime?>("DateModified")
 27197                        .HasColumnType("TEXT");
 27198
 27199                    b.Property<DateTime?>("EndDate")
 27200                        .HasColumnType("TEXT");
 27201
 27202                    b.Property<string>("EpisodeTitle")
 27203                        .HasColumnType("TEXT");
 27204
 27205                    b.Property<string>("ExternalId")
 27206                        .HasColumnType("TEXT");
 27207
 27208                    b.Property<string>("ExternalSeriesId")
 27209                        .HasColumnType("TEXT");
 27210
 27211                    b.Property<string>("ExternalServiceId")
 27212                        .HasColumnType("TEXT");
 27213
 27214                    b.Property<string>("ExtraIds")
 27215                        .HasColumnType("TEXT");
 27216
 27217                    b.Property<int?>("ExtraType")
 27218                        .HasColumnType("INTEGER");
 27219
 27220                    b.Property<string>("ForcedSortName")
 27221                        .HasColumnType("TEXT");
 27222
 27223                    b.Property<string>("Genres")
 27224                        .HasColumnType("TEXT");
 27225
 27226                    b.Property<int?>("Height")
 27227                        .HasColumnType("INTEGER");
 27228
 27229                    b.Property<int?>("IndexNumber")
 27230                        .HasColumnType("INTEGER");
 27231
 27232                    b.Property<int?>("InheritedParentalRatingSubValue")
 27233                        .HasColumnType("INTEGER");
 27234
 27235                    b.Property<int?>("InheritedParentalRatingValue")
 27236                        .HasColumnType("INTEGER");
 27237
 27238                    b.Property<bool>("IsFolder")
 27239                        .HasColumnType("INTEGER");
 27240
 27241                    b.Property<bool>("IsInMixedFolder")
 27242                        .HasColumnType("INTEGER");
 27243
 27244                    b.Property<bool>("IsLocked")
 27245                        .HasColumnType("INTEGER");
 27246
 27247                    b.Property<bool>("IsMovie")
 27248                        .HasColumnType("INTEGER");
 27249
 27250                    b.Property<bool>("IsRepeat")
 27251                        .HasColumnType("INTEGER");
 27252
 27253                    b.Property<bool>("IsSeries")
 27254                        .HasColumnType("INTEGER");
 27255
 27256                    b.Property<bool>("IsVirtualItem")
 27257                        .HasColumnType("INTEGER");
 27258
 27259                    b.Property<float?>("LUFS")
 27260                        .HasColumnType("REAL");
 27261
 27262                    b.Property<string>("MediaType")
 27263                        .HasColumnType("TEXT");
 27264
 27265                    b.Property<string>("Name")
 27266                        .HasColumnType("TEXT");
 27267
 27268                    b.Property<float?>("NormalizationGain")
 27269                        .HasColumnType("REAL");
 27270
 27271                    b.Property<string>("OfficialRating")
 27272                        .HasColumnType("TEXT");
 27273
 27274                    b.Property<string>("OriginalTitle")
 27275                        .HasColumnType("TEXT");
 27276
 27277                    b.Property<string>("Overview")
 27278                        .HasColumnType("TEXT");
 27279
 27280                    b.Property<string>("OwnerId")
 27281                        .HasColumnType("TEXT");
 27282
 27283                    b.Property<Guid?>("ParentId")
 27284                        .HasColumnType("TEXT");
 27285
 27286                    b.Property<int?>("ParentIndexNumber")
 27287                        .HasColumnType("INTEGER");
 27288
 27289                    b.Property<string>("Path")
 27290                        .HasColumnType("TEXT");
 27291
 27292                    b.Property<string>("PreferredMetadataCountryCode")
 27293                        .HasColumnType("TEXT");
 27294
 27295                    b.Property<string>("PreferredMetadataLanguage")
 27296                        .HasColumnType("TEXT");
 27297
 27298                    b.Property<DateTime?>("PremiereDate")
 27299                        .HasColumnType("TEXT");
 27300
 27301                    b.Property<string>("PresentationUniqueKey")
 27302                        .HasColumnType("TEXT");
 27303
 27304                    b.Property<string>("PrimaryVersionId")
 27305                        .HasColumnType("TEXT");
 27306
 27307                    b.Property<string>("ProductionLocations")
 27308                        .HasColumnType("TEXT");
 27309
 27310                    b.Property<int?>("ProductionYear")
 27311                        .HasColumnType("INTEGER");
 27312
 27313                    b.Property<long?>("RunTimeTicks")
 27314                        .HasColumnType("INTEGER");
 27315
 27316                    b.Property<Guid?>("SeasonId")
 27317                        .HasColumnType("TEXT");
 27318
 27319                    b.Property<string>("SeasonName")
 27320                        .HasColumnType("TEXT");
 27321
 27322                    b.Property<Guid?>("SeriesId")
 27323                        .HasColumnType("TEXT");
 27324
 27325                    b.Property<string>("SeriesName")
 27326                        .HasColumnType("TEXT");
 27327
 27328                    b.Property<string>("SeriesPresentationUniqueKey")
 27329                        .HasColumnType("TEXT");
 27330
 27331                    b.Property<string>("ShowId")
 27332                        .HasColumnType("TEXT");
 27333
 27334                    b.Property<long?>("Size")
 27335                        .HasColumnType("INTEGER");
 27336
 27337                    b.Property<string>("SortName")
 27338                        .HasColumnType("TEXT");
 27339
 27340                    b.Property<DateTime?>("StartDate")
 27341                        .HasColumnType("TEXT");
 27342
 27343                    b.Property<string>("Studios")
 27344                        .HasColumnType("TEXT");
 27345
 27346                    b.Property<string>("Tagline")
 27347                        .HasColumnType("TEXT");
 27348
 27349                    b.Property<string>("Tags")
 27350                        .HasColumnType("TEXT");
 27351
 27352                    b.Property<Guid?>("TopParentId")
 27353                        .HasColumnType("TEXT");
 27354
 27355                    b.Property<int?>("TotalBitrate")
 27356                        .HasColumnType("INTEGER");
 27357
 27358                    b.Property<string>("Type")
 27359                        .IsRequired()
 27360                        .HasColumnType("TEXT");
 27361
 27362                    b.Property<string>("UnratedType")
 27363                        .HasColumnType("TEXT");
 27364
 27365                    b.Property<int?>("Width")
 27366                        .HasColumnType("INTEGER");
 27367
 27368                    b.HasKey("Id");
 27369
 27370                    b.HasIndex("ParentId");
 27371
 27372                    b.HasIndex("Path");
 27373
 27374                    b.HasIndex("PresentationUniqueKey");
 27375
 27376                    b.HasIndex("TopParentId", "Id");
 27377
 27378                    b.HasIndex("Type", "TopParentId", "Id");
 27379
 27380                    b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
 27381
 27382                    b.HasIndex("Type", "TopParentId", "StartDate");
 27383
 27384                    b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
 27385
 27386                    b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
 27387
 27388                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
 27389
 27390                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
 27391
 27392                    b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 27393
 27394                    b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 27395
 27396                    b.ToTable("BaseItems");
 27397
 27398                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27399                });
 400
 27401            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 27402                {
 27403                    b.Property<Guid>("Id")
 27404                        .ValueGeneratedOnAdd()
 27405                        .HasColumnType("TEXT");
 27406
 27407                    b.Property<byte[]>("Blurhash")
 27408                        .HasColumnType("BLOB");
 27409
 27410                    b.Property<DateTime>("DateModified")
 27411                        .HasColumnType("TEXT");
 27412
 27413                    b.Property<int>("Height")
 27414                        .HasColumnType("INTEGER");
 27415
 27416                    b.Property<int>("ImageType")
 27417                        .HasColumnType("INTEGER");
 27418
 27419                    b.Property<Guid>("ItemId")
 27420                        .HasColumnType("TEXT");
 27421
 27422                    b.Property<string>("Path")
 27423                        .IsRequired()
 27424                        .HasColumnType("TEXT");
 27425
 27426                    b.Property<int>("Width")
 27427                        .HasColumnType("INTEGER");
 27428
 27429                    b.HasKey("Id");
 27430
 27431                    b.HasIndex("ItemId");
 27432
 27433                    b.ToTable("BaseItemImageInfos");
 27434
 27435                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27436                });
 437
 27438            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 27439                {
 27440                    b.Property<int>("Id")
 27441                        .HasColumnType("INTEGER");
 27442
 27443                    b.Property<Guid>("ItemId")
 27444                        .HasColumnType("TEXT");
 27445
 27446                    b.HasKey("Id", "ItemId");
 27447
 27448                    b.HasIndex("ItemId");
 27449
 27450                    b.ToTable("BaseItemMetadataFields");
 27451
 27452                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27453                });
 454
 27455            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 27456                {
 27457                    b.Property<Guid>("ItemId")
 27458                        .HasColumnType("TEXT");
 27459
 27460                    b.Property<string>("ProviderId")
 27461                        .HasColumnType("TEXT");
 27462
 27463                    b.Property<string>("ProviderValue")
 27464                        .IsRequired()
 27465                        .HasColumnType("TEXT");
 27466
 27467                    b.HasKey("ItemId", "ProviderId");
 27468
 27469                    b.HasIndex("ProviderId", "ProviderValue", "ItemId");
 27470
 27471                    b.ToTable("BaseItemProviders");
 27472
 27473                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27474                });
 475
 27476            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 27477                {
 27478                    b.Property<int>("Id")
 27479                        .HasColumnType("INTEGER");
 27480
 27481                    b.Property<Guid>("ItemId")
 27482                        .HasColumnType("TEXT");
 27483
 27484                    b.HasKey("Id", "ItemId");
 27485
 27486                    b.HasIndex("ItemId");
 27487
 27488                    b.ToTable("BaseItemTrailerTypes");
 27489
 27490                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27491                });
 492
 27493            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 27494                {
 27495                    b.Property<Guid>("ItemId")
 27496                        .HasColumnType("TEXT");
 27497
 27498                    b.Property<int>("ChapterIndex")
 27499                        .HasColumnType("INTEGER");
 27500
 27501                    b.Property<DateTime?>("ImageDateModified")
 27502                        .HasColumnType("TEXT");
 27503
 27504                    b.Property<string>("ImagePath")
 27505                        .HasColumnType("TEXT");
 27506
 27507                    b.Property<string>("Name")
 27508                        .HasColumnType("TEXT");
 27509
 27510                    b.Property<long>("StartPositionTicks")
 27511                        .HasColumnType("INTEGER");
 27512
 27513                    b.HasKey("ItemId", "ChapterIndex");
 27514
 27515                    b.ToTable("Chapters");
 27516
 27517                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27518                });
 519
 27520            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.CustomItemDisplayPreferences", b =>
 27521                {
 27522                    b.Property<int>("Id")
 27523                        .ValueGeneratedOnAdd()
 27524                        .HasColumnType("INTEGER");
 27525
 27526                    b.Property<string>("Client")
 27527                        .IsRequired()
 27528                        .HasMaxLength(32)
 27529                        .HasColumnType("TEXT");
 27530
 27531                    b.Property<Guid>("ItemId")
 27532                        .HasColumnType("TEXT");
 27533
 27534                    b.Property<string>("Key")
 27535                        .IsRequired()
 27536                        .HasColumnType("TEXT");
 27537
 27538                    b.Property<Guid>("UserId")
 27539                        .HasColumnType("TEXT");
 27540
 27541                    b.Property<string>("Value")
 27542                        .HasColumnType("TEXT");
 27543
 27544                    b.HasKey("Id");
 27545
 27546                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 27547                        .IsUnique();
 27548
 27549                    b.ToTable("CustomItemDisplayPreferences");
 27550
 27551                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27552                });
 553
 27554            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 27555                {
 27556                    b.Property<int>("Id")
 27557                        .ValueGeneratedOnAdd()
 27558                        .HasColumnType("INTEGER");
 27559
 27560                    b.Property<int>("ChromecastVersion")
 27561                        .HasColumnType("INTEGER");
 27562
 27563                    b.Property<string>("Client")
 27564                        .IsRequired()
 27565                        .HasMaxLength(32)
 27566                        .HasColumnType("TEXT");
 27567
 27568                    b.Property<string>("DashboardTheme")
 27569                        .HasMaxLength(32)
 27570                        .HasColumnType("TEXT");
 27571
 27572                    b.Property<bool>("EnableNextVideoInfoOverlay")
 27573                        .HasColumnType("INTEGER");
 27574
 27575                    b.Property<int?>("IndexBy")
 27576                        .HasColumnType("INTEGER");
 27577
 27578                    b.Property<Guid>("ItemId")
 27579                        .HasColumnType("TEXT");
 27580
 27581                    b.Property<int>("ScrollDirection")
 27582                        .HasColumnType("INTEGER");
 27583
 27584                    b.Property<bool>("ShowBackdrop")
 27585                        .HasColumnType("INTEGER");
 27586
 27587                    b.Property<bool>("ShowSidebar")
 27588                        .HasColumnType("INTEGER");
 27589
 27590                    b.Property<int>("SkipBackwardLength")
 27591                        .HasColumnType("INTEGER");
 27592
 27593                    b.Property<int>("SkipForwardLength")
 27594                        .HasColumnType("INTEGER");
 27595
 27596                    b.Property<string>("TvHome")
 27597                        .HasMaxLength(32)
 27598                        .HasColumnType("TEXT");
 27599
 27600                    b.Property<Guid>("UserId")
 27601                        .HasColumnType("TEXT");
 27602
 27603                    b.HasKey("Id");
 27604
 27605                    b.HasIndex("UserId", "ItemId", "Client")
 27606                        .IsUnique();
 27607
 27608                    b.ToTable("DisplayPreferences");
 27609
 27610                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27611                });
 612
 27613            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 27614                {
 27615                    b.Property<int>("Id")
 27616                        .ValueGeneratedOnAdd()
 27617                        .HasColumnType("INTEGER");
 27618
 27619                    b.Property<int>("DisplayPreferencesId")
 27620                        .HasColumnType("INTEGER");
 27621
 27622                    b.Property<int>("Order")
 27623                        .HasColumnType("INTEGER");
 27624
 27625                    b.Property<int>("Type")
 27626                        .HasColumnType("INTEGER");
 27627
 27628                    b.HasKey("Id");
 27629
 27630                    b.HasIndex("DisplayPreferencesId");
 27631
 27632                    b.ToTable("HomeSection");
 27633
 27634                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27635                });
 636
 27637            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 27638                {
 27639                    b.Property<int>("Id")
 27640                        .ValueGeneratedOnAdd()
 27641                        .HasColumnType("INTEGER");
 27642
 27643                    b.Property<DateTime>("LastModified")
 27644                        .HasColumnType("TEXT");
 27645
 27646                    b.Property<string>("Path")
 27647                        .IsRequired()
 27648                        .HasMaxLength(512)
 27649                        .HasColumnType("TEXT");
 27650
 27651                    b.Property<Guid?>("UserId")
 27652                        .HasColumnType("TEXT");
 27653
 27654                    b.HasKey("Id");
 27655
 27656                    b.HasIndex("UserId")
 27657                        .IsUnique();
 27658
 27659                    b.ToTable("ImageInfos");
 27660
 27661                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27662                });
 663
 27664            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 27665                {
 27666                    b.Property<int>("Id")
 27667                        .ValueGeneratedOnAdd()
 27668                        .HasColumnType("INTEGER");
 27669
 27670                    b.Property<string>("Client")
 27671                        .IsRequired()
 27672                        .HasMaxLength(32)
 27673                        .HasColumnType("TEXT");
 27674
 27675                    b.Property<int?>("IndexBy")
 27676                        .HasColumnType("INTEGER");
 27677
 27678                    b.Property<Guid>("ItemId")
 27679                        .HasColumnType("TEXT");
 27680
 27681                    b.Property<bool>("RememberIndexing")
 27682                        .HasColumnType("INTEGER");
 27683
 27684                    b.Property<bool>("RememberSorting")
 27685                        .HasColumnType("INTEGER");
 27686
 27687                    b.Property<string>("SortBy")
 27688                        .IsRequired()
 27689                        .HasMaxLength(64)
 27690                        .HasColumnType("TEXT");
 27691
 27692                    b.Property<int>("SortOrder")
 27693                        .HasColumnType("INTEGER");
 27694
 27695                    b.Property<Guid>("UserId")
 27696                        .HasColumnType("TEXT");
 27697
 27698                    b.Property<int>("ViewType")
 27699                        .HasColumnType("INTEGER");
 27700
 27701                    b.HasKey("Id");
 27702
 27703                    b.HasIndex("UserId");
 27704
 27705                    b.ToTable("ItemDisplayPreferences");
 27706
 27707                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27708                });
 709
 27710            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 27711                {
 27712                    b.Property<Guid>("ItemValueId")
 27713                        .ValueGeneratedOnAdd()
 27714                        .HasColumnType("TEXT");
 27715
 27716                    b.Property<string>("CleanValue")
 27717                        .IsRequired()
 27718                        .HasColumnType("TEXT");
 27719
 27720                    b.Property<int>("Type")
 27721                        .HasColumnType("INTEGER");
 27722
 27723                    b.Property<string>("Value")
 27724                        .IsRequired()
 27725                        .HasColumnType("TEXT");
 27726
 27727                    b.HasKey("ItemValueId");
 27728
 27729                    b.HasIndex("Type", "CleanValue")
 27730                        .IsUnique();
 27731
 27732                    b.ToTable("ItemValues");
 27733
 27734                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27735                });
 736
 27737            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 27738                {
 27739                    b.Property<Guid>("ItemValueId")
 27740                        .HasColumnType("TEXT");
 27741
 27742                    b.Property<Guid>("ItemId")
 27743                        .HasColumnType("TEXT");
 27744
 27745                    b.HasKey("ItemValueId", "ItemId");
 27746
 27747                    b.HasIndex("ItemId");
 27748
 27749                    b.ToTable("ItemValuesMap");
 27750
 27751                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27752                });
 753
 27754            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 27755                {
 27756                    b.Property<Guid>("ItemId")
 27757                        .HasColumnType("TEXT");
 27758
 27759                    b.PrimitiveCollection<string>("KeyframeTicks")
 27760                        .HasColumnType("TEXT");
 27761
 27762                    b.Property<long>("TotalDuration")
 27763                        .HasColumnType("INTEGER");
 27764
 27765                    b.HasKey("ItemId");
 27766
 27767                    b.ToTable("KeyframeData");
 27768
 27769                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27770                });
 771
 27772            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaSegment", b =>
 27773                {
 27774                    b.Property<Guid>("Id")
 27775                        .ValueGeneratedOnAdd()
 27776                        .HasColumnType("TEXT");
 27777
 27778                    b.Property<long>("EndTicks")
 27779                        .HasColumnType("INTEGER");
 27780
 27781                    b.Property<Guid>("ItemId")
 27782                        .HasColumnType("TEXT");
 27783
 27784                    b.Property<string>("SegmentProviderId")
 27785                        .IsRequired()
 27786                        .HasColumnType("TEXT");
 27787
 27788                    b.Property<long>("StartTicks")
 27789                        .HasColumnType("INTEGER");
 27790
 27791                    b.Property<int>("Type")
 27792                        .HasColumnType("INTEGER");
 27793
 27794                    b.HasKey("Id");
 27795
 27796                    b.ToTable("MediaSegments");
 27797
 27798                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27799                });
 800
 27801            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 27802                {
 27803                    b.Property<Guid>("ItemId")
 27804                        .HasColumnType("TEXT");
 27805
 27806                    b.Property<int>("StreamIndex")
 27807                        .HasColumnType("INTEGER");
 27808
 27809                    b.Property<string>("AspectRatio")
 27810                        .HasColumnType("TEXT");
 27811
 27812                    b.Property<float?>("AverageFrameRate")
 27813                        .HasColumnType("REAL");
 27814
 27815                    b.Property<int?>("BitDepth")
 27816                        .HasColumnType("INTEGER");
 27817
 27818                    b.Property<int?>("BitRate")
 27819                        .HasColumnType("INTEGER");
 27820
 27821                    b.Property<int?>("BlPresentFlag")
 27822                        .HasColumnType("INTEGER");
 27823
 27824                    b.Property<string>("ChannelLayout")
 27825                        .HasColumnType("TEXT");
 27826
 27827                    b.Property<int?>("Channels")
 27828                        .HasColumnType("INTEGER");
 27829
 27830                    b.Property<string>("Codec")
 27831                        .HasColumnType("TEXT");
 27832
 27833                    b.Property<string>("CodecTag")
 27834                        .HasColumnType("TEXT");
 27835
 27836                    b.Property<string>("CodecTimeBase")
 27837                        .HasColumnType("TEXT");
 27838
 27839                    b.Property<string>("ColorPrimaries")
 27840                        .HasColumnType("TEXT");
 27841
 27842                    b.Property<string>("ColorSpace")
 27843                        .HasColumnType("TEXT");
 27844
 27845                    b.Property<string>("ColorTransfer")
 27846                        .HasColumnType("TEXT");
 27847
 27848                    b.Property<string>("Comment")
 27849                        .HasColumnType("TEXT");
 27850
 27851                    b.Property<int?>("DvBlSignalCompatibilityId")
 27852                        .HasColumnType("INTEGER");
 27853
 27854                    b.Property<int?>("DvLevel")
 27855                        .HasColumnType("INTEGER");
 27856
 27857                    b.Property<int?>("DvProfile")
 27858                        .HasColumnType("INTEGER");
 27859
 27860                    b.Property<int?>("DvVersionMajor")
 27861                        .HasColumnType("INTEGER");
 27862
 27863                    b.Property<int?>("DvVersionMinor")
 27864                        .HasColumnType("INTEGER");
 27865
 27866                    b.Property<int?>("ElPresentFlag")
 27867                        .HasColumnType("INTEGER");
 27868
 27869                    b.Property<bool?>("Hdr10PlusPresentFlag")
 27870                        .HasColumnType("INTEGER");
 27871
 27872                    b.Property<int?>("Height")
 27873                        .HasColumnType("INTEGER");
 27874
 27875                    b.Property<bool?>("IsAnamorphic")
 27876                        .HasColumnType("INTEGER");
 27877
 27878                    b.Property<bool?>("IsAvc")
 27879                        .HasColumnType("INTEGER");
 27880
 27881                    b.Property<bool>("IsDefault")
 27882                        .HasColumnType("INTEGER");
 27883
 27884                    b.Property<bool>("IsExternal")
 27885                        .HasColumnType("INTEGER");
 27886
 27887                    b.Property<bool>("IsForced")
 27888                        .HasColumnType("INTEGER");
 27889
 27890                    b.Property<bool?>("IsHearingImpaired")
 27891                        .HasColumnType("INTEGER");
 27892
 27893                    b.Property<bool?>("IsInterlaced")
 27894                        .HasColumnType("INTEGER");
 27895
 27896                    b.Property<string>("KeyFrames")
 27897                        .HasColumnType("TEXT");
 27898
 27899                    b.Property<string>("Language")
 27900                        .HasColumnType("TEXT");
 27901
 27902                    b.Property<float?>("Level")
 27903                        .HasColumnType("REAL");
 27904
 27905                    b.Property<string>("NalLengthSize")
 27906                        .HasColumnType("TEXT");
 27907
 27908                    b.Property<string>("Path")
 27909                        .HasColumnType("TEXT");
 27910
 27911                    b.Property<string>("PixelFormat")
 27912                        .HasColumnType("TEXT");
 27913
 27914                    b.Property<string>("Profile")
 27915                        .HasColumnType("TEXT");
 27916
 27917                    b.Property<float?>("RealFrameRate")
 27918                        .HasColumnType("REAL");
 27919
 27920                    b.Property<int?>("RefFrames")
 27921                        .HasColumnType("INTEGER");
 27922
 27923                    b.Property<int?>("Rotation")
 27924                        .HasColumnType("INTEGER");
 27925
 27926                    b.Property<int?>("RpuPresentFlag")
 27927                        .HasColumnType("INTEGER");
 27928
 27929                    b.Property<int?>("SampleRate")
 27930                        .HasColumnType("INTEGER");
 27931
 27932                    b.Property<int>("StreamType")
 27933                        .HasColumnType("INTEGER");
 27934
 27935                    b.Property<string>("TimeBase")
 27936                        .HasColumnType("TEXT");
 27937
 27938                    b.Property<string>("Title")
 27939                        .HasColumnType("TEXT");
 27940
 27941                    b.Property<int?>("Width")
 27942                        .HasColumnType("INTEGER");
 27943
 27944                    b.HasKey("ItemId", "StreamIndex");
 27945
 27946                    b.HasIndex("StreamIndex");
 27947
 27948                    b.HasIndex("StreamType");
 27949
 27950                    b.HasIndex("StreamIndex", "StreamType");
 27951
 27952                    b.HasIndex("StreamIndex", "StreamType", "Language");
 27953
 27954                    b.ToTable("MediaStreamInfos");
 27955
 27956                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27957                });
 958
 27959            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 27960                {
 27961                    b.Property<Guid>("Id")
 27962                        .ValueGeneratedOnAdd()
 27963                        .HasColumnType("TEXT");
 27964
 27965                    b.Property<string>("Name")
 27966                        .IsRequired()
 27967                        .HasColumnType("TEXT");
 27968
 27969                    b.Property<string>("PersonType")
 27970                        .HasColumnType("TEXT");
 27971
 27972                    b.HasKey("Id");
 27973
 27974                    b.HasIndex("Name");
 27975
 27976                    b.ToTable("Peoples");
 27977
 27978                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27979                });
 980
 27981            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 27982                {
 27983                    b.Property<Guid>("ItemId")
 27984                        .HasColumnType("TEXT");
 27985
 27986                    b.Property<Guid>("PeopleId")
 27987                        .HasColumnType("TEXT");
 27988
 27989                    b.Property<int?>("ListOrder")
 27990                        .HasColumnType("INTEGER");
 27991
 27992                    b.Property<string>("Role")
 27993                        .HasColumnType("TEXT");
 27994
 27995                    b.Property<int?>("SortOrder")
 27996                        .HasColumnType("INTEGER");
 27997
 27998                    b.HasKey("ItemId", "PeopleId");
 27999
 271000                    b.HasIndex("PeopleId");
 271001
 271002                    b.HasIndex("ItemId", "ListOrder");
 271003
 271004                    b.HasIndex("ItemId", "SortOrder");
 271005
 271006                    b.ToTable("PeopleBaseItemMap");
 271007
 271008                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271009                });
 1010
 271011            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 271012                {
 271013                    b.Property<int>("Id")
 271014                        .ValueGeneratedOnAdd()
 271015                        .HasColumnType("INTEGER");
 271016
 271017                    b.Property<int>("Kind")
 271018                        .HasColumnType("INTEGER");
 271019
 271020                    b.Property<Guid?>("Permission_Permissions_Guid")
 271021                        .HasColumnType("TEXT");
 271022
 271023                    b.Property<uint>("RowVersion")
 271024                        .IsConcurrencyToken()
 271025                        .HasColumnType("INTEGER");
 271026
 271027                    b.Property<Guid?>("UserId")
 271028                        .HasColumnType("TEXT");
 271029
 271030                    b.Property<bool>("Value")
 271031                        .HasColumnType("INTEGER");
 271032
 271033                    b.HasKey("Id");
 271034
 271035                    b.HasIndex("UserId", "Kind")
 271036                        .IsUnique()
 271037                        .HasFilter("[UserId] IS NOT NULL");
 271038
 271039                    b.ToTable("Permissions");
 271040
 271041                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271042                });
 1043
 271044            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 271045                {
 271046                    b.Property<int>("Id")
 271047                        .ValueGeneratedOnAdd()
 271048                        .HasColumnType("INTEGER");
 271049
 271050                    b.Property<int>("Kind")
 271051                        .HasColumnType("INTEGER");
 271052
 271053                    b.Property<Guid?>("Preference_Preferences_Guid")
 271054                        .HasColumnType("TEXT");
 271055
 271056                    b.Property<uint>("RowVersion")
 271057                        .IsConcurrencyToken()
 271058                        .HasColumnType("INTEGER");
 271059
 271060                    b.Property<Guid?>("UserId")
 271061                        .HasColumnType("TEXT");
 271062
 271063                    b.Property<string>("Value")
 271064                        .IsRequired()
 271065                        .HasMaxLength(65535)
 271066                        .HasColumnType("TEXT");
 271067
 271068                    b.HasKey("Id");
 271069
 271070                    b.HasIndex("UserId", "Kind")
 271071                        .IsUnique()
 271072                        .HasFilter("[UserId] IS NOT NULL");
 271073
 271074                    b.ToTable("Preferences");
 271075
 271076                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271077                });
 1078
 271079            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.ApiKey", b =>
 271080                {
 271081                    b.Property<int>("Id")
 271082                        .ValueGeneratedOnAdd()
 271083                        .HasColumnType("INTEGER");
 271084
 271085                    b.Property<string>("AccessToken")
 271086                        .IsRequired()
 271087                        .HasColumnType("TEXT");
 271088
 271089                    b.Property<DateTime>("DateCreated")
 271090                        .HasColumnType("TEXT");
 271091
 271092                    b.Property<DateTime>("DateLastActivity")
 271093                        .HasColumnType("TEXT");
 271094
 271095                    b.Property<string>("Name")
 271096                        .IsRequired()
 271097                        .HasMaxLength(64)
 271098                        .HasColumnType("TEXT");
 271099
 271100                    b.HasKey("Id");
 271101
 271102                    b.HasIndex("AccessToken")
 271103                        .IsUnique();
 271104
 271105                    b.ToTable("ApiKeys");
 271106
 271107                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271108                });
 1109
 271110            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 271111                {
 271112                    b.Property<int>("Id")
 271113                        .ValueGeneratedOnAdd()
 271114                        .HasColumnType("INTEGER");
 271115
 271116                    b.Property<string>("AccessToken")
 271117                        .IsRequired()
 271118                        .HasColumnType("TEXT");
 271119
 271120                    b.Property<string>("AppName")
 271121                        .IsRequired()
 271122                        .HasMaxLength(64)
 271123                        .HasColumnType("TEXT");
 271124
 271125                    b.Property<string>("AppVersion")
 271126                        .IsRequired()
 271127                        .HasMaxLength(32)
 271128                        .HasColumnType("TEXT");
 271129
 271130                    b.Property<DateTime>("DateCreated")
 271131                        .HasColumnType("TEXT");
 271132
 271133                    b.Property<DateTime>("DateLastActivity")
 271134                        .HasColumnType("TEXT");
 271135
 271136                    b.Property<DateTime>("DateModified")
 271137                        .HasColumnType("TEXT");
 271138
 271139                    b.Property<string>("DeviceId")
 271140                        .IsRequired()
 271141                        .HasMaxLength(256)
 271142                        .HasColumnType("TEXT");
 271143
 271144                    b.Property<string>("DeviceName")
 271145                        .IsRequired()
 271146                        .HasMaxLength(64)
 271147                        .HasColumnType("TEXT");
 271148
 271149                    b.Property<bool>("IsActive")
 271150                        .HasColumnType("INTEGER");
 271151
 271152                    b.Property<Guid>("UserId")
 271153                        .HasColumnType("TEXT");
 271154
 271155                    b.HasKey("Id");
 271156
 271157                    b.HasIndex("DeviceId");
 271158
 271159                    b.HasIndex("AccessToken", "DateLastActivity");
 271160
 271161                    b.HasIndex("DeviceId", "DateLastActivity");
 271162
 271163                    b.HasIndex("UserId", "DeviceId");
 271164
 271165                    b.ToTable("Devices");
 271166
 271167                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271168                });
 1169
 271170            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.DeviceOptions", b =>
 271171                {
 271172                    b.Property<int>("Id")
 271173                        .ValueGeneratedOnAdd()
 271174                        .HasColumnType("INTEGER");
 271175
 271176                    b.Property<string>("CustomName")
 271177                        .HasColumnType("TEXT");
 271178
 271179                    b.Property<string>("DeviceId")
 271180                        .IsRequired()
 271181                        .HasColumnType("TEXT");
 271182
 271183                    b.HasKey("Id");
 271184
 271185                    b.HasIndex("DeviceId")
 271186                        .IsUnique();
 271187
 271188                    b.ToTable("DeviceOptions");
 271189
 271190                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271191                });
 1192
 271193            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.TrickplayInfo", b =>
 271194                {
 271195                    b.Property<Guid>("ItemId")
 271196                        .HasColumnType("TEXT");
 271197
 271198                    b.Property<int>("Width")
 271199                        .HasColumnType("INTEGER");
 271200
 271201                    b.Property<int>("Bandwidth")
 271202                        .HasColumnType("INTEGER");
 271203
 271204                    b.Property<int>("Height")
 271205                        .HasColumnType("INTEGER");
 271206
 271207                    b.Property<int>("Interval")
 271208                        .HasColumnType("INTEGER");
 271209
 271210                    b.Property<int>("ThumbnailCount")
 271211                        .HasColumnType("INTEGER");
 271212
 271213                    b.Property<int>("TileHeight")
 271214                        .HasColumnType("INTEGER");
 271215
 271216                    b.Property<int>("TileWidth")
 271217                        .HasColumnType("INTEGER");
 271218
 271219                    b.HasKey("ItemId", "Width");
 271220
 271221                    b.ToTable("TrickplayInfos");
 271222
 271223                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271224                });
 1225
 271226            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 271227                {
 271228                    b.Property<Guid>("Id")
 271229                        .ValueGeneratedOnAdd()
 271230                        .HasColumnType("TEXT");
 271231
 271232                    b.Property<string>("AudioLanguagePreference")
 271233                        .HasMaxLength(255)
 271234                        .HasColumnType("TEXT");
 271235
 271236                    b.Property<string>("AuthenticationProviderId")
 271237                        .IsRequired()
 271238                        .HasMaxLength(255)
 271239                        .HasColumnType("TEXT");
 271240
 271241                    b.Property<string>("CastReceiverId")
 271242                        .HasMaxLength(32)
 271243                        .HasColumnType("TEXT");
 271244
 271245                    b.Property<bool>("DisplayCollectionsView")
 271246                        .HasColumnType("INTEGER");
 271247
 271248                    b.Property<bool>("DisplayMissingEpisodes")
 271249                        .HasColumnType("INTEGER");
 271250
 271251                    b.Property<bool>("EnableAutoLogin")
 271252                        .HasColumnType("INTEGER");
 271253
 271254                    b.Property<bool>("EnableLocalPassword")
 271255                        .HasColumnType("INTEGER");
 271256
 271257                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 271258                        .HasColumnType("INTEGER");
 271259
 271260                    b.Property<bool>("EnableUserPreferenceAccess")
 271261                        .HasColumnType("INTEGER");
 271262
 271263                    b.Property<bool>("HidePlayedInLatest")
 271264                        .HasColumnType("INTEGER");
 271265
 271266                    b.Property<long>("InternalId")
 271267                        .HasColumnType("INTEGER");
 271268
 271269                    b.Property<int>("InvalidLoginAttemptCount")
 271270                        .HasColumnType("INTEGER");
 271271
 271272                    b.Property<DateTime?>("LastActivityDate")
 271273                        .HasColumnType("TEXT");
 271274
 271275                    b.Property<DateTime?>("LastLoginDate")
 271276                        .HasColumnType("TEXT");
 271277
 271278                    b.Property<int?>("LoginAttemptsBeforeLockout")
 271279                        .HasColumnType("INTEGER");
 271280
 271281                    b.Property<int>("MaxActiveSessions")
 271282                        .HasColumnType("INTEGER");
 271283
 271284                    b.Property<int?>("MaxParentalRatingScore")
 271285                        .HasColumnType("INTEGER");
 271286
 271287                    b.Property<int?>("MaxParentalRatingSubScore")
 271288                        .HasColumnType("INTEGER");
 271289
 271290                    b.Property<bool>("MustUpdatePassword")
 271291                        .HasColumnType("INTEGER");
 271292
 271293                    b.Property<string>("Password")
 271294                        .HasMaxLength(65535)
 271295                        .HasColumnType("TEXT");
 271296
 271297                    b.Property<string>("PasswordResetProviderId")
 271298                        .IsRequired()
 271299                        .HasMaxLength(255)
 271300                        .HasColumnType("TEXT");
 271301
 271302                    b.Property<bool>("PlayDefaultAudioTrack")
 271303                        .HasColumnType("INTEGER");
 271304
 271305                    b.Property<bool>("RememberAudioSelections")
 271306                        .HasColumnType("INTEGER");
 271307
 271308                    b.Property<bool>("RememberSubtitleSelections")
 271309                        .HasColumnType("INTEGER");
 271310
 271311                    b.Property<int?>("RemoteClientBitrateLimit")
 271312                        .HasColumnType("INTEGER");
 271313
 271314                    b.Property<uint>("RowVersion")
 271315                        .IsConcurrencyToken()
 271316                        .HasColumnType("INTEGER");
 271317
 271318                    b.Property<string>("SubtitleLanguagePreference")
 271319                        .HasMaxLength(255)
 271320                        .HasColumnType("TEXT");
 271321
 271322                    b.Property<int>("SubtitleMode")
 271323                        .HasColumnType("INTEGER");
 271324
 271325                    b.Property<int>("SyncPlayAccess")
 271326                        .HasColumnType("INTEGER");
 271327
 271328                    b.Property<string>("Username")
 271329                        .IsRequired()
 271330                        .HasMaxLength(255)
 271331                        .HasColumnType("TEXT");
 271332
 271333                    b.HasKey("Id");
 271334
 271335                    b.HasIndex("Username")
 271336                        .IsUnique();
 271337
 271338                    b.ToTable("Users");
 271339
 271340                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271341                });
 1342
 271343            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 271344                {
 271345                    b.Property<Guid>("ItemId")
 271346                        .HasColumnType("TEXT");
 271347
 271348                    b.Property<Guid>("UserId")
 271349                        .HasColumnType("TEXT");
 271350
 271351                    b.Property<string>("CustomDataKey")
 271352                        .HasColumnType("TEXT");
 271353
 271354                    b.Property<int?>("AudioStreamIndex")
 271355                        .HasColumnType("INTEGER");
 271356
 271357                    b.Property<bool>("IsFavorite")
 271358                        .HasColumnType("INTEGER");
 271359
 271360                    b.Property<DateTime?>("LastPlayedDate")
 271361                        .HasColumnType("TEXT");
 271362
 271363                    b.Property<bool?>("Likes")
 271364                        .HasColumnType("INTEGER");
 271365
 271366                    b.Property<int>("PlayCount")
 271367                        .HasColumnType("INTEGER");
 271368
 271369                    b.Property<long>("PlaybackPositionTicks")
 271370                        .HasColumnType("INTEGER");
 271371
 271372                    b.Property<bool>("Played")
 271373                        .HasColumnType("INTEGER");
 271374
 271375                    b.Property<double?>("Rating")
 271376                        .HasColumnType("REAL");
 271377
 271378                    b.Property<int?>("SubtitleStreamIndex")
 271379                        .HasColumnType("INTEGER");
 271380
 271381                    b.HasKey("ItemId", "UserId", "CustomDataKey");
 271382
 271383                    b.HasIndex("UserId");
 271384
 271385                    b.HasIndex("ItemId", "UserId", "IsFavorite");
 271386
 271387                    b.HasIndex("ItemId", "UserId", "LastPlayedDate");
 271388
 271389                    b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
 271390
 271391                    b.HasIndex("ItemId", "UserId", "Played");
 271392
 271393                    b.ToTable("UserData");
 271394
 271395                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271396                });
 1397
 271398            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 271399                {
 271400                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271401                        .WithMany("AccessSchedules")
 271402                        .HasForeignKey("UserId")
 271403                        .OnDelete(DeleteBehavior.Cascade)
 271404                        .IsRequired();
 271405                });
 1406
 271407            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 271408                {
 271409                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271410                        .WithMany("Children")
 271411                        .HasForeignKey("ItemId")
 271412                        .OnDelete(DeleteBehavior.Cascade)
 271413                        .IsRequired();
 271414
 271415                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "ParentItem")
 271416                        .WithMany("ParentAncestors")
 271417                        .HasForeignKey("ParentItemId")
 271418                        .OnDelete(DeleteBehavior.Cascade)
 271419                        .IsRequired();
 271420
 271421                    b.Navigation("Item");
 271422
 271423                    b.Navigation("ParentItem");
 271424                });
 1425
 271426            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 271427                {
 271428                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271429                        .WithMany()
 271430                        .HasForeignKey("ItemId")
 271431                        .OnDelete(DeleteBehavior.Cascade)
 271432                        .IsRequired();
 271433
 271434                    b.Navigation("Item");
 271435                });
 1436
 271437            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 271438                {
 271439                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271440                        .WithMany("Images")
 271441                        .HasForeignKey("ItemId")
 271442                        .OnDelete(DeleteBehavior.Cascade)
 271443                        .IsRequired();
 271444
 271445                    b.Navigation("Item");
 271446                });
 1447
 271448            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 271449                {
 271450                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271451                        .WithMany("LockedFields")
 271452                        .HasForeignKey("ItemId")
 271453                        .OnDelete(DeleteBehavior.Cascade)
 271454                        .IsRequired();
 271455
 271456                    b.Navigation("Item");
 271457                });
 1458
 271459            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 271460                {
 271461                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271462                        .WithMany("Provider")
 271463                        .HasForeignKey("ItemId")
 271464                        .OnDelete(DeleteBehavior.Cascade)
 271465                        .IsRequired();
 271466
 271467                    b.Navigation("Item");
 271468                });
 1469
 271470            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 271471                {
 271472                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271473                        .WithMany("TrailerTypes")
 271474                        .HasForeignKey("ItemId")
 271475                        .OnDelete(DeleteBehavior.Cascade)
 271476                        .IsRequired();
 271477
 271478                    b.Navigation("Item");
 271479                });
 1480
 271481            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 271482                {
 271483                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271484                        .WithMany("Chapters")
 271485                        .HasForeignKey("ItemId")
 271486                        .OnDelete(DeleteBehavior.Cascade)
 271487                        .IsRequired();
 271488
 271489                    b.Navigation("Item");
 271490                });
 1491
 271492            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 271493                {
 271494                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271495                        .WithMany("DisplayPreferences")
 271496                        .HasForeignKey("UserId")
 271497                        .OnDelete(DeleteBehavior.Cascade)
 271498                        .IsRequired();
 271499                });
 1500
 271501            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 271502                {
 271503                    b.HasOne("Jellyfin.Database.Implementations.Entities.DisplayPreferences", null)
 271504                        .WithMany("HomeSections")
 271505                        .HasForeignKey("DisplayPreferencesId")
 271506                        .OnDelete(DeleteBehavior.Cascade)
 271507                        .IsRequired();
 271508                });
 1509
 271510            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 271511                {
 271512                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271513                        .WithOne("ProfileImage")
 271514                        .HasForeignKey("Jellyfin.Database.Implementations.Entities.ImageInfo", "UserId")
 271515                        .OnDelete(DeleteBehavior.Cascade);
 271516                });
 1517
 271518            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 271519                {
 271520                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271521                        .WithMany("ItemDisplayPreferences")
 271522                        .HasForeignKey("UserId")
 271523                        .OnDelete(DeleteBehavior.Cascade)
 271524                        .IsRequired();
 271525                });
 1526
 271527            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 271528                {
 271529                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271530                        .WithMany("ItemValues")
 271531                        .HasForeignKey("ItemId")
 271532                        .OnDelete(DeleteBehavior.Cascade)
 271533                        .IsRequired();
 271534
 271535                    b.HasOne("Jellyfin.Database.Implementations.Entities.ItemValue", "ItemValue")
 271536                        .WithMany("BaseItemsMap")
 271537                        .HasForeignKey("ItemValueId")
 271538                        .OnDelete(DeleteBehavior.Cascade)
 271539                        .IsRequired();
 271540
 271541                    b.Navigation("Item");
 271542
 271543                    b.Navigation("ItemValue");
 271544                });
 1545
 271546            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 271547                {
 271548                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271549                        .WithMany()
 271550                        .HasForeignKey("ItemId")
 271551                        .OnDelete(DeleteBehavior.Cascade)
 271552                        .IsRequired();
 271553
 271554                    b.Navigation("Item");
 271555                });
 1556
 271557            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 271558                {
 271559                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271560                        .WithMany("MediaStreams")
 271561                        .HasForeignKey("ItemId")
 271562                        .OnDelete(DeleteBehavior.Cascade)
 271563                        .IsRequired();
 271564
 271565                    b.Navigation("Item");
 271566                });
 1567
 271568            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 271569                {
 271570                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271571                        .WithMany("Peoples")
 271572                        .HasForeignKey("ItemId")
 271573                        .OnDelete(DeleteBehavior.Cascade)
 271574                        .IsRequired();
 271575
 271576                    b.HasOne("Jellyfin.Database.Implementations.Entities.People", "People")
 271577                        .WithMany("BaseItems")
 271578                        .HasForeignKey("PeopleId")
 271579                        .OnDelete(DeleteBehavior.Cascade)
 271580                        .IsRequired();
 271581
 271582                    b.Navigation("Item");
 271583
 271584                    b.Navigation("People");
 271585                });
 1586
 271587            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 271588                {
 271589                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271590                        .WithMany("Permissions")
 271591                        .HasForeignKey("UserId")
 271592                        .OnDelete(DeleteBehavior.Cascade);
 271593                });
 1594
 271595            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 271596                {
 271597                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271598                        .WithMany("Preferences")
 271599                        .HasForeignKey("UserId")
 271600                        .OnDelete(DeleteBehavior.Cascade);
 271601                });
 1602
 271603            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 271604                {
 271605                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 271606                        .WithMany()
 271607                        .HasForeignKey("UserId")
 271608                        .OnDelete(DeleteBehavior.Cascade)
 271609                        .IsRequired();
 271610
 271611                    b.Navigation("User");
 271612                });
 1613
 271614            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 271615                {
 271616                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271617                        .WithMany("UserData")
 271618                        .HasForeignKey("ItemId")
 271619                        .OnDelete(DeleteBehavior.Cascade)
 271620                        .IsRequired();
 271621
 271622                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 271623                        .WithMany()
 271624                        .HasForeignKey("UserId")
 271625                        .OnDelete(DeleteBehavior.Cascade)
 271626                        .IsRequired();
 271627
 271628                    b.Navigation("Item");
 271629
 271630                    b.Navigation("User");
 271631                });
 1632
 271633            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 271634                {
 271635                    b.Navigation("Chapters");
 271636
 271637                    b.Navigation("Children");
 271638
 271639                    b.Navigation("Images");
 271640
 271641                    b.Navigation("ItemValues");
 271642
 271643                    b.Navigation("LockedFields");
 271644
 271645                    b.Navigation("MediaStreams");
 271646
 271647                    b.Navigation("ParentAncestors");
 271648
 271649                    b.Navigation("Peoples");
 271650
 271651                    b.Navigation("Provider");
 271652
 271653                    b.Navigation("TrailerTypes");
 271654
 271655                    b.Navigation("UserData");
 271656                });
 1657
 271658            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 271659                {
 271660                    b.Navigation("HomeSections");
 271661                });
 1662
 271663            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 271664                {
 271665                    b.Navigation("BaseItemsMap");
 271666                });
 1667
 271668            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 271669                {
 271670                    b.Navigation("BaseItems");
 271671                });
 1672
 271673            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 271674                {
 271675                    b.Navigation("AccessSchedules");
 271676
 271677                    b.Navigation("DisplayPreferences");
 271678
 271679                    b.Navigation("ItemDisplayPreferences");
 271680
 271681                    b.Navigation("Permissions");
 271682
 271683                    b.Navigation("Preferences");
 271684
 271685                    b.Navigation("ProfileImage");
 271686                });
 1687#pragma warning restore 612, 618
 271688        }
 1689    }
 1690}