< 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/6/2026 - 12:15:23 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        {
 2213            migrationBuilder.AddColumn<bool>(
 2214                name: "Hdr10PlusPresentFlag",
 2215                table: "MediaStreamInfos",
 2216                type: "INTEGER",
 2217                nullable: true);
 2218        }
 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
 2221            modelBuilder.HasAnnotation("ProductVersion", "9.0.3");
 22
 2223            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 2224                {
 2225                    b.Property<int>("Id")
 2226                        .ValueGeneratedOnAdd()
 2227                        .HasColumnType("INTEGER");
 2228
 2229                    b.Property<int>("DayOfWeek")
 2230                        .HasColumnType("INTEGER");
 2231
 2232                    b.Property<double>("EndHour")
 2233                        .HasColumnType("REAL");
 2234
 2235                    b.Property<double>("StartHour")
 2236                        .HasColumnType("REAL");
 2237
 2238                    b.Property<Guid>("UserId")
 2239                        .HasColumnType("TEXT");
 2240
 2241                    b.HasKey("Id");
 2242
 2243                    b.HasIndex("UserId");
 2244
 2245                    b.ToTable("AccessSchedules");
 2246
 2247                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2248                });
 49
 2250            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ActivityLog", b =>
 2251                {
 2252                    b.Property<int>("Id")
 2253                        .ValueGeneratedOnAdd()
 2254                        .HasColumnType("INTEGER");
 2255
 2256                    b.Property<DateTime>("DateCreated")
 2257                        .HasColumnType("TEXT");
 2258
 2259                    b.Property<string>("ItemId")
 2260                        .HasMaxLength(256)
 2261                        .HasColumnType("TEXT");
 2262
 2263                    b.Property<int>("LogSeverity")
 2264                        .HasColumnType("INTEGER");
 2265
 2266                    b.Property<string>("Name")
 2267                        .IsRequired()
 2268                        .HasMaxLength(512)
 2269                        .HasColumnType("TEXT");
 2270
 2271                    b.Property<string>("Overview")
 2272                        .HasMaxLength(512)
 2273                        .HasColumnType("TEXT");
 2274
 2275                    b.Property<uint>("RowVersion")
 2276                        .IsConcurrencyToken()
 2277                        .HasColumnType("INTEGER");
 2278
 2279                    b.Property<string>("ShortOverview")
 2280                        .HasMaxLength(512)
 2281                        .HasColumnType("TEXT");
 2282
 2283                    b.Property<string>("Type")
 2284                        .IsRequired()
 2285                        .HasMaxLength(256)
 2286                        .HasColumnType("TEXT");
 2287
 2288                    b.Property<Guid>("UserId")
 2289                        .HasColumnType("TEXT");
 2290
 2291                    b.HasKey("Id");
 2292
 2293                    b.HasIndex("DateCreated");
 2294
 2295                    b.ToTable("ActivityLogs");
 2296
 2297                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 2298                });
 99
 22100            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 22101                {
 22102                    b.Property<Guid>("ItemId")
 22103                        .HasColumnType("TEXT");
 22104
 22105                    b.Property<Guid>("ParentItemId")
 22106                        .HasColumnType("TEXT");
 22107
 22108                    b.HasKey("ItemId", "ParentItemId");
 22109
 22110                    b.HasIndex("ParentItemId");
 22111
 22112                    b.ToTable("AncestorIds");
 22113
 22114                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22115                });
 116
 22117            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 22118                {
 22119                    b.Property<Guid>("ItemId")
 22120                        .HasColumnType("TEXT");
 22121
 22122                    b.Property<int>("Index")
 22123                        .HasColumnType("INTEGER");
 22124
 22125                    b.Property<string>("Codec")
 22126                        .IsRequired()
 22127                        .HasColumnType("TEXT");
 22128
 22129                    b.Property<string>("CodecTag")
 22130                        .HasColumnType("TEXT");
 22131
 22132                    b.Property<string>("Comment")
 22133                        .HasColumnType("TEXT");
 22134
 22135                    b.Property<string>("Filename")
 22136                        .HasColumnType("TEXT");
 22137
 22138                    b.Property<string>("MimeType")
 22139                        .HasColumnType("TEXT");
 22140
 22141                    b.HasKey("ItemId", "Index");
 22142
 22143                    b.ToTable("AttachmentStreamInfos");
 22144
 22145                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22146                });
 147
 22148            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 22149                {
 22150                    b.Property<Guid>("Id")
 22151                        .ValueGeneratedOnAdd()
 22152                        .HasColumnType("TEXT");
 22153
 22154                    b.Property<string>("Album")
 22155                        .HasColumnType("TEXT");
 22156
 22157                    b.Property<string>("AlbumArtists")
 22158                        .HasColumnType("TEXT");
 22159
 22160                    b.Property<string>("Artists")
 22161                        .HasColumnType("TEXT");
 22162
 22163                    b.Property<int?>("Audio")
 22164                        .HasColumnType("INTEGER");
 22165
 22166                    b.Property<Guid?>("ChannelId")
 22167                        .HasColumnType("TEXT");
 22168
 22169                    b.Property<string>("CleanName")
 22170                        .HasColumnType("TEXT");
 22171
 22172                    b.Property<float?>("CommunityRating")
 22173                        .HasColumnType("REAL");
 22174
 22175                    b.Property<float?>("CriticRating")
 22176                        .HasColumnType("REAL");
 22177
 22178                    b.Property<string>("CustomRating")
 22179                        .HasColumnType("TEXT");
 22180
 22181                    b.Property<string>("Data")
 22182                        .HasColumnType("TEXT");
 22183
 22184                    b.Property<DateTime?>("DateCreated")
 22185                        .HasColumnType("TEXT");
 22186
 22187                    b.Property<DateTime?>("DateLastMediaAdded")
 22188                        .HasColumnType("TEXT");
 22189
 22190                    b.Property<DateTime?>("DateLastRefreshed")
 22191                        .HasColumnType("TEXT");
 22192
 22193                    b.Property<DateTime?>("DateLastSaved")
 22194                        .HasColumnType("TEXT");
 22195
 22196                    b.Property<DateTime?>("DateModified")
 22197                        .HasColumnType("TEXT");
 22198
 22199                    b.Property<DateTime?>("EndDate")
 22200                        .HasColumnType("TEXT");
 22201
 22202                    b.Property<string>("EpisodeTitle")
 22203                        .HasColumnType("TEXT");
 22204
 22205                    b.Property<string>("ExternalId")
 22206                        .HasColumnType("TEXT");
 22207
 22208                    b.Property<string>("ExternalSeriesId")
 22209                        .HasColumnType("TEXT");
 22210
 22211                    b.Property<string>("ExternalServiceId")
 22212                        .HasColumnType("TEXT");
 22213
 22214                    b.Property<string>("ExtraIds")
 22215                        .HasColumnType("TEXT");
 22216
 22217                    b.Property<int?>("ExtraType")
 22218                        .HasColumnType("INTEGER");
 22219
 22220                    b.Property<string>("ForcedSortName")
 22221                        .HasColumnType("TEXT");
 22222
 22223                    b.Property<string>("Genres")
 22224                        .HasColumnType("TEXT");
 22225
 22226                    b.Property<int?>("Height")
 22227                        .HasColumnType("INTEGER");
 22228
 22229                    b.Property<int?>("IndexNumber")
 22230                        .HasColumnType("INTEGER");
 22231
 22232                    b.Property<int?>("InheritedParentalRatingSubValue")
 22233                        .HasColumnType("INTEGER");
 22234
 22235                    b.Property<int?>("InheritedParentalRatingValue")
 22236                        .HasColumnType("INTEGER");
 22237
 22238                    b.Property<bool>("IsFolder")
 22239                        .HasColumnType("INTEGER");
 22240
 22241                    b.Property<bool>("IsInMixedFolder")
 22242                        .HasColumnType("INTEGER");
 22243
 22244                    b.Property<bool>("IsLocked")
 22245                        .HasColumnType("INTEGER");
 22246
 22247                    b.Property<bool>("IsMovie")
 22248                        .HasColumnType("INTEGER");
 22249
 22250                    b.Property<bool>("IsRepeat")
 22251                        .HasColumnType("INTEGER");
 22252
 22253                    b.Property<bool>("IsSeries")
 22254                        .HasColumnType("INTEGER");
 22255
 22256                    b.Property<bool>("IsVirtualItem")
 22257                        .HasColumnType("INTEGER");
 22258
 22259                    b.Property<float?>("LUFS")
 22260                        .HasColumnType("REAL");
 22261
 22262                    b.Property<string>("MediaType")
 22263                        .HasColumnType("TEXT");
 22264
 22265                    b.Property<string>("Name")
 22266                        .HasColumnType("TEXT");
 22267
 22268                    b.Property<float?>("NormalizationGain")
 22269                        .HasColumnType("REAL");
 22270
 22271                    b.Property<string>("OfficialRating")
 22272                        .HasColumnType("TEXT");
 22273
 22274                    b.Property<string>("OriginalTitle")
 22275                        .HasColumnType("TEXT");
 22276
 22277                    b.Property<string>("Overview")
 22278                        .HasColumnType("TEXT");
 22279
 22280                    b.Property<string>("OwnerId")
 22281                        .HasColumnType("TEXT");
 22282
 22283                    b.Property<Guid?>("ParentId")
 22284                        .HasColumnType("TEXT");
 22285
 22286                    b.Property<int?>("ParentIndexNumber")
 22287                        .HasColumnType("INTEGER");
 22288
 22289                    b.Property<string>("Path")
 22290                        .HasColumnType("TEXT");
 22291
 22292                    b.Property<string>("PreferredMetadataCountryCode")
 22293                        .HasColumnType("TEXT");
 22294
 22295                    b.Property<string>("PreferredMetadataLanguage")
 22296                        .HasColumnType("TEXT");
 22297
 22298                    b.Property<DateTime?>("PremiereDate")
 22299                        .HasColumnType("TEXT");
 22300
 22301                    b.Property<string>("PresentationUniqueKey")
 22302                        .HasColumnType("TEXT");
 22303
 22304                    b.Property<string>("PrimaryVersionId")
 22305                        .HasColumnType("TEXT");
 22306
 22307                    b.Property<string>("ProductionLocations")
 22308                        .HasColumnType("TEXT");
 22309
 22310                    b.Property<int?>("ProductionYear")
 22311                        .HasColumnType("INTEGER");
 22312
 22313                    b.Property<long?>("RunTimeTicks")
 22314                        .HasColumnType("INTEGER");
 22315
 22316                    b.Property<Guid?>("SeasonId")
 22317                        .HasColumnType("TEXT");
 22318
 22319                    b.Property<string>("SeasonName")
 22320                        .HasColumnType("TEXT");
 22321
 22322                    b.Property<Guid?>("SeriesId")
 22323                        .HasColumnType("TEXT");
 22324
 22325                    b.Property<string>("SeriesName")
 22326                        .HasColumnType("TEXT");
 22327
 22328                    b.Property<string>("SeriesPresentationUniqueKey")
 22329                        .HasColumnType("TEXT");
 22330
 22331                    b.Property<string>("ShowId")
 22332                        .HasColumnType("TEXT");
 22333
 22334                    b.Property<long?>("Size")
 22335                        .HasColumnType("INTEGER");
 22336
 22337                    b.Property<string>("SortName")
 22338                        .HasColumnType("TEXT");
 22339
 22340                    b.Property<DateTime?>("StartDate")
 22341                        .HasColumnType("TEXT");
 22342
 22343                    b.Property<string>("Studios")
 22344                        .HasColumnType("TEXT");
 22345
 22346                    b.Property<string>("Tagline")
 22347                        .HasColumnType("TEXT");
 22348
 22349                    b.Property<string>("Tags")
 22350                        .HasColumnType("TEXT");
 22351
 22352                    b.Property<Guid?>("TopParentId")
 22353                        .HasColumnType("TEXT");
 22354
 22355                    b.Property<int?>("TotalBitrate")
 22356                        .HasColumnType("INTEGER");
 22357
 22358                    b.Property<string>("Type")
 22359                        .IsRequired()
 22360                        .HasColumnType("TEXT");
 22361
 22362                    b.Property<string>("UnratedType")
 22363                        .HasColumnType("TEXT");
 22364
 22365                    b.Property<int?>("Width")
 22366                        .HasColumnType("INTEGER");
 22367
 22368                    b.HasKey("Id");
 22369
 22370                    b.HasIndex("ParentId");
 22371
 22372                    b.HasIndex("Path");
 22373
 22374                    b.HasIndex("PresentationUniqueKey");
 22375
 22376                    b.HasIndex("TopParentId", "Id");
 22377
 22378                    b.HasIndex("Type", "TopParentId", "Id");
 22379
 22380                    b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
 22381
 22382                    b.HasIndex("Type", "TopParentId", "StartDate");
 22383
 22384                    b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
 22385
 22386                    b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
 22387
 22388                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
 22389
 22390                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
 22391
 22392                    b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 22393
 22394                    b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 22395
 22396                    b.ToTable("BaseItems");
 22397
 22398                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22399                });
 400
 22401            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 22402                {
 22403                    b.Property<Guid>("Id")
 22404                        .ValueGeneratedOnAdd()
 22405                        .HasColumnType("TEXT");
 22406
 22407                    b.Property<byte[]>("Blurhash")
 22408                        .HasColumnType("BLOB");
 22409
 22410                    b.Property<DateTime>("DateModified")
 22411                        .HasColumnType("TEXT");
 22412
 22413                    b.Property<int>("Height")
 22414                        .HasColumnType("INTEGER");
 22415
 22416                    b.Property<int>("ImageType")
 22417                        .HasColumnType("INTEGER");
 22418
 22419                    b.Property<Guid>("ItemId")
 22420                        .HasColumnType("TEXT");
 22421
 22422                    b.Property<string>("Path")
 22423                        .IsRequired()
 22424                        .HasColumnType("TEXT");
 22425
 22426                    b.Property<int>("Width")
 22427                        .HasColumnType("INTEGER");
 22428
 22429                    b.HasKey("Id");
 22430
 22431                    b.HasIndex("ItemId");
 22432
 22433                    b.ToTable("BaseItemImageInfos");
 22434
 22435                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22436                });
 437
 22438            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 22439                {
 22440                    b.Property<int>("Id")
 22441                        .HasColumnType("INTEGER");
 22442
 22443                    b.Property<Guid>("ItemId")
 22444                        .HasColumnType("TEXT");
 22445
 22446                    b.HasKey("Id", "ItemId");
 22447
 22448                    b.HasIndex("ItemId");
 22449
 22450                    b.ToTable("BaseItemMetadataFields");
 22451
 22452                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22453                });
 454
 22455            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 22456                {
 22457                    b.Property<Guid>("ItemId")
 22458                        .HasColumnType("TEXT");
 22459
 22460                    b.Property<string>("ProviderId")
 22461                        .HasColumnType("TEXT");
 22462
 22463                    b.Property<string>("ProviderValue")
 22464                        .IsRequired()
 22465                        .HasColumnType("TEXT");
 22466
 22467                    b.HasKey("ItemId", "ProviderId");
 22468
 22469                    b.HasIndex("ProviderId", "ProviderValue", "ItemId");
 22470
 22471                    b.ToTable("BaseItemProviders");
 22472
 22473                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22474                });
 475
 22476            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 22477                {
 22478                    b.Property<int>("Id")
 22479                        .HasColumnType("INTEGER");
 22480
 22481                    b.Property<Guid>("ItemId")
 22482                        .HasColumnType("TEXT");
 22483
 22484                    b.HasKey("Id", "ItemId");
 22485
 22486                    b.HasIndex("ItemId");
 22487
 22488                    b.ToTable("BaseItemTrailerTypes");
 22489
 22490                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22491                });
 492
 22493            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 22494                {
 22495                    b.Property<Guid>("ItemId")
 22496                        .HasColumnType("TEXT");
 22497
 22498                    b.Property<int>("ChapterIndex")
 22499                        .HasColumnType("INTEGER");
 22500
 22501                    b.Property<DateTime?>("ImageDateModified")
 22502                        .HasColumnType("TEXT");
 22503
 22504                    b.Property<string>("ImagePath")
 22505                        .HasColumnType("TEXT");
 22506
 22507                    b.Property<string>("Name")
 22508                        .HasColumnType("TEXT");
 22509
 22510                    b.Property<long>("StartPositionTicks")
 22511                        .HasColumnType("INTEGER");
 22512
 22513                    b.HasKey("ItemId", "ChapterIndex");
 22514
 22515                    b.ToTable("Chapters");
 22516
 22517                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22518                });
 519
 22520            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.CustomItemDisplayPreferences", b =>
 22521                {
 22522                    b.Property<int>("Id")
 22523                        .ValueGeneratedOnAdd()
 22524                        .HasColumnType("INTEGER");
 22525
 22526                    b.Property<string>("Client")
 22527                        .IsRequired()
 22528                        .HasMaxLength(32)
 22529                        .HasColumnType("TEXT");
 22530
 22531                    b.Property<Guid>("ItemId")
 22532                        .HasColumnType("TEXT");
 22533
 22534                    b.Property<string>("Key")
 22535                        .IsRequired()
 22536                        .HasColumnType("TEXT");
 22537
 22538                    b.Property<Guid>("UserId")
 22539                        .HasColumnType("TEXT");
 22540
 22541                    b.Property<string>("Value")
 22542                        .HasColumnType("TEXT");
 22543
 22544                    b.HasKey("Id");
 22545
 22546                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 22547                        .IsUnique();
 22548
 22549                    b.ToTable("CustomItemDisplayPreferences");
 22550
 22551                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22552                });
 553
 22554            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 22555                {
 22556                    b.Property<int>("Id")
 22557                        .ValueGeneratedOnAdd()
 22558                        .HasColumnType("INTEGER");
 22559
 22560                    b.Property<int>("ChromecastVersion")
 22561                        .HasColumnType("INTEGER");
 22562
 22563                    b.Property<string>("Client")
 22564                        .IsRequired()
 22565                        .HasMaxLength(32)
 22566                        .HasColumnType("TEXT");
 22567
 22568                    b.Property<string>("DashboardTheme")
 22569                        .HasMaxLength(32)
 22570                        .HasColumnType("TEXT");
 22571
 22572                    b.Property<bool>("EnableNextVideoInfoOverlay")
 22573                        .HasColumnType("INTEGER");
 22574
 22575                    b.Property<int?>("IndexBy")
 22576                        .HasColumnType("INTEGER");
 22577
 22578                    b.Property<Guid>("ItemId")
 22579                        .HasColumnType("TEXT");
 22580
 22581                    b.Property<int>("ScrollDirection")
 22582                        .HasColumnType("INTEGER");
 22583
 22584                    b.Property<bool>("ShowBackdrop")
 22585                        .HasColumnType("INTEGER");
 22586
 22587                    b.Property<bool>("ShowSidebar")
 22588                        .HasColumnType("INTEGER");
 22589
 22590                    b.Property<int>("SkipBackwardLength")
 22591                        .HasColumnType("INTEGER");
 22592
 22593                    b.Property<int>("SkipForwardLength")
 22594                        .HasColumnType("INTEGER");
 22595
 22596                    b.Property<string>("TvHome")
 22597                        .HasMaxLength(32)
 22598                        .HasColumnType("TEXT");
 22599
 22600                    b.Property<Guid>("UserId")
 22601                        .HasColumnType("TEXT");
 22602
 22603                    b.HasKey("Id");
 22604
 22605                    b.HasIndex("UserId", "ItemId", "Client")
 22606                        .IsUnique();
 22607
 22608                    b.ToTable("DisplayPreferences");
 22609
 22610                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22611                });
 612
 22613            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 22614                {
 22615                    b.Property<int>("Id")
 22616                        .ValueGeneratedOnAdd()
 22617                        .HasColumnType("INTEGER");
 22618
 22619                    b.Property<int>("DisplayPreferencesId")
 22620                        .HasColumnType("INTEGER");
 22621
 22622                    b.Property<int>("Order")
 22623                        .HasColumnType("INTEGER");
 22624
 22625                    b.Property<int>("Type")
 22626                        .HasColumnType("INTEGER");
 22627
 22628                    b.HasKey("Id");
 22629
 22630                    b.HasIndex("DisplayPreferencesId");
 22631
 22632                    b.ToTable("HomeSection");
 22633
 22634                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22635                });
 636
 22637            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 22638                {
 22639                    b.Property<int>("Id")
 22640                        .ValueGeneratedOnAdd()
 22641                        .HasColumnType("INTEGER");
 22642
 22643                    b.Property<DateTime>("LastModified")
 22644                        .HasColumnType("TEXT");
 22645
 22646                    b.Property<string>("Path")
 22647                        .IsRequired()
 22648                        .HasMaxLength(512)
 22649                        .HasColumnType("TEXT");
 22650
 22651                    b.Property<Guid?>("UserId")
 22652                        .HasColumnType("TEXT");
 22653
 22654                    b.HasKey("Id");
 22655
 22656                    b.HasIndex("UserId")
 22657                        .IsUnique();
 22658
 22659                    b.ToTable("ImageInfos");
 22660
 22661                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22662                });
 663
 22664            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 22665                {
 22666                    b.Property<int>("Id")
 22667                        .ValueGeneratedOnAdd()
 22668                        .HasColumnType("INTEGER");
 22669
 22670                    b.Property<string>("Client")
 22671                        .IsRequired()
 22672                        .HasMaxLength(32)
 22673                        .HasColumnType("TEXT");
 22674
 22675                    b.Property<int?>("IndexBy")
 22676                        .HasColumnType("INTEGER");
 22677
 22678                    b.Property<Guid>("ItemId")
 22679                        .HasColumnType("TEXT");
 22680
 22681                    b.Property<bool>("RememberIndexing")
 22682                        .HasColumnType("INTEGER");
 22683
 22684                    b.Property<bool>("RememberSorting")
 22685                        .HasColumnType("INTEGER");
 22686
 22687                    b.Property<string>("SortBy")
 22688                        .IsRequired()
 22689                        .HasMaxLength(64)
 22690                        .HasColumnType("TEXT");
 22691
 22692                    b.Property<int>("SortOrder")
 22693                        .HasColumnType("INTEGER");
 22694
 22695                    b.Property<Guid>("UserId")
 22696                        .HasColumnType("TEXT");
 22697
 22698                    b.Property<int>("ViewType")
 22699                        .HasColumnType("INTEGER");
 22700
 22701                    b.HasKey("Id");
 22702
 22703                    b.HasIndex("UserId");
 22704
 22705                    b.ToTable("ItemDisplayPreferences");
 22706
 22707                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22708                });
 709
 22710            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 22711                {
 22712                    b.Property<Guid>("ItemValueId")
 22713                        .ValueGeneratedOnAdd()
 22714                        .HasColumnType("TEXT");
 22715
 22716                    b.Property<string>("CleanValue")
 22717                        .IsRequired()
 22718                        .HasColumnType("TEXT");
 22719
 22720                    b.Property<int>("Type")
 22721                        .HasColumnType("INTEGER");
 22722
 22723                    b.Property<string>("Value")
 22724                        .IsRequired()
 22725                        .HasColumnType("TEXT");
 22726
 22727                    b.HasKey("ItemValueId");
 22728
 22729                    b.HasIndex("Type", "CleanValue")
 22730                        .IsUnique();
 22731
 22732                    b.ToTable("ItemValues");
 22733
 22734                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22735                });
 736
 22737            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 22738                {
 22739                    b.Property<Guid>("ItemValueId")
 22740                        .HasColumnType("TEXT");
 22741
 22742                    b.Property<Guid>("ItemId")
 22743                        .HasColumnType("TEXT");
 22744
 22745                    b.HasKey("ItemValueId", "ItemId");
 22746
 22747                    b.HasIndex("ItemId");
 22748
 22749                    b.ToTable("ItemValuesMap");
 22750
 22751                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22752                });
 753
 22754            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 22755                {
 22756                    b.Property<Guid>("ItemId")
 22757                        .HasColumnType("TEXT");
 22758
 22759                    b.PrimitiveCollection<string>("KeyframeTicks")
 22760                        .HasColumnType("TEXT");
 22761
 22762                    b.Property<long>("TotalDuration")
 22763                        .HasColumnType("INTEGER");
 22764
 22765                    b.HasKey("ItemId");
 22766
 22767                    b.ToTable("KeyframeData");
 22768
 22769                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22770                });
 771
 22772            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaSegment", b =>
 22773                {
 22774                    b.Property<Guid>("Id")
 22775                        .ValueGeneratedOnAdd()
 22776                        .HasColumnType("TEXT");
 22777
 22778                    b.Property<long>("EndTicks")
 22779                        .HasColumnType("INTEGER");
 22780
 22781                    b.Property<Guid>("ItemId")
 22782                        .HasColumnType("TEXT");
 22783
 22784                    b.Property<string>("SegmentProviderId")
 22785                        .IsRequired()
 22786                        .HasColumnType("TEXT");
 22787
 22788                    b.Property<long>("StartTicks")
 22789                        .HasColumnType("INTEGER");
 22790
 22791                    b.Property<int>("Type")
 22792                        .HasColumnType("INTEGER");
 22793
 22794                    b.HasKey("Id");
 22795
 22796                    b.ToTable("MediaSegments");
 22797
 22798                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22799                });
 800
 22801            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 22802                {
 22803                    b.Property<Guid>("ItemId")
 22804                        .HasColumnType("TEXT");
 22805
 22806                    b.Property<int>("StreamIndex")
 22807                        .HasColumnType("INTEGER");
 22808
 22809                    b.Property<string>("AspectRatio")
 22810                        .HasColumnType("TEXT");
 22811
 22812                    b.Property<float?>("AverageFrameRate")
 22813                        .HasColumnType("REAL");
 22814
 22815                    b.Property<int?>("BitDepth")
 22816                        .HasColumnType("INTEGER");
 22817
 22818                    b.Property<int?>("BitRate")
 22819                        .HasColumnType("INTEGER");
 22820
 22821                    b.Property<int?>("BlPresentFlag")
 22822                        .HasColumnType("INTEGER");
 22823
 22824                    b.Property<string>("ChannelLayout")
 22825                        .HasColumnType("TEXT");
 22826
 22827                    b.Property<int?>("Channels")
 22828                        .HasColumnType("INTEGER");
 22829
 22830                    b.Property<string>("Codec")
 22831                        .HasColumnType("TEXT");
 22832
 22833                    b.Property<string>("CodecTag")
 22834                        .HasColumnType("TEXT");
 22835
 22836                    b.Property<string>("CodecTimeBase")
 22837                        .HasColumnType("TEXT");
 22838
 22839                    b.Property<string>("ColorPrimaries")
 22840                        .HasColumnType("TEXT");
 22841
 22842                    b.Property<string>("ColorSpace")
 22843                        .HasColumnType("TEXT");
 22844
 22845                    b.Property<string>("ColorTransfer")
 22846                        .HasColumnType("TEXT");
 22847
 22848                    b.Property<string>("Comment")
 22849                        .HasColumnType("TEXT");
 22850
 22851                    b.Property<int?>("DvBlSignalCompatibilityId")
 22852                        .HasColumnType("INTEGER");
 22853
 22854                    b.Property<int?>("DvLevel")
 22855                        .HasColumnType("INTEGER");
 22856
 22857                    b.Property<int?>("DvProfile")
 22858                        .HasColumnType("INTEGER");
 22859
 22860                    b.Property<int?>("DvVersionMajor")
 22861                        .HasColumnType("INTEGER");
 22862
 22863                    b.Property<int?>("DvVersionMinor")
 22864                        .HasColumnType("INTEGER");
 22865
 22866                    b.Property<int?>("ElPresentFlag")
 22867                        .HasColumnType("INTEGER");
 22868
 22869                    b.Property<bool?>("Hdr10PlusPresentFlag")
 22870                        .HasColumnType("INTEGER");
 22871
 22872                    b.Property<int?>("Height")
 22873                        .HasColumnType("INTEGER");
 22874
 22875                    b.Property<bool?>("IsAnamorphic")
 22876                        .HasColumnType("INTEGER");
 22877
 22878                    b.Property<bool?>("IsAvc")
 22879                        .HasColumnType("INTEGER");
 22880
 22881                    b.Property<bool>("IsDefault")
 22882                        .HasColumnType("INTEGER");
 22883
 22884                    b.Property<bool>("IsExternal")
 22885                        .HasColumnType("INTEGER");
 22886
 22887                    b.Property<bool>("IsForced")
 22888                        .HasColumnType("INTEGER");
 22889
 22890                    b.Property<bool?>("IsHearingImpaired")
 22891                        .HasColumnType("INTEGER");
 22892
 22893                    b.Property<bool?>("IsInterlaced")
 22894                        .HasColumnType("INTEGER");
 22895
 22896                    b.Property<string>("KeyFrames")
 22897                        .HasColumnType("TEXT");
 22898
 22899                    b.Property<string>("Language")
 22900                        .HasColumnType("TEXT");
 22901
 22902                    b.Property<float?>("Level")
 22903                        .HasColumnType("REAL");
 22904
 22905                    b.Property<string>("NalLengthSize")
 22906                        .HasColumnType("TEXT");
 22907
 22908                    b.Property<string>("Path")
 22909                        .HasColumnType("TEXT");
 22910
 22911                    b.Property<string>("PixelFormat")
 22912                        .HasColumnType("TEXT");
 22913
 22914                    b.Property<string>("Profile")
 22915                        .HasColumnType("TEXT");
 22916
 22917                    b.Property<float?>("RealFrameRate")
 22918                        .HasColumnType("REAL");
 22919
 22920                    b.Property<int?>("RefFrames")
 22921                        .HasColumnType("INTEGER");
 22922
 22923                    b.Property<int?>("Rotation")
 22924                        .HasColumnType("INTEGER");
 22925
 22926                    b.Property<int?>("RpuPresentFlag")
 22927                        .HasColumnType("INTEGER");
 22928
 22929                    b.Property<int?>("SampleRate")
 22930                        .HasColumnType("INTEGER");
 22931
 22932                    b.Property<int>("StreamType")
 22933                        .HasColumnType("INTEGER");
 22934
 22935                    b.Property<string>("TimeBase")
 22936                        .HasColumnType("TEXT");
 22937
 22938                    b.Property<string>("Title")
 22939                        .HasColumnType("TEXT");
 22940
 22941                    b.Property<int?>("Width")
 22942                        .HasColumnType("INTEGER");
 22943
 22944                    b.HasKey("ItemId", "StreamIndex");
 22945
 22946                    b.HasIndex("StreamIndex");
 22947
 22948                    b.HasIndex("StreamType");
 22949
 22950                    b.HasIndex("StreamIndex", "StreamType");
 22951
 22952                    b.HasIndex("StreamIndex", "StreamType", "Language");
 22953
 22954                    b.ToTable("MediaStreamInfos");
 22955
 22956                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22957                });
 958
 22959            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 22960                {
 22961                    b.Property<Guid>("Id")
 22962                        .ValueGeneratedOnAdd()
 22963                        .HasColumnType("TEXT");
 22964
 22965                    b.Property<string>("Name")
 22966                        .IsRequired()
 22967                        .HasColumnType("TEXT");
 22968
 22969                    b.Property<string>("PersonType")
 22970                        .HasColumnType("TEXT");
 22971
 22972                    b.HasKey("Id");
 22973
 22974                    b.HasIndex("Name");
 22975
 22976                    b.ToTable("Peoples");
 22977
 22978                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 22979                });
 980
 22981            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 22982                {
 22983                    b.Property<Guid>("ItemId")
 22984                        .HasColumnType("TEXT");
 22985
 22986                    b.Property<Guid>("PeopleId")
 22987                        .HasColumnType("TEXT");
 22988
 22989                    b.Property<int?>("ListOrder")
 22990                        .HasColumnType("INTEGER");
 22991
 22992                    b.Property<string>("Role")
 22993                        .HasColumnType("TEXT");
 22994
 22995                    b.Property<int?>("SortOrder")
 22996                        .HasColumnType("INTEGER");
 22997
 22998                    b.HasKey("ItemId", "PeopleId");
 22999
 221000                    b.HasIndex("PeopleId");
 221001
 221002                    b.HasIndex("ItemId", "ListOrder");
 221003
 221004                    b.HasIndex("ItemId", "SortOrder");
 221005
 221006                    b.ToTable("PeopleBaseItemMap");
 221007
 221008                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221009                });
 1010
 221011            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 221012                {
 221013                    b.Property<int>("Id")
 221014                        .ValueGeneratedOnAdd()
 221015                        .HasColumnType("INTEGER");
 221016
 221017                    b.Property<int>("Kind")
 221018                        .HasColumnType("INTEGER");
 221019
 221020                    b.Property<Guid?>("Permission_Permissions_Guid")
 221021                        .HasColumnType("TEXT");
 221022
 221023                    b.Property<uint>("RowVersion")
 221024                        .IsConcurrencyToken()
 221025                        .HasColumnType("INTEGER");
 221026
 221027                    b.Property<Guid?>("UserId")
 221028                        .HasColumnType("TEXT");
 221029
 221030                    b.Property<bool>("Value")
 221031                        .HasColumnType("INTEGER");
 221032
 221033                    b.HasKey("Id");
 221034
 221035                    b.HasIndex("UserId", "Kind")
 221036                        .IsUnique()
 221037                        .HasFilter("[UserId] IS NOT NULL");
 221038
 221039                    b.ToTable("Permissions");
 221040
 221041                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221042                });
 1043
 221044            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 221045                {
 221046                    b.Property<int>("Id")
 221047                        .ValueGeneratedOnAdd()
 221048                        .HasColumnType("INTEGER");
 221049
 221050                    b.Property<int>("Kind")
 221051                        .HasColumnType("INTEGER");
 221052
 221053                    b.Property<Guid?>("Preference_Preferences_Guid")
 221054                        .HasColumnType("TEXT");
 221055
 221056                    b.Property<uint>("RowVersion")
 221057                        .IsConcurrencyToken()
 221058                        .HasColumnType("INTEGER");
 221059
 221060                    b.Property<Guid?>("UserId")
 221061                        .HasColumnType("TEXT");
 221062
 221063                    b.Property<string>("Value")
 221064                        .IsRequired()
 221065                        .HasMaxLength(65535)
 221066                        .HasColumnType("TEXT");
 221067
 221068                    b.HasKey("Id");
 221069
 221070                    b.HasIndex("UserId", "Kind")
 221071                        .IsUnique()
 221072                        .HasFilter("[UserId] IS NOT NULL");
 221073
 221074                    b.ToTable("Preferences");
 221075
 221076                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221077                });
 1078
 221079            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.ApiKey", b =>
 221080                {
 221081                    b.Property<int>("Id")
 221082                        .ValueGeneratedOnAdd()
 221083                        .HasColumnType("INTEGER");
 221084
 221085                    b.Property<string>("AccessToken")
 221086                        .IsRequired()
 221087                        .HasColumnType("TEXT");
 221088
 221089                    b.Property<DateTime>("DateCreated")
 221090                        .HasColumnType("TEXT");
 221091
 221092                    b.Property<DateTime>("DateLastActivity")
 221093                        .HasColumnType("TEXT");
 221094
 221095                    b.Property<string>("Name")
 221096                        .IsRequired()
 221097                        .HasMaxLength(64)
 221098                        .HasColumnType("TEXT");
 221099
 221100                    b.HasKey("Id");
 221101
 221102                    b.HasIndex("AccessToken")
 221103                        .IsUnique();
 221104
 221105                    b.ToTable("ApiKeys");
 221106
 221107                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221108                });
 1109
 221110            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 221111                {
 221112                    b.Property<int>("Id")
 221113                        .ValueGeneratedOnAdd()
 221114                        .HasColumnType("INTEGER");
 221115
 221116                    b.Property<string>("AccessToken")
 221117                        .IsRequired()
 221118                        .HasColumnType("TEXT");
 221119
 221120                    b.Property<string>("AppName")
 221121                        .IsRequired()
 221122                        .HasMaxLength(64)
 221123                        .HasColumnType("TEXT");
 221124
 221125                    b.Property<string>("AppVersion")
 221126                        .IsRequired()
 221127                        .HasMaxLength(32)
 221128                        .HasColumnType("TEXT");
 221129
 221130                    b.Property<DateTime>("DateCreated")
 221131                        .HasColumnType("TEXT");
 221132
 221133                    b.Property<DateTime>("DateLastActivity")
 221134                        .HasColumnType("TEXT");
 221135
 221136                    b.Property<DateTime>("DateModified")
 221137                        .HasColumnType("TEXT");
 221138
 221139                    b.Property<string>("DeviceId")
 221140                        .IsRequired()
 221141                        .HasMaxLength(256)
 221142                        .HasColumnType("TEXT");
 221143
 221144                    b.Property<string>("DeviceName")
 221145                        .IsRequired()
 221146                        .HasMaxLength(64)
 221147                        .HasColumnType("TEXT");
 221148
 221149                    b.Property<bool>("IsActive")
 221150                        .HasColumnType("INTEGER");
 221151
 221152                    b.Property<Guid>("UserId")
 221153                        .HasColumnType("TEXT");
 221154
 221155                    b.HasKey("Id");
 221156
 221157                    b.HasIndex("DeviceId");
 221158
 221159                    b.HasIndex("AccessToken", "DateLastActivity");
 221160
 221161                    b.HasIndex("DeviceId", "DateLastActivity");
 221162
 221163                    b.HasIndex("UserId", "DeviceId");
 221164
 221165                    b.ToTable("Devices");
 221166
 221167                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221168                });
 1169
 221170            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.DeviceOptions", b =>
 221171                {
 221172                    b.Property<int>("Id")
 221173                        .ValueGeneratedOnAdd()
 221174                        .HasColumnType("INTEGER");
 221175
 221176                    b.Property<string>("CustomName")
 221177                        .HasColumnType("TEXT");
 221178
 221179                    b.Property<string>("DeviceId")
 221180                        .IsRequired()
 221181                        .HasColumnType("TEXT");
 221182
 221183                    b.HasKey("Id");
 221184
 221185                    b.HasIndex("DeviceId")
 221186                        .IsUnique();
 221187
 221188                    b.ToTable("DeviceOptions");
 221189
 221190                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221191                });
 1192
 221193            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.TrickplayInfo", b =>
 221194                {
 221195                    b.Property<Guid>("ItemId")
 221196                        .HasColumnType("TEXT");
 221197
 221198                    b.Property<int>("Width")
 221199                        .HasColumnType("INTEGER");
 221200
 221201                    b.Property<int>("Bandwidth")
 221202                        .HasColumnType("INTEGER");
 221203
 221204                    b.Property<int>("Height")
 221205                        .HasColumnType("INTEGER");
 221206
 221207                    b.Property<int>("Interval")
 221208                        .HasColumnType("INTEGER");
 221209
 221210                    b.Property<int>("ThumbnailCount")
 221211                        .HasColumnType("INTEGER");
 221212
 221213                    b.Property<int>("TileHeight")
 221214                        .HasColumnType("INTEGER");
 221215
 221216                    b.Property<int>("TileWidth")
 221217                        .HasColumnType("INTEGER");
 221218
 221219                    b.HasKey("ItemId", "Width");
 221220
 221221                    b.ToTable("TrickplayInfos");
 221222
 221223                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221224                });
 1225
 221226            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 221227                {
 221228                    b.Property<Guid>("Id")
 221229                        .ValueGeneratedOnAdd()
 221230                        .HasColumnType("TEXT");
 221231
 221232                    b.Property<string>("AudioLanguagePreference")
 221233                        .HasMaxLength(255)
 221234                        .HasColumnType("TEXT");
 221235
 221236                    b.Property<string>("AuthenticationProviderId")
 221237                        .IsRequired()
 221238                        .HasMaxLength(255)
 221239                        .HasColumnType("TEXT");
 221240
 221241                    b.Property<string>("CastReceiverId")
 221242                        .HasMaxLength(32)
 221243                        .HasColumnType("TEXT");
 221244
 221245                    b.Property<bool>("DisplayCollectionsView")
 221246                        .HasColumnType("INTEGER");
 221247
 221248                    b.Property<bool>("DisplayMissingEpisodes")
 221249                        .HasColumnType("INTEGER");
 221250
 221251                    b.Property<bool>("EnableAutoLogin")
 221252                        .HasColumnType("INTEGER");
 221253
 221254                    b.Property<bool>("EnableLocalPassword")
 221255                        .HasColumnType("INTEGER");
 221256
 221257                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 221258                        .HasColumnType("INTEGER");
 221259
 221260                    b.Property<bool>("EnableUserPreferenceAccess")
 221261                        .HasColumnType("INTEGER");
 221262
 221263                    b.Property<bool>("HidePlayedInLatest")
 221264                        .HasColumnType("INTEGER");
 221265
 221266                    b.Property<long>("InternalId")
 221267                        .HasColumnType("INTEGER");
 221268
 221269                    b.Property<int>("InvalidLoginAttemptCount")
 221270                        .HasColumnType("INTEGER");
 221271
 221272                    b.Property<DateTime?>("LastActivityDate")
 221273                        .HasColumnType("TEXT");
 221274
 221275                    b.Property<DateTime?>("LastLoginDate")
 221276                        .HasColumnType("TEXT");
 221277
 221278                    b.Property<int?>("LoginAttemptsBeforeLockout")
 221279                        .HasColumnType("INTEGER");
 221280
 221281                    b.Property<int>("MaxActiveSessions")
 221282                        .HasColumnType("INTEGER");
 221283
 221284                    b.Property<int?>("MaxParentalRatingScore")
 221285                        .HasColumnType("INTEGER");
 221286
 221287                    b.Property<int?>("MaxParentalRatingSubScore")
 221288                        .HasColumnType("INTEGER");
 221289
 221290                    b.Property<bool>("MustUpdatePassword")
 221291                        .HasColumnType("INTEGER");
 221292
 221293                    b.Property<string>("Password")
 221294                        .HasMaxLength(65535)
 221295                        .HasColumnType("TEXT");
 221296
 221297                    b.Property<string>("PasswordResetProviderId")
 221298                        .IsRequired()
 221299                        .HasMaxLength(255)
 221300                        .HasColumnType("TEXT");
 221301
 221302                    b.Property<bool>("PlayDefaultAudioTrack")
 221303                        .HasColumnType("INTEGER");
 221304
 221305                    b.Property<bool>("RememberAudioSelections")
 221306                        .HasColumnType("INTEGER");
 221307
 221308                    b.Property<bool>("RememberSubtitleSelections")
 221309                        .HasColumnType("INTEGER");
 221310
 221311                    b.Property<int?>("RemoteClientBitrateLimit")
 221312                        .HasColumnType("INTEGER");
 221313
 221314                    b.Property<uint>("RowVersion")
 221315                        .IsConcurrencyToken()
 221316                        .HasColumnType("INTEGER");
 221317
 221318                    b.Property<string>("SubtitleLanguagePreference")
 221319                        .HasMaxLength(255)
 221320                        .HasColumnType("TEXT");
 221321
 221322                    b.Property<int>("SubtitleMode")
 221323                        .HasColumnType("INTEGER");
 221324
 221325                    b.Property<int>("SyncPlayAccess")
 221326                        .HasColumnType("INTEGER");
 221327
 221328                    b.Property<string>("Username")
 221329                        .IsRequired()
 221330                        .HasMaxLength(255)
 221331                        .HasColumnType("TEXT");
 221332
 221333                    b.HasKey("Id");
 221334
 221335                    b.HasIndex("Username")
 221336                        .IsUnique();
 221337
 221338                    b.ToTable("Users");
 221339
 221340                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221341                });
 1342
 221343            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 221344                {
 221345                    b.Property<Guid>("ItemId")
 221346                        .HasColumnType("TEXT");
 221347
 221348                    b.Property<Guid>("UserId")
 221349                        .HasColumnType("TEXT");
 221350
 221351                    b.Property<string>("CustomDataKey")
 221352                        .HasColumnType("TEXT");
 221353
 221354                    b.Property<int?>("AudioStreamIndex")
 221355                        .HasColumnType("INTEGER");
 221356
 221357                    b.Property<bool>("IsFavorite")
 221358                        .HasColumnType("INTEGER");
 221359
 221360                    b.Property<DateTime?>("LastPlayedDate")
 221361                        .HasColumnType("TEXT");
 221362
 221363                    b.Property<bool?>("Likes")
 221364                        .HasColumnType("INTEGER");
 221365
 221366                    b.Property<int>("PlayCount")
 221367                        .HasColumnType("INTEGER");
 221368
 221369                    b.Property<long>("PlaybackPositionTicks")
 221370                        .HasColumnType("INTEGER");
 221371
 221372                    b.Property<bool>("Played")
 221373                        .HasColumnType("INTEGER");
 221374
 221375                    b.Property<double?>("Rating")
 221376                        .HasColumnType("REAL");
 221377
 221378                    b.Property<int?>("SubtitleStreamIndex")
 221379                        .HasColumnType("INTEGER");
 221380
 221381                    b.HasKey("ItemId", "UserId", "CustomDataKey");
 221382
 221383                    b.HasIndex("UserId");
 221384
 221385                    b.HasIndex("ItemId", "UserId", "IsFavorite");
 221386
 221387                    b.HasIndex("ItemId", "UserId", "LastPlayedDate");
 221388
 221389                    b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
 221390
 221391                    b.HasIndex("ItemId", "UserId", "Played");
 221392
 221393                    b.ToTable("UserData");
 221394
 221395                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 221396                });
 1397
 221398            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 221399                {
 221400                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221401                        .WithMany("AccessSchedules")
 221402                        .HasForeignKey("UserId")
 221403                        .OnDelete(DeleteBehavior.Cascade)
 221404                        .IsRequired();
 221405                });
 1406
 221407            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 221408                {
 221409                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221410                        .WithMany("Children")
 221411                        .HasForeignKey("ItemId")
 221412                        .OnDelete(DeleteBehavior.Cascade)
 221413                        .IsRequired();
 221414
 221415                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "ParentItem")
 221416                        .WithMany("ParentAncestors")
 221417                        .HasForeignKey("ParentItemId")
 221418                        .OnDelete(DeleteBehavior.Cascade)
 221419                        .IsRequired();
 221420
 221421                    b.Navigation("Item");
 221422
 221423                    b.Navigation("ParentItem");
 221424                });
 1425
 221426            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 221427                {
 221428                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221429                        .WithMany()
 221430                        .HasForeignKey("ItemId")
 221431                        .OnDelete(DeleteBehavior.Cascade)
 221432                        .IsRequired();
 221433
 221434                    b.Navigation("Item");
 221435                });
 1436
 221437            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 221438                {
 221439                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221440                        .WithMany("Images")
 221441                        .HasForeignKey("ItemId")
 221442                        .OnDelete(DeleteBehavior.Cascade)
 221443                        .IsRequired();
 221444
 221445                    b.Navigation("Item");
 221446                });
 1447
 221448            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 221449                {
 221450                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221451                        .WithMany("LockedFields")
 221452                        .HasForeignKey("ItemId")
 221453                        .OnDelete(DeleteBehavior.Cascade)
 221454                        .IsRequired();
 221455
 221456                    b.Navigation("Item");
 221457                });
 1458
 221459            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 221460                {
 221461                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221462                        .WithMany("Provider")
 221463                        .HasForeignKey("ItemId")
 221464                        .OnDelete(DeleteBehavior.Cascade)
 221465                        .IsRequired();
 221466
 221467                    b.Navigation("Item");
 221468                });
 1469
 221470            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 221471                {
 221472                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221473                        .WithMany("TrailerTypes")
 221474                        .HasForeignKey("ItemId")
 221475                        .OnDelete(DeleteBehavior.Cascade)
 221476                        .IsRequired();
 221477
 221478                    b.Navigation("Item");
 221479                });
 1480
 221481            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 221482                {
 221483                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221484                        .WithMany("Chapters")
 221485                        .HasForeignKey("ItemId")
 221486                        .OnDelete(DeleteBehavior.Cascade)
 221487                        .IsRequired();
 221488
 221489                    b.Navigation("Item");
 221490                });
 1491
 221492            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 221493                {
 221494                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221495                        .WithMany("DisplayPreferences")
 221496                        .HasForeignKey("UserId")
 221497                        .OnDelete(DeleteBehavior.Cascade)
 221498                        .IsRequired();
 221499                });
 1500
 221501            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 221502                {
 221503                    b.HasOne("Jellyfin.Database.Implementations.Entities.DisplayPreferences", null)
 221504                        .WithMany("HomeSections")
 221505                        .HasForeignKey("DisplayPreferencesId")
 221506                        .OnDelete(DeleteBehavior.Cascade)
 221507                        .IsRequired();
 221508                });
 1509
 221510            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 221511                {
 221512                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221513                        .WithOne("ProfileImage")
 221514                        .HasForeignKey("Jellyfin.Database.Implementations.Entities.ImageInfo", "UserId")
 221515                        .OnDelete(DeleteBehavior.Cascade);
 221516                });
 1517
 221518            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 221519                {
 221520                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221521                        .WithMany("ItemDisplayPreferences")
 221522                        .HasForeignKey("UserId")
 221523                        .OnDelete(DeleteBehavior.Cascade)
 221524                        .IsRequired();
 221525                });
 1526
 221527            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 221528                {
 221529                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221530                        .WithMany("ItemValues")
 221531                        .HasForeignKey("ItemId")
 221532                        .OnDelete(DeleteBehavior.Cascade)
 221533                        .IsRequired();
 221534
 221535                    b.HasOne("Jellyfin.Database.Implementations.Entities.ItemValue", "ItemValue")
 221536                        .WithMany("BaseItemsMap")
 221537                        .HasForeignKey("ItemValueId")
 221538                        .OnDelete(DeleteBehavior.Cascade)
 221539                        .IsRequired();
 221540
 221541                    b.Navigation("Item");
 221542
 221543                    b.Navigation("ItemValue");
 221544                });
 1545
 221546            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 221547                {
 221548                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221549                        .WithMany()
 221550                        .HasForeignKey("ItemId")
 221551                        .OnDelete(DeleteBehavior.Cascade)
 221552                        .IsRequired();
 221553
 221554                    b.Navigation("Item");
 221555                });
 1556
 221557            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 221558                {
 221559                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221560                        .WithMany("MediaStreams")
 221561                        .HasForeignKey("ItemId")
 221562                        .OnDelete(DeleteBehavior.Cascade)
 221563                        .IsRequired();
 221564
 221565                    b.Navigation("Item");
 221566                });
 1567
 221568            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 221569                {
 221570                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221571                        .WithMany("Peoples")
 221572                        .HasForeignKey("ItemId")
 221573                        .OnDelete(DeleteBehavior.Cascade)
 221574                        .IsRequired();
 221575
 221576                    b.HasOne("Jellyfin.Database.Implementations.Entities.People", "People")
 221577                        .WithMany("BaseItems")
 221578                        .HasForeignKey("PeopleId")
 221579                        .OnDelete(DeleteBehavior.Cascade)
 221580                        .IsRequired();
 221581
 221582                    b.Navigation("Item");
 221583
 221584                    b.Navigation("People");
 221585                });
 1586
 221587            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 221588                {
 221589                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221590                        .WithMany("Permissions")
 221591                        .HasForeignKey("UserId")
 221592                        .OnDelete(DeleteBehavior.Cascade);
 221593                });
 1594
 221595            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 221596                {
 221597                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 221598                        .WithMany("Preferences")
 221599                        .HasForeignKey("UserId")
 221600                        .OnDelete(DeleteBehavior.Cascade);
 221601                });
 1602
 221603            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 221604                {
 221605                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 221606                        .WithMany()
 221607                        .HasForeignKey("UserId")
 221608                        .OnDelete(DeleteBehavior.Cascade)
 221609                        .IsRequired();
 221610
 221611                    b.Navigation("User");
 221612                });
 1613
 221614            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 221615                {
 221616                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 221617                        .WithMany("UserData")
 221618                        .HasForeignKey("ItemId")
 221619                        .OnDelete(DeleteBehavior.Cascade)
 221620                        .IsRequired();
 221621
 221622                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 221623                        .WithMany()
 221624                        .HasForeignKey("UserId")
 221625                        .OnDelete(DeleteBehavior.Cascade)
 221626                        .IsRequired();
 221627
 221628                    b.Navigation("Item");
 221629
 221630                    b.Navigation("User");
 221631                });
 1632
 221633            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 221634                {
 221635                    b.Navigation("Chapters");
 221636
 221637                    b.Navigation("Children");
 221638
 221639                    b.Navigation("Images");
 221640
 221641                    b.Navigation("ItemValues");
 221642
 221643                    b.Navigation("LockedFields");
 221644
 221645                    b.Navigation("MediaStreams");
 221646
 221647                    b.Navigation("ParentAncestors");
 221648
 221649                    b.Navigation("Peoples");
 221650
 221651                    b.Navigation("Provider");
 221652
 221653                    b.Navigation("TrailerTypes");
 221654
 221655                    b.Navigation("UserData");
 221656                });
 1657
 221658            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 221659                {
 221660                    b.Navigation("HomeSections");
 221661                });
 1662
 221663            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 221664                {
 221665                    b.Navigation("BaseItemsMap");
 221666                });
 1667
 221668            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 221669                {
 221670                    b.Navigation("BaseItems");
 221671                });
 1672
 221673            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 221674                {
 221675                    b.Navigation("AccessSchedules");
 221676
 221677                    b.Navigation("DisplayPreferences");
 221678
 221679                    b.Navigation("ItemDisplayPreferences");
 221680
 221681                    b.Navigation("Permissions");
 221682
 221683                    b.Navigation("Preferences");
 221684
 221685                    b.Navigation("ProfileImage");
 221686                });
 1687#pragma warning restore 612, 618
 221688        }
 1689    }
 1690}