< Summary - Jellyfin

Line coverage
99%
Covered lines: 1722
Uncovered lines: 12
Coverable lines: 1734
Total lines: 1835
Line coverage: 99.3%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 5/16/2026 - 12:15:55 AM Line coverage: 99.3% (1716/1728) Total lines: 18295/22/2026 - 12:15:17 AM Line coverage: 99.3% (1719/1731) Total lines: 18328/11/2026 - 12:17:00 AM Line coverage: 99.3% (1722/1734) Total lines: 1835

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/20260113233500_DropExtraIdsColumn.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4#nullable disable
 5
 6namespace Jellyfin.Database.Providers.Sqlite.Migrations
 7{
 8    /// <inheritdoc />
 9    public partial class DropExtraIdsColumn : Migration
 10    {
 11        /// <inheritdoc />
 12        protected override void Up(MigrationBuilder migrationBuilder)
 13        {
 2714            migrationBuilder.DropColumn(
 2715                name: "ExtraIds",
 2716                table: "BaseItems");
 2717        }
 18
 19        /// <inheritdoc />
 20        protected override void Down(MigrationBuilder migrationBuilder)
 21        {
 022            migrationBuilder.AddColumn<string>(
 023                name: "ExtraIds",
 024                table: "BaseItems",
 025                type: "TEXT",
 026                nullable: true);
 27
 028            migrationBuilder.UpdateData(
 029                table: "BaseItems",
 030                keyColumn: "Id",
 031                keyValue: new Guid("00000000-0000-0000-0000-000000000001"),
 032                column: "ExtraIds",
 033                value: null);
 034        }
 35    }
 36}

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260113233500_DropExtraIdsColumn.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.Database.Providers.Sqlite.Migrations
 12{
 13    [DbContext(typeof(JellyfinDbContext))]
 14    [Migration("20260113233500_DropExtraIdsColumn")]
 15    partial class DropExtraIdsColumn
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 2721            modelBuilder.HasAnnotation("ProductVersion", "10.0.2");
 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                        .HasColumnType("TEXT");
 27127
 27128                    b.Property<string>("CodecTag")
 27129                        .HasColumnType("TEXT");
 27130
 27131                    b.Property<string>("Comment")
 27132                        .HasColumnType("TEXT");
 27133
 27134                    b.Property<string>("Filename")
 27135                        .HasColumnType("TEXT");
 27136
 27137                    b.Property<string>("MimeType")
 27138                        .HasColumnType("TEXT");
 27139
 27140                    b.HasKey("ItemId", "Index");
 27141
 27142                    b.ToTable("AttachmentStreamInfos");
 27143
 27144                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27145                });
 146
 27147            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 27148                {
 27149                    b.Property<Guid>("Id")
 27150                        .ValueGeneratedOnAdd()
 27151                        .HasColumnType("TEXT");
 27152
 27153                    b.Property<string>("Album")
 27154                        .HasColumnType("TEXT");
 27155
 27156                    b.Property<string>("AlbumArtists")
 27157                        .HasColumnType("TEXT");
 27158
 27159                    b.Property<string>("Artists")
 27160                        .HasColumnType("TEXT");
 27161
 27162                    b.Property<int?>("Audio")
 27163                        .HasColumnType("INTEGER");
 27164
 27165                    b.Property<Guid?>("ChannelId")
 27166                        .HasColumnType("TEXT");
 27167
 27168                    b.Property<string>("CleanName")
 27169                        .HasColumnType("TEXT");
 27170
 27171                    b.Property<float?>("CommunityRating")
 27172                        .HasColumnType("REAL");
 27173
 27174                    b.Property<float?>("CriticRating")
 27175                        .HasColumnType("REAL");
 27176
 27177                    b.Property<string>("CustomRating")
 27178                        .HasColumnType("TEXT");
 27179
 27180                    b.Property<string>("Data")
 27181                        .HasColumnType("TEXT");
 27182
 27183                    b.Property<DateTime?>("DateCreated")
 27184                        .HasColumnType("TEXT");
 27185
 27186                    b.Property<DateTime?>("DateLastMediaAdded")
 27187                        .HasColumnType("TEXT");
 27188
 27189                    b.Property<DateTime?>("DateLastRefreshed")
 27190                        .HasColumnType("TEXT");
 27191
 27192                    b.Property<DateTime?>("DateLastSaved")
 27193                        .HasColumnType("TEXT");
 27194
 27195                    b.Property<DateTime?>("DateModified")
 27196                        .HasColumnType("TEXT");
 27197
 27198                    b.Property<DateTime?>("EndDate")
 27199                        .HasColumnType("TEXT");
 27200
 27201                    b.Property<string>("EpisodeTitle")
 27202                        .HasColumnType("TEXT");
 27203
 27204                    b.Property<string>("ExternalId")
 27205                        .HasColumnType("TEXT");
 27206
 27207                    b.Property<string>("ExternalSeriesId")
 27208                        .HasColumnType("TEXT");
 27209
 27210                    b.Property<string>("ExternalServiceId")
 27211                        .HasColumnType("TEXT");
 27212
 27213                    b.Property<int?>("ExtraType")
 27214                        .HasColumnType("INTEGER");
 27215
 27216                    b.Property<string>("ForcedSortName")
 27217                        .HasColumnType("TEXT");
 27218
 27219                    b.Property<string>("Genres")
 27220                        .HasColumnType("TEXT");
 27221
 27222                    b.Property<int?>("Height")
 27223                        .HasColumnType("INTEGER");
 27224
 27225                    b.Property<int?>("IndexNumber")
 27226                        .HasColumnType("INTEGER");
 27227
 27228                    b.Property<int?>("InheritedParentalRatingSubValue")
 27229                        .HasColumnType("INTEGER");
 27230
 27231                    b.Property<int?>("InheritedParentalRatingValue")
 27232                        .HasColumnType("INTEGER");
 27233
 27234                    b.Property<bool>("IsFolder")
 27235                        .HasColumnType("INTEGER");
 27236
 27237                    b.Property<bool>("IsInMixedFolder")
 27238                        .HasColumnType("INTEGER");
 27239
 27240                    b.Property<bool>("IsLocked")
 27241                        .HasColumnType("INTEGER");
 27242
 27243                    b.Property<bool>("IsMovie")
 27244                        .HasColumnType("INTEGER");
 27245
 27246                    b.Property<bool>("IsRepeat")
 27247                        .HasColumnType("INTEGER");
 27248
 27249                    b.Property<bool>("IsSeries")
 27250                        .HasColumnType("INTEGER");
 27251
 27252                    b.Property<bool>("IsVirtualItem")
 27253                        .HasColumnType("INTEGER");
 27254
 27255                    b.Property<float?>("LUFS")
 27256                        .HasColumnType("REAL");
 27257
 27258                    b.Property<string>("MediaType")
 27259                        .HasColumnType("TEXT");
 27260
 27261                    b.Property<string>("Name")
 27262                        .HasColumnType("TEXT");
 27263
 27264                    b.Property<float?>("NormalizationGain")
 27265                        .HasColumnType("REAL");
 27266
 27267                    b.Property<string>("OfficialRating")
 27268                        .HasColumnType("TEXT");
 27269
 27270                    b.Property<string>("OriginalLanguage")
 27271                        .HasColumnType("TEXT");
 27272
 27273                    b.Property<string>("OriginalTitle")
 27274                        .HasColumnType("TEXT");
 27275
 27276                    b.Property<string>("Overview")
 27277                        .HasColumnType("TEXT");
 27278
 27279                    b.Property<Guid?>("OwnerId")
 27280                        .HasColumnType("TEXT");
 27281
 27282                    b.Property<Guid?>("ParentId")
 27283                        .HasColumnType("TEXT");
 27284
 27285                    b.Property<int?>("ParentIndexNumber")
 27286                        .HasColumnType("INTEGER");
 27287
 27288                    b.Property<string>("Path")
 27289                        .HasColumnType("TEXT");
 27290
 27291                    b.Property<string>("PreferredMetadataCountryCode")
 27292                        .HasColumnType("TEXT");
 27293
 27294                    b.Property<string>("PreferredMetadataLanguage")
 27295                        .HasColumnType("TEXT");
 27296
 27297                    b.Property<DateTime?>("PremiereDate")
 27298                        .HasColumnType("TEXT");
 27299
 27300                    b.Property<string>("PresentationUniqueKey")
 27301                        .HasColumnType("TEXT");
 27302
 27303                    b.Property<string>("PrimaryVersionId")
 27304                        .HasColumnType("TEXT");
 27305
 27306                    b.Property<string>("ProductionLocations")
 27307                        .HasColumnType("TEXT");
 27308
 27309                    b.Property<int?>("ProductionYear")
 27310                        .HasColumnType("INTEGER");
 27311
 27312                    b.Property<long?>("RunTimeTicks")
 27313                        .HasColumnType("INTEGER");
 27314
 27315                    b.Property<Guid?>("SeasonId")
 27316                        .HasColumnType("TEXT");
 27317
 27318                    b.Property<string>("SeasonName")
 27319                        .HasColumnType("TEXT");
 27320
 27321                    b.Property<Guid?>("SeriesId")
 27322                        .HasColumnType("TEXT");
 27323
 27324                    b.Property<string>("SeriesName")
 27325                        .HasColumnType("TEXT");
 27326
 27327                    b.Property<string>("SeriesPresentationUniqueKey")
 27328                        .HasColumnType("TEXT");
 27329
 27330                    b.Property<string>("ShowId")
 27331                        .HasColumnType("TEXT");
 27332
 27333                    b.Property<long?>("Size")
 27334                        .HasColumnType("INTEGER");
 27335
 27336                    b.Property<string>("SortName")
 27337                        .HasColumnType("TEXT");
 27338
 27339                    b.Property<DateTime?>("StartDate")
 27340                        .HasColumnType("TEXT");
 27341
 27342                    b.Property<string>("Studios")
 27343                        .HasColumnType("TEXT");
 27344
 27345                    b.Property<string>("Tagline")
 27346                        .HasColumnType("TEXT");
 27347
 27348                    b.Property<string>("Tags")
 27349                        .HasColumnType("TEXT");
 27350
 27351                    b.Property<Guid?>("TopParentId")
 27352                        .HasColumnType("TEXT");
 27353
 27354                    b.Property<int?>("TotalBitrate")
 27355                        .HasColumnType("INTEGER");
 27356
 27357                    b.Property<string>("Type")
 27358                        .IsRequired()
 27359                        .HasColumnType("TEXT");
 27360
 27361                    b.Property<string>("UnratedType")
 27362                        .HasColumnType("TEXT");
 27363
 27364                    b.Property<int?>("Width")
 27365                        .HasColumnType("INTEGER");
 27366
 27367                    b.HasKey("Id");
 27368
 27369                    b.HasIndex("ExtraType");
 27370
 27371                    b.HasIndex("OwnerId");
 27372
 27373                    b.HasIndex("ParentId");
 27374
 27375                    b.HasIndex("Path");
 27376
 27377                    b.HasIndex("PresentationUniqueKey");
 27378
 27379                    b.HasIndex("ExtraType", "OwnerId");
 27380
 27381                    b.HasIndex("TopParentId", "Id");
 27382
 27383                    b.HasIndex("Type", "TopParentId", "Id");
 27384
 27385                    b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
 27386
 27387                    b.HasIndex("Type", "TopParentId", "StartDate");
 27388
 27389                    b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
 27390
 27391                    b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
 27392
 27393                    b.HasIndex("TopParentId", "IsFolder", "IsVirtualItem", "DateCreated");
 27394
 27395                    b.HasIndex("TopParentId", "MediaType", "IsVirtualItem", "DateCreated");
 27396
 27397                    b.HasIndex("TopParentId", "Type", "IsVirtualItem", "DateCreated");
 27398
 27399                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
 27400
 27401                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
 27402
 27403                    b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 27404
 27405                    b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 27406
 27407                    b.ToTable("BaseItems");
 27408
 27409                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27410
 27411                    b.HasData(
 27412                        new
 27413                        {
 27414                            Id = new Guid("00000000-0000-0000-0000-000000000001"),
 27415                            IsFolder = false,
 27416                            IsInMixedFolder = false,
 27417                            IsLocked = false,
 27418                            IsMovie = false,
 27419                            IsRepeat = false,
 27420                            IsSeries = false,
 27421                            IsVirtualItem = false,
 27422                            Name = "This is a placeholder item for UserData that has been detached from its original ite
 27423                            Type = "PLACEHOLDER"
 27424                        });
 27425                });
 426
 27427            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 27428                {
 27429                    b.Property<Guid>("Id")
 27430                        .ValueGeneratedOnAdd()
 27431                        .HasColumnType("TEXT");
 27432
 27433                    b.Property<byte[]>("Blurhash")
 27434                        .HasColumnType("BLOB");
 27435
 27436                    b.Property<DateTime?>("DateModified")
 27437                        .HasColumnType("TEXT");
 27438
 27439                    b.Property<int>("Height")
 27440                        .HasColumnType("INTEGER");
 27441
 27442                    b.Property<int>("ImageType")
 27443                        .HasColumnType("INTEGER");
 27444
 27445                    b.Property<Guid>("ItemId")
 27446                        .HasColumnType("TEXT");
 27447
 27448                    b.Property<string>("Path")
 27449                        .IsRequired()
 27450                        .HasColumnType("TEXT");
 27451
 27452                    b.Property<int>("Width")
 27453                        .HasColumnType("INTEGER");
 27454
 27455                    b.HasKey("Id");
 27456
 27457                    b.HasIndex("ItemId");
 27458
 27459                    b.ToTable("BaseItemImageInfos");
 27460
 27461                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27462                });
 463
 27464            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 27465                {
 27466                    b.Property<int>("Id")
 27467                        .HasColumnType("INTEGER");
 27468
 27469                    b.Property<Guid>("ItemId")
 27470                        .HasColumnType("TEXT");
 27471
 27472                    b.HasKey("Id", "ItemId");
 27473
 27474                    b.HasIndex("ItemId");
 27475
 27476                    b.ToTable("BaseItemMetadataFields");
 27477
 27478                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27479                });
 480
 27481            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 27482                {
 27483                    b.Property<Guid>("ItemId")
 27484                        .HasColumnType("TEXT");
 27485
 27486                    b.Property<string>("ProviderId")
 27487                        .HasColumnType("TEXT");
 27488
 27489                    b.Property<string>("ProviderValue")
 27490                        .IsRequired()
 27491                        .HasColumnType("TEXT");
 27492
 27493                    b.HasKey("ItemId", "ProviderId");
 27494
 27495                    b.HasIndex("ProviderId", "ProviderValue", "ItemId");
 27496
 27497                    b.ToTable("BaseItemProviders");
 27498
 27499                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27500                });
 501
 27502            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 27503                {
 27504                    b.Property<int>("Id")
 27505                        .HasColumnType("INTEGER");
 27506
 27507                    b.Property<Guid>("ItemId")
 27508                        .HasColumnType("TEXT");
 27509
 27510                    b.HasKey("Id", "ItemId");
 27511
 27512                    b.HasIndex("ItemId");
 27513
 27514                    b.ToTable("BaseItemTrailerTypes");
 27515
 27516                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27517                });
 518
 27519            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 27520                {
 27521                    b.Property<Guid>("ItemId")
 27522                        .HasColumnType("TEXT");
 27523
 27524                    b.Property<int>("ChapterIndex")
 27525                        .HasColumnType("INTEGER");
 27526
 27527                    b.Property<DateTime?>("ImageDateModified")
 27528                        .HasColumnType("TEXT");
 27529
 27530                    b.Property<string>("ImagePath")
 27531                        .HasColumnType("TEXT");
 27532
 27533                    b.Property<string>("Name")
 27534                        .HasColumnType("TEXT");
 27535
 27536                    b.Property<long>("StartPositionTicks")
 27537                        .HasColumnType("INTEGER");
 27538
 27539                    b.HasKey("ItemId", "ChapterIndex");
 27540
 27541                    b.ToTable("Chapters");
 27542
 27543                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27544                });
 545
 27546            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.CustomItemDisplayPreferences", b =>
 27547                {
 27548                    b.Property<int>("Id")
 27549                        .ValueGeneratedOnAdd()
 27550                        .HasColumnType("INTEGER");
 27551
 27552                    b.Property<string>("Client")
 27553                        .IsRequired()
 27554                        .HasMaxLength(32)
 27555                        .HasColumnType("TEXT");
 27556
 27557                    b.Property<Guid>("ItemId")
 27558                        .HasColumnType("TEXT");
 27559
 27560                    b.Property<string>("Key")
 27561                        .IsRequired()
 27562                        .HasColumnType("TEXT");
 27563
 27564                    b.Property<Guid>("UserId")
 27565                        .HasColumnType("TEXT");
 27566
 27567                    b.Property<string>("Value")
 27568                        .HasColumnType("TEXT");
 27569
 27570                    b.HasKey("Id");
 27571
 27572                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 27573                        .IsUnique();
 27574
 27575                    b.ToTable("CustomItemDisplayPreferences");
 27576
 27577                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27578                });
 579
 27580            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 27581                {
 27582                    b.Property<int>("Id")
 27583                        .ValueGeneratedOnAdd()
 27584                        .HasColumnType("INTEGER");
 27585
 27586                    b.Property<int>("ChromecastVersion")
 27587                        .HasColumnType("INTEGER");
 27588
 27589                    b.Property<string>("Client")
 27590                        .IsRequired()
 27591                        .HasMaxLength(32)
 27592                        .HasColumnType("TEXT");
 27593
 27594                    b.Property<string>("DashboardTheme")
 27595                        .HasMaxLength(32)
 27596                        .HasColumnType("TEXT");
 27597
 27598                    b.Property<bool>("EnableNextVideoInfoOverlay")
 27599                        .HasColumnType("INTEGER");
 27600
 27601                    b.Property<int?>("IndexBy")
 27602                        .HasColumnType("INTEGER");
 27603
 27604                    b.Property<Guid>("ItemId")
 27605                        .HasColumnType("TEXT");
 27606
 27607                    b.Property<int>("ScrollDirection")
 27608                        .HasColumnType("INTEGER");
 27609
 27610                    b.Property<bool>("ShowBackdrop")
 27611                        .HasColumnType("INTEGER");
 27612
 27613                    b.Property<bool>("ShowSidebar")
 27614                        .HasColumnType("INTEGER");
 27615
 27616                    b.Property<int>("SkipBackwardLength")
 27617                        .HasColumnType("INTEGER");
 27618
 27619                    b.Property<int>("SkipForwardLength")
 27620                        .HasColumnType("INTEGER");
 27621
 27622                    b.Property<string>("TvHome")
 27623                        .HasMaxLength(32)
 27624                        .HasColumnType("TEXT");
 27625
 27626                    b.Property<Guid>("UserId")
 27627                        .HasColumnType("TEXT");
 27628
 27629                    b.HasKey("Id");
 27630
 27631                    b.HasIndex("UserId", "ItemId", "Client")
 27632                        .IsUnique();
 27633
 27634                    b.ToTable("DisplayPreferences");
 27635
 27636                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27637                });
 638
 27639            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 27640                {
 27641                    b.Property<int>("Id")
 27642                        .ValueGeneratedOnAdd()
 27643                        .HasColumnType("INTEGER");
 27644
 27645                    b.Property<int>("DisplayPreferencesId")
 27646                        .HasColumnType("INTEGER");
 27647
 27648                    b.Property<int>("Order")
 27649                        .HasColumnType("INTEGER");
 27650
 27651                    b.Property<int>("Type")
 27652                        .HasColumnType("INTEGER");
 27653
 27654                    b.HasKey("Id");
 27655
 27656                    b.HasIndex("DisplayPreferencesId");
 27657
 27658                    b.ToTable("HomeSection");
 27659
 27660                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27661                });
 662
 27663            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 27664                {
 27665                    b.Property<int>("Id")
 27666                        .ValueGeneratedOnAdd()
 27667                        .HasColumnType("INTEGER");
 27668
 27669                    b.Property<DateTime>("LastModified")
 27670                        .HasColumnType("TEXT");
 27671
 27672                    b.Property<string>("Path")
 27673                        .IsRequired()
 27674                        .HasMaxLength(512)
 27675                        .HasColumnType("TEXT");
 27676
 27677                    b.Property<Guid?>("UserId")
 27678                        .HasColumnType("TEXT");
 27679
 27680                    b.HasKey("Id");
 27681
 27682                    b.HasIndex("UserId")
 27683                        .IsUnique();
 27684
 27685                    b.ToTable("ImageInfos");
 27686
 27687                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27688                });
 689
 27690            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 27691                {
 27692                    b.Property<int>("Id")
 27693                        .ValueGeneratedOnAdd()
 27694                        .HasColumnType("INTEGER");
 27695
 27696                    b.Property<string>("Client")
 27697                        .IsRequired()
 27698                        .HasMaxLength(32)
 27699                        .HasColumnType("TEXT");
 27700
 27701                    b.Property<int?>("IndexBy")
 27702                        .HasColumnType("INTEGER");
 27703
 27704                    b.Property<Guid>("ItemId")
 27705                        .HasColumnType("TEXT");
 27706
 27707                    b.Property<bool>("RememberIndexing")
 27708                        .HasColumnType("INTEGER");
 27709
 27710                    b.Property<bool>("RememberSorting")
 27711                        .HasColumnType("INTEGER");
 27712
 27713                    b.Property<string>("SortBy")
 27714                        .IsRequired()
 27715                        .HasMaxLength(64)
 27716                        .HasColumnType("TEXT");
 27717
 27718                    b.Property<int>("SortOrder")
 27719                        .HasColumnType("INTEGER");
 27720
 27721                    b.Property<Guid>("UserId")
 27722                        .HasColumnType("TEXT");
 27723
 27724                    b.Property<int>("ViewType")
 27725                        .HasColumnType("INTEGER");
 27726
 27727                    b.HasKey("Id");
 27728
 27729                    b.HasIndex("UserId");
 27730
 27731                    b.ToTable("ItemDisplayPreferences");
 27732
 27733                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27734                });
 735
 27736            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 27737                {
 27738                    b.Property<Guid>("ItemValueId")
 27739                        .ValueGeneratedOnAdd()
 27740                        .HasColumnType("TEXT");
 27741
 27742                    b.Property<string>("CleanValue")
 27743                        .IsRequired()
 27744                        .HasColumnType("TEXT");
 27745
 27746                    b.Property<int>("Type")
 27747                        .HasColumnType("INTEGER");
 27748
 27749                    b.Property<string>("Value")
 27750                        .IsRequired()
 27751                        .HasColumnType("TEXT");
 27752
 27753                    b.HasKey("ItemValueId");
 27754
 27755                    b.HasIndex("Type", "CleanValue");
 27756
 27757                    b.HasIndex("Type", "Value")
 27758                        .IsUnique();
 27759
 27760                    b.ToTable("ItemValues");
 27761
 27762                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27763                });
 764
 27765            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 27766                {
 27767                    b.Property<Guid>("ItemValueId")
 27768                        .HasColumnType("TEXT");
 27769
 27770                    b.Property<Guid>("ItemId")
 27771                        .HasColumnType("TEXT");
 27772
 27773                    b.HasKey("ItemValueId", "ItemId");
 27774
 27775                    b.HasIndex("ItemId");
 27776
 27777                    b.ToTable("ItemValuesMap");
 27778
 27779                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27780                });
 781
 27782            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 27783                {
 27784                    b.Property<Guid>("ItemId")
 27785                        .HasColumnType("TEXT");
 27786
 27787                    b.PrimitiveCollection<string>("KeyframeTicks")
 27788                        .HasColumnType("TEXT");
 27789
 27790                    b.Property<long>("TotalDuration")
 27791                        .HasColumnType("INTEGER");
 27792
 27793                    b.HasKey("ItemId");
 27794
 27795                    b.ToTable("KeyframeData");
 27796
 27797                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27798                });
 799
 27800            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 27801                {
 27802                    b.Property<Guid>("ParentId")
 27803                        .HasColumnType("TEXT");
 27804
 27805                    b.Property<Guid>("ChildId")
 27806                        .HasColumnType("TEXT");
 27807
 27808                    b.Property<int>("ChildType")
 27809                        .HasColumnType("INTEGER");
 27810
 27811                    b.Property<int?>("SortOrder")
 27812                        .HasColumnType("INTEGER");
 27813
 27814                    b.HasKey("ParentId", "ChildId");
 27815
 27816                    b.HasIndex("ChildId");
 27817
 27818                    b.HasIndex("ParentId");
 27819
 27820                    b.HasIndex("ChildId", "ChildType");
 27821
 27822                    b.HasIndex("ParentId", "ChildType");
 27823
 27824                    b.HasIndex("ParentId", "SortOrder");
 27825
 27826                    b.ToTable("LinkedChildren", (string)null);
 27827
 27828                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27829                });
 830
 27831            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaSegment", b =>
 27832                {
 27833                    b.Property<Guid>("Id")
 27834                        .ValueGeneratedOnAdd()
 27835                        .HasColumnType("TEXT");
 27836
 27837                    b.Property<long>("EndTicks")
 27838                        .HasColumnType("INTEGER");
 27839
 27840                    b.Property<Guid>("ItemId")
 27841                        .HasColumnType("TEXT");
 27842
 27843                    b.Property<string>("SegmentProviderId")
 27844                        .IsRequired()
 27845                        .HasColumnType("TEXT");
 27846
 27847                    b.Property<long>("StartTicks")
 27848                        .HasColumnType("INTEGER");
 27849
 27850                    b.Property<int>("Type")
 27851                        .HasColumnType("INTEGER");
 27852
 27853                    b.HasKey("Id");
 27854
 27855                    b.ToTable("MediaSegments");
 27856
 27857                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 27858                });
 859
 27860            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 27861                {
 27862                    b.Property<Guid>("ItemId")
 27863                        .HasColumnType("TEXT");
 27864
 27865                    b.Property<int>("StreamIndex")
 27866                        .HasColumnType("INTEGER");
 27867
 27868                    b.Property<string>("AspectRatio")
 27869                        .HasColumnType("TEXT");
 27870
 27871                    b.Property<float?>("AverageFrameRate")
 27872                        .HasColumnType("REAL");
 27873
 27874                    b.Property<int?>("BitDepth")
 27875                        .HasColumnType("INTEGER");
 27876
 27877                    b.Property<int?>("BitRate")
 27878                        .HasColumnType("INTEGER");
 27879
 27880                    b.Property<int?>("BlPresentFlag")
 27881                        .HasColumnType("INTEGER");
 27882
 27883                    b.Property<string>("ChannelLayout")
 27884                        .HasColumnType("TEXT");
 27885
 27886                    b.Property<int?>("Channels")
 27887                        .HasColumnType("INTEGER");
 27888
 27889                    b.Property<string>("Codec")
 27890                        .HasColumnType("TEXT");
 27891
 27892                    b.Property<string>("CodecTag")
 27893                        .HasColumnType("TEXT");
 27894
 27895                    b.Property<string>("CodecTimeBase")
 27896                        .HasColumnType("TEXT");
 27897
 27898                    b.Property<string>("ColorPrimaries")
 27899                        .HasColumnType("TEXT");
 27900
 27901                    b.Property<string>("ColorSpace")
 27902                        .HasColumnType("TEXT");
 27903
 27904                    b.Property<string>("ColorTransfer")
 27905                        .HasColumnType("TEXT");
 27906
 27907                    b.Property<string>("Comment")
 27908                        .HasColumnType("TEXT");
 27909
 27910                    b.Property<int?>("DvBlSignalCompatibilityId")
 27911                        .HasColumnType("INTEGER");
 27912
 27913                    b.Property<int?>("DvLevel")
 27914                        .HasColumnType("INTEGER");
 27915
 27916                    b.Property<int?>("DvProfile")
 27917                        .HasColumnType("INTEGER");
 27918
 27919                    b.Property<int?>("DvVersionMajor")
 27920                        .HasColumnType("INTEGER");
 27921
 27922                    b.Property<int?>("DvVersionMinor")
 27923                        .HasColumnType("INTEGER");
 27924
 27925                    b.Property<int?>("ElPresentFlag")
 27926                        .HasColumnType("INTEGER");
 27927
 27928                    b.Property<bool?>("Hdr10PlusPresentFlag")
 27929                        .HasColumnType("INTEGER");
 27930
 27931                    b.Property<int?>("Height")
 27932                        .HasColumnType("INTEGER");
 27933
 27934                    b.Property<bool?>("IsAnamorphic")
 27935                        .HasColumnType("INTEGER");
 27936
 27937                    b.Property<bool?>("IsAvc")
 27938                        .HasColumnType("INTEGER");
 27939
 27940                    b.Property<bool>("IsDefault")
 27941                        .HasColumnType("INTEGER");
 27942
 27943                    b.Property<bool>("IsExternal")
 27944                        .HasColumnType("INTEGER");
 27945
 27946                    b.Property<bool>("IsForced")
 27947                        .HasColumnType("INTEGER");
 27948
 27949                    b.Property<bool?>("IsHearingImpaired")
 27950                        .HasColumnType("INTEGER");
 27951
 27952                    b.Property<bool?>("IsInterlaced")
 27953                        .HasColumnType("INTEGER");
 27954
 27955                    b.Property<bool>("IsOriginal")
 27956                        .HasColumnType("INTEGER");
 27957
 27958                    b.Property<string>("KeyFrames")
 27959                        .HasColumnType("TEXT");
 27960
 27961                    b.Property<string>("Language")
 27962                        .HasColumnType("TEXT");
 27963
 27964                    b.Property<float?>("Level")
 27965                        .HasColumnType("REAL");
 27966
 27967                    b.Property<string>("NalLengthSize")
 27968                        .HasColumnType("TEXT");
 27969
 27970                    b.Property<string>("Path")
 27971                        .HasColumnType("TEXT");
 27972
 27973                    b.Property<string>("PixelFormat")
 27974                        .HasColumnType("TEXT");
 27975
 27976                    b.Property<string>("Profile")
 27977                        .HasColumnType("TEXT");
 27978
 27979                    b.Property<float?>("RealFrameRate")
 27980                        .HasColumnType("REAL");
 27981
 27982                    b.Property<int?>("RefFrames")
 27983                        .HasColumnType("INTEGER");
 27984
 27985                    b.Property<int?>("Rotation")
 27986                        .HasColumnType("INTEGER");
 27987
 27988                    b.Property<int?>("RpuPresentFlag")
 27989                        .HasColumnType("INTEGER");
 27990
 27991                    b.Property<int?>("SampleRate")
 27992                        .HasColumnType("INTEGER");
 27993
 27994                    b.Property<int>("StreamType")
 27995                        .HasColumnType("INTEGER");
 27996
 27997                    b.Property<string>("TimeBase")
 27998                        .HasColumnType("TEXT");
 27999
 271000                    b.Property<string>("Title")
 271001                        .HasColumnType("TEXT");
 271002
 271003                    b.Property<int?>("Width")
 271004                        .HasColumnType("INTEGER");
 271005
 271006                    b.HasKey("ItemId", "StreamIndex");
 271007
 271008                    b.HasIndex("StreamIndex");
 271009
 271010                    b.HasIndex("StreamType");
 271011
 271012                    b.HasIndex("StreamIndex", "StreamType");
 271013
 271014                    b.HasIndex("StreamIndex", "StreamType", "Language");
 271015
 271016                    b.ToTable("MediaStreamInfos");
 271017
 271018                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271019                });
 1020
 271021            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 271022                {
 271023                    b.Property<Guid>("Id")
 271024                        .ValueGeneratedOnAdd()
 271025                        .HasColumnType("TEXT");
 271026
 271027                    b.Property<string>("Name")
 271028                        .IsRequired()
 271029                        .HasColumnType("TEXT");
 271030
 271031                    b.Property<string>("PersonType")
 271032                        .HasColumnType("TEXT");
 271033
 271034                    b.HasKey("Id");
 271035
 271036                    b.HasIndex("Name");
 271037
 271038                    b.ToTable("Peoples");
 271039
 271040                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271041                });
 1042
 271043            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 271044                {
 271045                    b.Property<Guid>("ItemId")
 271046                        .HasColumnType("TEXT");
 271047
 271048                    b.Property<Guid>("PeopleId")
 271049                        .HasColumnType("TEXT");
 271050
 271051                    b.Property<string>("Role")
 271052                        .HasColumnType("TEXT");
 271053
 271054                    b.Property<int?>("ListOrder")
 271055                        .HasColumnType("INTEGER");
 271056
 271057                    b.Property<int?>("SortOrder")
 271058                        .HasColumnType("INTEGER");
 271059
 271060                    b.HasKey("ItemId", "PeopleId", "Role");
 271061
 271062                    b.HasIndex("PeopleId");
 271063
 271064                    b.HasIndex("ItemId", "ListOrder");
 271065
 271066                    b.HasIndex("ItemId", "SortOrder");
 271067
 271068                    b.ToTable("PeopleBaseItemMap");
 271069
 271070                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271071                });
 1072
 271073            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 271074                {
 271075                    b.Property<int>("Id")
 271076                        .ValueGeneratedOnAdd()
 271077                        .HasColumnType("INTEGER");
 271078
 271079                    b.Property<int>("Kind")
 271080                        .HasColumnType("INTEGER");
 271081
 271082                    b.Property<Guid?>("Permission_Permissions_Guid")
 271083                        .HasColumnType("TEXT");
 271084
 271085                    b.Property<uint>("RowVersion")
 271086                        .IsConcurrencyToken()
 271087                        .HasColumnType("INTEGER");
 271088
 271089                    b.Property<Guid?>("UserId")
 271090                        .HasColumnType("TEXT");
 271091
 271092                    b.Property<bool>("Value")
 271093                        .HasColumnType("INTEGER");
 271094
 271095                    b.HasKey("Id");
 271096
 271097                    b.HasIndex("UserId", "Kind")
 271098                        .IsUnique()
 271099                        .HasFilter("[UserId] IS NOT NULL");
 271100
 271101                    b.ToTable("Permissions");
 271102
 271103                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271104                });
 1105
 271106            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 271107                {
 271108                    b.Property<int>("Id")
 271109                        .ValueGeneratedOnAdd()
 271110                        .HasColumnType("INTEGER");
 271111
 271112                    b.Property<int>("Kind")
 271113                        .HasColumnType("INTEGER");
 271114
 271115                    b.Property<Guid?>("Preference_Preferences_Guid")
 271116                        .HasColumnType("TEXT");
 271117
 271118                    b.Property<uint>("RowVersion")
 271119                        .IsConcurrencyToken()
 271120                        .HasColumnType("INTEGER");
 271121
 271122                    b.Property<Guid?>("UserId")
 271123                        .HasColumnType("TEXT");
 271124
 271125                    b.Property<string>("Value")
 271126                        .IsRequired()
 271127                        .HasMaxLength(65535)
 271128                        .HasColumnType("TEXT");
 271129
 271130                    b.HasKey("Id");
 271131
 271132                    b.HasIndex("UserId", "Kind")
 271133                        .IsUnique()
 271134                        .HasFilter("[UserId] IS NOT NULL");
 271135
 271136                    b.ToTable("Preferences");
 271137
 271138                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271139                });
 1140
 271141            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.ApiKey", b =>
 271142                {
 271143                    b.Property<int>("Id")
 271144                        .ValueGeneratedOnAdd()
 271145                        .HasColumnType("INTEGER");
 271146
 271147                    b.Property<string>("AccessToken")
 271148                        .IsRequired()
 271149                        .HasColumnType("TEXT");
 271150
 271151                    b.Property<DateTime>("DateCreated")
 271152                        .HasColumnType("TEXT");
 271153
 271154                    b.Property<DateTime>("DateLastActivity")
 271155                        .HasColumnType("TEXT");
 271156
 271157                    b.Property<string>("Name")
 271158                        .IsRequired()
 271159                        .HasMaxLength(64)
 271160                        .HasColumnType("TEXT");
 271161
 271162                    b.HasKey("Id");
 271163
 271164                    b.HasIndex("AccessToken")
 271165                        .IsUnique();
 271166
 271167                    b.ToTable("ApiKeys");
 271168
 271169                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271170                });
 1171
 271172            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 271173                {
 271174                    b.Property<int>("Id")
 271175                        .ValueGeneratedOnAdd()
 271176                        .HasColumnType("INTEGER");
 271177
 271178                    b.Property<string>("AccessToken")
 271179                        .IsRequired()
 271180                        .HasColumnType("TEXT");
 271181
 271182                    b.Property<string>("AppName")
 271183                        .IsRequired()
 271184                        .HasMaxLength(64)
 271185                        .HasColumnType("TEXT");
 271186
 271187                    b.Property<string>("AppVersion")
 271188                        .IsRequired()
 271189                        .HasMaxLength(32)
 271190                        .HasColumnType("TEXT");
 271191
 271192                    b.Property<DateTime>("DateCreated")
 271193                        .HasColumnType("TEXT");
 271194
 271195                    b.Property<DateTime>("DateLastActivity")
 271196                        .HasColumnType("TEXT");
 271197
 271198                    b.Property<DateTime>("DateModified")
 271199                        .HasColumnType("TEXT");
 271200
 271201                    b.Property<string>("DeviceId")
 271202                        .IsRequired()
 271203                        .HasMaxLength(256)
 271204                        .HasColumnType("TEXT");
 271205
 271206                    b.Property<string>("DeviceName")
 271207                        .IsRequired()
 271208                        .HasMaxLength(64)
 271209                        .HasColumnType("TEXT");
 271210
 271211                    b.Property<bool>("IsActive")
 271212                        .HasColumnType("INTEGER");
 271213
 271214                    b.Property<Guid>("UserId")
 271215                        .HasColumnType("TEXT");
 271216
 271217                    b.HasKey("Id");
 271218
 271219                    b.HasIndex("DeviceId");
 271220
 271221                    b.HasIndex("AccessToken", "DateLastActivity");
 271222
 271223                    b.HasIndex("DeviceId", "DateLastActivity");
 271224
 271225                    b.HasIndex("UserId", "DeviceId");
 271226
 271227                    b.ToTable("Devices");
 271228
 271229                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271230                });
 1231
 271232            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.DeviceOptions", b =>
 271233                {
 271234                    b.Property<int>("Id")
 271235                        .ValueGeneratedOnAdd()
 271236                        .HasColumnType("INTEGER");
 271237
 271238                    b.Property<string>("CustomName")
 271239                        .HasColumnType("TEXT");
 271240
 271241                    b.Property<string>("DeviceId")
 271242                        .IsRequired()
 271243                        .HasColumnType("TEXT");
 271244
 271245                    b.HasKey("Id");
 271246
 271247                    b.HasIndex("DeviceId")
 271248                        .IsUnique();
 271249
 271250                    b.ToTable("DeviceOptions");
 271251
 271252                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271253                });
 1254
 271255            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.TrickplayInfo", b =>
 271256                {
 271257                    b.Property<Guid>("ItemId")
 271258                        .HasColumnType("TEXT");
 271259
 271260                    b.Property<int>("Width")
 271261                        .HasColumnType("INTEGER");
 271262
 271263                    b.Property<int>("Bandwidth")
 271264                        .HasColumnType("INTEGER");
 271265
 271266                    b.Property<int>("Height")
 271267                        .HasColumnType("INTEGER");
 271268
 271269                    b.Property<int>("Interval")
 271270                        .HasColumnType("INTEGER");
 271271
 271272                    b.Property<int>("ThumbnailCount")
 271273                        .HasColumnType("INTEGER");
 271274
 271275                    b.Property<int>("TileHeight")
 271276                        .HasColumnType("INTEGER");
 271277
 271278                    b.Property<int>("TileWidth")
 271279                        .HasColumnType("INTEGER");
 271280
 271281                    b.HasKey("ItemId", "Width");
 271282
 271283                    b.ToTable("TrickplayInfos");
 271284
 271285                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271286                });
 1287
 271288            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 271289                {
 271290                    b.Property<Guid>("Id")
 271291                        .ValueGeneratedOnAdd()
 271292                        .HasColumnType("TEXT");
 271293
 271294                    b.Property<string>("AudioLanguagePreference")
 271295                        .HasMaxLength(255)
 271296                        .HasColumnType("TEXT");
 271297
 271298                    b.Property<string>("AuthenticationProviderId")
 271299                        .IsRequired()
 271300                        .HasMaxLength(255)
 271301                        .HasColumnType("TEXT");
 271302
 271303                    b.Property<string>("CastReceiverId")
 271304                        .HasMaxLength(32)
 271305                        .HasColumnType("TEXT");
 271306
 271307                    b.Property<bool>("DisplayCollectionsView")
 271308                        .HasColumnType("INTEGER");
 271309
 271310                    b.Property<bool>("DisplayMissingEpisodes")
 271311                        .HasColumnType("INTEGER");
 271312
 271313                    b.Property<bool>("EnableAutoLogin")
 271314                        .HasColumnType("INTEGER");
 271315
 271316                    b.Property<bool>("EnableLocalPassword")
 271317                        .HasColumnType("INTEGER");
 271318
 271319                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 271320                        .HasColumnType("INTEGER");
 271321
 271322                    b.Property<bool>("EnableUserPreferenceAccess")
 271323                        .HasColumnType("INTEGER");
 271324
 271325                    b.Property<bool>("HidePlayedInLatest")
 271326                        .HasColumnType("INTEGER");
 271327
 271328                    b.Property<long>("InternalId")
 271329                        .HasColumnType("INTEGER");
 271330
 271331                    b.Property<int>("InvalidLoginAttemptCount")
 271332                        .HasColumnType("INTEGER");
 271333
 271334                    b.Property<DateTime?>("LastActivityDate")
 271335                        .HasColumnType("TEXT");
 271336
 271337                    b.Property<DateTime?>("LastLoginDate")
 271338                        .HasColumnType("TEXT");
 271339
 271340                    b.Property<int?>("LoginAttemptsBeforeLockout")
 271341                        .HasColumnType("INTEGER");
 271342
 271343                    b.Property<int>("MaxActiveSessions")
 271344                        .HasColumnType("INTEGER");
 271345
 271346                    b.Property<int?>("MaxParentalRatingScore")
 271347                        .HasColumnType("INTEGER");
 271348
 271349                    b.Property<int?>("MaxParentalRatingSubScore")
 271350                        .HasColumnType("INTEGER");
 271351
 271352                    b.Property<bool>("MustUpdatePassword")
 271353                        .HasColumnType("INTEGER");
 271354
 271355                    b.Property<string>("Password")
 271356                        .HasMaxLength(65535)
 271357                        .HasColumnType("TEXT");
 271358
 271359                    b.Property<string>("PasswordResetProviderId")
 271360                        .IsRequired()
 271361                        .HasMaxLength(255)
 271362                        .HasColumnType("TEXT");
 271363
 271364                    b.Property<bool>("PlayDefaultAudioTrack")
 271365                        .HasColumnType("INTEGER");
 271366
 271367                    b.Property<bool>("RememberAudioSelections")
 271368                        .HasColumnType("INTEGER");
 271369
 271370                    b.Property<bool>("RememberSubtitleSelections")
 271371                        .HasColumnType("INTEGER");
 271372
 271373                    b.Property<int?>("RemoteClientBitrateLimit")
 271374                        .HasColumnType("INTEGER");
 271375
 271376                    b.Property<uint>("RowVersion")
 271377                        .IsConcurrencyToken()
 271378                        .HasColumnType("INTEGER");
 271379
 271380                    b.Property<string>("SubtitleLanguagePreference")
 271381                        .HasMaxLength(255)
 271382                        .HasColumnType("TEXT");
 271383
 271384                    b.Property<int>("SubtitleMode")
 271385                        .HasColumnType("INTEGER");
 271386
 271387                    b.Property<int>("SyncPlayAccess")
 271388                        .HasColumnType("INTEGER");
 271389
 271390                    b.Property<string>("Username")
 271391                        .IsRequired()
 271392                        .HasMaxLength(255)
 271393                        .HasColumnType("TEXT");
 271394
 271395                    b.HasKey("Id");
 271396
 271397                    b.HasIndex("Username")
 271398                        .IsUnique();
 271399
 271400                    b.ToTable("Users");
 271401
 271402                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271403                });
 1404
 271405            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 271406                {
 271407                    b.Property<Guid>("ItemId")
 271408                        .HasColumnType("TEXT");
 271409
 271410                    b.Property<Guid>("UserId")
 271411                        .HasColumnType("TEXT");
 271412
 271413                    b.Property<string>("CustomDataKey")
 271414                        .HasColumnType("TEXT");
 271415
 271416                    b.Property<int?>("AudioStreamIndex")
 271417                        .HasColumnType("INTEGER");
 271418
 271419                    b.Property<bool>("IsFavorite")
 271420                        .HasColumnType("INTEGER");
 271421
 271422                    b.Property<DateTime?>("LastPlayedDate")
 271423                        .HasColumnType("TEXT");
 271424
 271425                    b.Property<bool?>("Likes")
 271426                        .HasColumnType("INTEGER");
 271427
 271428                    b.Property<int>("PlayCount")
 271429                        .HasColumnType("INTEGER");
 271430
 271431                    b.Property<long>("PlaybackPositionTicks")
 271432                        .HasColumnType("INTEGER");
 271433
 271434                    b.Property<bool>("Played")
 271435                        .HasColumnType("INTEGER");
 271436
 271437                    b.Property<double?>("Rating")
 271438                        .HasColumnType("REAL");
 271439
 271440                    b.Property<DateTime?>("RetentionDate")
 271441                        .HasColumnType("TEXT");
 271442
 271443                    b.Property<int?>("SubtitleStreamIndex")
 271444                        .HasColumnType("INTEGER");
 271445
 271446                    b.HasKey("ItemId", "UserId", "CustomDataKey");
 271447
 271448                    b.HasIndex("UserId");
 271449
 271450                    b.HasIndex("ItemId", "UserId", "IsFavorite");
 271451
 271452                    b.HasIndex("ItemId", "UserId", "LastPlayedDate");
 271453
 271454                    b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
 271455
 271456                    b.HasIndex("ItemId", "UserId", "Played");
 271457
 271458                    b.ToTable("UserData");
 271459
 271460                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 271461                });
 1462
 271463            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 271464                {
 271465                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271466                        .WithMany("AccessSchedules")
 271467                        .HasForeignKey("UserId")
 271468                        .OnDelete(DeleteBehavior.Cascade)
 271469                        .IsRequired();
 271470                });
 1471
 271472            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 271473                {
 271474                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271475                        .WithMany("Parents")
 271476                        .HasForeignKey("ItemId")
 271477                        .OnDelete(DeleteBehavior.Cascade)
 271478                        .IsRequired();
 271479
 271480                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "ParentItem")
 271481                        .WithMany("Children")
 271482                        .HasForeignKey("ParentItemId")
 271483                        .OnDelete(DeleteBehavior.Cascade)
 271484                        .IsRequired();
 271485
 271486                    b.Navigation("Item");
 271487
 271488                    b.Navigation("ParentItem");
 271489                });
 1490
 271491            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 271492                {
 271493                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271494                        .WithMany()
 271495                        .HasForeignKey("ItemId")
 271496                        .OnDelete(DeleteBehavior.Cascade)
 271497                        .IsRequired();
 271498
 271499                    b.Navigation("Item");
 271500                });
 1501
 271502            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 271503                {
 271504                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Owner")
 271505                        .WithMany("Extras")
 271506                        .HasForeignKey("OwnerId")
 271507                        .OnDelete(DeleteBehavior.NoAction);
 271508
 271509                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "DirectParent")
 271510                        .WithMany("DirectChildren")
 271511                        .HasForeignKey("ParentId")
 271512                        .OnDelete(DeleteBehavior.Cascade);
 271513
 271514                    b.Navigation("DirectParent");
 271515
 271516                    b.Navigation("Owner");
 271517                });
 1518
 271519            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 271520                {
 271521                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271522                        .WithMany("Images")
 271523                        .HasForeignKey("ItemId")
 271524                        .OnDelete(DeleteBehavior.Cascade)
 271525                        .IsRequired();
 271526
 271527                    b.Navigation("Item");
 271528                });
 1529
 271530            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 271531                {
 271532                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271533                        .WithMany("LockedFields")
 271534                        .HasForeignKey("ItemId")
 271535                        .OnDelete(DeleteBehavior.Cascade)
 271536                        .IsRequired();
 271537
 271538                    b.Navigation("Item");
 271539                });
 1540
 271541            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 271542                {
 271543                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271544                        .WithMany("Provider")
 271545                        .HasForeignKey("ItemId")
 271546                        .OnDelete(DeleteBehavior.Cascade)
 271547                        .IsRequired();
 271548
 271549                    b.Navigation("Item");
 271550                });
 1551
 271552            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 271553                {
 271554                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271555                        .WithMany("TrailerTypes")
 271556                        .HasForeignKey("ItemId")
 271557                        .OnDelete(DeleteBehavior.Cascade)
 271558                        .IsRequired();
 271559
 271560                    b.Navigation("Item");
 271561                });
 1562
 271563            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 271564                {
 271565                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271566                        .WithMany("Chapters")
 271567                        .HasForeignKey("ItemId")
 271568                        .OnDelete(DeleteBehavior.Cascade)
 271569                        .IsRequired();
 271570
 271571                    b.Navigation("Item");
 271572                });
 1573
 271574            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 271575                {
 271576                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271577                        .WithMany("DisplayPreferences")
 271578                        .HasForeignKey("UserId")
 271579                        .OnDelete(DeleteBehavior.Cascade)
 271580                        .IsRequired();
 271581                });
 1582
 271583            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 271584                {
 271585                    b.HasOne("Jellyfin.Database.Implementations.Entities.DisplayPreferences", null)
 271586                        .WithMany("HomeSections")
 271587                        .HasForeignKey("DisplayPreferencesId")
 271588                        .OnDelete(DeleteBehavior.Cascade)
 271589                        .IsRequired();
 271590                });
 1591
 271592            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 271593                {
 271594                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271595                        .WithOne("ProfileImage")
 271596                        .HasForeignKey("Jellyfin.Database.Implementations.Entities.ImageInfo", "UserId")
 271597                        .OnDelete(DeleteBehavior.Cascade);
 271598                });
 1599
 271600            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 271601                {
 271602                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271603                        .WithMany("ItemDisplayPreferences")
 271604                        .HasForeignKey("UserId")
 271605                        .OnDelete(DeleteBehavior.Cascade)
 271606                        .IsRequired();
 271607                });
 1608
 271609            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 271610                {
 271611                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271612                        .WithMany("ItemValues")
 271613                        .HasForeignKey("ItemId")
 271614                        .OnDelete(DeleteBehavior.Cascade)
 271615                        .IsRequired();
 271616
 271617                    b.HasOne("Jellyfin.Database.Implementations.Entities.ItemValue", "ItemValue")
 271618                        .WithMany("BaseItemsMap")
 271619                        .HasForeignKey("ItemValueId")
 271620                        .OnDelete(DeleteBehavior.Cascade)
 271621                        .IsRequired();
 271622
 271623                    b.Navigation("Item");
 271624
 271625                    b.Navigation("ItemValue");
 271626                });
 1627
 271628            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 271629                {
 271630                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271631                        .WithMany()
 271632                        .HasForeignKey("ItemId")
 271633                        .OnDelete(DeleteBehavior.Cascade)
 271634                        .IsRequired();
 271635
 271636                    b.Navigation("Item");
 271637                });
 1638
 271639            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 271640                {
 271641                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Child")
 271642                        .WithMany("LinkedChildOfEntities")
 271643                        .HasForeignKey("ChildId")
 271644                        .OnDelete(DeleteBehavior.NoAction)
 271645                        .IsRequired();
 271646
 271647                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Parent")
 271648                        .WithMany("LinkedChildEntities")
 271649                        .HasForeignKey("ParentId")
 271650                        .OnDelete(DeleteBehavior.NoAction)
 271651                        .IsRequired();
 271652
 271653                    b.Navigation("Child");
 271654
 271655                    b.Navigation("Parent");
 271656                });
 1657
 271658            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 271659                {
 271660                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271661                        .WithMany("MediaStreams")
 271662                        .HasForeignKey("ItemId")
 271663                        .OnDelete(DeleteBehavior.Cascade)
 271664                        .IsRequired();
 271665
 271666                    b.Navigation("Item");
 271667                });
 1668
 271669            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 271670                {
 271671                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271672                        .WithMany("Peoples")
 271673                        .HasForeignKey("ItemId")
 271674                        .OnDelete(DeleteBehavior.Cascade)
 271675                        .IsRequired();
 271676
 271677                    b.HasOne("Jellyfin.Database.Implementations.Entities.People", "People")
 271678                        .WithMany("BaseItems")
 271679                        .HasForeignKey("PeopleId")
 271680                        .OnDelete(DeleteBehavior.Cascade)
 271681                        .IsRequired();
 271682
 271683                    b.Navigation("Item");
 271684
 271685                    b.Navigation("People");
 271686                });
 1687
 271688            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 271689                {
 271690                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271691                        .WithMany("Permissions")
 271692                        .HasForeignKey("UserId")
 271693                        .OnDelete(DeleteBehavior.Cascade);
 271694                });
 1695
 271696            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 271697                {
 271698                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 271699                        .WithMany("Preferences")
 271700                        .HasForeignKey("UserId")
 271701                        .OnDelete(DeleteBehavior.Cascade);
 271702                });
 1703
 271704            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 271705                {
 271706                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 271707                        .WithMany()
 271708                        .HasForeignKey("UserId")
 271709                        .OnDelete(DeleteBehavior.Cascade)
 271710                        .IsRequired();
 271711
 271712                    b.Navigation("User");
 271713                });
 1714
 271715            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 271716                {
 271717                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 271718                        .WithMany("UserData")
 271719                        .HasForeignKey("ItemId")
 271720                        .OnDelete(DeleteBehavior.Cascade)
 271721                        .IsRequired();
 271722
 271723                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 271724                        .WithMany()
 271725                        .HasForeignKey("UserId")
 271726                        .OnDelete(DeleteBehavior.Cascade)
 271727                        .IsRequired();
 271728
 271729                    b.Navigation("Item");
 271730
 271731                    b.Navigation("User");
 271732                });
 1733
 271734            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 271735                {
 271736                    b.Navigation("Chapters");
 271737
 271738                    b.Navigation("Children");
 271739
 271740                    b.Navigation("DirectChildren");
 271741
 271742                    b.Navigation("Extras");
 271743
 271744                    b.Navigation("Images");
 271745
 271746                    b.Navigation("ItemValues");
 271747
 271748                    b.Navigation("LinkedChildEntities");
 271749
 271750                    b.Navigation("LinkedChildOfEntities");
 271751
 271752                    b.Navigation("LockedFields");
 271753
 271754                    b.Navigation("MediaStreams");
 271755
 271756                    b.Navigation("Parents");
 271757
 271758                    b.Navigation("Peoples");
 271759
 271760                    b.Navigation("Provider");
 271761
 271762                    b.Navigation("TrailerTypes");
 271763
 271764                    b.Navigation("UserData");
 271765                });
 1766
 271767            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 271768                {
 271769                    b.Navigation("HomeSections");
 271770                });
 1771
 271772            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 271773                {
 271774                    b.Navigation("BaseItemsMap");
 271775                });
 1776
 271777            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 271778                {
 271779                    b.Navigation("BaseItems");
 271780                });
 1781
 271782            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 271783                {
 271784                    b.Navigation("AccessSchedules");
 271785
 271786                    b.Navigation("DisplayPreferences");
 271787
 271788                    b.Navigation("ItemDisplayPreferences");
 271789
 271790                    b.Navigation("Permissions");
 271791
 271792                    b.Navigation("Preferences");
 271793
 271794                    b.Navigation("ProfileImage");
 271795                });
 1796#pragma warning restore 612, 618
 271797        }
 1798    }
 1799}