< Summary - Jellyfin

Line coverage
84%
Covered lines: 1805
Uncovered lines: 329
Coverable lines: 2134
Total lines: 2302
Line coverage: 84.5%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

0255075100

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/20241112232041_fixMediaStreams.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Jellyfin.Server.Implementations.Migrations
 6{
 7    /// <inheritdoc />
 8    public partial class FixMediaStreams : Migration
 9    {
 10        /// <inheritdoc />
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 2113            migrationBuilder.AlterColumn<int>(
 2114                name: "Width",
 2115                table: "MediaStreamInfos",
 2116                type: "INTEGER",
 2117                nullable: true,
 2118                oldClrType: typeof(int),
 2119                oldType: "INTEGER");
 20
 2121            migrationBuilder.AlterColumn<string>(
 2122                name: "Title",
 2123                table: "MediaStreamInfos",
 2124                type: "TEXT",
 2125                nullable: true,
 2126                oldClrType: typeof(string),
 2127                oldType: "TEXT");
 28
 2129            migrationBuilder.AlterColumn<string>(
 2130                name: "TimeBase",
 2131                table: "MediaStreamInfos",
 2132                type: "TEXT",
 2133                nullable: true,
 2134                oldClrType: typeof(string),
 2135                oldType: "TEXT");
 36
 2137            migrationBuilder.AlterColumn<int>(
 2138                name: "StreamType",
 2139                table: "MediaStreamInfos",
 2140                type: "INTEGER",
 2141                nullable: false,
 2142                defaultValue: 0,
 2143                oldClrType: typeof(int),
 2144                oldType: "INTEGER",
 2145                oldNullable: true);
 46
 2147            migrationBuilder.AlterColumn<int>(
 2148                name: "SampleRate",
 2149                table: "MediaStreamInfos",
 2150                type: "INTEGER",
 2151                nullable: true,
 2152                oldClrType: typeof(int),
 2153                oldType: "INTEGER");
 54
 2155            migrationBuilder.AlterColumn<int>(
 2156                name: "RpuPresentFlag",
 2157                table: "MediaStreamInfos",
 2158                type: "INTEGER",
 2159                nullable: true,
 2160                oldClrType: typeof(int),
 2161                oldType: "INTEGER");
 62
 2163            migrationBuilder.AlterColumn<int>(
 2164                name: "Rotation",
 2165                table: "MediaStreamInfos",
 2166                type: "INTEGER",
 2167                nullable: true,
 2168                oldClrType: typeof(int),
 2169                oldType: "INTEGER");
 70
 2171            migrationBuilder.AlterColumn<int>(
 2172                name: "RefFrames",
 2173                table: "MediaStreamInfos",
 2174                type: "INTEGER",
 2175                nullable: true,
 2176                oldClrType: typeof(int),
 2177                oldType: "INTEGER");
 78
 2179            migrationBuilder.AlterColumn<float>(
 2180                name: "RealFrameRate",
 2181                table: "MediaStreamInfos",
 2182                type: "REAL",
 2183                nullable: true,
 2184                oldClrType: typeof(float),
 2185                oldType: "REAL");
 86
 2187            migrationBuilder.AlterColumn<string>(
 2188                name: "Profile",
 2189                table: "MediaStreamInfos",
 2190                type: "TEXT",
 2191                nullable: false,
 2192                defaultValue: string.Empty,
 2193                oldClrType: typeof(string),
 2194                oldType: "TEXT",
 2195                oldNullable: true);
 96
 2197            migrationBuilder.AlterColumn<string>(
 2198                name: "Path",
 2199                table: "MediaStreamInfos",
 21100                type: "TEXT",
 21101                nullable: false,
 21102                defaultValue: string.Empty,
 21103                oldClrType: typeof(string),
 21104                oldType: "TEXT",
 21105                oldNullable: true);
 106
 21107            migrationBuilder.AlterColumn<string>(
 21108                name: "NalLengthSize",
 21109                table: "MediaStreamInfos",
 21110                type: "TEXT",
 21111                nullable: true,
 21112                oldClrType: typeof(string),
 21113                oldType: "TEXT");
 114
 21115            migrationBuilder.AlterColumn<float>(
 21116                name: "Level",
 21117                table: "MediaStreamInfos",
 21118                type: "REAL",
 21119                nullable: true,
 21120                oldClrType: typeof(float),
 21121                oldType: "REAL");
 122
 21123            migrationBuilder.AlterColumn<string>(
 21124                name: "Language",
 21125                table: "MediaStreamInfos",
 21126                type: "TEXT",
 21127                nullable: false,
 21128                defaultValue: string.Empty,
 21129                oldClrType: typeof(string),
 21130                oldType: "TEXT",
 21131                oldNullable: true);
 132
 21133            migrationBuilder.AlterColumn<bool>(
 21134                name: "IsHearingImpaired",
 21135                table: "MediaStreamInfos",
 21136                type: "INTEGER",
 21137                nullable: true,
 21138                oldClrType: typeof(bool),
 21139                oldType: "INTEGER");
 140
 21141            migrationBuilder.AlterColumn<bool>(
 21142                name: "IsAvc",
 21143                table: "MediaStreamInfos",
 21144                type: "INTEGER",
 21145                nullable: true,
 21146                oldClrType: typeof(bool),
 21147                oldType: "INTEGER");
 148
 21149            migrationBuilder.AlterColumn<bool>(
 21150                name: "IsAnamorphic",
 21151                table: "MediaStreamInfos",
 21152                type: "INTEGER",
 21153                nullable: true,
 21154                oldClrType: typeof(bool),
 21155                oldType: "INTEGER");
 156
 21157            migrationBuilder.AlterColumn<int>(
 21158                name: "Height",
 21159                table: "MediaStreamInfos",
 21160                type: "INTEGER",
 21161                nullable: true,
 21162                oldClrType: typeof(int),
 21163                oldType: "INTEGER");
 164
 21165            migrationBuilder.AlterColumn<int>(
 21166                name: "ElPresentFlag",
 21167                table: "MediaStreamInfos",
 21168                type: "INTEGER",
 21169                nullable: true,
 21170                oldClrType: typeof(int),
 21171                oldType: "INTEGER");
 172
 21173            migrationBuilder.AlterColumn<int>(
 21174                name: "DvVersionMinor",
 21175                table: "MediaStreamInfos",
 21176                type: "INTEGER",
 21177                nullable: true,
 21178                oldClrType: typeof(int),
 21179                oldType: "INTEGER");
 180
 21181            migrationBuilder.AlterColumn<int>(
 21182                name: "DvVersionMajor",
 21183                table: "MediaStreamInfos",
 21184                type: "INTEGER",
 21185                nullable: true,
 21186                oldClrType: typeof(int),
 21187                oldType: "INTEGER");
 188
 21189            migrationBuilder.AlterColumn<int>(
 21190                name: "DvProfile",
 21191                table: "MediaStreamInfos",
 21192                type: "INTEGER",
 21193                nullable: true,
 21194                oldClrType: typeof(int),
 21195                oldType: "INTEGER");
 196
 21197            migrationBuilder.AlterColumn<int>(
 21198                name: "DvLevel",
 21199                table: "MediaStreamInfos",
 21200                type: "INTEGER",
 21201                nullable: true,
 21202                oldClrType: typeof(int),
 21203                oldType: "INTEGER");
 204
 21205            migrationBuilder.AlterColumn<int>(
 21206                name: "DvBlSignalCompatibilityId",
 21207                table: "MediaStreamInfos",
 21208                type: "INTEGER",
 21209                nullable: true,
 21210                oldClrType: typeof(int),
 21211                oldType: "INTEGER");
 212
 21213            migrationBuilder.AlterColumn<string>(
 21214                name: "Comment",
 21215                table: "MediaStreamInfos",
 21216                type: "TEXT",
 21217                nullable: true,
 21218                oldClrType: typeof(string),
 21219                oldType: "TEXT");
 220
 21221            migrationBuilder.AlterColumn<string>(
 21222                name: "ColorTransfer",
 21223                table: "MediaStreamInfos",
 21224                type: "TEXT",
 21225                nullable: true,
 21226                oldClrType: typeof(string),
 21227                oldType: "TEXT");
 228
 21229            migrationBuilder.AlterColumn<string>(
 21230                name: "ColorSpace",
 21231                table: "MediaStreamInfos",
 21232                type: "TEXT",
 21233                nullable: true,
 21234                oldClrType: typeof(string),
 21235                oldType: "TEXT");
 236
 21237            migrationBuilder.AlterColumn<string>(
 21238                name: "ColorPrimaries",
 21239                table: "MediaStreamInfos",
 21240                type: "TEXT",
 21241                nullable: true,
 21242                oldClrType: typeof(string),
 21243                oldType: "TEXT");
 244
 21245            migrationBuilder.AlterColumn<string>(
 21246                name: "CodecTimeBase",
 21247                table: "MediaStreamInfos",
 21248                type: "TEXT",
 21249                nullable: true,
 21250                oldClrType: typeof(string),
 21251                oldType: "TEXT");
 252
 21253            migrationBuilder.AlterColumn<string>(
 21254                name: "CodecTag",
 21255                table: "MediaStreamInfos",
 21256                type: "TEXT",
 21257                nullable: true,
 21258                oldClrType: typeof(string),
 21259                oldType: "TEXT");
 260
 21261            migrationBuilder.AlterColumn<string>(
 21262                name: "Codec",
 21263                table: "MediaStreamInfos",
 21264                type: "TEXT",
 21265                nullable: false,
 21266                defaultValue: string.Empty,
 21267                oldClrType: typeof(string),
 21268                oldType: "TEXT",
 21269                oldNullable: true);
 270
 21271            migrationBuilder.AlterColumn<int>(
 21272                name: "Channels",
 21273                table: "MediaStreamInfos",
 21274                type: "INTEGER",
 21275                nullable: true,
 21276                oldClrType: typeof(int),
 21277                oldType: "INTEGER");
 278
 21279            migrationBuilder.AlterColumn<string>(
 21280                name: "ChannelLayout",
 21281                table: "MediaStreamInfos",
 21282                type: "TEXT",
 21283                nullable: false,
 21284                defaultValue: string.Empty,
 21285                oldClrType: typeof(string),
 21286                oldType: "TEXT",
 21287                oldNullable: true);
 288
 21289            migrationBuilder.AlterColumn<int>(
 21290                name: "BlPresentFlag",
 21291                table: "MediaStreamInfos",
 21292                type: "INTEGER",
 21293                nullable: true,
 21294                oldClrType: typeof(int),
 21295                oldType: "INTEGER");
 296
 21297            migrationBuilder.AlterColumn<int>(
 21298                name: "BitRate",
 21299                table: "MediaStreamInfos",
 21300                type: "INTEGER",
 21301                nullable: true,
 21302                oldClrType: typeof(int),
 21303                oldType: "INTEGER");
 304
 21305            migrationBuilder.AlterColumn<int>(
 21306                name: "BitDepth",
 21307                table: "MediaStreamInfos",
 21308                type: "INTEGER",
 21309                nullable: true,
 21310                oldClrType: typeof(int),
 21311                oldType: "INTEGER");
 312
 21313            migrationBuilder.AlterColumn<float>(
 21314                name: "AverageFrameRate",
 21315                table: "MediaStreamInfos",
 21316                type: "REAL",
 21317                nullable: true,
 21318                oldClrType: typeof(float),
 21319                oldType: "REAL");
 320
 21321            migrationBuilder.AlterColumn<string>(
 21322                name: "AspectRatio",
 21323                table: "MediaStreamInfos",
 21324                type: "TEXT",
 21325                nullable: false,
 21326                defaultValue: string.Empty,
 21327                oldClrType: typeof(string),
 21328                oldType: "TEXT",
 21329                oldNullable: true);
 21330        }
 331
 332        /// <inheritdoc />
 333        protected override void Down(MigrationBuilder migrationBuilder)
 334        {
 0335            migrationBuilder.AlterColumn<int>(
 0336                name: "Width",
 0337                table: "MediaStreamInfos",
 0338                type: "INTEGER",
 0339                nullable: false,
 0340                defaultValue: 0,
 0341                oldClrType: typeof(int),
 0342                oldType: "INTEGER",
 0343                oldNullable: true);
 344
 0345            migrationBuilder.AlterColumn<string>(
 0346                name: "Title",
 0347                table: "MediaStreamInfos",
 0348                type: "TEXT",
 0349                nullable: false,
 0350                defaultValue: string.Empty,
 0351                oldClrType: typeof(string),
 0352                oldType: "TEXT",
 0353                oldNullable: true);
 354
 0355            migrationBuilder.AlterColumn<string>(
 0356                name: "TimeBase",
 0357                table: "MediaStreamInfos",
 0358                type: "TEXT",
 0359                nullable: false,
 0360                defaultValue: string.Empty,
 0361                oldClrType: typeof(string),
 0362                oldType: "TEXT",
 0363                oldNullable: true);
 364
 0365            migrationBuilder.AlterColumn<int>(
 0366                name: "StreamType",
 0367                table: "MediaStreamInfos",
 0368                type: "INTEGER",
 0369                nullable: true,
 0370                oldClrType: typeof(int),
 0371                oldType: "INTEGER");
 372
 0373            migrationBuilder.AlterColumn<int>(
 0374                name: "SampleRate",
 0375                table: "MediaStreamInfos",
 0376                type: "INTEGER",
 0377                nullable: false,
 0378                defaultValue: 0,
 0379                oldClrType: typeof(int),
 0380                oldType: "INTEGER",
 0381                oldNullable: true);
 382
 0383            migrationBuilder.AlterColumn<int>(
 0384                name: "RpuPresentFlag",
 0385                table: "MediaStreamInfos",
 0386                type: "INTEGER",
 0387                nullable: false,
 0388                defaultValue: 0,
 0389                oldClrType: typeof(int),
 0390                oldType: "INTEGER",
 0391                oldNullable: true);
 392
 0393            migrationBuilder.AlterColumn<int>(
 0394                name: "Rotation",
 0395                table: "MediaStreamInfos",
 0396                type: "INTEGER",
 0397                nullable: false,
 0398                defaultValue: 0,
 0399                oldClrType: typeof(int),
 0400                oldType: "INTEGER",
 0401                oldNullable: true);
 402
 0403            migrationBuilder.AlterColumn<int>(
 0404                name: "RefFrames",
 0405                table: "MediaStreamInfos",
 0406                type: "INTEGER",
 0407                nullable: false,
 0408                defaultValue: 0,
 0409                oldClrType: typeof(int),
 0410                oldType: "INTEGER",
 0411                oldNullable: true);
 412
 0413            migrationBuilder.AlterColumn<float>(
 0414                name: "RealFrameRate",
 0415                table: "MediaStreamInfos",
 0416                type: "REAL",
 0417                nullable: false,
 0418                defaultValue: 0f,
 0419                oldClrType: typeof(float),
 0420                oldType: "REAL",
 0421                oldNullable: true);
 422
 0423            migrationBuilder.AlterColumn<string>(
 0424                name: "Profile",
 0425                table: "MediaStreamInfos",
 0426                type: "TEXT",
 0427                nullable: true,
 0428                oldClrType: typeof(string),
 0429                oldType: "TEXT");
 430
 0431            migrationBuilder.AlterColumn<string>(
 0432                name: "Path",
 0433                table: "MediaStreamInfos",
 0434                type: "TEXT",
 0435                nullable: true,
 0436                oldClrType: typeof(string),
 0437                oldType: "TEXT");
 438
 0439            migrationBuilder.AlterColumn<string>(
 0440                name: "NalLengthSize",
 0441                table: "MediaStreamInfos",
 0442                type: "TEXT",
 0443                nullable: false,
 0444                defaultValue: string.Empty,
 0445                oldClrType: typeof(string),
 0446                oldType: "TEXT",
 0447                oldNullable: true);
 448
 0449            migrationBuilder.AlterColumn<float>(
 0450                name: "Level",
 0451                table: "MediaStreamInfos",
 0452                type: "REAL",
 0453                nullable: false,
 0454                defaultValue: 0f,
 0455                oldClrType: typeof(float),
 0456                oldType: "REAL",
 0457                oldNullable: true);
 458
 0459            migrationBuilder.AlterColumn<string>(
 0460                name: "Language",
 0461                table: "MediaStreamInfos",
 0462                type: "TEXT",
 0463                nullable: true,
 0464                oldClrType: typeof(string),
 0465                oldType: "TEXT");
 466
 0467            migrationBuilder.AlterColumn<bool>(
 0468                name: "IsHearingImpaired",
 0469                table: "MediaStreamInfos",
 0470                type: "INTEGER",
 0471                nullable: false,
 0472                defaultValue: false,
 0473                oldClrType: typeof(bool),
 0474                oldType: "INTEGER",
 0475                oldNullable: true);
 476
 0477            migrationBuilder.AlterColumn<bool>(
 0478                name: "IsAvc",
 0479                table: "MediaStreamInfos",
 0480                type: "INTEGER",
 0481                nullable: false,
 0482                defaultValue: false,
 0483                oldClrType: typeof(bool),
 0484                oldType: "INTEGER",
 0485                oldNullable: true);
 486
 0487            migrationBuilder.AlterColumn<bool>(
 0488                name: "IsAnamorphic",
 0489                table: "MediaStreamInfos",
 0490                type: "INTEGER",
 0491                nullable: false,
 0492                defaultValue: false,
 0493                oldClrType: typeof(bool),
 0494                oldType: "INTEGER",
 0495                oldNullable: true);
 496
 0497            migrationBuilder.AlterColumn<int>(
 0498                name: "Height",
 0499                table: "MediaStreamInfos",
 0500                type: "INTEGER",
 0501                nullable: false,
 0502                defaultValue: 0,
 0503                oldClrType: typeof(int),
 0504                oldType: "INTEGER",
 0505                oldNullable: true);
 506
 0507            migrationBuilder.AlterColumn<int>(
 0508                name: "ElPresentFlag",
 0509                table: "MediaStreamInfos",
 0510                type: "INTEGER",
 0511                nullable: false,
 0512                defaultValue: 0,
 0513                oldClrType: typeof(int),
 0514                oldType: "INTEGER",
 0515                oldNullable: true);
 516
 0517            migrationBuilder.AlterColumn<int>(
 0518                name: "DvVersionMinor",
 0519                table: "MediaStreamInfos",
 0520                type: "INTEGER",
 0521                nullable: false,
 0522                defaultValue: 0,
 0523                oldClrType: typeof(int),
 0524                oldType: "INTEGER",
 0525                oldNullable: true);
 526
 0527            migrationBuilder.AlterColumn<int>(
 0528                name: "DvVersionMajor",
 0529                table: "MediaStreamInfos",
 0530                type: "INTEGER",
 0531                nullable: false,
 0532                defaultValue: 0,
 0533                oldClrType: typeof(int),
 0534                oldType: "INTEGER",
 0535                oldNullable: true);
 536
 0537            migrationBuilder.AlterColumn<int>(
 0538                name: "DvProfile",
 0539                table: "MediaStreamInfos",
 0540                type: "INTEGER",
 0541                nullable: false,
 0542                defaultValue: 0,
 0543                oldClrType: typeof(int),
 0544                oldType: "INTEGER",
 0545                oldNullable: true);
 546
 0547            migrationBuilder.AlterColumn<int>(
 0548                name: "DvLevel",
 0549                table: "MediaStreamInfos",
 0550                type: "INTEGER",
 0551                nullable: false,
 0552                defaultValue: 0,
 0553                oldClrType: typeof(int),
 0554                oldType: "INTEGER",
 0555                oldNullable: true);
 556
 0557            migrationBuilder.AlterColumn<int>(
 0558                name: "DvBlSignalCompatibilityId",
 0559                table: "MediaStreamInfos",
 0560                type: "INTEGER",
 0561                nullable: false,
 0562                defaultValue: 0,
 0563                oldClrType: typeof(int),
 0564                oldType: "INTEGER",
 0565                oldNullable: true);
 566
 0567            migrationBuilder.AlterColumn<string>(
 0568                name: "Comment",
 0569                table: "MediaStreamInfos",
 0570                type: "TEXT",
 0571                nullable: false,
 0572                defaultValue: string.Empty,
 0573                oldClrType: typeof(string),
 0574                oldType: "TEXT",
 0575                oldNullable: true);
 576
 0577            migrationBuilder.AlterColumn<string>(
 0578                name: "ColorTransfer",
 0579                table: "MediaStreamInfos",
 0580                type: "TEXT",
 0581                nullable: false,
 0582                defaultValue: string.Empty,
 0583                oldClrType: typeof(string),
 0584                oldType: "TEXT",
 0585                oldNullable: true);
 586
 0587            migrationBuilder.AlterColumn<string>(
 0588                name: "ColorSpace",
 0589                table: "MediaStreamInfos",
 0590                type: "TEXT",
 0591                nullable: false,
 0592                defaultValue: string.Empty,
 0593                oldClrType: typeof(string),
 0594                oldType: "TEXT",
 0595                oldNullable: true);
 596
 0597            migrationBuilder.AlterColumn<string>(
 0598                name: "ColorPrimaries",
 0599                table: "MediaStreamInfos",
 0600                type: "TEXT",
 0601                nullable: false,
 0602                defaultValue: string.Empty,
 0603                oldClrType: typeof(string),
 0604                oldType: "TEXT",
 0605                oldNullable: true);
 606
 0607            migrationBuilder.AlterColumn<string>(
 0608                name: "CodecTimeBase",
 0609                table: "MediaStreamInfos",
 0610                type: "TEXT",
 0611                nullable: false,
 0612                defaultValue: string.Empty,
 0613                oldClrType: typeof(string),
 0614                oldType: "TEXT",
 0615                oldNullable: true);
 616
 0617            migrationBuilder.AlterColumn<string>(
 0618                name: "CodecTag",
 0619                table: "MediaStreamInfos",
 0620                type: "TEXT",
 0621                nullable: false,
 0622                defaultValue: string.Empty,
 0623                oldClrType: typeof(string),
 0624                oldType: "TEXT",
 0625                oldNullable: true);
 626
 0627            migrationBuilder.AlterColumn<string>(
 0628                name: "Codec",
 0629                table: "MediaStreamInfos",
 0630                type: "TEXT",
 0631                nullable: true,
 0632                oldClrType: typeof(string),
 0633                oldType: "TEXT");
 634
 0635            migrationBuilder.AlterColumn<int>(
 0636                name: "Channels",
 0637                table: "MediaStreamInfos",
 0638                type: "INTEGER",
 0639                nullable: false,
 0640                defaultValue: 0,
 0641                oldClrType: typeof(int),
 0642                oldType: "INTEGER",
 0643                oldNullable: true);
 644
 0645            migrationBuilder.AlterColumn<string>(
 0646                name: "ChannelLayout",
 0647                table: "MediaStreamInfos",
 0648                type: "TEXT",
 0649                nullable: true,
 0650                oldClrType: typeof(string),
 0651                oldType: "TEXT");
 652
 0653            migrationBuilder.AlterColumn<int>(
 0654                name: "BlPresentFlag",
 0655                table: "MediaStreamInfos",
 0656                type: "INTEGER",
 0657                nullable: false,
 0658                defaultValue: 0,
 0659                oldClrType: typeof(int),
 0660                oldType: "INTEGER",
 0661                oldNullable: true);
 662
 0663            migrationBuilder.AlterColumn<int>(
 0664                name: "BitRate",
 0665                table: "MediaStreamInfos",
 0666                type: "INTEGER",
 0667                nullable: false,
 0668                defaultValue: 0,
 0669                oldClrType: typeof(int),
 0670                oldType: "INTEGER",
 0671                oldNullable: true);
 672
 0673            migrationBuilder.AlterColumn<int>(
 0674                name: "BitDepth",
 0675                table: "MediaStreamInfos",
 0676                type: "INTEGER",
 0677                nullable: false,
 0678                defaultValue: 0,
 0679                oldClrType: typeof(int),
 0680                oldType: "INTEGER",
 0681                oldNullable: true);
 682
 0683            migrationBuilder.AlterColumn<float>(
 0684                name: "AverageFrameRate",
 0685                table: "MediaStreamInfos",
 0686                type: "REAL",
 0687                nullable: false,
 0688                defaultValue: 0f,
 0689                oldClrType: typeof(float),
 0690                oldType: "REAL",
 0691                oldNullable: true);
 692
 0693            migrationBuilder.AlterColumn<string>(
 0694                name: "AspectRatio",
 0695                table: "MediaStreamInfos",
 0696                type: "TEXT",
 0697                nullable: true,
 0698                oldClrType: typeof(string),
 0699                oldType: "TEXT");
 0700        }
 701    }
 702}

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20241112232041_fixMediaStreams.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("20241112232041_FixMediaStreams")]
 15    partial class FixMediaStreams
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 2121            modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
 22
 2123            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 2124                {
 2125                    b.Property<int>("Id")
 2126                        .ValueGeneratedOnAdd()
 2127                        .HasColumnType("INTEGER");
 2128
 2129                    b.Property<int>("DayOfWeek")
 2130                        .HasColumnType("INTEGER");
 2131
 2132                    b.Property<double>("EndHour")
 2133                        .HasColumnType("REAL");
 2134
 2135                    b.Property<double>("StartHour")
 2136                        .HasColumnType("REAL");
 2137
 2138                    b.Property<Guid>("UserId")
 2139                        .HasColumnType("TEXT");
 2140
 2141                    b.HasKey("Id");
 2142
 2143                    b.HasIndex("UserId");
 2144
 2145                    b.ToTable("AccessSchedules");
 2146                });
 47
 2148            modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
 2149                {
 2150                    b.Property<int>("Id")
 2151                        .ValueGeneratedOnAdd()
 2152                        .HasColumnType("INTEGER");
 2153
 2154                    b.Property<DateTime>("DateCreated")
 2155                        .HasColumnType("TEXT");
 2156
 2157                    b.Property<string>("ItemId")
 2158                        .HasMaxLength(256)
 2159                        .HasColumnType("TEXT");
 2160
 2161                    b.Property<int>("LogSeverity")
 2162                        .HasColumnType("INTEGER");
 2163
 2164                    b.Property<string>("Name")
 2165                        .IsRequired()
 2166                        .HasMaxLength(512)
 2167                        .HasColumnType("TEXT");
 2168
 2169                    b.Property<string>("Overview")
 2170                        .HasMaxLength(512)
 2171                        .HasColumnType("TEXT");
 2172
 2173                    b.Property<uint>("RowVersion")
 2174                        .IsConcurrencyToken()
 2175                        .HasColumnType("INTEGER");
 2176
 2177                    b.Property<string>("ShortOverview")
 2178                        .HasMaxLength(512)
 2179                        .HasColumnType("TEXT");
 2180
 2181                    b.Property<string>("Type")
 2182                        .IsRequired()
 2183                        .HasMaxLength(256)
 2184                        .HasColumnType("TEXT");
 2185
 2186                    b.Property<Guid>("UserId")
 2187                        .HasColumnType("TEXT");
 2188
 2189                    b.HasKey("Id");
 2190
 2191                    b.HasIndex("DateCreated");
 2192
 2193                    b.ToTable("ActivityLogs");
 2194                });
 95
 2196            modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
 2197                {
 2198                    b.Property<Guid>("ItemId")
 2199                        .HasColumnType("TEXT");
 21100
 21101                    b.Property<Guid>("ParentItemId")
 21102                        .HasColumnType("TEXT");
 21103
 21104                    b.HasKey("ItemId", "ParentItemId");
 21105
 21106                    b.HasIndex("ParentItemId");
 21107
 21108                    b.ToTable("AncestorIds");
 21109                });
 110
 21111            modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
 21112                {
 21113                    b.Property<Guid>("ItemId")
 21114                        .HasColumnType("TEXT");
 21115
 21116                    b.Property<int>("Index")
 21117                        .HasColumnType("INTEGER");
 21118
 21119                    b.Property<string>("Codec")
 21120                        .IsRequired()
 21121                        .HasColumnType("TEXT");
 21122
 21123                    b.Property<string>("CodecTag")
 21124                        .HasColumnType("TEXT");
 21125
 21126                    b.Property<string>("Comment")
 21127                        .HasColumnType("TEXT");
 21128
 21129                    b.Property<string>("Filename")
 21130                        .HasColumnType("TEXT");
 21131
 21132                    b.Property<string>("MimeType")
 21133                        .HasColumnType("TEXT");
 21134
 21135                    b.HasKey("ItemId", "Index");
 21136
 21137                    b.ToTable("AttachmentStreamInfos");
 21138                });
 139
 21140            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
 21141                {
 21142                    b.Property<Guid>("Id")
 21143                        .ValueGeneratedOnAdd()
 21144                        .HasColumnType("TEXT");
 21145
 21146                    b.Property<string>("Album")
 21147                        .HasColumnType("TEXT");
 21148
 21149                    b.Property<string>("AlbumArtists")
 21150                        .HasColumnType("TEXT");
 21151
 21152                    b.Property<string>("Artists")
 21153                        .HasColumnType("TEXT");
 21154
 21155                    b.Property<int?>("Audio")
 21156                        .HasColumnType("INTEGER");
 21157
 21158                    b.Property<string>("ChannelId")
 21159                        .HasColumnType("TEXT");
 21160
 21161                    b.Property<string>("CleanName")
 21162                        .HasColumnType("TEXT");
 21163
 21164                    b.Property<float?>("CommunityRating")
 21165                        .HasColumnType("REAL");
 21166
 21167                    b.Property<float?>("CriticRating")
 21168                        .HasColumnType("REAL");
 21169
 21170                    b.Property<string>("CustomRating")
 21171                        .HasColumnType("TEXT");
 21172
 21173                    b.Property<string>("Data")
 21174                        .HasColumnType("TEXT");
 21175
 21176                    b.Property<DateTime?>("DateCreated")
 21177                        .HasColumnType("TEXT");
 21178
 21179                    b.Property<DateTime?>("DateLastMediaAdded")
 21180                        .HasColumnType("TEXT");
 21181
 21182                    b.Property<DateTime?>("DateLastRefreshed")
 21183                        .HasColumnType("TEXT");
 21184
 21185                    b.Property<DateTime?>("DateLastSaved")
 21186                        .HasColumnType("TEXT");
 21187
 21188                    b.Property<DateTime?>("DateModified")
 21189                        .HasColumnType("TEXT");
 21190
 21191                    b.Property<DateTime>("EndDate")
 21192                        .HasColumnType("TEXT");
 21193
 21194                    b.Property<string>("EpisodeTitle")
 21195                        .HasColumnType("TEXT");
 21196
 21197                    b.Property<string>("ExternalId")
 21198                        .HasColumnType("TEXT");
 21199
 21200                    b.Property<string>("ExternalSeriesId")
 21201                        .HasColumnType("TEXT");
 21202
 21203                    b.Property<string>("ExternalServiceId")
 21204                        .HasColumnType("TEXT");
 21205
 21206                    b.Property<string>("ExtraIds")
 21207                        .HasColumnType("TEXT");
 21208
 21209                    b.Property<int?>("ExtraType")
 21210                        .HasColumnType("INTEGER");
 21211
 21212                    b.Property<string>("ForcedSortName")
 21213                        .HasColumnType("TEXT");
 21214
 21215                    b.Property<string>("Genres")
 21216                        .HasColumnType("TEXT");
 21217
 21218                    b.Property<int?>("Height")
 21219                        .HasColumnType("INTEGER");
 21220
 21221                    b.Property<int?>("IndexNumber")
 21222                        .HasColumnType("INTEGER");
 21223
 21224                    b.Property<int?>("InheritedParentalRatingValue")
 21225                        .HasColumnType("INTEGER");
 21226
 21227                    b.Property<bool>("IsFolder")
 21228                        .HasColumnType("INTEGER");
 21229
 21230                    b.Property<bool>("IsInMixedFolder")
 21231                        .HasColumnType("INTEGER");
 21232
 21233                    b.Property<bool>("IsLocked")
 21234                        .HasColumnType("INTEGER");
 21235
 21236                    b.Property<bool>("IsMovie")
 21237                        .HasColumnType("INTEGER");
 21238
 21239                    b.Property<bool>("IsRepeat")
 21240                        .HasColumnType("INTEGER");
 21241
 21242                    b.Property<bool>("IsSeries")
 21243                        .HasColumnType("INTEGER");
 21244
 21245                    b.Property<bool>("IsVirtualItem")
 21246                        .HasColumnType("INTEGER");
 21247
 21248                    b.Property<float?>("LUFS")
 21249                        .HasColumnType("REAL");
 21250
 21251                    b.Property<string>("MediaType")
 21252                        .HasColumnType("TEXT");
 21253
 21254                    b.Property<string>("Name")
 21255                        .HasColumnType("TEXT");
 21256
 21257                    b.Property<float?>("NormalizationGain")
 21258                        .HasColumnType("REAL");
 21259
 21260                    b.Property<string>("OfficialRating")
 21261                        .HasColumnType("TEXT");
 21262
 21263                    b.Property<string>("OriginalTitle")
 21264                        .HasColumnType("TEXT");
 21265
 21266                    b.Property<string>("Overview")
 21267                        .HasColumnType("TEXT");
 21268
 21269                    b.Property<string>("OwnerId")
 21270                        .HasColumnType("TEXT");
 21271
 21272                    b.Property<Guid?>("ParentId")
 21273                        .HasColumnType("TEXT");
 21274
 21275                    b.Property<int?>("ParentIndexNumber")
 21276                        .HasColumnType("INTEGER");
 21277
 21278                    b.Property<string>("Path")
 21279                        .HasColumnType("TEXT");
 21280
 21281                    b.Property<string>("PreferredMetadataCountryCode")
 21282                        .HasColumnType("TEXT");
 21283
 21284                    b.Property<string>("PreferredMetadataLanguage")
 21285                        .HasColumnType("TEXT");
 21286
 21287                    b.Property<DateTime?>("PremiereDate")
 21288                        .HasColumnType("TEXT");
 21289
 21290                    b.Property<string>("PresentationUniqueKey")
 21291                        .HasColumnType("TEXT");
 21292
 21293                    b.Property<string>("PrimaryVersionId")
 21294                        .HasColumnType("TEXT");
 21295
 21296                    b.Property<string>("ProductionLocations")
 21297                        .HasColumnType("TEXT");
 21298
 21299                    b.Property<int?>("ProductionYear")
 21300                        .HasColumnType("INTEGER");
 21301
 21302                    b.Property<long?>("RunTimeTicks")
 21303                        .HasColumnType("INTEGER");
 21304
 21305                    b.Property<Guid?>("SeasonId")
 21306                        .HasColumnType("TEXT");
 21307
 21308                    b.Property<string>("SeasonName")
 21309                        .HasColumnType("TEXT");
 21310
 21311                    b.Property<Guid?>("SeriesId")
 21312                        .HasColumnType("TEXT");
 21313
 21314                    b.Property<string>("SeriesName")
 21315                        .HasColumnType("TEXT");
 21316
 21317                    b.Property<string>("SeriesPresentationUniqueKey")
 21318                        .HasColumnType("TEXT");
 21319
 21320                    b.Property<string>("ShowId")
 21321                        .HasColumnType("TEXT");
 21322
 21323                    b.Property<long?>("Size")
 21324                        .HasColumnType("INTEGER");
 21325
 21326                    b.Property<string>("SortName")
 21327                        .HasColumnType("TEXT");
 21328
 21329                    b.Property<DateTime>("StartDate")
 21330                        .HasColumnType("TEXT");
 21331
 21332                    b.Property<string>("Studios")
 21333                        .HasColumnType("TEXT");
 21334
 21335                    b.Property<string>("Tagline")
 21336                        .HasColumnType("TEXT");
 21337
 21338                    b.Property<string>("Tags")
 21339                        .HasColumnType("TEXT");
 21340
 21341                    b.Property<Guid?>("TopParentId")
 21342                        .HasColumnType("TEXT");
 21343
 21344                    b.Property<int?>("TotalBitrate")
 21345                        .HasColumnType("INTEGER");
 21346
 21347                    b.Property<string>("Type")
 21348                        .IsRequired()
 21349                        .HasColumnType("TEXT");
 21350
 21351                    b.Property<string>("UnratedType")
 21352                        .HasColumnType("TEXT");
 21353
 21354                    b.Property<int?>("Width")
 21355                        .HasColumnType("INTEGER");
 21356
 21357                    b.HasKey("Id");
 21358
 21359                    b.HasIndex("ParentId");
 21360
 21361                    b.HasIndex("Path");
 21362
 21363                    b.HasIndex("PresentationUniqueKey");
 21364
 21365                    b.HasIndex("TopParentId", "Id");
 21366
 21367                    b.HasIndex("Type", "TopParentId", "Id");
 21368
 21369                    b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
 21370
 21371                    b.HasIndex("Type", "TopParentId", "StartDate");
 21372
 21373                    b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
 21374
 21375                    b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
 21376
 21377                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
 21378
 21379                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
 21380
 21381                    b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 21382
 21383                    b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 21384
 21385                    b.ToTable("BaseItems");
 21386                });
 387
 21388            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
 21389                {
 21390                    b.Property<Guid>("Id")
 21391                        .ValueGeneratedOnAdd()
 21392                        .HasColumnType("TEXT");
 21393
 21394                    b.Property<byte[]>("Blurhash")
 21395                        .HasColumnType("BLOB");
 21396
 21397                    b.Property<DateTime>("DateModified")
 21398                        .HasColumnType("TEXT");
 21399
 21400                    b.Property<int>("Height")
 21401                        .HasColumnType("INTEGER");
 21402
 21403                    b.Property<int>("ImageType")
 21404                        .HasColumnType("INTEGER");
 21405
 21406                    b.Property<Guid>("ItemId")
 21407                        .HasColumnType("TEXT");
 21408
 21409                    b.Property<string>("Path")
 21410                        .IsRequired()
 21411                        .HasColumnType("TEXT");
 21412
 21413                    b.Property<int>("Width")
 21414                        .HasColumnType("INTEGER");
 21415
 21416                    b.HasKey("Id");
 21417
 21418                    b.HasIndex("ItemId");
 21419
 21420                    b.ToTable("BaseItemImageInfos");
 21421                });
 422
 21423            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
 21424                {
 21425                    b.Property<int>("Id")
 21426                        .HasColumnType("INTEGER");
 21427
 21428                    b.Property<Guid>("ItemId")
 21429                        .HasColumnType("TEXT");
 21430
 21431                    b.HasKey("Id", "ItemId");
 21432
 21433                    b.HasIndex("ItemId");
 21434
 21435                    b.ToTable("BaseItemMetadataFields");
 21436                });
 437
 21438            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
 21439                {
 21440                    b.Property<Guid>("ItemId")
 21441                        .HasColumnType("TEXT");
 21442
 21443                    b.Property<string>("ProviderId")
 21444                        .HasColumnType("TEXT");
 21445
 21446                    b.Property<string>("ProviderValue")
 21447                        .IsRequired()
 21448                        .HasColumnType("TEXT");
 21449
 21450                    b.HasKey("ItemId", "ProviderId");
 21451
 21452                    b.HasIndex("ProviderId", "ProviderValue", "ItemId");
 21453
 21454                    b.ToTable("BaseItemProviders");
 21455                });
 456
 21457            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
 21458                {
 21459                    b.Property<int>("Id")
 21460                        .HasColumnType("INTEGER");
 21461
 21462                    b.Property<Guid>("ItemId")
 21463                        .HasColumnType("TEXT");
 21464
 21465                    b.HasKey("Id", "ItemId");
 21466
 21467                    b.HasIndex("ItemId");
 21468
 21469                    b.ToTable("BaseItemTrailerTypes");
 21470                });
 471
 21472            modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
 21473                {
 21474                    b.Property<Guid>("ItemId")
 21475                        .HasColumnType("TEXT");
 21476
 21477                    b.Property<int>("ChapterIndex")
 21478                        .HasColumnType("INTEGER");
 21479
 21480                    b.Property<DateTime?>("ImageDateModified")
 21481                        .HasColumnType("TEXT");
 21482
 21483                    b.Property<string>("ImagePath")
 21484                        .HasColumnType("TEXT");
 21485
 21486                    b.Property<string>("Name")
 21487                        .HasColumnType("TEXT");
 21488
 21489                    b.Property<long>("StartPositionTicks")
 21490                        .HasColumnType("INTEGER");
 21491
 21492                    b.HasKey("ItemId", "ChapterIndex");
 21493
 21494                    b.ToTable("Chapters");
 21495                });
 496
 21497            modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
 21498                {
 21499                    b.Property<int>("Id")
 21500                        .ValueGeneratedOnAdd()
 21501                        .HasColumnType("INTEGER");
 21502
 21503                    b.Property<string>("Client")
 21504                        .IsRequired()
 21505                        .HasMaxLength(32)
 21506                        .HasColumnType("TEXT");
 21507
 21508                    b.Property<Guid>("ItemId")
 21509                        .HasColumnType("TEXT");
 21510
 21511                    b.Property<string>("Key")
 21512                        .IsRequired()
 21513                        .HasColumnType("TEXT");
 21514
 21515                    b.Property<Guid>("UserId")
 21516                        .HasColumnType("TEXT");
 21517
 21518                    b.Property<string>("Value")
 21519                        .HasColumnType("TEXT");
 21520
 21521                    b.HasKey("Id");
 21522
 21523                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 21524                        .IsUnique();
 21525
 21526                    b.ToTable("CustomItemDisplayPreferences");
 21527                });
 528
 21529            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 21530                {
 21531                    b.Property<int>("Id")
 21532                        .ValueGeneratedOnAdd()
 21533                        .HasColumnType("INTEGER");
 21534
 21535                    b.Property<int>("ChromecastVersion")
 21536                        .HasColumnType("INTEGER");
 21537
 21538                    b.Property<string>("Client")
 21539                        .IsRequired()
 21540                        .HasMaxLength(32)
 21541                        .HasColumnType("TEXT");
 21542
 21543                    b.Property<string>("DashboardTheme")
 21544                        .HasMaxLength(32)
 21545                        .HasColumnType("TEXT");
 21546
 21547                    b.Property<bool>("EnableNextVideoInfoOverlay")
 21548                        .HasColumnType("INTEGER");
 21549
 21550                    b.Property<int?>("IndexBy")
 21551                        .HasColumnType("INTEGER");
 21552
 21553                    b.Property<Guid>("ItemId")
 21554                        .HasColumnType("TEXT");
 21555
 21556                    b.Property<int>("ScrollDirection")
 21557                        .HasColumnType("INTEGER");
 21558
 21559                    b.Property<bool>("ShowBackdrop")
 21560                        .HasColumnType("INTEGER");
 21561
 21562                    b.Property<bool>("ShowSidebar")
 21563                        .HasColumnType("INTEGER");
 21564
 21565                    b.Property<int>("SkipBackwardLength")
 21566                        .HasColumnType("INTEGER");
 21567
 21568                    b.Property<int>("SkipForwardLength")
 21569                        .HasColumnType("INTEGER");
 21570
 21571                    b.Property<string>("TvHome")
 21572                        .HasMaxLength(32)
 21573                        .HasColumnType("TEXT");
 21574
 21575                    b.Property<Guid>("UserId")
 21576                        .HasColumnType("TEXT");
 21577
 21578                    b.HasKey("Id");
 21579
 21580                    b.HasIndex("UserId", "ItemId", "Client")
 21581                        .IsUnique();
 21582
 21583                    b.ToTable("DisplayPreferences");
 21584                });
 585
 21586            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 21587                {
 21588                    b.Property<int>("Id")
 21589                        .ValueGeneratedOnAdd()
 21590                        .HasColumnType("INTEGER");
 21591
 21592                    b.Property<int>("DisplayPreferencesId")
 21593                        .HasColumnType("INTEGER");
 21594
 21595                    b.Property<int>("Order")
 21596                        .HasColumnType("INTEGER");
 21597
 21598                    b.Property<int>("Type")
 21599                        .HasColumnType("INTEGER");
 21600
 21601                    b.HasKey("Id");
 21602
 21603                    b.HasIndex("DisplayPreferencesId");
 21604
 21605                    b.ToTable("HomeSection");
 21606                });
 607
 21608            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 21609                {
 21610                    b.Property<int>("Id")
 21611                        .ValueGeneratedOnAdd()
 21612                        .HasColumnType("INTEGER");
 21613
 21614                    b.Property<DateTime>("LastModified")
 21615                        .HasColumnType("TEXT");
 21616
 21617                    b.Property<string>("Path")
 21618                        .IsRequired()
 21619                        .HasMaxLength(512)
 21620                        .HasColumnType("TEXT");
 21621
 21622                    b.Property<Guid?>("UserId")
 21623                        .HasColumnType("TEXT");
 21624
 21625                    b.HasKey("Id");
 21626
 21627                    b.HasIndex("UserId")
 21628                        .IsUnique();
 21629
 21630                    b.ToTable("ImageInfos");
 21631                });
 632
 21633            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 21634                {
 21635                    b.Property<int>("Id")
 21636                        .ValueGeneratedOnAdd()
 21637                        .HasColumnType("INTEGER");
 21638
 21639                    b.Property<string>("Client")
 21640                        .IsRequired()
 21641                        .HasMaxLength(32)
 21642                        .HasColumnType("TEXT");
 21643
 21644                    b.Property<int?>("IndexBy")
 21645                        .HasColumnType("INTEGER");
 21646
 21647                    b.Property<Guid>("ItemId")
 21648                        .HasColumnType("TEXT");
 21649
 21650                    b.Property<bool>("RememberIndexing")
 21651                        .HasColumnType("INTEGER");
 21652
 21653                    b.Property<bool>("RememberSorting")
 21654                        .HasColumnType("INTEGER");
 21655
 21656                    b.Property<string>("SortBy")
 21657                        .IsRequired()
 21658                        .HasMaxLength(64)
 21659                        .HasColumnType("TEXT");
 21660
 21661                    b.Property<int>("SortOrder")
 21662                        .HasColumnType("INTEGER");
 21663
 21664                    b.Property<Guid>("UserId")
 21665                        .HasColumnType("TEXT");
 21666
 21667                    b.Property<int>("ViewType")
 21668                        .HasColumnType("INTEGER");
 21669
 21670                    b.HasKey("Id");
 21671
 21672                    b.HasIndex("UserId");
 21673
 21674                    b.ToTable("ItemDisplayPreferences");
 21675                });
 676
 21677            modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
 21678                {
 21679                    b.Property<Guid>("ItemValueId")
 21680                        .ValueGeneratedOnAdd()
 21681                        .HasColumnType("TEXT");
 21682
 21683                    b.Property<string>("CleanValue")
 21684                        .IsRequired()
 21685                        .HasColumnType("TEXT");
 21686
 21687                    b.Property<int>("Type")
 21688                        .HasColumnType("INTEGER");
 21689
 21690                    b.Property<string>("Value")
 21691                        .IsRequired()
 21692                        .HasColumnType("TEXT");
 21693
 21694                    b.HasKey("ItemValueId");
 21695
 21696                    b.HasIndex("Type", "CleanValue");
 21697
 21698                    b.ToTable("ItemValues");
 21699                });
 700
 21701            modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
 21702                {
 21703                    b.Property<Guid>("ItemValueId")
 21704                        .HasColumnType("TEXT");
 21705
 21706                    b.Property<Guid>("ItemId")
 21707                        .HasColumnType("TEXT");
 21708
 21709                    b.HasKey("ItemValueId", "ItemId");
 21710
 21711                    b.HasIndex("ItemId");
 21712
 21713                    b.ToTable("ItemValuesMap");
 21714                });
 715
 21716            modelBuilder.Entity("Jellyfin.Data.Entities.MediaSegment", b =>
 21717                {
 21718                    b.Property<Guid>("Id")
 21719                        .ValueGeneratedOnAdd()
 21720                        .HasColumnType("TEXT");
 21721
 21722                    b.Property<long>("EndTicks")
 21723                        .HasColumnType("INTEGER");
 21724
 21725                    b.Property<Guid>("ItemId")
 21726                        .HasColumnType("TEXT");
 21727
 21728                    b.Property<string>("SegmentProviderId")
 21729                        .IsRequired()
 21730                        .HasColumnType("TEXT");
 21731
 21732                    b.Property<long>("StartTicks")
 21733                        .HasColumnType("INTEGER");
 21734
 21735                    b.Property<int>("Type")
 21736                        .HasColumnType("INTEGER");
 21737
 21738                    b.HasKey("Id");
 21739
 21740                    b.ToTable("MediaSegments");
 21741                });
 742
 21743            modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
 21744                {
 21745                    b.Property<Guid>("ItemId")
 21746                        .HasColumnType("TEXT");
 21747
 21748                    b.Property<int>("StreamIndex")
 21749                        .HasColumnType("INTEGER");
 21750
 21751                    b.Property<string>("AspectRatio")
 21752                        .IsRequired()
 21753                        .HasColumnType("TEXT");
 21754
 21755                    b.Property<float?>("AverageFrameRate")
 21756                        .HasColumnType("REAL");
 21757
 21758                    b.Property<int?>("BitDepth")
 21759                        .HasColumnType("INTEGER");
 21760
 21761                    b.Property<int?>("BitRate")
 21762                        .HasColumnType("INTEGER");
 21763
 21764                    b.Property<int?>("BlPresentFlag")
 21765                        .HasColumnType("INTEGER");
 21766
 21767                    b.Property<string>("ChannelLayout")
 21768                        .IsRequired()
 21769                        .HasColumnType("TEXT");
 21770
 21771                    b.Property<int?>("Channels")
 21772                        .HasColumnType("INTEGER");
 21773
 21774                    b.Property<string>("Codec")
 21775                        .IsRequired()
 21776                        .HasColumnType("TEXT");
 21777
 21778                    b.Property<string>("CodecTag")
 21779                        .HasColumnType("TEXT");
 21780
 21781                    b.Property<string>("CodecTimeBase")
 21782                        .HasColumnType("TEXT");
 21783
 21784                    b.Property<string>("ColorPrimaries")
 21785                        .HasColumnType("TEXT");
 21786
 21787                    b.Property<string>("ColorSpace")
 21788                        .HasColumnType("TEXT");
 21789
 21790                    b.Property<string>("ColorTransfer")
 21791                        .HasColumnType("TEXT");
 21792
 21793                    b.Property<string>("Comment")
 21794                        .HasColumnType("TEXT");
 21795
 21796                    b.Property<int?>("DvBlSignalCompatibilityId")
 21797                        .HasColumnType("INTEGER");
 21798
 21799                    b.Property<int?>("DvLevel")
 21800                        .HasColumnType("INTEGER");
 21801
 21802                    b.Property<int?>("DvProfile")
 21803                        .HasColumnType("INTEGER");
 21804
 21805                    b.Property<int?>("DvVersionMajor")
 21806                        .HasColumnType("INTEGER");
 21807
 21808                    b.Property<int?>("DvVersionMinor")
 21809                        .HasColumnType("INTEGER");
 21810
 21811                    b.Property<int?>("ElPresentFlag")
 21812                        .HasColumnType("INTEGER");
 21813
 21814                    b.Property<int?>("Height")
 21815                        .HasColumnType("INTEGER");
 21816
 21817                    b.Property<bool?>("IsAnamorphic")
 21818                        .HasColumnType("INTEGER");
 21819
 21820                    b.Property<bool?>("IsAvc")
 21821                        .HasColumnType("INTEGER");
 21822
 21823                    b.Property<bool>("IsDefault")
 21824                        .HasColumnType("INTEGER");
 21825
 21826                    b.Property<bool>("IsExternal")
 21827                        .HasColumnType("INTEGER");
 21828
 21829                    b.Property<bool>("IsForced")
 21830                        .HasColumnType("INTEGER");
 21831
 21832                    b.Property<bool?>("IsHearingImpaired")
 21833                        .HasColumnType("INTEGER");
 21834
 21835                    b.Property<bool>("IsInterlaced")
 21836                        .HasColumnType("INTEGER");
 21837
 21838                    b.Property<string>("KeyFrames")
 21839                        .HasColumnType("TEXT");
 21840
 21841                    b.Property<string>("Language")
 21842                        .IsRequired()
 21843                        .HasColumnType("TEXT");
 21844
 21845                    b.Property<float?>("Level")
 21846                        .HasColumnType("REAL");
 21847
 21848                    b.Property<string>("NalLengthSize")
 21849                        .HasColumnType("TEXT");
 21850
 21851                    b.Property<string>("Path")
 21852                        .IsRequired()
 21853                        .HasColumnType("TEXT");
 21854
 21855                    b.Property<string>("PixelFormat")
 21856                        .HasColumnType("TEXT");
 21857
 21858                    b.Property<string>("Profile")
 21859                        .IsRequired()
 21860                        .HasColumnType("TEXT");
 21861
 21862                    b.Property<float?>("RealFrameRate")
 21863                        .HasColumnType("REAL");
 21864
 21865                    b.Property<int?>("RefFrames")
 21866                        .HasColumnType("INTEGER");
 21867
 21868                    b.Property<int?>("Rotation")
 21869                        .HasColumnType("INTEGER");
 21870
 21871                    b.Property<int?>("RpuPresentFlag")
 21872                        .HasColumnType("INTEGER");
 21873
 21874                    b.Property<int?>("SampleRate")
 21875                        .HasColumnType("INTEGER");
 21876
 21877                    b.Property<int>("StreamType")
 21878                        .HasColumnType("INTEGER");
 21879
 21880                    b.Property<string>("TimeBase")
 21881                        .HasColumnType("TEXT");
 21882
 21883                    b.Property<string>("Title")
 21884                        .HasColumnType("TEXT");
 21885
 21886                    b.Property<int?>("Width")
 21887                        .HasColumnType("INTEGER");
 21888
 21889                    b.HasKey("ItemId", "StreamIndex");
 21890
 21891                    b.HasIndex("StreamIndex");
 21892
 21893                    b.HasIndex("StreamType");
 21894
 21895                    b.HasIndex("StreamIndex", "StreamType");
 21896
 21897                    b.HasIndex("StreamIndex", "StreamType", "Language");
 21898
 21899                    b.ToTable("MediaStreamInfos");
 21900                });
 901
 21902            modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
 21903                {
 21904                    b.Property<Guid>("Id")
 21905                        .ValueGeneratedOnAdd()
 21906                        .HasColumnType("TEXT");
 21907
 21908                    b.Property<string>("Name")
 21909                        .IsRequired()
 21910                        .HasColumnType("TEXT");
 21911
 21912                    b.Property<string>("PersonType")
 21913                        .HasColumnType("TEXT");
 21914
 21915                    b.HasKey("Id");
 21916
 21917                    b.HasIndex("Name");
 21918
 21919                    b.ToTable("Peoples");
 21920                });
 921
 21922            modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
 21923                {
 21924                    b.Property<Guid>("ItemId")
 21925                        .HasColumnType("TEXT");
 21926
 21927                    b.Property<Guid>("PeopleId")
 21928                        .HasColumnType("TEXT");
 21929
 21930                    b.Property<int?>("ListOrder")
 21931                        .HasColumnType("INTEGER");
 21932
 21933                    b.Property<string>("Role")
 21934                        .HasColumnType("TEXT");
 21935
 21936                    b.Property<int?>("SortOrder")
 21937                        .HasColumnType("INTEGER");
 21938
 21939                    b.HasKey("ItemId", "PeopleId");
 21940
 21941                    b.HasIndex("PeopleId");
 21942
 21943                    b.HasIndex("ItemId", "ListOrder");
 21944
 21945                    b.HasIndex("ItemId", "SortOrder");
 21946
 21947                    b.ToTable("PeopleBaseItemMap");
 21948                });
 949
 21950            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 21951                {
 21952                    b.Property<int>("Id")
 21953                        .ValueGeneratedOnAdd()
 21954                        .HasColumnType("INTEGER");
 21955
 21956                    b.Property<int>("Kind")
 21957                        .HasColumnType("INTEGER");
 21958
 21959                    b.Property<Guid?>("Permission_Permissions_Guid")
 21960                        .HasColumnType("TEXT");
 21961
 21962                    b.Property<uint>("RowVersion")
 21963                        .IsConcurrencyToken()
 21964                        .HasColumnType("INTEGER");
 21965
 21966                    b.Property<Guid?>("UserId")
 21967                        .HasColumnType("TEXT");
 21968
 21969                    b.Property<bool>("Value")
 21970                        .HasColumnType("INTEGER");
 21971
 21972                    b.HasKey("Id");
 21973
 21974                    b.HasIndex("UserId", "Kind")
 21975                        .IsUnique()
 21976                        .HasFilter("[UserId] IS NOT NULL");
 21977
 21978                    b.ToTable("Permissions");
 21979                });
 980
 21981            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 21982                {
 21983                    b.Property<int>("Id")
 21984                        .ValueGeneratedOnAdd()
 21985                        .HasColumnType("INTEGER");
 21986
 21987                    b.Property<int>("Kind")
 21988                        .HasColumnType("INTEGER");
 21989
 21990                    b.Property<Guid?>("Preference_Preferences_Guid")
 21991                        .HasColumnType("TEXT");
 21992
 21993                    b.Property<uint>("RowVersion")
 21994                        .IsConcurrencyToken()
 21995                        .HasColumnType("INTEGER");
 21996
 21997                    b.Property<Guid?>("UserId")
 21998                        .HasColumnType("TEXT");
 21999
 211000                    b.Property<string>("Value")
 211001                        .IsRequired()
 211002                        .HasMaxLength(65535)
 211003                        .HasColumnType("TEXT");
 211004
 211005                    b.HasKey("Id");
 211006
 211007                    b.HasIndex("UserId", "Kind")
 211008                        .IsUnique()
 211009                        .HasFilter("[UserId] IS NOT NULL");
 211010
 211011                    b.ToTable("Preferences");
 211012                });
 1013
 211014            modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
 211015                {
 211016                    b.Property<int>("Id")
 211017                        .ValueGeneratedOnAdd()
 211018                        .HasColumnType("INTEGER");
 211019
 211020                    b.Property<string>("AccessToken")
 211021                        .IsRequired()
 211022                        .HasColumnType("TEXT");
 211023
 211024                    b.Property<DateTime>("DateCreated")
 211025                        .HasColumnType("TEXT");
 211026
 211027                    b.Property<DateTime>("DateLastActivity")
 211028                        .HasColumnType("TEXT");
 211029
 211030                    b.Property<string>("Name")
 211031                        .IsRequired()
 211032                        .HasMaxLength(64)
 211033                        .HasColumnType("TEXT");
 211034
 211035                    b.HasKey("Id");
 211036
 211037                    b.HasIndex("AccessToken")
 211038                        .IsUnique();
 211039
 211040                    b.ToTable("ApiKeys");
 211041                });
 1042
 211043            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 211044                {
 211045                    b.Property<int>("Id")
 211046                        .ValueGeneratedOnAdd()
 211047                        .HasColumnType("INTEGER");
 211048
 211049                    b.Property<string>("AccessToken")
 211050                        .IsRequired()
 211051                        .HasColumnType("TEXT");
 211052
 211053                    b.Property<string>("AppName")
 211054                        .IsRequired()
 211055                        .HasMaxLength(64)
 211056                        .HasColumnType("TEXT");
 211057
 211058                    b.Property<string>("AppVersion")
 211059                        .IsRequired()
 211060                        .HasMaxLength(32)
 211061                        .HasColumnType("TEXT");
 211062
 211063                    b.Property<DateTime>("DateCreated")
 211064                        .HasColumnType("TEXT");
 211065
 211066                    b.Property<DateTime>("DateLastActivity")
 211067                        .HasColumnType("TEXT");
 211068
 211069                    b.Property<DateTime>("DateModified")
 211070                        .HasColumnType("TEXT");
 211071
 211072                    b.Property<string>("DeviceId")
 211073                        .IsRequired()
 211074                        .HasMaxLength(256)
 211075                        .HasColumnType("TEXT");
 211076
 211077                    b.Property<string>("DeviceName")
 211078                        .IsRequired()
 211079                        .HasMaxLength(64)
 211080                        .HasColumnType("TEXT");
 211081
 211082                    b.Property<bool>("IsActive")
 211083                        .HasColumnType("INTEGER");
 211084
 211085                    b.Property<Guid>("UserId")
 211086                        .HasColumnType("TEXT");
 211087
 211088                    b.HasKey("Id");
 211089
 211090                    b.HasIndex("DeviceId");
 211091
 211092                    b.HasIndex("AccessToken", "DateLastActivity");
 211093
 211094                    b.HasIndex("DeviceId", "DateLastActivity");
 211095
 211096                    b.HasIndex("UserId", "DeviceId");
 211097
 211098                    b.ToTable("Devices");
 211099                });
 1100
 211101            modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
 211102                {
 211103                    b.Property<int>("Id")
 211104                        .ValueGeneratedOnAdd()
 211105                        .HasColumnType("INTEGER");
 211106
 211107                    b.Property<string>("CustomName")
 211108                        .HasColumnType("TEXT");
 211109
 211110                    b.Property<string>("DeviceId")
 211111                        .IsRequired()
 211112                        .HasColumnType("TEXT");
 211113
 211114                    b.HasKey("Id");
 211115
 211116                    b.HasIndex("DeviceId")
 211117                        .IsUnique();
 211118
 211119                    b.ToTable("DeviceOptions");
 211120                });
 1121
 211122            modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
 211123                {
 211124                    b.Property<Guid>("ItemId")
 211125                        .HasColumnType("TEXT");
 211126
 211127                    b.Property<int>("Width")
 211128                        .HasColumnType("INTEGER");
 211129
 211130                    b.Property<int>("Bandwidth")
 211131                        .HasColumnType("INTEGER");
 211132
 211133                    b.Property<int>("Height")
 211134                        .HasColumnType("INTEGER");
 211135
 211136                    b.Property<int>("Interval")
 211137                        .HasColumnType("INTEGER");
 211138
 211139                    b.Property<int>("ThumbnailCount")
 211140                        .HasColumnType("INTEGER");
 211141
 211142                    b.Property<int>("TileHeight")
 211143                        .HasColumnType("INTEGER");
 211144
 211145                    b.Property<int>("TileWidth")
 211146                        .HasColumnType("INTEGER");
 211147
 211148                    b.HasKey("ItemId", "Width");
 211149
 211150                    b.ToTable("TrickplayInfos");
 211151                });
 1152
 211153            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 211154                {
 211155                    b.Property<Guid>("Id")
 211156                        .ValueGeneratedOnAdd()
 211157                        .HasColumnType("TEXT");
 211158
 211159                    b.Property<string>("AudioLanguagePreference")
 211160                        .HasMaxLength(255)
 211161                        .HasColumnType("TEXT");
 211162
 211163                    b.Property<string>("AuthenticationProviderId")
 211164                        .IsRequired()
 211165                        .HasMaxLength(255)
 211166                        .HasColumnType("TEXT");
 211167
 211168                    b.Property<string>("CastReceiverId")
 211169                        .HasMaxLength(32)
 211170                        .HasColumnType("TEXT");
 211171
 211172                    b.Property<bool>("DisplayCollectionsView")
 211173                        .HasColumnType("INTEGER");
 211174
 211175                    b.Property<bool>("DisplayMissingEpisodes")
 211176                        .HasColumnType("INTEGER");
 211177
 211178                    b.Property<bool>("EnableAutoLogin")
 211179                        .HasColumnType("INTEGER");
 211180
 211181                    b.Property<bool>("EnableLocalPassword")
 211182                        .HasColumnType("INTEGER");
 211183
 211184                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 211185                        .HasColumnType("INTEGER");
 211186
 211187                    b.Property<bool>("EnableUserPreferenceAccess")
 211188                        .HasColumnType("INTEGER");
 211189
 211190                    b.Property<bool>("HidePlayedInLatest")
 211191                        .HasColumnType("INTEGER");
 211192
 211193                    b.Property<long>("InternalId")
 211194                        .HasColumnType("INTEGER");
 211195
 211196                    b.Property<int>("InvalidLoginAttemptCount")
 211197                        .HasColumnType("INTEGER");
 211198
 211199                    b.Property<DateTime?>("LastActivityDate")
 211200                        .HasColumnType("TEXT");
 211201
 211202                    b.Property<DateTime?>("LastLoginDate")
 211203                        .HasColumnType("TEXT");
 211204
 211205                    b.Property<int?>("LoginAttemptsBeforeLockout")
 211206                        .HasColumnType("INTEGER");
 211207
 211208                    b.Property<int>("MaxActiveSessions")
 211209                        .HasColumnType("INTEGER");
 211210
 211211                    b.Property<int?>("MaxParentalAgeRating")
 211212                        .HasColumnType("INTEGER");
 211213
 211214                    b.Property<bool>("MustUpdatePassword")
 211215                        .HasColumnType("INTEGER");
 211216
 211217                    b.Property<string>("Password")
 211218                        .HasMaxLength(65535)
 211219                        .HasColumnType("TEXT");
 211220
 211221                    b.Property<string>("PasswordResetProviderId")
 211222                        .IsRequired()
 211223                        .HasMaxLength(255)
 211224                        .HasColumnType("TEXT");
 211225
 211226                    b.Property<bool>("PlayDefaultAudioTrack")
 211227                        .HasColumnType("INTEGER");
 211228
 211229                    b.Property<bool>("RememberAudioSelections")
 211230                        .HasColumnType("INTEGER");
 211231
 211232                    b.Property<bool>("RememberSubtitleSelections")
 211233                        .HasColumnType("INTEGER");
 211234
 211235                    b.Property<int?>("RemoteClientBitrateLimit")
 211236                        .HasColumnType("INTEGER");
 211237
 211238                    b.Property<uint>("RowVersion")
 211239                        .IsConcurrencyToken()
 211240                        .HasColumnType("INTEGER");
 211241
 211242                    b.Property<string>("SubtitleLanguagePreference")
 211243                        .HasMaxLength(255)
 211244                        .HasColumnType("TEXT");
 211245
 211246                    b.Property<int>("SubtitleMode")
 211247                        .HasColumnType("INTEGER");
 211248
 211249                    b.Property<int>("SyncPlayAccess")
 211250                        .HasColumnType("INTEGER");
 211251
 211252                    b.Property<string>("Username")
 211253                        .IsRequired()
 211254                        .HasMaxLength(255)
 211255                        .HasColumnType("TEXT")
 211256                        .UseCollation("NOCASE");
 211257
 211258                    b.HasKey("Id");
 211259
 211260                    b.HasIndex("Username")
 211261                        .IsUnique();
 211262
 211263                    b.ToTable("Users");
 211264                });
 1265
 211266            modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
 211267                {
 211268                    b.Property<Guid>("ItemId")
 211269                        .HasColumnType("TEXT");
 211270
 211271                    b.Property<Guid>("UserId")
 211272                        .HasColumnType("TEXT");
 211273
 211274                    b.Property<string>("CustomDataKey")
 211275                        .HasColumnType("TEXT");
 211276
 211277                    b.Property<int?>("AudioStreamIndex")
 211278                        .HasColumnType("INTEGER");
 211279
 211280                    b.Property<bool>("IsFavorite")
 211281                        .HasColumnType("INTEGER");
 211282
 211283                    b.Property<DateTime?>("LastPlayedDate")
 211284                        .HasColumnType("TEXT");
 211285
 211286                    b.Property<bool?>("Likes")
 211287                        .HasColumnType("INTEGER");
 211288
 211289                    b.Property<int>("PlayCount")
 211290                        .HasColumnType("INTEGER");
 211291
 211292                    b.Property<long>("PlaybackPositionTicks")
 211293                        .HasColumnType("INTEGER");
 211294
 211295                    b.Property<bool>("Played")
 211296                        .HasColumnType("INTEGER");
 211297
 211298                    b.Property<double?>("Rating")
 211299                        .HasColumnType("REAL");
 211300
 211301                    b.Property<int?>("SubtitleStreamIndex")
 211302                        .HasColumnType("INTEGER");
 211303
 211304                    b.HasKey("ItemId", "UserId", "CustomDataKey");
 211305
 211306                    b.HasIndex("UserId");
 211307
 211308                    b.HasIndex("ItemId", "UserId", "IsFavorite");
 211309
 211310                    b.HasIndex("ItemId", "UserId", "LastPlayedDate");
 211311
 211312                    b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
 211313
 211314                    b.HasIndex("ItemId", "UserId", "Played");
 211315
 211316                    b.ToTable("UserData");
 211317                });
 1318
 211319            modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
 211320                {
 211321                    b.HasOne("Jellyfin.Data.Entities.User", null)
 211322                        .WithMany("AccessSchedules")
 211323                        .HasForeignKey("UserId")
 211324                        .OnDelete(DeleteBehavior.Cascade)
 211325                        .IsRequired();
 211326                });
 1327
 211328            modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
 211329                {
 211330                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211331                        .WithMany("Children")
 211332                        .HasForeignKey("ItemId")
 211333                        .OnDelete(DeleteBehavior.Cascade)
 211334                        .IsRequired();
 211335
 211336                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "ParentItem")
 211337                        .WithMany("ParentAncestors")
 211338                        .HasForeignKey("ParentItemId")
 211339                        .OnDelete(DeleteBehavior.Cascade)
 211340                        .IsRequired();
 211341
 211342                    b.Navigation("Item");
 211343
 211344                    b.Navigation("ParentItem");
 211345                });
 1346
 211347            modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
 211348                {
 211349                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211350                        .WithMany()
 211351                        .HasForeignKey("ItemId")
 211352                        .OnDelete(DeleteBehavior.Cascade)
 211353                        .IsRequired();
 211354
 211355                    b.Navigation("Item");
 211356                });
 1357
 211358            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
 211359                {
 211360                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211361                        .WithMany("Images")
 211362                        .HasForeignKey("ItemId")
 211363                        .OnDelete(DeleteBehavior.Cascade)
 211364                        .IsRequired();
 211365
 211366                    b.Navigation("Item");
 211367                });
 1368
 211369            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
 211370                {
 211371                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211372                        .WithMany("LockedFields")
 211373                        .HasForeignKey("ItemId")
 211374                        .OnDelete(DeleteBehavior.Cascade)
 211375                        .IsRequired();
 211376
 211377                    b.Navigation("Item");
 211378                });
 1379
 211380            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
 211381                {
 211382                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211383                        .WithMany("Provider")
 211384                        .HasForeignKey("ItemId")
 211385                        .OnDelete(DeleteBehavior.Cascade)
 211386                        .IsRequired();
 211387
 211388                    b.Navigation("Item");
 211389                });
 1390
 211391            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
 211392                {
 211393                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211394                        .WithMany("TrailerTypes")
 211395                        .HasForeignKey("ItemId")
 211396                        .OnDelete(DeleteBehavior.Cascade)
 211397                        .IsRequired();
 211398
 211399                    b.Navigation("Item");
 211400                });
 1401
 211402            modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
 211403                {
 211404                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211405                        .WithMany("Chapters")
 211406                        .HasForeignKey("ItemId")
 211407                        .OnDelete(DeleteBehavior.Cascade)
 211408                        .IsRequired();
 211409
 211410                    b.Navigation("Item");
 211411                });
 1412
 211413            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 211414                {
 211415                    b.HasOne("Jellyfin.Data.Entities.User", null)
 211416                        .WithMany("DisplayPreferences")
 211417                        .HasForeignKey("UserId")
 211418                        .OnDelete(DeleteBehavior.Cascade)
 211419                        .IsRequired();
 211420                });
 1421
 211422            modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
 211423                {
 211424                    b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
 211425                        .WithMany("HomeSections")
 211426                        .HasForeignKey("DisplayPreferencesId")
 211427                        .OnDelete(DeleteBehavior.Cascade)
 211428                        .IsRequired();
 211429                });
 1430
 211431            modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
 211432                {
 211433                    b.HasOne("Jellyfin.Data.Entities.User", null)
 211434                        .WithOne("ProfileImage")
 211435                        .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
 211436                        .OnDelete(DeleteBehavior.Cascade);
 211437                });
 1438
 211439            modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
 211440                {
 211441                    b.HasOne("Jellyfin.Data.Entities.User", null)
 211442                        .WithMany("ItemDisplayPreferences")
 211443                        .HasForeignKey("UserId")
 211444                        .OnDelete(DeleteBehavior.Cascade)
 211445                        .IsRequired();
 211446                });
 1447
 211448            modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
 211449                {
 211450                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211451                        .WithMany("ItemValues")
 211452                        .HasForeignKey("ItemId")
 211453                        .OnDelete(DeleteBehavior.Cascade)
 211454                        .IsRequired();
 211455
 211456                    b.HasOne("Jellyfin.Data.Entities.ItemValue", "ItemValue")
 211457                        .WithMany("BaseItemsMap")
 211458                        .HasForeignKey("ItemValueId")
 211459                        .OnDelete(DeleteBehavior.Cascade)
 211460                        .IsRequired();
 211461
 211462                    b.Navigation("Item");
 211463
 211464                    b.Navigation("ItemValue");
 211465                });
 1466
 211467            modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
 211468                {
 211469                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211470                        .WithMany("MediaStreams")
 211471                        .HasForeignKey("ItemId")
 211472                        .OnDelete(DeleteBehavior.Cascade)
 211473                        .IsRequired();
 211474
 211475                    b.Navigation("Item");
 211476                });
 1477
 211478            modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
 211479                {
 211480                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211481                        .WithMany("Peoples")
 211482                        .HasForeignKey("ItemId")
 211483                        .OnDelete(DeleteBehavior.Cascade)
 211484                        .IsRequired();
 211485
 211486                    b.HasOne("Jellyfin.Data.Entities.People", "People")
 211487                        .WithMany("BaseItems")
 211488                        .HasForeignKey("PeopleId")
 211489                        .OnDelete(DeleteBehavior.Cascade)
 211490                        .IsRequired();
 211491
 211492                    b.Navigation("Item");
 211493
 211494                    b.Navigation("People");
 211495                });
 1496
 211497            modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
 211498                {
 211499                    b.HasOne("Jellyfin.Data.Entities.User", null)
 211500                        .WithMany("Permissions")
 211501                        .HasForeignKey("UserId")
 211502                        .OnDelete(DeleteBehavior.Cascade);
 211503                });
 1504
 211505            modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
 211506                {
 211507                    b.HasOne("Jellyfin.Data.Entities.User", null)
 211508                        .WithMany("Preferences")
 211509                        .HasForeignKey("UserId")
 211510                        .OnDelete(DeleteBehavior.Cascade);
 211511                });
 1512
 211513            modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
 211514                {
 211515                    b.HasOne("Jellyfin.Data.Entities.User", "User")
 211516                        .WithMany()
 211517                        .HasForeignKey("UserId")
 211518                        .OnDelete(DeleteBehavior.Cascade)
 211519                        .IsRequired();
 211520
 211521                    b.Navigation("User");
 211522                });
 1523
 211524            modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
 211525                {
 211526                    b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
 211527                        .WithMany("UserData")
 211528                        .HasForeignKey("ItemId")
 211529                        .OnDelete(DeleteBehavior.Cascade)
 211530                        .IsRequired();
 211531
 211532                    b.HasOne("Jellyfin.Data.Entities.User", "User")
 211533                        .WithMany()
 211534                        .HasForeignKey("UserId")
 211535                        .OnDelete(DeleteBehavior.Cascade)
 211536                        .IsRequired();
 211537
 211538                    b.Navigation("Item");
 211539
 211540                    b.Navigation("User");
 211541                });
 1542
 211543            modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
 211544                {
 211545                    b.Navigation("Chapters");
 211546
 211547                    b.Navigation("Children");
 211548
 211549                    b.Navigation("Images");
 211550
 211551                    b.Navigation("ItemValues");
 211552
 211553                    b.Navigation("LockedFields");
 211554
 211555                    b.Navigation("MediaStreams");
 211556
 211557                    b.Navigation("ParentAncestors");
 211558
 211559                    b.Navigation("Peoples");
 211560
 211561                    b.Navigation("Provider");
 211562
 211563                    b.Navigation("TrailerTypes");
 211564
 211565                    b.Navigation("UserData");
 211566                });
 1567
 211568            modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
 211569                {
 211570                    b.Navigation("HomeSections");
 211571                });
 1572
 211573            modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
 211574                {
 211575                    b.Navigation("BaseItemsMap");
 211576                });
 1577
 211578            modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
 211579                {
 211580                    b.Navigation("BaseItems");
 211581                });
 1582
 211583            modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
 211584                {
 211585                    b.Navigation("AccessSchedules");
 211586
 211587                    b.Navigation("DisplayPreferences");
 211588
 211589                    b.Navigation("ItemDisplayPreferences");
 211590
 211591                    b.Navigation("Permissions");
 211592
 211593                    b.Navigation("Preferences");
 211594
 211595                    b.Navigation("ProfileImage");
 211596                });
 1597#pragma warning restore 612, 618
 211598        }
 1599    }
 1600}