< Summary - Jellyfin

Information
Class: Jellyfin.Server.Implementations.Migrations.JellyfinDbModelSnapshot
Assembly: Jellyfin.Database.Providers.Sqlite
File(s): /srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/JellyfinDbModelSnapshot.cs
Line coverage
100%
Covered lines: 1728
Uncovered lines: 0
Coverable lines: 1728
Total lines: 1806
Line coverage: 100%
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: 100% (1729/1729) Total lines: 18077/27/2026 - 12:16:14 AM Line coverage: 100% (1732/1732) Total lines: 18108/2/2026 - 12:17:28 AM Line coverage: 100% (1730/1730) Total lines: 180810/29/2026 - 12:17:11 AM Line coverage: 100% (1728/1728) Total lines: 1806

Coverage delta

Coverage delta 1 -1

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildModel(...)100%11100%

File(s)

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/JellyfinDbModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Jellyfin.Database.Implementations;
 4using Microsoft.EntityFrameworkCore;
 5using Microsoft.EntityFrameworkCore.Infrastructure;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7
 8#nullable disable
 9
 10namespace Jellyfin.Server.Implementations.Migrations
 11{
 12    [DbContext(typeof(JellyfinDbContext))]
 13    partial class JellyfinDbModelSnapshot : ModelSnapshot
 14    {
 15        protected override void BuildModel(ModelBuilder modelBuilder)
 16        {
 17#pragma warning disable 612, 618
 118            modelBuilder.HasAnnotation("ProductVersion", "10.0.11");
 19
 120            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 121                {
 122                    b.Property<int>("Id")
 123                        .ValueGeneratedOnAdd()
 124                        .HasColumnType("INTEGER");
 125
 126                    b.Property<int>("DayOfWeek")
 127                        .HasColumnType("INTEGER");
 128
 129                    b.Property<double>("EndHour")
 130                        .HasColumnType("REAL");
 131
 132                    b.Property<double>("StartHour")
 133                        .HasColumnType("REAL");
 134
 135                    b.Property<Guid>("UserId")
 136                        .HasColumnType("TEXT");
 137
 138                    b.HasKey("Id");
 139
 140                    b.HasIndex("UserId");
 141
 142                    b.ToTable("AccessSchedules");
 143
 144                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 145                });
 46
 147            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ActivityLog", b =>
 148                {
 149                    b.Property<int>("Id")
 150                        .ValueGeneratedOnAdd()
 151                        .HasColumnType("INTEGER");
 152
 153                    b.Property<DateTime>("DateCreated")
 154                        .HasColumnType("TEXT");
 155
 156                    b.Property<string>("ItemId")
 157                        .HasMaxLength(256)
 158                        .HasColumnType("TEXT");
 159
 160                    b.Property<int>("LogSeverity")
 161                        .HasColumnType("INTEGER");
 162
 163                    b.Property<string>("Name")
 164                        .IsRequired()
 165                        .HasMaxLength(512)
 166                        .HasColumnType("TEXT");
 167
 168                    b.Property<string>("Overview")
 169                        .HasMaxLength(512)
 170                        .HasColumnType("TEXT");
 171
 172                    b.Property<uint>("RowVersion")
 173                        .IsConcurrencyToken()
 174                        .HasColumnType("INTEGER");
 175
 176                    b.Property<string>("ShortOverview")
 177                        .HasMaxLength(512)
 178                        .HasColumnType("TEXT");
 179
 180                    b.Property<string>("Type")
 181                        .IsRequired()
 182                        .HasMaxLength(256)
 183                        .HasColumnType("TEXT");
 184
 185                    b.Property<Guid>("UserId")
 186                        .HasColumnType("TEXT");
 187
 188                    b.HasKey("Id");
 189
 190                    b.HasIndex("DateCreated");
 191
 192                    b.ToTable("ActivityLogs");
 193
 194                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 195                });
 96
 197            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 198                {
 199                    b.Property<Guid>("ItemId")
 1100                        .HasColumnType("TEXT");
 1101
 1102                    b.Property<Guid>("ParentItemId")
 1103                        .HasColumnType("TEXT");
 1104
 1105                    b.HasKey("ItemId", "ParentItemId");
 1106
 1107                    b.HasIndex("ParentItemId");
 1108
 1109                    b.ToTable("AncestorIds");
 1110
 1111                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1112                });
 113
 1114            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 1115                {
 1116                    b.Property<Guid>("ItemId")
 1117                        .HasColumnType("TEXT");
 1118
 1119                    b.Property<int>("Index")
 1120                        .HasColumnType("INTEGER");
 1121
 1122                    b.Property<string>("Codec")
 1123                        .HasColumnType("TEXT");
 1124
 1125                    b.Property<string>("CodecTag")
 1126                        .HasColumnType("TEXT");
 1127
 1128                    b.Property<string>("Comment")
 1129                        .HasColumnType("TEXT");
 1130
 1131                    b.Property<string>("Filename")
 1132                        .HasColumnType("TEXT");
 1133
 1134                    b.Property<string>("MimeType")
 1135                        .HasColumnType("TEXT");
 1136
 1137                    b.HasKey("ItemId", "Index");
 1138
 1139                    b.ToTable("AttachmentStreamInfos");
 1140
 1141                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1142                });
 143
 1144            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 1145                {
 1146                    b.Property<Guid>("Id")
 1147                        .ValueGeneratedOnAdd()
 1148                        .HasColumnType("TEXT");
 1149
 1150                    b.Property<string>("Album")
 1151                        .HasColumnType("TEXT");
 1152
 1153                    b.Property<string>("AlbumArtists")
 1154                        .HasColumnType("TEXT");
 1155
 1156                    b.Property<string>("Artists")
 1157                        .HasColumnType("TEXT");
 1158
 1159                    b.Property<int?>("Audio")
 1160                        .HasColumnType("INTEGER");
 1161
 1162                    b.Property<Guid?>("ChannelId")
 1163                        .HasColumnType("TEXT");
 1164
 1165                    b.Property<string>("CleanName")
 1166                        .HasColumnType("TEXT");
 1167
 1168                    b.Property<float?>("CommunityRating")
 1169                        .HasColumnType("REAL");
 1170
 1171                    b.Property<float?>("CriticRating")
 1172                        .HasColumnType("REAL");
 1173
 1174                    b.Property<string>("CustomRating")
 1175                        .HasColumnType("TEXT");
 1176
 1177                    b.Property<string>("Data")
 1178                        .HasColumnType("TEXT");
 1179
 1180                    b.Property<DateTime?>("DateCreated")
 1181                        .HasColumnType("TEXT");
 1182
 1183                    b.Property<DateTime?>("DateLastMediaAdded")
 1184                        .HasColumnType("TEXT");
 1185
 1186                    b.Property<DateTime?>("DateLastRefreshed")
 1187                        .HasColumnType("TEXT");
 1188
 1189                    b.Property<DateTime?>("DateLastSaved")
 1190                        .HasColumnType("TEXT");
 1191
 1192                    b.Property<DateTime?>("DateModified")
 1193                        .HasColumnType("TEXT");
 1194
 1195                    b.Property<DateTime?>("EndDate")
 1196                        .HasColumnType("TEXT");
 1197
 1198                    b.Property<string>("EpisodeTitle")
 1199                        .HasColumnType("TEXT");
 1200
 1201                    b.Property<string>("ExternalId")
 1202                        .HasColumnType("TEXT");
 1203
 1204                    b.Property<string>("ExternalSeriesId")
 1205                        .HasColumnType("TEXT");
 1206
 1207                    b.Property<string>("ExternalServiceId")
 1208                        .HasColumnType("TEXT");
 1209
 1210                    b.Property<int?>("ExtraType")
 1211                        .HasColumnType("INTEGER");
 1212
 1213                    b.Property<string>("ForcedSortName")
 1214                        .HasColumnType("TEXT");
 1215
 1216                    b.Property<string>("Genres")
 1217                        .HasColumnType("TEXT");
 1218
 1219                    b.Property<int?>("Height")
 1220                        .HasColumnType("INTEGER");
 1221
 1222                    b.Property<int?>("IndexNumber")
 1223                        .HasColumnType("INTEGER");
 1224
 1225                    b.Property<int?>("InheritedParentalRatingSubValue")
 1226                        .HasColumnType("INTEGER");
 1227
 1228                    b.Property<int?>("InheritedParentalRatingValue")
 1229                        .HasColumnType("INTEGER");
 1230
 1231                    b.Property<bool>("IsFolder")
 1232                        .HasColumnType("INTEGER");
 1233
 1234                    b.Property<bool>("IsInMixedFolder")
 1235                        .HasColumnType("INTEGER");
 1236
 1237                    b.Property<bool>("IsLocked")
 1238                        .HasColumnType("INTEGER");
 1239
 1240                    b.Property<bool>("IsMovie")
 1241                        .HasColumnType("INTEGER");
 1242
 1243                    b.Property<bool>("IsRepeat")
 1244                        .HasColumnType("INTEGER");
 1245
 1246                    b.Property<bool>("IsSeries")
 1247                        .HasColumnType("INTEGER");
 1248
 1249                    b.Property<bool>("IsVirtualItem")
 1250                        .HasColumnType("INTEGER");
 1251
 1252                    b.Property<float?>("LUFS")
 1253                        .HasColumnType("REAL");
 1254
 1255                    b.Property<string>("MediaType")
 1256                        .HasColumnType("TEXT");
 1257
 1258                    b.Property<string>("Name")
 1259                        .HasColumnType("TEXT");
 1260
 1261                    b.Property<float?>("NormalizationGain")
 1262                        .HasColumnType("REAL");
 1263
 1264                    b.Property<string>("OfficialRating")
 1265                        .HasColumnType("TEXT");
 1266
 1267                    b.Property<string>("OriginalLanguage")
 1268                        .HasColumnType("TEXT");
 1269
 1270                    b.Property<string>("OriginalTitle")
 1271                        .HasColumnType("TEXT");
 1272
 1273                    b.Property<string>("Overview")
 1274                        .HasColumnType("TEXT");
 1275
 1276                    b.Property<Guid?>("OwnerId")
 1277                        .HasColumnType("TEXT");
 1278
 1279                    b.Property<Guid?>("ParentId")
 1280                        .HasColumnType("TEXT");
 1281
 1282                    b.Property<int?>("ParentIndexNumber")
 1283                        .HasColumnType("INTEGER");
 1284
 1285                    b.Property<string>("Path")
 1286                        .HasColumnType("TEXT");
 1287
 1288                    b.Property<string>("PreferredMetadataCountryCode")
 1289                        .HasColumnType("TEXT");
 1290
 1291                    b.Property<string>("PreferredMetadataLanguage")
 1292                        .HasColumnType("TEXT");
 1293
 1294                    b.Property<DateTime?>("PremiereDate")
 1295                        .HasColumnType("TEXT");
 1296
 1297                    b.Property<string>("PresentationUniqueKey")
 1298                        .HasColumnType("TEXT");
 1299
 1300                    b.Property<Guid?>("PrimaryVersionId")
 1301                        .HasColumnType("TEXT");
 1302
 1303                    b.Property<string>("ProductionLocations")
 1304                        .HasColumnType("TEXT");
 1305
 1306                    b.Property<int?>("ProductionYear")
 1307                        .HasColumnType("INTEGER");
 1308
 1309                    b.Property<long?>("RunTimeTicks")
 1310                        .HasColumnType("INTEGER");
 1311
 1312                    b.Property<Guid?>("SeasonId")
 1313                        .HasColumnType("TEXT");
 1314
 1315                    b.Property<string>("SeasonName")
 1316                        .HasColumnType("TEXT");
 1317
 1318                    b.Property<Guid?>("SeriesId")
 1319                        .HasColumnType("TEXT");
 1320
 1321                    b.Property<string>("SeriesName")
 1322                        .HasColumnType("TEXT");
 1323
 1324                    b.Property<string>("SeriesPresentationUniqueKey")
 1325                        .HasColumnType("TEXT");
 1326
 1327                    b.Property<string>("ShowId")
 1328                        .HasColumnType("TEXT");
 1329
 1330                    b.Property<long?>("Size")
 1331                        .HasColumnType("INTEGER");
 1332
 1333                    b.Property<string>("SortName")
 1334                        .HasColumnType("TEXT");
 1335
 1336                    b.Property<DateTime?>("StartDate")
 1337                        .HasColumnType("TEXT");
 1338
 1339                    b.Property<string>("Studios")
 1340                        .HasColumnType("TEXT");
 1341
 1342                    b.Property<string>("Tagline")
 1343                        .HasColumnType("TEXT");
 1344
 1345                    b.Property<string>("Tags")
 1346                        .HasColumnType("TEXT");
 1347
 1348                    b.Property<Guid?>("TopParentId")
 1349                        .HasColumnType("TEXT");
 1350
 1351                    b.Property<int?>("TotalBitrate")
 1352                        .HasColumnType("INTEGER");
 1353
 1354                    b.Property<string>("Type")
 1355                        .IsRequired()
 1356                        .HasColumnType("TEXT");
 1357
 1358                    b.Property<string>("UnratedType")
 1359                        .HasColumnType("TEXT");
 1360
 1361                    b.Property<int?>("Width")
 1362                        .HasColumnType("INTEGER");
 1363
 1364                    b.HasKey("Id");
 1365
 1366                    b.HasIndex("Name");
 1367
 1368                    b.HasIndex("OwnerId")
 1369                        .HasFilter("\"OwnerId\" IS NOT NULL");
 1370
 1371                    b.HasIndex("ParentId");
 1372
 1373                    b.HasIndex("Path");
 1374
 1375                    b.HasIndex("PresentationUniqueKey");
 1376
 1377                    b.HasIndex("PrimaryVersionId")
 1378                        .HasFilter("\"PrimaryVersionId\" IS NOT NULL");
 1379
 1380                    b.HasIndex("SeasonId");
 1381
 1382                    b.HasIndex("SeriesId");
 1383
 1384                    b.HasIndex("SeriesName");
 1385
 1386                    b.HasIndex("ExtraType", "OwnerId")
 1387                        .HasFilter("\"ExtraType\" IS NOT NULL");
 1388
 1389                    b.HasIndex("TopParentId", "Id");
 1390
 1391                    b.HasIndex("Type", "CleanName");
 1392
 1393                    b.HasIndex("TopParentId", "Type", "IsVirtualItem")
 1394                        .HasFilter("\"PrimaryVersionId\" IS NULL AND (\"OwnerId\" IS NULL OR \"ExtraType\" IS NOT NULL)"
 1395
 1396                    b.HasIndex("Type", "TopParentId", "Id");
 1397
 1398                    b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
 1399
 1400                    b.HasIndex("Type", "TopParentId", "SortName");
 1401
 1402                    b.HasIndex("Type", "TopParentId", "StartDate");
 1403
 1404                    b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
 1405
 1406                    b.HasIndex("TopParentId", "IsFolder", "IsVirtualItem", "DateCreated");
 1407
 1408                    b.HasIndex("TopParentId", "MediaType", "IsVirtualItem", "DateCreated");
 1409
 1410                    b.HasIndex("TopParentId", "Type", "IsVirtualItem", "DateCreated");
 1411
 1412                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
 1413
 1414                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "ParentIndexNumber", "IndexNumber");
 1415
 1416                    b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
 1417
 1418                    b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 1419
 1420                    b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
 1421
 1422                    b.ToTable("BaseItems");
 1423
 1424                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1425
 1426                    b.HasData(
 1427                        new
 1428                        {
 1429                            Id = new Guid("00000000-0000-0000-0000-000000000001"),
 1430                            IsFolder = false,
 1431                            IsInMixedFolder = false,
 1432                            IsLocked = false,
 1433                            IsMovie = false,
 1434                            IsRepeat = false,
 1435                            IsSeries = false,
 1436                            IsVirtualItem = false,
 1437                            Name = "This is a placeholder item for UserData that has been detached from its original ite
 1438                            Type = "PLACEHOLDER"
 1439                        });
 1440                });
 441
 1442            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 1443                {
 1444                    b.Property<Guid>("Id")
 1445                        .ValueGeneratedOnAdd()
 1446                        .HasColumnType("TEXT");
 1447
 1448                    b.Property<byte[]>("Blurhash")
 1449                        .HasColumnType("BLOB");
 1450
 1451                    b.Property<DateTime?>("DateModified")
 1452                        .HasColumnType("TEXT");
 1453
 1454                    b.Property<int>("Height")
 1455                        .HasColumnType("INTEGER");
 1456
 1457                    b.Property<int>("ImageType")
 1458                        .HasColumnType("INTEGER");
 1459
 1460                    b.Property<Guid>("ItemId")
 1461                        .HasColumnType("TEXT");
 1462
 1463                    b.Property<string>("Path")
 1464                        .IsRequired()
 1465                        .HasColumnType("TEXT");
 1466
 1467                    b.Property<int>("Width")
 1468                        .HasColumnType("INTEGER");
 1469
 1470                    b.HasKey("Id");
 1471
 1472                    b.HasIndex("ItemId", "ImageType");
 1473
 1474                    b.ToTable("BaseItemImageInfos");
 1475
 1476                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1477                });
 478
 1479            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 1480                {
 1481                    b.Property<int>("Id")
 1482                        .HasColumnType("INTEGER");
 1483
 1484                    b.Property<Guid>("ItemId")
 1485                        .HasColumnType("TEXT");
 1486
 1487                    b.HasKey("Id", "ItemId");
 1488
 1489                    b.HasIndex("ItemId");
 1490
 1491                    b.ToTable("BaseItemMetadataFields");
 1492
 1493                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1494                });
 495
 1496            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 1497                {
 1498                    b.Property<Guid>("ItemId")
 1499                        .HasColumnType("TEXT");
 1500
 1501                    b.Property<string>("ProviderId")
 1502                        .HasColumnType("TEXT");
 1503
 1504                    b.Property<string>("ProviderValue")
 1505                        .IsRequired()
 1506                        .HasColumnType("TEXT");
 1507
 1508                    b.HasKey("ItemId", "ProviderId");
 1509
 1510                    b.HasIndex("ProviderId", "ItemId", "ProviderValue");
 1511
 1512                    b.ToTable("BaseItemProviders");
 1513
 1514                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1515                });
 516
 1517            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 1518                {
 1519                    b.Property<int>("Id")
 1520                        .HasColumnType("INTEGER");
 1521
 1522                    b.Property<Guid>("ItemId")
 1523                        .HasColumnType("TEXT");
 1524
 1525                    b.HasKey("Id", "ItemId");
 1526
 1527                    b.HasIndex("ItemId");
 1528
 1529                    b.ToTable("BaseItemTrailerTypes");
 1530
 1531                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1532                });
 533
 1534            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 1535                {
 1536                    b.Property<Guid>("ItemId")
 1537                        .HasColumnType("TEXT");
 1538
 1539                    b.Property<int>("ChapterIndex")
 1540                        .HasColumnType("INTEGER");
 1541
 1542                    b.Property<DateTime?>("ImageDateModified")
 1543                        .HasColumnType("TEXT");
 1544
 1545                    b.Property<string>("ImagePath")
 1546                        .HasColumnType("TEXT");
 1547
 1548                    b.Property<string>("Name")
 1549                        .HasColumnType("TEXT");
 1550
 1551                    b.Property<long>("StartPositionTicks")
 1552                        .HasColumnType("INTEGER");
 1553
 1554                    b.HasKey("ItemId", "ChapterIndex");
 1555
 1556                    b.ToTable("Chapters");
 1557
 1558                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1559                });
 560
 1561            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.CustomItemDisplayPreferences", b =>
 1562                {
 1563                    b.Property<int>("Id")
 1564                        .ValueGeneratedOnAdd()
 1565                        .HasColumnType("INTEGER");
 1566
 1567                    b.Property<string>("Client")
 1568                        .IsRequired()
 1569                        .HasMaxLength(32)
 1570                        .HasColumnType("TEXT");
 1571
 1572                    b.Property<Guid>("ItemId")
 1573                        .HasColumnType("TEXT");
 1574
 1575                    b.Property<string>("Key")
 1576                        .IsRequired()
 1577                        .HasColumnType("TEXT");
 1578
 1579                    b.Property<Guid>("UserId")
 1580                        .HasColumnType("TEXT");
 1581
 1582                    b.Property<string>("Value")
 1583                        .HasColumnType("TEXT");
 1584
 1585                    b.HasKey("Id");
 1586
 1587                    b.HasIndex("UserId", "ItemId", "Client", "Key")
 1588                        .IsUnique();
 1589
 1590                    b.ToTable("CustomItemDisplayPreferences");
 1591
 1592                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1593                });
 594
 1595            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 1596                {
 1597                    b.Property<int>("Id")
 1598                        .ValueGeneratedOnAdd()
 1599                        .HasColumnType("INTEGER");
 1600
 1601                    b.Property<int>("ChromecastVersion")
 1602                        .HasColumnType("INTEGER");
 1603
 1604                    b.Property<string>("Client")
 1605                        .IsRequired()
 1606                        .HasMaxLength(32)
 1607                        .HasColumnType("TEXT");
 1608
 1609                    b.Property<string>("DashboardTheme")
 1610                        .HasMaxLength(32)
 1611                        .HasColumnType("TEXT");
 1612
 1613                    b.Property<bool>("EnableNextVideoInfoOverlay")
 1614                        .HasColumnType("INTEGER");
 1615
 1616                    b.Property<int?>("IndexBy")
 1617                        .HasColumnType("INTEGER");
 1618
 1619                    b.Property<Guid>("ItemId")
 1620                        .HasColumnType("TEXT");
 1621
 1622                    b.Property<int>("ScrollDirection")
 1623                        .HasColumnType("INTEGER");
 1624
 1625                    b.Property<bool>("ShowBackdrop")
 1626                        .HasColumnType("INTEGER");
 1627
 1628                    b.Property<bool>("ShowSidebar")
 1629                        .HasColumnType("INTEGER");
 1630
 1631                    b.Property<int>("SkipBackwardLength")
 1632                        .HasColumnType("INTEGER");
 1633
 1634                    b.Property<int>("SkipForwardLength")
 1635                        .HasColumnType("INTEGER");
 1636
 1637                    b.Property<string>("TvHome")
 1638                        .HasMaxLength(32)
 1639                        .HasColumnType("TEXT");
 1640
 1641                    b.Property<Guid>("UserId")
 1642                        .HasColumnType("TEXT");
 1643
 1644                    b.HasKey("Id");
 1645
 1646                    b.HasIndex("UserId", "ItemId", "Client")
 1647                        .IsUnique();
 1648
 1649                    b.ToTable("DisplayPreferences");
 1650
 1651                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1652                });
 653
 1654            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 1655                {
 1656                    b.Property<int>("Id")
 1657                        .ValueGeneratedOnAdd()
 1658                        .HasColumnType("INTEGER");
 1659
 1660                    b.Property<int>("DisplayPreferencesId")
 1661                        .HasColumnType("INTEGER");
 1662
 1663                    b.Property<int>("Order")
 1664                        .HasColumnType("INTEGER");
 1665
 1666                    b.Property<int>("Type")
 1667                        .HasColumnType("INTEGER");
 1668
 1669                    b.HasKey("Id");
 1670
 1671                    b.HasIndex("DisplayPreferencesId");
 1672
 1673                    b.ToTable("HomeSection");
 1674
 1675                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1676                });
 677
 1678            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 1679                {
 1680                    b.Property<int>("Id")
 1681                        .ValueGeneratedOnAdd()
 1682                        .HasColumnType("INTEGER");
 1683
 1684                    b.Property<DateTime>("LastModified")
 1685                        .HasColumnType("TEXT");
 1686
 1687                    b.Property<string>("Path")
 1688                        .IsRequired()
 1689                        .HasMaxLength(512)
 1690                        .HasColumnType("TEXT");
 1691
 1692                    b.Property<Guid?>("UserId")
 1693                        .HasColumnType("TEXT");
 1694
 1695                    b.HasKey("Id");
 1696
 1697                    b.HasIndex("UserId")
 1698                        .IsUnique();
 1699
 1700                    b.ToTable("ImageInfos");
 1701
 1702                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1703                });
 704
 1705            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 1706                {
 1707                    b.Property<int>("Id")
 1708                        .ValueGeneratedOnAdd()
 1709                        .HasColumnType("INTEGER");
 1710
 1711                    b.Property<string>("Client")
 1712                        .IsRequired()
 1713                        .HasMaxLength(32)
 1714                        .HasColumnType("TEXT");
 1715
 1716                    b.Property<int?>("IndexBy")
 1717                        .HasColumnType("INTEGER");
 1718
 1719                    b.Property<Guid>("ItemId")
 1720                        .HasColumnType("TEXT");
 1721
 1722                    b.Property<bool>("RememberIndexing")
 1723                        .HasColumnType("INTEGER");
 1724
 1725                    b.Property<bool>("RememberSorting")
 1726                        .HasColumnType("INTEGER");
 1727
 1728                    b.Property<string>("SortBy")
 1729                        .IsRequired()
 1730                        .HasMaxLength(64)
 1731                        .HasColumnType("TEXT");
 1732
 1733                    b.Property<int>("SortOrder")
 1734                        .HasColumnType("INTEGER");
 1735
 1736                    b.Property<Guid>("UserId")
 1737                        .HasColumnType("TEXT");
 1738
 1739                    b.Property<int>("ViewType")
 1740                        .HasColumnType("INTEGER");
 1741
 1742                    b.HasKey("Id");
 1743
 1744                    b.HasIndex("UserId");
 1745
 1746                    b.ToTable("ItemDisplayPreferences");
 1747
 1748                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1749                });
 750
 1751            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 1752                {
 1753                    b.Property<Guid>("ItemValueId")
 1754                        .ValueGeneratedOnAdd()
 1755                        .HasColumnType("TEXT");
 1756
 1757                    b.Property<string>("CleanValue")
 1758                        .IsRequired()
 1759                        .HasColumnType("TEXT");
 1760
 1761                    b.Property<int>("Type")
 1762                        .HasColumnType("INTEGER");
 1763
 1764                    b.Property<string>("Value")
 1765                        .IsRequired()
 1766                        .HasColumnType("TEXT");
 1767
 1768                    b.HasKey("ItemValueId");
 1769
 1770                    b.HasIndex("Type", "CleanValue");
 1771
 1772                    b.HasIndex("Type", "Value")
 1773                        .IsUnique();
 1774
 1775                    b.ToTable("ItemValues");
 1776
 1777                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1778                });
 779
 1780            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 1781                {
 1782                    b.Property<Guid>("ItemValueId")
 1783                        .HasColumnType("TEXT");
 1784
 1785                    b.Property<Guid>("ItemId")
 1786                        .HasColumnType("TEXT");
 1787
 1788                    b.HasKey("ItemValueId", "ItemId");
 1789
 1790                    b.HasIndex("ItemId");
 1791
 1792                    b.ToTable("ItemValuesMap");
 1793
 1794                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1795                });
 796
 1797            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 1798                {
 1799                    b.Property<Guid>("ItemId")
 1800                        .HasColumnType("TEXT");
 1801
 1802                    b.PrimitiveCollection<string>("KeyframeTicks")
 1803                        .HasColumnType("TEXT");
 1804
 1805                    b.Property<long>("TotalDuration")
 1806                        .HasColumnType("INTEGER");
 1807
 1808                    b.HasKey("ItemId");
 1809
 1810                    b.ToTable("KeyframeData");
 1811
 1812                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1813                });
 814
 1815            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 1816                {
 1817                    b.Property<Guid>("ParentId")
 1818                        .HasColumnType("TEXT");
 1819
 1820                    b.Property<int>("SortOrder")
 1821                        .HasColumnType("INTEGER");
 1822
 1823                    b.Property<Guid>("ChildId")
 1824                        .HasColumnType("TEXT");
 1825
 1826                    b.Property<int>("ChildType")
 1827                        .HasColumnType("INTEGER");
 1828
 1829                    b.HasKey("ParentId", "SortOrder");
 1830
 1831                    b.HasIndex("ChildId", "ChildType");
 1832
 1833                    b.HasIndex("ParentId", "ChildType");
 1834
 1835                    b.ToTable("LinkedChildren", (string)null);
 1836
 1837                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1838                });
 839
 1840            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaSegment", b =>
 1841                {
 1842                    b.Property<Guid>("Id")
 1843                        .ValueGeneratedOnAdd()
 1844                        .HasColumnType("TEXT");
 1845
 1846                    b.Property<long>("EndTicks")
 1847                        .HasColumnType("INTEGER");
 1848
 1849                    b.Property<Guid>("ItemId")
 1850                        .HasColumnType("TEXT");
 1851
 1852                    b.Property<string>("SegmentProviderId")
 1853                        .IsRequired()
 1854                        .HasColumnType("TEXT");
 1855
 1856                    b.Property<long>("StartTicks")
 1857                        .HasColumnType("INTEGER");
 1858
 1859                    b.Property<int>("Type")
 1860                        .HasColumnType("INTEGER");
 1861
 1862                    b.HasKey("Id");
 1863
 1864                    b.ToTable("MediaSegments");
 1865
 1866                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 1867                });
 868
 1869            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 1870                {
 1871                    b.Property<Guid>("ItemId")
 1872                        .HasColumnType("TEXT");
 1873
 1874                    b.Property<int>("StreamIndex")
 1875                        .HasColumnType("INTEGER");
 1876
 1877                    b.Property<string>("AspectRatio")
 1878                        .HasColumnType("TEXT");
 1879
 1880                    b.Property<float?>("AverageFrameRate")
 1881                        .HasColumnType("REAL");
 1882
 1883                    b.Property<int?>("BitDepth")
 1884                        .HasColumnType("INTEGER");
 1885
 1886                    b.Property<int?>("BitRate")
 1887                        .HasColumnType("INTEGER");
 1888
 1889                    b.Property<int?>("BlPresentFlag")
 1890                        .HasColumnType("INTEGER");
 1891
 1892                    b.Property<string>("ChannelLayout")
 1893                        .HasColumnType("TEXT");
 1894
 1895                    b.Property<int?>("Channels")
 1896                        .HasColumnType("INTEGER");
 1897
 1898                    b.Property<string>("Codec")
 1899                        .HasColumnType("TEXT");
 1900
 1901                    b.Property<string>("CodecTag")
 1902                        .HasColumnType("TEXT");
 1903
 1904                    b.Property<string>("CodecTimeBase")
 1905                        .HasColumnType("TEXT");
 1906
 1907                    b.Property<string>("ColorPrimaries")
 1908                        .HasColumnType("TEXT");
 1909
 1910                    b.Property<string>("ColorSpace")
 1911                        .HasColumnType("TEXT");
 1912
 1913                    b.Property<string>("ColorTransfer")
 1914                        .HasColumnType("TEXT");
 1915
 1916                    b.Property<string>("Comment")
 1917                        .HasColumnType("TEXT");
 1918
 1919                    b.Property<int?>("DvBlSignalCompatibilityId")
 1920                        .HasColumnType("INTEGER");
 1921
 1922                    b.Property<int?>("DvLevel")
 1923                        .HasColumnType("INTEGER");
 1924
 1925                    b.Property<int?>("DvProfile")
 1926                        .HasColumnType("INTEGER");
 1927
 1928                    b.Property<int?>("DvVersionMajor")
 1929                        .HasColumnType("INTEGER");
 1930
 1931                    b.Property<int?>("DvVersionMinor")
 1932                        .HasColumnType("INTEGER");
 1933
 1934                    b.Property<int?>("ElPresentFlag")
 1935                        .HasColumnType("INTEGER");
 1936
 1937                    b.Property<bool?>("Hdr10PlusPresentFlag")
 1938                        .HasColumnType("INTEGER");
 1939
 1940                    b.Property<int?>("Height")
 1941                        .HasColumnType("INTEGER");
 1942
 1943                    b.Property<bool?>("IsAnamorphic")
 1944                        .HasColumnType("INTEGER");
 1945
 1946                    b.Property<bool?>("IsAvc")
 1947                        .HasColumnType("INTEGER");
 1948
 1949                    b.Property<bool>("IsDefault")
 1950                        .HasColumnType("INTEGER");
 1951
 1952                    b.Property<bool>("IsExternal")
 1953                        .HasColumnType("INTEGER");
 1954
 1955                    b.Property<bool>("IsForced")
 1956                        .HasColumnType("INTEGER");
 1957
 1958                    b.Property<bool?>("IsHearingImpaired")
 1959                        .HasColumnType("INTEGER");
 1960
 1961                    b.Property<bool?>("IsInterlaced")
 1962                        .HasColumnType("INTEGER");
 1963
 1964                    b.Property<bool>("IsOriginal")
 1965                        .HasColumnType("INTEGER");
 1966
 1967                    b.Property<string>("KeyFrames")
 1968                        .HasColumnType("TEXT");
 1969
 1970                    b.Property<string>("Language")
 1971                        .HasColumnType("TEXT");
 1972
 1973                    b.Property<float?>("Level")
 1974                        .HasColumnType("REAL");
 1975
 1976                    b.Property<string>("NalLengthSize")
 1977                        .HasColumnType("TEXT");
 1978
 1979                    b.Property<string>("Path")
 1980                        .HasColumnType("TEXT");
 1981
 1982                    b.Property<string>("PixelFormat")
 1983                        .HasColumnType("TEXT");
 1984
 1985                    b.Property<string>("Profile")
 1986                        .HasColumnType("TEXT");
 1987
 1988                    b.Property<float?>("RealFrameRate")
 1989                        .HasColumnType("REAL");
 1990
 1991                    b.Property<int?>("RefFrames")
 1992                        .HasColumnType("INTEGER");
 1993
 1994                    b.Property<int?>("Rotation")
 1995                        .HasColumnType("INTEGER");
 1996
 1997                    b.Property<int?>("RpuPresentFlag")
 1998                        .HasColumnType("INTEGER");
 1999
 11000                    b.Property<int?>("SampleRate")
 11001                        .HasColumnType("INTEGER");
 11002
 11003                    b.Property<int>("StreamType")
 11004                        .HasColumnType("INTEGER");
 11005
 11006                    b.Property<string>("TimeBase")
 11007                        .HasColumnType("TEXT");
 11008
 11009                    b.Property<string>("Title")
 11010                        .HasColumnType("TEXT");
 11011
 11012                    b.Property<int?>("Width")
 11013                        .HasColumnType("INTEGER");
 11014
 11015                    b.HasKey("ItemId", "StreamIndex");
 11016
 11017                    b.HasIndex("StreamType", "ItemId", "Language", "IsExternal");
 11018
 11019                    b.ToTable("MediaStreamInfos");
 11020
 11021                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11022                });
 1023
 11024            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 11025                {
 11026                    b.Property<Guid>("Id")
 11027                        .ValueGeneratedOnAdd()
 11028                        .HasColumnType("TEXT");
 11029
 11030                    b.Property<string>("Name")
 11031                        .IsRequired()
 11032                        .HasColumnType("TEXT");
 11033
 11034                    b.Property<string>("PersonType")
 11035                        .HasColumnType("TEXT");
 11036
 11037                    b.HasKey("Id");
 11038
 11039                    b.HasIndex("Name");
 11040
 11041                    b.ToTable("Peoples");
 11042
 11043                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11044                });
 1045
 11046            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 11047                {
 11048                    b.Property<Guid>("ItemId")
 11049                        .HasColumnType("TEXT");
 11050
 11051                    b.Property<Guid>("PeopleId")
 11052                        .HasColumnType("TEXT");
 11053
 11054                    b.Property<string>("Role")
 11055                        .HasColumnType("TEXT");
 11056
 11057                    b.Property<int?>("ListOrder")
 11058                        .HasColumnType("INTEGER");
 11059
 11060                    b.Property<int?>("SortOrder")
 11061                        .HasColumnType("INTEGER");
 11062
 11063                    b.HasKey("ItemId", "PeopleId", "Role");
 11064
 11065                    b.HasIndex("ItemId", "ListOrder");
 11066
 11067                    b.HasIndex("ItemId", "SortOrder");
 11068
 11069                    b.HasIndex("PeopleId", "ItemId");
 11070
 11071                    b.ToTable("PeopleBaseItemMap");
 11072
 11073                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11074                });
 1075
 11076            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 11077                {
 11078                    b.Property<int>("Id")
 11079                        .ValueGeneratedOnAdd()
 11080                        .HasColumnType("INTEGER");
 11081
 11082                    b.Property<int>("Kind")
 11083                        .HasColumnType("INTEGER");
 11084
 11085                    b.Property<uint>("RowVersion")
 11086                        .IsConcurrencyToken()
 11087                        .HasColumnType("INTEGER");
 11088
 11089                    b.Property<Guid>("UserId")
 11090                        .HasColumnType("TEXT");
 11091
 11092                    b.Property<bool>("Value")
 11093                        .HasColumnType("INTEGER");
 11094
 11095                    b.HasKey("Id");
 11096
 11097                    b.HasIndex("UserId", "Kind")
 11098                        .IsUnique();
 11099
 11100                    b.ToTable("Permissions");
 11101
 11102                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11103                });
 1104
 11105            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 11106                {
 11107                    b.Property<int>("Id")
 11108                        .ValueGeneratedOnAdd()
 11109                        .HasColumnType("INTEGER");
 11110
 11111                    b.Property<int>("Kind")
 11112                        .HasColumnType("INTEGER");
 11113
 11114                    b.Property<uint>("RowVersion")
 11115                        .IsConcurrencyToken()
 11116                        .HasColumnType("INTEGER");
 11117
 11118                    b.Property<Guid>("UserId")
 11119                        .HasColumnType("TEXT");
 11120
 11121                    b.Property<string>("Value")
 11122                        .IsRequired()
 11123                        .HasMaxLength(65535)
 11124                        .HasColumnType("TEXT");
 11125
 11126                    b.HasKey("Id");
 11127
 11128                    b.HasIndex("UserId", "Kind")
 11129                        .IsUnique();
 11130
 11131                    b.ToTable("Preferences");
 11132
 11133                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11134                });
 1135
 11136            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.ApiKey", b =>
 11137                {
 11138                    b.Property<int>("Id")
 11139                        .ValueGeneratedOnAdd()
 11140                        .HasColumnType("INTEGER");
 11141
 11142                    b.Property<string>("AccessToken")
 11143                        .IsRequired()
 11144                        .HasColumnType("TEXT");
 11145
 11146                    b.Property<DateTime>("DateCreated")
 11147                        .HasColumnType("TEXT");
 11148
 11149                    b.Property<DateTime>("DateLastActivity")
 11150                        .HasColumnType("TEXT");
 11151
 11152                    b.Property<string>("Name")
 11153                        .IsRequired()
 11154                        .HasMaxLength(64)
 11155                        .HasColumnType("TEXT");
 11156
 11157                    b.HasKey("Id");
 11158
 11159                    b.HasIndex("AccessToken")
 11160                        .IsUnique();
 11161
 11162                    b.ToTable("ApiKeys");
 11163
 11164                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11165                });
 1166
 11167            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 11168                {
 11169                    b.Property<int>("Id")
 11170                        .ValueGeneratedOnAdd()
 11171                        .HasColumnType("INTEGER");
 11172
 11173                    b.Property<string>("AccessToken")
 11174                        .IsRequired()
 11175                        .HasColumnType("TEXT");
 11176
 11177                    b.Property<string>("AppName")
 11178                        .IsRequired()
 11179                        .HasMaxLength(64)
 11180                        .HasColumnType("TEXT");
 11181
 11182                    b.Property<string>("AppVersion")
 11183                        .IsRequired()
 11184                        .HasMaxLength(32)
 11185                        .HasColumnType("TEXT");
 11186
 11187                    b.Property<DateTime>("DateCreated")
 11188                        .HasColumnType("TEXT");
 11189
 11190                    b.Property<DateTime>("DateLastActivity")
 11191                        .HasColumnType("TEXT");
 11192
 11193                    b.Property<DateTime>("DateModified")
 11194                        .HasColumnType("TEXT");
 11195
 11196                    b.Property<string>("DeviceId")
 11197                        .IsRequired()
 11198                        .HasMaxLength(256)
 11199                        .HasColumnType("TEXT");
 11200
 11201                    b.Property<string>("DeviceName")
 11202                        .IsRequired()
 11203                        .HasMaxLength(64)
 11204                        .HasColumnType("TEXT");
 11205
 11206                    b.Property<bool>("IsActive")
 11207                        .HasColumnType("INTEGER");
 11208
 11209                    b.Property<Guid>("UserId")
 11210                        .HasColumnType("TEXT");
 11211
 11212                    b.HasKey("Id");
 11213
 11214                    b.HasIndex("AccessToken", "DateLastActivity");
 11215
 11216                    b.HasIndex("DeviceId", "DateLastActivity");
 11217
 11218                    b.HasIndex("UserId", "DeviceId");
 11219
 11220                    b.ToTable("Devices");
 11221
 11222                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11223                });
 1224
 11225            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.DeviceOptions", b =>
 11226                {
 11227                    b.Property<int>("Id")
 11228                        .ValueGeneratedOnAdd()
 11229                        .HasColumnType("INTEGER");
 11230
 11231                    b.Property<string>("CustomName")
 11232                        .HasColumnType("TEXT");
 11233
 11234                    b.Property<string>("DeviceId")
 11235                        .IsRequired()
 11236                        .HasColumnType("TEXT");
 11237
 11238                    b.HasKey("Id");
 11239
 11240                    b.HasIndex("DeviceId")
 11241                        .IsUnique();
 11242
 11243                    b.ToTable("DeviceOptions");
 11244
 11245                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11246                });
 1247
 11248            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.TrickplayInfo", b =>
 11249                {
 11250                    b.Property<Guid>("ItemId")
 11251                        .HasColumnType("TEXT");
 11252
 11253                    b.Property<int>("Width")
 11254                        .HasColumnType("INTEGER");
 11255
 11256                    b.Property<int>("Bandwidth")
 11257                        .HasColumnType("INTEGER");
 11258
 11259                    b.Property<int>("Height")
 11260                        .HasColumnType("INTEGER");
 11261
 11262                    b.Property<int>("Interval")
 11263                        .HasColumnType("INTEGER");
 11264
 11265                    b.Property<int>("ThumbnailCount")
 11266                        .HasColumnType("INTEGER");
 11267
 11268                    b.Property<int>("TileHeight")
 11269                        .HasColumnType("INTEGER");
 11270
 11271                    b.Property<int>("TileWidth")
 11272                        .HasColumnType("INTEGER");
 11273
 11274                    b.HasKey("ItemId", "Width");
 11275
 11276                    b.ToTable("TrickplayInfos");
 11277
 11278                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11279                });
 1280
 11281            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 11282                {
 11283                    b.Property<Guid>("Id")
 11284                        .ValueGeneratedOnAdd()
 11285                        .HasColumnType("TEXT");
 11286
 11287                    b.Property<string>("AudioLanguagePreference")
 11288                        .HasMaxLength(255)
 11289                        .HasColumnType("TEXT");
 11290
 11291                    b.Property<string>("AuthenticationProviderId")
 11292                        .IsRequired()
 11293                        .HasMaxLength(255)
 11294                        .HasColumnType("TEXT");
 11295
 11296                    b.Property<string>("CastReceiverId")
 11297                        .HasMaxLength(32)
 11298                        .HasColumnType("TEXT");
 11299
 11300                    b.Property<bool>("DisplayCollectionsView")
 11301                        .HasColumnType("INTEGER");
 11302
 11303                    b.Property<bool>("DisplayMissingEpisodes")
 11304                        .HasColumnType("INTEGER");
 11305
 11306                    b.Property<bool>("EnableAutoLogin")
 11307                        .HasColumnType("INTEGER");
 11308
 11309                    b.Property<bool>("EnableLocalPassword")
 11310                        .HasColumnType("INTEGER");
 11311
 11312                    b.Property<bool>("EnableNextEpisodeAutoPlay")
 11313                        .HasColumnType("INTEGER");
 11314
 11315                    b.Property<bool>("EnableUserPreferenceAccess")
 11316                        .HasColumnType("INTEGER");
 11317
 11318                    b.Property<bool>("HidePlayedInLatest")
 11319                        .HasColumnType("INTEGER");
 11320
 11321                    b.Property<long>("InternalId")
 11322                        .HasColumnType("INTEGER");
 11323
 11324                    b.Property<int>("InvalidLoginAttemptCount")
 11325                        .HasColumnType("INTEGER");
 11326
 11327                    b.Property<DateTime?>("LastActivityDate")
 11328                        .HasColumnType("TEXT");
 11329
 11330                    b.Property<DateTime?>("LastLoginDate")
 11331                        .HasColumnType("TEXT");
 11332
 11333                    b.Property<int?>("LoginAttemptsBeforeLockout")
 11334                        .HasColumnType("INTEGER");
 11335
 11336                    b.Property<int>("MaxActiveSessions")
 11337                        .HasColumnType("INTEGER");
 11338
 11339                    b.Property<int?>("MaxParentalRatingScore")
 11340                        .HasColumnType("INTEGER");
 11341
 11342                    b.Property<int?>("MaxParentalRatingSubScore")
 11343                        .HasColumnType("INTEGER");
 11344
 11345                    b.Property<bool>("MustUpdatePassword")
 11346                        .HasColumnType("INTEGER");
 11347
 11348                    b.Property<string>("NormalizedUsername")
 11349                        .IsRequired()
 11350                        .HasMaxLength(255)
 11351                        .HasColumnType("TEXT");
 11352
 11353                    b.Property<string>("Password")
 11354                        .HasMaxLength(65535)
 11355                        .HasColumnType("TEXT");
 11356
 11357                    b.Property<string>("PasswordResetProviderId")
 11358                        .IsRequired()
 11359                        .HasMaxLength(255)
 11360                        .HasColumnType("TEXT");
 11361
 11362                    b.Property<bool>("PlayDefaultAudioTrack")
 11363                        .HasColumnType("INTEGER");
 11364
 11365                    b.Property<bool>("RememberAudioSelections")
 11366                        .HasColumnType("INTEGER");
 11367
 11368                    b.Property<bool>("RememberSubtitleSelections")
 11369                        .HasColumnType("INTEGER");
 11370
 11371                    b.Property<int?>("RemoteClientBitrateLimit")
 11372                        .HasColumnType("INTEGER");
 11373
 11374                    b.Property<uint>("RowVersion")
 11375                        .IsConcurrencyToken()
 11376                        .HasColumnType("INTEGER");
 11377
 11378                    b.Property<string>("SubtitleLanguagePreference")
 11379                        .HasMaxLength(255)
 11380                        .HasColumnType("TEXT");
 11381
 11382                    b.Property<int>("SubtitleMode")
 11383                        .HasColumnType("INTEGER");
 11384
 11385                    b.Property<int>("SyncPlayAccess")
 11386                        .HasColumnType("INTEGER");
 11387
 11388                    b.Property<string>("Username")
 11389                        .IsRequired()
 11390                        .HasMaxLength(255)
 11391                        .HasColumnType("TEXT");
 11392
 11393                    b.HasKey("Id");
 11394
 11395                    b.HasIndex("NormalizedUsername")
 11396                        .IsUnique();
 11397
 11398                    b.HasIndex("Username")
 11399                        .IsUnique();
 11400
 11401                    b.ToTable("Users");
 11402
 11403                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11404                });
 1405
 11406            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 11407                {
 11408                    b.Property<Guid>("ItemId")
 11409                        .HasColumnType("TEXT");
 11410
 11411                    b.Property<Guid>("UserId")
 11412                        .HasColumnType("TEXT");
 11413
 11414                    b.Property<string>("CustomDataKey")
 11415                        .HasColumnType("TEXT");
 11416
 11417                    b.Property<int?>("AudioStreamIndex")
 11418                        .HasColumnType("INTEGER");
 11419
 11420                    b.Property<bool>("IsFavorite")
 11421                        .HasColumnType("INTEGER");
 11422
 11423                    b.Property<DateTime?>("LastPlayedDate")
 11424                        .HasColumnType("TEXT");
 11425
 11426                    b.Property<bool?>("Likes")
 11427                        .HasColumnType("INTEGER");
 11428
 11429                    b.Property<int>("PlayCount")
 11430                        .HasColumnType("INTEGER");
 11431
 11432                    b.Property<long>("PlaybackPositionTicks")
 11433                        .HasColumnType("INTEGER");
 11434
 11435                    b.Property<bool>("Played")
 11436                        .HasColumnType("INTEGER");
 11437
 11438                    b.Property<double?>("Rating")
 11439                        .HasColumnType("REAL");
 11440
 11441                    b.Property<DateTime?>("RetentionDate")
 11442                        .HasColumnType("TEXT");
 11443
 11444                    b.Property<int?>("SubtitleStreamIndex")
 11445                        .HasColumnType("INTEGER");
 11446
 11447                    b.HasKey("ItemId", "UserId", "CustomDataKey");
 11448
 11449                    b.HasIndex("ItemId", "UserId", "IsFavorite");
 11450
 11451                    b.HasIndex("ItemId", "UserId", "LastPlayedDate");
 11452
 11453                    b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
 11454
 11455                    b.HasIndex("ItemId", "UserId", "Played");
 11456
 11457                    b.HasIndex("UserId", "IsFavorite", "ItemId");
 11458
 11459                    b.HasIndex("UserId", "ItemId", "LastPlayedDate");
 11460
 11461                    b.HasIndex("UserId", "Played", "ItemId");
 11462
 11463                    b.ToTable("UserData");
 11464
 11465                    b.HasAnnotation("Sqlite:UseSqlReturningClause", false);
 11466                });
 1467
 11468            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
 11469                {
 11470                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 11471                        .WithMany("AccessSchedules")
 11472                        .HasForeignKey("UserId")
 11473                        .OnDelete(DeleteBehavior.Cascade)
 11474                        .IsRequired();
 11475                });
 1476
 11477            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AncestorId", b =>
 11478                {
 11479                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11480                        .WithMany("Parents")
 11481                        .HasForeignKey("ItemId")
 11482                        .OnDelete(DeleteBehavior.Cascade)
 11483                        .IsRequired();
 11484
 11485                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "ParentItem")
 11486                        .WithMany("Children")
 11487                        .HasForeignKey("ParentItemId")
 11488                        .OnDelete(DeleteBehavior.Cascade)
 11489                        .IsRequired();
 11490
 11491                    b.Navigation("Item");
 11492
 11493                    b.Navigation("ParentItem");
 11494                });
 1495
 11496            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AttachmentStreamInfo", b =>
 11497                {
 11498                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11499                        .WithMany()
 11500                        .HasForeignKey("ItemId")
 11501                        .OnDelete(DeleteBehavior.Cascade)
 11502                        .IsRequired();
 11503
 11504                    b.Navigation("Item");
 11505                });
 1506
 11507            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 11508                {
 11509                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Owner")
 11510                        .WithMany("Extras")
 11511                        .HasForeignKey("OwnerId")
 11512                        .OnDelete(DeleteBehavior.NoAction);
 11513
 11514                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "DirectParent")
 11515                        .WithMany("DirectChildren")
 11516                        .HasForeignKey("ParentId")
 11517                        .OnDelete(DeleteBehavior.Cascade);
 11518
 11519                    b.Navigation("DirectParent");
 11520
 11521                    b.Navigation("Owner");
 11522                });
 1523
 11524            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemImageInfo", b =>
 11525                {
 11526                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11527                        .WithMany("Images")
 11528                        .HasForeignKey("ItemId")
 11529                        .OnDelete(DeleteBehavior.Cascade)
 11530                        .IsRequired();
 11531
 11532                    b.Navigation("Item");
 11533                });
 1534
 11535            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemMetadataField", b =>
 11536                {
 11537                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11538                        .WithMany("LockedFields")
 11539                        .HasForeignKey("ItemId")
 11540                        .OnDelete(DeleteBehavior.Cascade)
 11541                        .IsRequired();
 11542
 11543                    b.Navigation("Item");
 11544                });
 1545
 11546            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemProvider", b =>
 11547                {
 11548                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11549                        .WithMany("Provider")
 11550                        .HasForeignKey("ItemId")
 11551                        .OnDelete(DeleteBehavior.Cascade)
 11552                        .IsRequired();
 11553
 11554                    b.Navigation("Item");
 11555                });
 1556
 11557            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemTrailerType", b =>
 11558                {
 11559                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11560                        .WithMany("TrailerTypes")
 11561                        .HasForeignKey("ItemId")
 11562                        .OnDelete(DeleteBehavior.Cascade)
 11563                        .IsRequired();
 11564
 11565                    b.Navigation("Item");
 11566                });
 1567
 11568            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Chapter", b =>
 11569                {
 11570                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11571                        .WithMany("Chapters")
 11572                        .HasForeignKey("ItemId")
 11573                        .OnDelete(DeleteBehavior.Cascade)
 11574                        .IsRequired();
 11575
 11576                    b.Navigation("Item");
 11577                });
 1578
 11579            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 11580                {
 11581                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 11582                        .WithMany("DisplayPreferences")
 11583                        .HasForeignKey("UserId")
 11584                        .OnDelete(DeleteBehavior.Cascade)
 11585                        .IsRequired();
 11586                });
 1587
 11588            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.HomeSection", b =>
 11589                {
 11590                    b.HasOne("Jellyfin.Database.Implementations.Entities.DisplayPreferences", null)
 11591                        .WithMany("HomeSections")
 11592                        .HasForeignKey("DisplayPreferencesId")
 11593                        .OnDelete(DeleteBehavior.Cascade)
 11594                        .IsRequired();
 11595                });
 1596
 11597            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ImageInfo", b =>
 11598                {
 11599                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 11600                        .WithOne("ProfileImage")
 11601                        .HasForeignKey("Jellyfin.Database.Implementations.Entities.ImageInfo", "UserId")
 11602                        .OnDelete(DeleteBehavior.Cascade);
 11603                });
 1604
 11605            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemDisplayPreferences", b =>
 11606                {
 11607                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 11608                        .WithMany("ItemDisplayPreferences")
 11609                        .HasForeignKey("UserId")
 11610                        .OnDelete(DeleteBehavior.Cascade)
 11611                        .IsRequired();
 11612                });
 1613
 11614            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValueMap", b =>
 11615                {
 11616                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11617                        .WithMany("ItemValues")
 11618                        .HasForeignKey("ItemId")
 11619                        .OnDelete(DeleteBehavior.Cascade)
 11620                        .IsRequired();
 11621
 11622                    b.HasOne("Jellyfin.Database.Implementations.Entities.ItemValue", "ItemValue")
 11623                        .WithMany("BaseItemsMap")
 11624                        .HasForeignKey("ItemValueId")
 11625                        .OnDelete(DeleteBehavior.Cascade)
 11626                        .IsRequired();
 11627
 11628                    b.Navigation("Item");
 11629
 11630                    b.Navigation("ItemValue");
 11631                });
 1632
 11633            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.KeyframeData", b =>
 11634                {
 11635                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11636                        .WithMany()
 11637                        .HasForeignKey("ItemId")
 11638                        .OnDelete(DeleteBehavior.Cascade)
 11639                        .IsRequired();
 11640
 11641                    b.Navigation("Item");
 11642                });
 1643
 11644            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.LinkedChildEntity", b =>
 11645                {
 11646                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Child")
 11647                        .WithMany("LinkedChildOfEntities")
 11648                        .HasForeignKey("ChildId")
 11649                        .OnDelete(DeleteBehavior.NoAction)
 11650                        .IsRequired();
 11651
 11652                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Parent")
 11653                        .WithMany("LinkedChildEntities")
 11654                        .HasForeignKey("ParentId")
 11655                        .OnDelete(DeleteBehavior.NoAction)
 11656                        .IsRequired();
 11657
 11658                    b.Navigation("Child");
 11659
 11660                    b.Navigation("Parent");
 11661                });
 1662
 11663            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.MediaStreamInfo", b =>
 11664                {
 11665                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11666                        .WithMany("MediaStreams")
 11667                        .HasForeignKey("ItemId")
 11668                        .OnDelete(DeleteBehavior.Cascade)
 11669                        .IsRequired();
 11670
 11671                    b.Navigation("Item");
 11672                });
 1673
 11674            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.PeopleBaseItemMap", b =>
 11675                {
 11676                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11677                        .WithMany("Peoples")
 11678                        .HasForeignKey("ItemId")
 11679                        .OnDelete(DeleteBehavior.Cascade)
 11680                        .IsRequired();
 11681
 11682                    b.HasOne("Jellyfin.Database.Implementations.Entities.People", "People")
 11683                        .WithMany("BaseItems")
 11684                        .HasForeignKey("PeopleId")
 11685                        .OnDelete(DeleteBehavior.Cascade)
 11686                        .IsRequired();
 11687
 11688                    b.Navigation("Item");
 11689
 11690                    b.Navigation("People");
 11691                });
 1692
 11693            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Permission", b =>
 11694                {
 11695                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 11696                        .WithMany("Permissions")
 11697                        .HasForeignKey("UserId")
 11698                        .OnDelete(DeleteBehavior.Cascade)
 11699                        .IsRequired();
 11700                });
 1701
 11702            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Preference", b =>
 11703                {
 11704                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", null)
 11705                        .WithMany("Preferences")
 11706                        .HasForeignKey("UserId")
 11707                        .OnDelete(DeleteBehavior.Cascade)
 11708                        .IsRequired();
 11709                });
 1710
 11711            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Security.Device", b =>
 11712                {
 11713                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 11714                        .WithMany()
 11715                        .HasForeignKey("UserId")
 11716                        .OnDelete(DeleteBehavior.Cascade)
 11717                        .IsRequired();
 11718
 11719                    b.Navigation("User");
 11720                });
 1721
 11722            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.UserData", b =>
 11723                {
 11724                    b.HasOne("Jellyfin.Database.Implementations.Entities.BaseItemEntity", "Item")
 11725                        .WithMany("UserData")
 11726                        .HasForeignKey("ItemId")
 11727                        .OnDelete(DeleteBehavior.Cascade)
 11728                        .IsRequired();
 11729
 11730                    b.HasOne("Jellyfin.Database.Implementations.Entities.User", "User")
 11731                        .WithMany()
 11732                        .HasForeignKey("UserId")
 11733                        .OnDelete(DeleteBehavior.Cascade)
 11734                        .IsRequired();
 11735
 11736                    b.Navigation("Item");
 11737
 11738                    b.Navigation("User");
 11739                });
 1740
 11741            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.BaseItemEntity", b =>
 11742                {
 11743                    b.Navigation("Chapters");
 11744
 11745                    b.Navigation("Children");
 11746
 11747                    b.Navigation("DirectChildren");
 11748
 11749                    b.Navigation("Extras");
 11750
 11751                    b.Navigation("Images");
 11752
 11753                    b.Navigation("ItemValues");
 11754
 11755                    b.Navigation("LinkedChildEntities");
 11756
 11757                    b.Navigation("LinkedChildOfEntities");
 11758
 11759                    b.Navigation("LockedFields");
 11760
 11761                    b.Navigation("MediaStreams");
 11762
 11763                    b.Navigation("Parents");
 11764
 11765                    b.Navigation("Peoples");
 11766
 11767                    b.Navigation("Provider");
 11768
 11769                    b.Navigation("TrailerTypes");
 11770
 11771                    b.Navigation("UserData");
 11772                });
 1773
 11774            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.DisplayPreferences", b =>
 11775                {
 11776                    b.Navigation("HomeSections");
 11777                });
 1778
 11779            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.ItemValue", b =>
 11780                {
 11781                    b.Navigation("BaseItemsMap");
 11782                });
 1783
 11784            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.People", b =>
 11785                {
 11786                    b.Navigation("BaseItems");
 11787                });
 1788
 11789            modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.User", b =>
 11790                {
 11791                    b.Navigation("AccessSchedules");
 11792
 11793                    b.Navigation("DisplayPreferences");
 11794
 11795                    b.Navigation("ItemDisplayPreferences");
 11796
 11797                    b.Navigation("Permissions");
 11798
 11799                    b.Navigation("Preferences");
 11800
 11801                    b.Navigation("ProfileImage");
 11802                });
 1803#pragma warning restore 612, 618
 11804        }
 1805    }
 1806}