< 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

Coverage history 0 25 50 75 100 3/26/2026 - 12:14:14 AM Line coverage: 84.5% (1805/2134) Total lines: 2302

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