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