| | 1 | | // <auto-generated /> |
| | 2 | | using System; |
| | 3 | | using Jellyfin.Database.Implementations; |
| | 4 | | using Microsoft.EntityFrameworkCore; |
| | 5 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | 6 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | 7 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | 8 | |
|
| | 9 | | #nullable disable |
| | 10 | |
|
| | 11 | | namespace Jellyfin.Server.Implementations.Migrations |
| | 12 | | { |
| | 13 | | [DbContext(typeof(JellyfinDbContext))] |
| | 14 | | [Migration("20250202021306_FixedCollation")] |
| | 15 | | partial class FixedCollation |
| | 16 | | { |
| | 17 | | /// <inheritdoc /> |
| | 18 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | 19 | | { |
| | 20 | | #pragma warning disable 612, 618 |
| 21 | 21 | | modelBuilder.HasAnnotation("ProductVersion", "9.0.1"); |
| | 22 | |
|
| 21 | 23 | | modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b => |
| 21 | 24 | | { |
| 21 | 25 | | b.Property<int>("Id") |
| 21 | 26 | | .ValueGeneratedOnAdd() |
| 21 | 27 | | .HasColumnType("INTEGER"); |
| 21 | 28 | |
|
| 21 | 29 | | b.Property<int>("DayOfWeek") |
| 21 | 30 | | .HasColumnType("INTEGER"); |
| 21 | 31 | |
|
| 21 | 32 | | b.Property<double>("EndHour") |
| 21 | 33 | | .HasColumnType("REAL"); |
| 21 | 34 | |
|
| 21 | 35 | | b.Property<double>("StartHour") |
| 21 | 36 | | .HasColumnType("REAL"); |
| 21 | 37 | |
|
| 21 | 38 | | b.Property<Guid>("UserId") |
| 21 | 39 | | .HasColumnType("TEXT"); |
| 21 | 40 | |
|
| 21 | 41 | | b.HasKey("Id"); |
| 21 | 42 | |
|
| 21 | 43 | | b.HasIndex("UserId"); |
| 21 | 44 | |
|
| 21 | 45 | | b.ToTable("AccessSchedules"); |
| 21 | 46 | | }); |
| | 47 | |
|
| 21 | 48 | | modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b => |
| 21 | 49 | | { |
| 21 | 50 | | b.Property<int>("Id") |
| 21 | 51 | | .ValueGeneratedOnAdd() |
| 21 | 52 | | .HasColumnType("INTEGER"); |
| 21 | 53 | |
|
| 21 | 54 | | b.Property<DateTime>("DateCreated") |
| 21 | 55 | | .HasColumnType("TEXT"); |
| 21 | 56 | |
|
| 21 | 57 | | b.Property<string>("ItemId") |
| 21 | 58 | | .HasMaxLength(256) |
| 21 | 59 | | .HasColumnType("TEXT"); |
| 21 | 60 | |
|
| 21 | 61 | | b.Property<int>("LogSeverity") |
| 21 | 62 | | .HasColumnType("INTEGER"); |
| 21 | 63 | |
|
| 21 | 64 | | b.Property<string>("Name") |
| 21 | 65 | | .IsRequired() |
| 21 | 66 | | .HasMaxLength(512) |
| 21 | 67 | | .HasColumnType("TEXT"); |
| 21 | 68 | |
|
| 21 | 69 | | b.Property<string>("Overview") |
| 21 | 70 | | .HasMaxLength(512) |
| 21 | 71 | | .HasColumnType("TEXT"); |
| 21 | 72 | |
|
| 21 | 73 | | b.Property<uint>("RowVersion") |
| 21 | 74 | | .IsConcurrencyToken() |
| 21 | 75 | | .HasColumnType("INTEGER"); |
| 21 | 76 | |
|
| 21 | 77 | | b.Property<string>("ShortOverview") |
| 21 | 78 | | .HasMaxLength(512) |
| 21 | 79 | | .HasColumnType("TEXT"); |
| 21 | 80 | |
|
| 21 | 81 | | b.Property<string>("Type") |
| 21 | 82 | | .IsRequired() |
| 21 | 83 | | .HasMaxLength(256) |
| 21 | 84 | | .HasColumnType("TEXT"); |
| 21 | 85 | |
|
| 21 | 86 | | b.Property<Guid>("UserId") |
| 21 | 87 | | .HasColumnType("TEXT"); |
| 21 | 88 | |
|
| 21 | 89 | | b.HasKey("Id"); |
| 21 | 90 | |
|
| 21 | 91 | | b.HasIndex("DateCreated"); |
| 21 | 92 | |
|
| 21 | 93 | | b.ToTable("ActivityLogs"); |
| 21 | 94 | | }); |
| | 95 | |
|
| 21 | 96 | | modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b => |
| 21 | 97 | | { |
| 21 | 98 | | b.Property<Guid>("ItemId") |
| 21 | 99 | | .HasColumnType("TEXT"); |
| 21 | 100 | |
|
| 21 | 101 | | b.Property<Guid>("ParentItemId") |
| 21 | 102 | | .HasColumnType("TEXT"); |
| 21 | 103 | |
|
| 21 | 104 | | b.HasKey("ItemId", "ParentItemId"); |
| 21 | 105 | |
|
| 21 | 106 | | b.HasIndex("ParentItemId"); |
| 21 | 107 | |
|
| 21 | 108 | | b.ToTable("AncestorIds"); |
| 21 | 109 | | }); |
| | 110 | |
|
| 21 | 111 | | modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b => |
| 21 | 112 | | { |
| 21 | 113 | | b.Property<Guid>("ItemId") |
| 21 | 114 | | .HasColumnType("TEXT"); |
| 21 | 115 | |
|
| 21 | 116 | | b.Property<int>("Index") |
| 21 | 117 | | .HasColumnType("INTEGER"); |
| 21 | 118 | |
|
| 21 | 119 | | b.Property<string>("Codec") |
| 21 | 120 | | .IsRequired() |
| 21 | 121 | | .HasColumnType("TEXT"); |
| 21 | 122 | |
|
| 21 | 123 | | b.Property<string>("CodecTag") |
| 21 | 124 | | .HasColumnType("TEXT"); |
| 21 | 125 | |
|
| 21 | 126 | | b.Property<string>("Comment") |
| 21 | 127 | | .HasColumnType("TEXT"); |
| 21 | 128 | |
|
| 21 | 129 | | b.Property<string>("Filename") |
| 21 | 130 | | .HasColumnType("TEXT"); |
| 21 | 131 | |
|
| 21 | 132 | | b.Property<string>("MimeType") |
| 21 | 133 | | .HasColumnType("TEXT"); |
| 21 | 134 | |
|
| 21 | 135 | | b.HasKey("ItemId", "Index"); |
| 21 | 136 | |
|
| 21 | 137 | | b.ToTable("AttachmentStreamInfos"); |
| 21 | 138 | | }); |
| | 139 | |
|
| 21 | 140 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b => |
| 21 | 141 | | { |
| 21 | 142 | | b.Property<Guid>("Id") |
| 21 | 143 | | .ValueGeneratedOnAdd() |
| 21 | 144 | | .HasColumnType("TEXT"); |
| 21 | 145 | |
|
| 21 | 146 | | b.Property<string>("Album") |
| 21 | 147 | | .HasColumnType("TEXT"); |
| 21 | 148 | |
|
| 21 | 149 | | b.Property<string>("AlbumArtists") |
| 21 | 150 | | .HasColumnType("TEXT"); |
| 21 | 151 | |
|
| 21 | 152 | | b.Property<string>("Artists") |
| 21 | 153 | | .HasColumnType("TEXT"); |
| 21 | 154 | |
|
| 21 | 155 | | b.Property<int?>("Audio") |
| 21 | 156 | | .HasColumnType("INTEGER"); |
| 21 | 157 | |
|
| 21 | 158 | | b.Property<string>("ChannelId") |
| 21 | 159 | | .HasColumnType("TEXT"); |
| 21 | 160 | |
|
| 21 | 161 | | b.Property<string>("CleanName") |
| 21 | 162 | | .HasColumnType("TEXT"); |
| 21 | 163 | |
|
| 21 | 164 | | b.Property<float?>("CommunityRating") |
| 21 | 165 | | .HasColumnType("REAL"); |
| 21 | 166 | |
|
| 21 | 167 | | b.Property<float?>("CriticRating") |
| 21 | 168 | | .HasColumnType("REAL"); |
| 21 | 169 | |
|
| 21 | 170 | | b.Property<string>("CustomRating") |
| 21 | 171 | | .HasColumnType("TEXT"); |
| 21 | 172 | |
|
| 21 | 173 | | b.Property<string>("Data") |
| 21 | 174 | | .HasColumnType("TEXT"); |
| 21 | 175 | |
|
| 21 | 176 | | b.Property<DateTime?>("DateCreated") |
| 21 | 177 | | .HasColumnType("TEXT"); |
| 21 | 178 | |
|
| 21 | 179 | | b.Property<DateTime?>("DateLastMediaAdded") |
| 21 | 180 | | .HasColumnType("TEXT"); |
| 21 | 181 | |
|
| 21 | 182 | | b.Property<DateTime?>("DateLastRefreshed") |
| 21 | 183 | | .HasColumnType("TEXT"); |
| 21 | 184 | |
|
| 21 | 185 | | b.Property<DateTime?>("DateLastSaved") |
| 21 | 186 | | .HasColumnType("TEXT"); |
| 21 | 187 | |
|
| 21 | 188 | | b.Property<DateTime?>("DateModified") |
| 21 | 189 | | .HasColumnType("TEXT"); |
| 21 | 190 | |
|
| 21 | 191 | | b.Property<DateTime>("EndDate") |
| 21 | 192 | | .HasColumnType("TEXT"); |
| 21 | 193 | |
|
| 21 | 194 | | b.Property<string>("EpisodeTitle") |
| 21 | 195 | | .HasColumnType("TEXT"); |
| 21 | 196 | |
|
| 21 | 197 | | b.Property<string>("ExternalId") |
| 21 | 198 | | .HasColumnType("TEXT"); |
| 21 | 199 | |
|
| 21 | 200 | | b.Property<string>("ExternalSeriesId") |
| 21 | 201 | | .HasColumnType("TEXT"); |
| 21 | 202 | |
|
| 21 | 203 | | b.Property<string>("ExternalServiceId") |
| 21 | 204 | | .HasColumnType("TEXT"); |
| 21 | 205 | |
|
| 21 | 206 | | b.Property<string>("ExtraIds") |
| 21 | 207 | | .HasColumnType("TEXT"); |
| 21 | 208 | |
|
| 21 | 209 | | b.Property<int?>("ExtraType") |
| 21 | 210 | | .HasColumnType("INTEGER"); |
| 21 | 211 | |
|
| 21 | 212 | | b.Property<string>("ForcedSortName") |
| 21 | 213 | | .HasColumnType("TEXT"); |
| 21 | 214 | |
|
| 21 | 215 | | b.Property<string>("Genres") |
| 21 | 216 | | .HasColumnType("TEXT"); |
| 21 | 217 | |
|
| 21 | 218 | | b.Property<int?>("Height") |
| 21 | 219 | | .HasColumnType("INTEGER"); |
| 21 | 220 | |
|
| 21 | 221 | | b.Property<int?>("IndexNumber") |
| 21 | 222 | | .HasColumnType("INTEGER"); |
| 21 | 223 | |
|
| 21 | 224 | | b.Property<int?>("InheritedParentalRatingValue") |
| 21 | 225 | | .HasColumnType("INTEGER"); |
| 21 | 226 | |
|
| 21 | 227 | | b.Property<bool>("IsFolder") |
| 21 | 228 | | .HasColumnType("INTEGER"); |
| 21 | 229 | |
|
| 21 | 230 | | b.Property<bool>("IsInMixedFolder") |
| 21 | 231 | | .HasColumnType("INTEGER"); |
| 21 | 232 | |
|
| 21 | 233 | | b.Property<bool>("IsLocked") |
| 21 | 234 | | .HasColumnType("INTEGER"); |
| 21 | 235 | |
|
| 21 | 236 | | b.Property<bool>("IsMovie") |
| 21 | 237 | | .HasColumnType("INTEGER"); |
| 21 | 238 | |
|
| 21 | 239 | | b.Property<bool>("IsRepeat") |
| 21 | 240 | | .HasColumnType("INTEGER"); |
| 21 | 241 | |
|
| 21 | 242 | | b.Property<bool>("IsSeries") |
| 21 | 243 | | .HasColumnType("INTEGER"); |
| 21 | 244 | |
|
| 21 | 245 | | b.Property<bool>("IsVirtualItem") |
| 21 | 246 | | .HasColumnType("INTEGER"); |
| 21 | 247 | |
|
| 21 | 248 | | b.Property<float?>("LUFS") |
| 21 | 249 | | .HasColumnType("REAL"); |
| 21 | 250 | |
|
| 21 | 251 | | b.Property<string>("MediaType") |
| 21 | 252 | | .HasColumnType("TEXT"); |
| 21 | 253 | |
|
| 21 | 254 | | b.Property<string>("Name") |
| 21 | 255 | | .HasColumnType("TEXT"); |
| 21 | 256 | |
|
| 21 | 257 | | b.Property<float?>("NormalizationGain") |
| 21 | 258 | | .HasColumnType("REAL"); |
| 21 | 259 | |
|
| 21 | 260 | | b.Property<string>("OfficialRating") |
| 21 | 261 | | .HasColumnType("TEXT"); |
| 21 | 262 | |
|
| 21 | 263 | | b.Property<string>("OriginalTitle") |
| 21 | 264 | | .HasColumnType("TEXT"); |
| 21 | 265 | |
|
| 21 | 266 | | b.Property<string>("Overview") |
| 21 | 267 | | .HasColumnType("TEXT"); |
| 21 | 268 | |
|
| 21 | 269 | | b.Property<string>("OwnerId") |
| 21 | 270 | | .HasColumnType("TEXT"); |
| 21 | 271 | |
|
| 21 | 272 | | b.Property<Guid?>("ParentId") |
| 21 | 273 | | .HasColumnType("TEXT"); |
| 21 | 274 | |
|
| 21 | 275 | | b.Property<int?>("ParentIndexNumber") |
| 21 | 276 | | .HasColumnType("INTEGER"); |
| 21 | 277 | |
|
| 21 | 278 | | b.Property<string>("Path") |
| 21 | 279 | | .HasColumnType("TEXT"); |
| 21 | 280 | |
|
| 21 | 281 | | b.Property<string>("PreferredMetadataCountryCode") |
| 21 | 282 | | .HasColumnType("TEXT"); |
| 21 | 283 | |
|
| 21 | 284 | | b.Property<string>("PreferredMetadataLanguage") |
| 21 | 285 | | .HasColumnType("TEXT"); |
| 21 | 286 | |
|
| 21 | 287 | | b.Property<DateTime?>("PremiereDate") |
| 21 | 288 | | .HasColumnType("TEXT"); |
| 21 | 289 | |
|
| 21 | 290 | | b.Property<string>("PresentationUniqueKey") |
| 21 | 291 | | .HasColumnType("TEXT"); |
| 21 | 292 | |
|
| 21 | 293 | | b.Property<string>("PrimaryVersionId") |
| 21 | 294 | | .HasColumnType("TEXT"); |
| 21 | 295 | |
|
| 21 | 296 | | b.Property<string>("ProductionLocations") |
| 21 | 297 | | .HasColumnType("TEXT"); |
| 21 | 298 | |
|
| 21 | 299 | | b.Property<int?>("ProductionYear") |
| 21 | 300 | | .HasColumnType("INTEGER"); |
| 21 | 301 | |
|
| 21 | 302 | | b.Property<long?>("RunTimeTicks") |
| 21 | 303 | | .HasColumnType("INTEGER"); |
| 21 | 304 | |
|
| 21 | 305 | | b.Property<Guid?>("SeasonId") |
| 21 | 306 | | .HasColumnType("TEXT"); |
| 21 | 307 | |
|
| 21 | 308 | | b.Property<string>("SeasonName") |
| 21 | 309 | | .HasColumnType("TEXT"); |
| 21 | 310 | |
|
| 21 | 311 | | b.Property<Guid?>("SeriesId") |
| 21 | 312 | | .HasColumnType("TEXT"); |
| 21 | 313 | |
|
| 21 | 314 | | b.Property<string>("SeriesName") |
| 21 | 315 | | .HasColumnType("TEXT"); |
| 21 | 316 | |
|
| 21 | 317 | | b.Property<string>("SeriesPresentationUniqueKey") |
| 21 | 318 | | .HasColumnType("TEXT"); |
| 21 | 319 | |
|
| 21 | 320 | | b.Property<string>("ShowId") |
| 21 | 321 | | .HasColumnType("TEXT"); |
| 21 | 322 | |
|
| 21 | 323 | | b.Property<long?>("Size") |
| 21 | 324 | | .HasColumnType("INTEGER"); |
| 21 | 325 | |
|
| 21 | 326 | | b.Property<string>("SortName") |
| 21 | 327 | | .HasColumnType("TEXT"); |
| 21 | 328 | |
|
| 21 | 329 | | b.Property<DateTime>("StartDate") |
| 21 | 330 | | .HasColumnType("TEXT"); |
| 21 | 331 | |
|
| 21 | 332 | | b.Property<string>("Studios") |
| 21 | 333 | | .HasColumnType("TEXT"); |
| 21 | 334 | |
|
| 21 | 335 | | b.Property<string>("Tagline") |
| 21 | 336 | | .HasColumnType("TEXT"); |
| 21 | 337 | |
|
| 21 | 338 | | b.Property<string>("Tags") |
| 21 | 339 | | .HasColumnType("TEXT"); |
| 21 | 340 | |
|
| 21 | 341 | | b.Property<Guid?>("TopParentId") |
| 21 | 342 | | .HasColumnType("TEXT"); |
| 21 | 343 | |
|
| 21 | 344 | | b.Property<int?>("TotalBitrate") |
| 21 | 345 | | .HasColumnType("INTEGER"); |
| 21 | 346 | |
|
| 21 | 347 | | b.Property<string>("Type") |
| 21 | 348 | | .IsRequired() |
| 21 | 349 | | .HasColumnType("TEXT"); |
| 21 | 350 | |
|
| 21 | 351 | | b.Property<string>("UnratedType") |
| 21 | 352 | | .HasColumnType("TEXT"); |
| 21 | 353 | |
|
| 21 | 354 | | b.Property<int?>("Width") |
| 21 | 355 | | .HasColumnType("INTEGER"); |
| 21 | 356 | |
|
| 21 | 357 | | b.HasKey("Id"); |
| 21 | 358 | |
|
| 21 | 359 | | b.HasIndex("ParentId"); |
| 21 | 360 | |
|
| 21 | 361 | | b.HasIndex("Path"); |
| 21 | 362 | |
|
| 21 | 363 | | b.HasIndex("PresentationUniqueKey"); |
| 21 | 364 | |
|
| 21 | 365 | | b.HasIndex("TopParentId", "Id"); |
| 21 | 366 | |
|
| 21 | 367 | | b.HasIndex("Type", "TopParentId", "Id"); |
| 21 | 368 | |
|
| 21 | 369 | | b.HasIndex("Type", "TopParentId", "PresentationUniqueKey"); |
| 21 | 370 | |
|
| 21 | 371 | | b.HasIndex("Type", "TopParentId", "StartDate"); |
| 21 | 372 | |
|
| 21 | 373 | | b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem"); |
| 21 | 374 | |
|
| 21 | 375 | | b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey"); |
| 21 | 376 | |
|
| 21 | 377 | | b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem"); |
| 21 | 378 | |
|
| 21 | 379 | | b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName"); |
| 21 | 380 | |
|
| 21 | 381 | | b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated"); |
| 21 | 382 | |
|
| 21 | 383 | | b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated"); |
| 21 | 384 | |
|
| 21 | 385 | | b.ToTable("BaseItems"); |
| 21 | 386 | | }); |
| | 387 | |
|
| 21 | 388 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b => |
| 21 | 389 | | { |
| 21 | 390 | | b.Property<Guid>("Id") |
| 21 | 391 | | .ValueGeneratedOnAdd() |
| 21 | 392 | | .HasColumnType("TEXT"); |
| 21 | 393 | |
|
| 21 | 394 | | b.Property<byte[]>("Blurhash") |
| 21 | 395 | | .HasColumnType("BLOB"); |
| 21 | 396 | |
|
| 21 | 397 | | b.Property<DateTime>("DateModified") |
| 21 | 398 | | .HasColumnType("TEXT"); |
| 21 | 399 | |
|
| 21 | 400 | | b.Property<int>("Height") |
| 21 | 401 | | .HasColumnType("INTEGER"); |
| 21 | 402 | |
|
| 21 | 403 | | b.Property<int>("ImageType") |
| 21 | 404 | | .HasColumnType("INTEGER"); |
| 21 | 405 | |
|
| 21 | 406 | | b.Property<Guid>("ItemId") |
| 21 | 407 | | .HasColumnType("TEXT"); |
| 21 | 408 | |
|
| 21 | 409 | | b.Property<string>("Path") |
| 21 | 410 | | .IsRequired() |
| 21 | 411 | | .HasColumnType("TEXT"); |
| 21 | 412 | |
|
| 21 | 413 | | b.Property<int>("Width") |
| 21 | 414 | | .HasColumnType("INTEGER"); |
| 21 | 415 | |
|
| 21 | 416 | | b.HasKey("Id"); |
| 21 | 417 | |
|
| 21 | 418 | | b.HasIndex("ItemId"); |
| 21 | 419 | |
|
| 21 | 420 | | b.ToTable("BaseItemImageInfos"); |
| 21 | 421 | | }); |
| | 422 | |
|
| 21 | 423 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b => |
| 21 | 424 | | { |
| 21 | 425 | | b.Property<int>("Id") |
| 21 | 426 | | .HasColumnType("INTEGER"); |
| 21 | 427 | |
|
| 21 | 428 | | b.Property<Guid>("ItemId") |
| 21 | 429 | | .HasColumnType("TEXT"); |
| 21 | 430 | |
|
| 21 | 431 | | b.HasKey("Id", "ItemId"); |
| 21 | 432 | |
|
| 21 | 433 | | b.HasIndex("ItemId"); |
| 21 | 434 | |
|
| 21 | 435 | | b.ToTable("BaseItemMetadataFields"); |
| 21 | 436 | | }); |
| | 437 | |
|
| 21 | 438 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b => |
| 21 | 439 | | { |
| 21 | 440 | | b.Property<Guid>("ItemId") |
| 21 | 441 | | .HasColumnType("TEXT"); |
| 21 | 442 | |
|
| 21 | 443 | | b.Property<string>("ProviderId") |
| 21 | 444 | | .HasColumnType("TEXT"); |
| 21 | 445 | |
|
| 21 | 446 | | b.Property<string>("ProviderValue") |
| 21 | 447 | | .IsRequired() |
| 21 | 448 | | .HasColumnType("TEXT"); |
| 21 | 449 | |
|
| 21 | 450 | | b.HasKey("ItemId", "ProviderId"); |
| 21 | 451 | |
|
| 21 | 452 | | b.HasIndex("ProviderId", "ProviderValue", "ItemId"); |
| 21 | 453 | |
|
| 21 | 454 | | b.ToTable("BaseItemProviders"); |
| 21 | 455 | | }); |
| | 456 | |
|
| 21 | 457 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b => |
| 21 | 458 | | { |
| 21 | 459 | | b.Property<int>("Id") |
| 21 | 460 | | .HasColumnType("INTEGER"); |
| 21 | 461 | |
|
| 21 | 462 | | b.Property<Guid>("ItemId") |
| 21 | 463 | | .HasColumnType("TEXT"); |
| 21 | 464 | |
|
| 21 | 465 | | b.HasKey("Id", "ItemId"); |
| 21 | 466 | |
|
| 21 | 467 | | b.HasIndex("ItemId"); |
| 21 | 468 | |
|
| 21 | 469 | | b.ToTable("BaseItemTrailerTypes"); |
| 21 | 470 | | }); |
| | 471 | |
|
| 21 | 472 | | modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b => |
| 21 | 473 | | { |
| 21 | 474 | | b.Property<Guid>("ItemId") |
| 21 | 475 | | .HasColumnType("TEXT"); |
| 21 | 476 | |
|
| 21 | 477 | | b.Property<int>("ChapterIndex") |
| 21 | 478 | | .HasColumnType("INTEGER"); |
| 21 | 479 | |
|
| 21 | 480 | | b.Property<DateTime?>("ImageDateModified") |
| 21 | 481 | | .HasColumnType("TEXT"); |
| 21 | 482 | |
|
| 21 | 483 | | b.Property<string>("ImagePath") |
| 21 | 484 | | .HasColumnType("TEXT"); |
| 21 | 485 | |
|
| 21 | 486 | | b.Property<string>("Name") |
| 21 | 487 | | .HasColumnType("TEXT"); |
| 21 | 488 | |
|
| 21 | 489 | | b.Property<long>("StartPositionTicks") |
| 21 | 490 | | .HasColumnType("INTEGER"); |
| 21 | 491 | |
|
| 21 | 492 | | b.HasKey("ItemId", "ChapterIndex"); |
| 21 | 493 | |
|
| 21 | 494 | | b.ToTable("Chapters"); |
| 21 | 495 | | }); |
| | 496 | |
|
| 21 | 497 | | modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b => |
| 21 | 498 | | { |
| 21 | 499 | | b.Property<int>("Id") |
| 21 | 500 | | .ValueGeneratedOnAdd() |
| 21 | 501 | | .HasColumnType("INTEGER"); |
| 21 | 502 | |
|
| 21 | 503 | | b.Property<string>("Client") |
| 21 | 504 | | .IsRequired() |
| 21 | 505 | | .HasMaxLength(32) |
| 21 | 506 | | .HasColumnType("TEXT"); |
| 21 | 507 | |
|
| 21 | 508 | | b.Property<Guid>("ItemId") |
| 21 | 509 | | .HasColumnType("TEXT"); |
| 21 | 510 | |
|
| 21 | 511 | | b.Property<string>("Key") |
| 21 | 512 | | .IsRequired() |
| 21 | 513 | | .HasColumnType("TEXT"); |
| 21 | 514 | |
|
| 21 | 515 | | b.Property<Guid>("UserId") |
| 21 | 516 | | .HasColumnType("TEXT"); |
| 21 | 517 | |
|
| 21 | 518 | | b.Property<string>("Value") |
| 21 | 519 | | .HasColumnType("TEXT"); |
| 21 | 520 | |
|
| 21 | 521 | | b.HasKey("Id"); |
| 21 | 522 | |
|
| 21 | 523 | | b.HasIndex("UserId", "ItemId", "Client", "Key") |
| 21 | 524 | | .IsUnique(); |
| 21 | 525 | |
|
| 21 | 526 | | b.ToTable("CustomItemDisplayPreferences"); |
| 21 | 527 | | }); |
| | 528 | |
|
| 21 | 529 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 21 | 530 | | { |
| 21 | 531 | | b.Property<int>("Id") |
| 21 | 532 | | .ValueGeneratedOnAdd() |
| 21 | 533 | | .HasColumnType("INTEGER"); |
| 21 | 534 | |
|
| 21 | 535 | | b.Property<int>("ChromecastVersion") |
| 21 | 536 | | .HasColumnType("INTEGER"); |
| 21 | 537 | |
|
| 21 | 538 | | b.Property<string>("Client") |
| 21 | 539 | | .IsRequired() |
| 21 | 540 | | .HasMaxLength(32) |
| 21 | 541 | | .HasColumnType("TEXT"); |
| 21 | 542 | |
|
| 21 | 543 | | b.Property<string>("DashboardTheme") |
| 21 | 544 | | .HasMaxLength(32) |
| 21 | 545 | | .HasColumnType("TEXT"); |
| 21 | 546 | |
|
| 21 | 547 | | b.Property<bool>("EnableNextVideoInfoOverlay") |
| 21 | 548 | | .HasColumnType("INTEGER"); |
| 21 | 549 | |
|
| 21 | 550 | | b.Property<int?>("IndexBy") |
| 21 | 551 | | .HasColumnType("INTEGER"); |
| 21 | 552 | |
|
| 21 | 553 | | b.Property<Guid>("ItemId") |
| 21 | 554 | | .HasColumnType("TEXT"); |
| 21 | 555 | |
|
| 21 | 556 | | b.Property<int>("ScrollDirection") |
| 21 | 557 | | .HasColumnType("INTEGER"); |
| 21 | 558 | |
|
| 21 | 559 | | b.Property<bool>("ShowBackdrop") |
| 21 | 560 | | .HasColumnType("INTEGER"); |
| 21 | 561 | |
|
| 21 | 562 | | b.Property<bool>("ShowSidebar") |
| 21 | 563 | | .HasColumnType("INTEGER"); |
| 21 | 564 | |
|
| 21 | 565 | | b.Property<int>("SkipBackwardLength") |
| 21 | 566 | | .HasColumnType("INTEGER"); |
| 21 | 567 | |
|
| 21 | 568 | | b.Property<int>("SkipForwardLength") |
| 21 | 569 | | .HasColumnType("INTEGER"); |
| 21 | 570 | |
|
| 21 | 571 | | b.Property<string>("TvHome") |
| 21 | 572 | | .HasMaxLength(32) |
| 21 | 573 | | .HasColumnType("TEXT"); |
| 21 | 574 | |
|
| 21 | 575 | | b.Property<Guid>("UserId") |
| 21 | 576 | | .HasColumnType("TEXT"); |
| 21 | 577 | |
|
| 21 | 578 | | b.HasKey("Id"); |
| 21 | 579 | |
|
| 21 | 580 | | b.HasIndex("UserId", "ItemId", "Client") |
| 21 | 581 | | .IsUnique(); |
| 21 | 582 | |
|
| 21 | 583 | | b.ToTable("DisplayPreferences"); |
| 21 | 584 | | }); |
| | 585 | |
|
| 21 | 586 | | modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b => |
| 21 | 587 | | { |
| 21 | 588 | | b.Property<int>("Id") |
| 21 | 589 | | .ValueGeneratedOnAdd() |
| 21 | 590 | | .HasColumnType("INTEGER"); |
| 21 | 591 | |
|
| 21 | 592 | | b.Property<int>("DisplayPreferencesId") |
| 21 | 593 | | .HasColumnType("INTEGER"); |
| 21 | 594 | |
|
| 21 | 595 | | b.Property<int>("Order") |
| 21 | 596 | | .HasColumnType("INTEGER"); |
| 21 | 597 | |
|
| 21 | 598 | | b.Property<int>("Type") |
| 21 | 599 | | .HasColumnType("INTEGER"); |
| 21 | 600 | |
|
| 21 | 601 | | b.HasKey("Id"); |
| 21 | 602 | |
|
| 21 | 603 | | b.HasIndex("DisplayPreferencesId"); |
| 21 | 604 | |
|
| 21 | 605 | | b.ToTable("HomeSection"); |
| 21 | 606 | | }); |
| | 607 | |
|
| 21 | 608 | | modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b => |
| 21 | 609 | | { |
| 21 | 610 | | b.Property<int>("Id") |
| 21 | 611 | | .ValueGeneratedOnAdd() |
| 21 | 612 | | .HasColumnType("INTEGER"); |
| 21 | 613 | |
|
| 21 | 614 | | b.Property<DateTime>("LastModified") |
| 21 | 615 | | .HasColumnType("TEXT"); |
| 21 | 616 | |
|
| 21 | 617 | | b.Property<string>("Path") |
| 21 | 618 | | .IsRequired() |
| 21 | 619 | | .HasMaxLength(512) |
| 21 | 620 | | .HasColumnType("TEXT"); |
| 21 | 621 | |
|
| 21 | 622 | | b.Property<Guid?>("UserId") |
| 21 | 623 | | .HasColumnType("TEXT"); |
| 21 | 624 | |
|
| 21 | 625 | | b.HasKey("Id"); |
| 21 | 626 | |
|
| 21 | 627 | | b.HasIndex("UserId") |
| 21 | 628 | | .IsUnique(); |
| 21 | 629 | |
|
| 21 | 630 | | b.ToTable("ImageInfos"); |
| 21 | 631 | | }); |
| | 632 | |
|
| 21 | 633 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b => |
| 21 | 634 | | { |
| 21 | 635 | | b.Property<int>("Id") |
| 21 | 636 | | .ValueGeneratedOnAdd() |
| 21 | 637 | | .HasColumnType("INTEGER"); |
| 21 | 638 | |
|
| 21 | 639 | | b.Property<string>("Client") |
| 21 | 640 | | .IsRequired() |
| 21 | 641 | | .HasMaxLength(32) |
| 21 | 642 | | .HasColumnType("TEXT"); |
| 21 | 643 | |
|
| 21 | 644 | | b.Property<int?>("IndexBy") |
| 21 | 645 | | .HasColumnType("INTEGER"); |
| 21 | 646 | |
|
| 21 | 647 | | b.Property<Guid>("ItemId") |
| 21 | 648 | | .HasColumnType("TEXT"); |
| 21 | 649 | |
|
| 21 | 650 | | b.Property<bool>("RememberIndexing") |
| 21 | 651 | | .HasColumnType("INTEGER"); |
| 21 | 652 | |
|
| 21 | 653 | | b.Property<bool>("RememberSorting") |
| 21 | 654 | | .HasColumnType("INTEGER"); |
| 21 | 655 | |
|
| 21 | 656 | | b.Property<string>("SortBy") |
| 21 | 657 | | .IsRequired() |
| 21 | 658 | | .HasMaxLength(64) |
| 21 | 659 | | .HasColumnType("TEXT"); |
| 21 | 660 | |
|
| 21 | 661 | | b.Property<int>("SortOrder") |
| 21 | 662 | | .HasColumnType("INTEGER"); |
| 21 | 663 | |
|
| 21 | 664 | | b.Property<Guid>("UserId") |
| 21 | 665 | | .HasColumnType("TEXT"); |
| 21 | 666 | |
|
| 21 | 667 | | b.Property<int>("ViewType") |
| 21 | 668 | | .HasColumnType("INTEGER"); |
| 21 | 669 | |
|
| 21 | 670 | | b.HasKey("Id"); |
| 21 | 671 | |
|
| 21 | 672 | | b.HasIndex("UserId"); |
| 21 | 673 | |
|
| 21 | 674 | | b.ToTable("ItemDisplayPreferences"); |
| 21 | 675 | | }); |
| | 676 | |
|
| 21 | 677 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b => |
| 21 | 678 | | { |
| 21 | 679 | | b.Property<Guid>("ItemValueId") |
| 21 | 680 | | .ValueGeneratedOnAdd() |
| 21 | 681 | | .HasColumnType("TEXT"); |
| 21 | 682 | |
|
| 21 | 683 | | b.Property<string>("CleanValue") |
| 21 | 684 | | .IsRequired() |
| 21 | 685 | | .HasColumnType("TEXT"); |
| 21 | 686 | |
|
| 21 | 687 | | b.Property<int>("Type") |
| 21 | 688 | | .HasColumnType("INTEGER"); |
| 21 | 689 | |
|
| 21 | 690 | | b.Property<string>("Value") |
| 21 | 691 | | .IsRequired() |
| 21 | 692 | | .HasColumnType("TEXT"); |
| 21 | 693 | |
|
| 21 | 694 | | b.HasKey("ItemValueId"); |
| 21 | 695 | |
|
| 21 | 696 | | b.HasIndex("Type", "CleanValue") |
| 21 | 697 | | .IsUnique(); |
| 21 | 698 | |
|
| 21 | 699 | | b.ToTable("ItemValues"); |
| 21 | 700 | | }); |
| | 701 | |
|
| 21 | 702 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b => |
| 21 | 703 | | { |
| 21 | 704 | | b.Property<Guid>("ItemValueId") |
| 21 | 705 | | .HasColumnType("TEXT"); |
| 21 | 706 | |
|
| 21 | 707 | | b.Property<Guid>("ItemId") |
| 21 | 708 | | .HasColumnType("TEXT"); |
| 21 | 709 | |
|
| 21 | 710 | | b.HasKey("ItemValueId", "ItemId"); |
| 21 | 711 | |
|
| 21 | 712 | | b.HasIndex("ItemId"); |
| 21 | 713 | |
|
| 21 | 714 | | b.ToTable("ItemValuesMap"); |
| 21 | 715 | | }); |
| | 716 | |
|
| 21 | 717 | | modelBuilder.Entity("Jellyfin.Data.Entities.MediaSegment", b => |
| 21 | 718 | | { |
| 21 | 719 | | b.Property<Guid>("Id") |
| 21 | 720 | | .ValueGeneratedOnAdd() |
| 21 | 721 | | .HasColumnType("TEXT"); |
| 21 | 722 | |
|
| 21 | 723 | | b.Property<long>("EndTicks") |
| 21 | 724 | | .HasColumnType("INTEGER"); |
| 21 | 725 | |
|
| 21 | 726 | | b.Property<Guid>("ItemId") |
| 21 | 727 | | .HasColumnType("TEXT"); |
| 21 | 728 | |
|
| 21 | 729 | | b.Property<string>("SegmentProviderId") |
| 21 | 730 | | .IsRequired() |
| 21 | 731 | | .HasColumnType("TEXT"); |
| 21 | 732 | |
|
| 21 | 733 | | b.Property<long>("StartTicks") |
| 21 | 734 | | .HasColumnType("INTEGER"); |
| 21 | 735 | |
|
| 21 | 736 | | b.Property<int>("Type") |
| 21 | 737 | | .HasColumnType("INTEGER"); |
| 21 | 738 | |
|
| 21 | 739 | | b.HasKey("Id"); |
| 21 | 740 | |
|
| 21 | 741 | | b.ToTable("MediaSegments"); |
| 21 | 742 | | }); |
| | 743 | |
|
| 21 | 744 | | modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b => |
| 21 | 745 | | { |
| 21 | 746 | | b.Property<Guid>("ItemId") |
| 21 | 747 | | .HasColumnType("TEXT"); |
| 21 | 748 | |
|
| 21 | 749 | | b.Property<int>("StreamIndex") |
| 21 | 750 | | .HasColumnType("INTEGER"); |
| 21 | 751 | |
|
| 21 | 752 | | b.Property<string>("AspectRatio") |
| 21 | 753 | | .HasColumnType("TEXT"); |
| 21 | 754 | |
|
| 21 | 755 | | b.Property<float?>("AverageFrameRate") |
| 21 | 756 | | .HasColumnType("REAL"); |
| 21 | 757 | |
|
| 21 | 758 | | b.Property<int?>("BitDepth") |
| 21 | 759 | | .HasColumnType("INTEGER"); |
| 21 | 760 | |
|
| 21 | 761 | | b.Property<int?>("BitRate") |
| 21 | 762 | | .HasColumnType("INTEGER"); |
| 21 | 763 | |
|
| 21 | 764 | | b.Property<int?>("BlPresentFlag") |
| 21 | 765 | | .HasColumnType("INTEGER"); |
| 21 | 766 | |
|
| 21 | 767 | | b.Property<string>("ChannelLayout") |
| 21 | 768 | | .HasColumnType("TEXT"); |
| 21 | 769 | |
|
| 21 | 770 | | b.Property<int?>("Channels") |
| 21 | 771 | | .HasColumnType("INTEGER"); |
| 21 | 772 | |
|
| 21 | 773 | | b.Property<string>("Codec") |
| 21 | 774 | | .HasColumnType("TEXT"); |
| 21 | 775 | |
|
| 21 | 776 | | b.Property<string>("CodecTag") |
| 21 | 777 | | .HasColumnType("TEXT"); |
| 21 | 778 | |
|
| 21 | 779 | | b.Property<string>("CodecTimeBase") |
| 21 | 780 | | .HasColumnType("TEXT"); |
| 21 | 781 | |
|
| 21 | 782 | | b.Property<string>("ColorPrimaries") |
| 21 | 783 | | .HasColumnType("TEXT"); |
| 21 | 784 | |
|
| 21 | 785 | | b.Property<string>("ColorSpace") |
| 21 | 786 | | .HasColumnType("TEXT"); |
| 21 | 787 | |
|
| 21 | 788 | | b.Property<string>("ColorTransfer") |
| 21 | 789 | | .HasColumnType("TEXT"); |
| 21 | 790 | |
|
| 21 | 791 | | b.Property<string>("Comment") |
| 21 | 792 | | .HasColumnType("TEXT"); |
| 21 | 793 | |
|
| 21 | 794 | | b.Property<int?>("DvBlSignalCompatibilityId") |
| 21 | 795 | | .HasColumnType("INTEGER"); |
| 21 | 796 | |
|
| 21 | 797 | | b.Property<int?>("DvLevel") |
| 21 | 798 | | .HasColumnType("INTEGER"); |
| 21 | 799 | |
|
| 21 | 800 | | b.Property<int?>("DvProfile") |
| 21 | 801 | | .HasColumnType("INTEGER"); |
| 21 | 802 | |
|
| 21 | 803 | | b.Property<int?>("DvVersionMajor") |
| 21 | 804 | | .HasColumnType("INTEGER"); |
| 21 | 805 | |
|
| 21 | 806 | | b.Property<int?>("DvVersionMinor") |
| 21 | 807 | | .HasColumnType("INTEGER"); |
| 21 | 808 | |
|
| 21 | 809 | | b.Property<int?>("ElPresentFlag") |
| 21 | 810 | | .HasColumnType("INTEGER"); |
| 21 | 811 | |
|
| 21 | 812 | | b.Property<int?>("Height") |
| 21 | 813 | | .HasColumnType("INTEGER"); |
| 21 | 814 | |
|
| 21 | 815 | | b.Property<bool?>("IsAnamorphic") |
| 21 | 816 | | .HasColumnType("INTEGER"); |
| 21 | 817 | |
|
| 21 | 818 | | b.Property<bool?>("IsAvc") |
| 21 | 819 | | .HasColumnType("INTEGER"); |
| 21 | 820 | |
|
| 21 | 821 | | b.Property<bool>("IsDefault") |
| 21 | 822 | | .HasColumnType("INTEGER"); |
| 21 | 823 | |
|
| 21 | 824 | | b.Property<bool>("IsExternal") |
| 21 | 825 | | .HasColumnType("INTEGER"); |
| 21 | 826 | |
|
| 21 | 827 | | b.Property<bool>("IsForced") |
| 21 | 828 | | .HasColumnType("INTEGER"); |
| 21 | 829 | |
|
| 21 | 830 | | b.Property<bool?>("IsHearingImpaired") |
| 21 | 831 | | .HasColumnType("INTEGER"); |
| 21 | 832 | |
|
| 21 | 833 | | b.Property<bool?>("IsInterlaced") |
| 21 | 834 | | .HasColumnType("INTEGER"); |
| 21 | 835 | |
|
| 21 | 836 | | b.Property<string>("KeyFrames") |
| 21 | 837 | | .HasColumnType("TEXT"); |
| 21 | 838 | |
|
| 21 | 839 | | b.Property<string>("Language") |
| 21 | 840 | | .HasColumnType("TEXT"); |
| 21 | 841 | |
|
| 21 | 842 | | b.Property<float?>("Level") |
| 21 | 843 | | .HasColumnType("REAL"); |
| 21 | 844 | |
|
| 21 | 845 | | b.Property<string>("NalLengthSize") |
| 21 | 846 | | .HasColumnType("TEXT"); |
| 21 | 847 | |
|
| 21 | 848 | | b.Property<string>("Path") |
| 21 | 849 | | .HasColumnType("TEXT"); |
| 21 | 850 | |
|
| 21 | 851 | | b.Property<string>("PixelFormat") |
| 21 | 852 | | .HasColumnType("TEXT"); |
| 21 | 853 | |
|
| 21 | 854 | | b.Property<string>("Profile") |
| 21 | 855 | | .HasColumnType("TEXT"); |
| 21 | 856 | |
|
| 21 | 857 | | b.Property<float?>("RealFrameRate") |
| 21 | 858 | | .HasColumnType("REAL"); |
| 21 | 859 | |
|
| 21 | 860 | | b.Property<int?>("RefFrames") |
| 21 | 861 | | .HasColumnType("INTEGER"); |
| 21 | 862 | |
|
| 21 | 863 | | b.Property<int?>("Rotation") |
| 21 | 864 | | .HasColumnType("INTEGER"); |
| 21 | 865 | |
|
| 21 | 866 | | b.Property<int?>("RpuPresentFlag") |
| 21 | 867 | | .HasColumnType("INTEGER"); |
| 21 | 868 | |
|
| 21 | 869 | | b.Property<int?>("SampleRate") |
| 21 | 870 | | .HasColumnType("INTEGER"); |
| 21 | 871 | |
|
| 21 | 872 | | b.Property<int>("StreamType") |
| 21 | 873 | | .HasColumnType("INTEGER"); |
| 21 | 874 | |
|
| 21 | 875 | | b.Property<string>("TimeBase") |
| 21 | 876 | | .HasColumnType("TEXT"); |
| 21 | 877 | |
|
| 21 | 878 | | b.Property<string>("Title") |
| 21 | 879 | | .HasColumnType("TEXT"); |
| 21 | 880 | |
|
| 21 | 881 | | b.Property<int?>("Width") |
| 21 | 882 | | .HasColumnType("INTEGER"); |
| 21 | 883 | |
|
| 21 | 884 | | b.HasKey("ItemId", "StreamIndex"); |
| 21 | 885 | |
|
| 21 | 886 | | b.HasIndex("StreamIndex"); |
| 21 | 887 | |
|
| 21 | 888 | | b.HasIndex("StreamType"); |
| 21 | 889 | |
|
| 21 | 890 | | b.HasIndex("StreamIndex", "StreamType"); |
| 21 | 891 | |
|
| 21 | 892 | | b.HasIndex("StreamIndex", "StreamType", "Language"); |
| 21 | 893 | |
|
| 21 | 894 | | b.ToTable("MediaStreamInfos"); |
| 21 | 895 | | }); |
| | 896 | |
|
| 21 | 897 | | modelBuilder.Entity("Jellyfin.Data.Entities.People", b => |
| 21 | 898 | | { |
| 21 | 899 | | b.Property<Guid>("Id") |
| 21 | 900 | | .ValueGeneratedOnAdd() |
| 21 | 901 | | .HasColumnType("TEXT"); |
| 21 | 902 | |
|
| 21 | 903 | | b.Property<string>("Name") |
| 21 | 904 | | .IsRequired() |
| 21 | 905 | | .HasColumnType("TEXT"); |
| 21 | 906 | |
|
| 21 | 907 | | b.Property<string>("PersonType") |
| 21 | 908 | | .HasColumnType("TEXT"); |
| 21 | 909 | |
|
| 21 | 910 | | b.HasKey("Id"); |
| 21 | 911 | |
|
| 21 | 912 | | b.HasIndex("Name"); |
| 21 | 913 | |
|
| 21 | 914 | | b.ToTable("Peoples"); |
| 21 | 915 | | }); |
| | 916 | |
|
| 21 | 917 | | modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b => |
| 21 | 918 | | { |
| 21 | 919 | | b.Property<Guid>("ItemId") |
| 21 | 920 | | .HasColumnType("TEXT"); |
| 21 | 921 | |
|
| 21 | 922 | | b.Property<Guid>("PeopleId") |
| 21 | 923 | | .HasColumnType("TEXT"); |
| 21 | 924 | |
|
| 21 | 925 | | b.Property<int?>("ListOrder") |
| 21 | 926 | | .HasColumnType("INTEGER"); |
| 21 | 927 | |
|
| 21 | 928 | | b.Property<string>("Role") |
| 21 | 929 | | .HasColumnType("TEXT"); |
| 21 | 930 | |
|
| 21 | 931 | | b.Property<int?>("SortOrder") |
| 21 | 932 | | .HasColumnType("INTEGER"); |
| 21 | 933 | |
|
| 21 | 934 | | b.HasKey("ItemId", "PeopleId"); |
| 21 | 935 | |
|
| 21 | 936 | | b.HasIndex("PeopleId"); |
| 21 | 937 | |
|
| 21 | 938 | | b.HasIndex("ItemId", "ListOrder"); |
| 21 | 939 | |
|
| 21 | 940 | | b.HasIndex("ItemId", "SortOrder"); |
| 21 | 941 | |
|
| 21 | 942 | | b.ToTable("PeopleBaseItemMap"); |
| 21 | 943 | | }); |
| | 944 | |
|
| 21 | 945 | | modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b => |
| 21 | 946 | | { |
| 21 | 947 | | b.Property<int>("Id") |
| 21 | 948 | | .ValueGeneratedOnAdd() |
| 21 | 949 | | .HasColumnType("INTEGER"); |
| 21 | 950 | |
|
| 21 | 951 | | b.Property<int>("Kind") |
| 21 | 952 | | .HasColumnType("INTEGER"); |
| 21 | 953 | |
|
| 21 | 954 | | b.Property<Guid?>("Permission_Permissions_Guid") |
| 21 | 955 | | .HasColumnType("TEXT"); |
| 21 | 956 | |
|
| 21 | 957 | | b.Property<uint>("RowVersion") |
| 21 | 958 | | .IsConcurrencyToken() |
| 21 | 959 | | .HasColumnType("INTEGER"); |
| 21 | 960 | |
|
| 21 | 961 | | b.Property<Guid?>("UserId") |
| 21 | 962 | | .HasColumnType("TEXT"); |
| 21 | 963 | |
|
| 21 | 964 | | b.Property<bool>("Value") |
| 21 | 965 | | .HasColumnType("INTEGER"); |
| 21 | 966 | |
|
| 21 | 967 | | b.HasKey("Id"); |
| 21 | 968 | |
|
| 21 | 969 | | b.HasIndex("UserId", "Kind") |
| 21 | 970 | | .IsUnique() |
| 21 | 971 | | .HasFilter("[UserId] IS NOT NULL"); |
| 21 | 972 | |
|
| 21 | 973 | | b.ToTable("Permissions"); |
| 21 | 974 | | }); |
| | 975 | |
|
| 21 | 976 | | modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b => |
| 21 | 977 | | { |
| 21 | 978 | | b.Property<int>("Id") |
| 21 | 979 | | .ValueGeneratedOnAdd() |
| 21 | 980 | | .HasColumnType("INTEGER"); |
| 21 | 981 | |
|
| 21 | 982 | | b.Property<int>("Kind") |
| 21 | 983 | | .HasColumnType("INTEGER"); |
| 21 | 984 | |
|
| 21 | 985 | | b.Property<Guid?>("Preference_Preferences_Guid") |
| 21 | 986 | | .HasColumnType("TEXT"); |
| 21 | 987 | |
|
| 21 | 988 | | b.Property<uint>("RowVersion") |
| 21 | 989 | | .IsConcurrencyToken() |
| 21 | 990 | | .HasColumnType("INTEGER"); |
| 21 | 991 | |
|
| 21 | 992 | | b.Property<Guid?>("UserId") |
| 21 | 993 | | .HasColumnType("TEXT"); |
| 21 | 994 | |
|
| 21 | 995 | | b.Property<string>("Value") |
| 21 | 996 | | .IsRequired() |
| 21 | 997 | | .HasMaxLength(65535) |
| 21 | 998 | | .HasColumnType("TEXT"); |
| 21 | 999 | |
|
| 21 | 1000 | | b.HasKey("Id"); |
| 21 | 1001 | |
|
| 21 | 1002 | | b.HasIndex("UserId", "Kind") |
| 21 | 1003 | | .IsUnique() |
| 21 | 1004 | | .HasFilter("[UserId] IS NOT NULL"); |
| 21 | 1005 | |
|
| 21 | 1006 | | b.ToTable("Preferences"); |
| 21 | 1007 | | }); |
| | 1008 | |
|
| 21 | 1009 | | modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b => |
| 21 | 1010 | | { |
| 21 | 1011 | | b.Property<int>("Id") |
| 21 | 1012 | | .ValueGeneratedOnAdd() |
| 21 | 1013 | | .HasColumnType("INTEGER"); |
| 21 | 1014 | |
|
| 21 | 1015 | | b.Property<string>("AccessToken") |
| 21 | 1016 | | .IsRequired() |
| 21 | 1017 | | .HasColumnType("TEXT"); |
| 21 | 1018 | |
|
| 21 | 1019 | | b.Property<DateTime>("DateCreated") |
| 21 | 1020 | | .HasColumnType("TEXT"); |
| 21 | 1021 | |
|
| 21 | 1022 | | b.Property<DateTime>("DateLastActivity") |
| 21 | 1023 | | .HasColumnType("TEXT"); |
| 21 | 1024 | |
|
| 21 | 1025 | | b.Property<string>("Name") |
| 21 | 1026 | | .IsRequired() |
| 21 | 1027 | | .HasMaxLength(64) |
| 21 | 1028 | | .HasColumnType("TEXT"); |
| 21 | 1029 | |
|
| 21 | 1030 | | b.HasKey("Id"); |
| 21 | 1031 | |
|
| 21 | 1032 | | b.HasIndex("AccessToken") |
| 21 | 1033 | | .IsUnique(); |
| 21 | 1034 | |
|
| 21 | 1035 | | b.ToTable("ApiKeys"); |
| 21 | 1036 | | }); |
| | 1037 | |
|
| 21 | 1038 | | modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b => |
| 21 | 1039 | | { |
| 21 | 1040 | | b.Property<int>("Id") |
| 21 | 1041 | | .ValueGeneratedOnAdd() |
| 21 | 1042 | | .HasColumnType("INTEGER"); |
| 21 | 1043 | |
|
| 21 | 1044 | | b.Property<string>("AccessToken") |
| 21 | 1045 | | .IsRequired() |
| 21 | 1046 | | .HasColumnType("TEXT"); |
| 21 | 1047 | |
|
| 21 | 1048 | | b.Property<string>("AppName") |
| 21 | 1049 | | .IsRequired() |
| 21 | 1050 | | .HasMaxLength(64) |
| 21 | 1051 | | .HasColumnType("TEXT"); |
| 21 | 1052 | |
|
| 21 | 1053 | | b.Property<string>("AppVersion") |
| 21 | 1054 | | .IsRequired() |
| 21 | 1055 | | .HasMaxLength(32) |
| 21 | 1056 | | .HasColumnType("TEXT"); |
| 21 | 1057 | |
|
| 21 | 1058 | | b.Property<DateTime>("DateCreated") |
| 21 | 1059 | | .HasColumnType("TEXT"); |
| 21 | 1060 | |
|
| 21 | 1061 | | b.Property<DateTime>("DateLastActivity") |
| 21 | 1062 | | .HasColumnType("TEXT"); |
| 21 | 1063 | |
|
| 21 | 1064 | | b.Property<DateTime>("DateModified") |
| 21 | 1065 | | .HasColumnType("TEXT"); |
| 21 | 1066 | |
|
| 21 | 1067 | | b.Property<string>("DeviceId") |
| 21 | 1068 | | .IsRequired() |
| 21 | 1069 | | .HasMaxLength(256) |
| 21 | 1070 | | .HasColumnType("TEXT"); |
| 21 | 1071 | |
|
| 21 | 1072 | | b.Property<string>("DeviceName") |
| 21 | 1073 | | .IsRequired() |
| 21 | 1074 | | .HasMaxLength(64) |
| 21 | 1075 | | .HasColumnType("TEXT"); |
| 21 | 1076 | |
|
| 21 | 1077 | | b.Property<bool>("IsActive") |
| 21 | 1078 | | .HasColumnType("INTEGER"); |
| 21 | 1079 | |
|
| 21 | 1080 | | b.Property<Guid>("UserId") |
| 21 | 1081 | | .HasColumnType("TEXT"); |
| 21 | 1082 | |
|
| 21 | 1083 | | b.HasKey("Id"); |
| 21 | 1084 | |
|
| 21 | 1085 | | b.HasIndex("DeviceId"); |
| 21 | 1086 | |
|
| 21 | 1087 | | b.HasIndex("AccessToken", "DateLastActivity"); |
| 21 | 1088 | |
|
| 21 | 1089 | | b.HasIndex("DeviceId", "DateLastActivity"); |
| 21 | 1090 | |
|
| 21 | 1091 | | b.HasIndex("UserId", "DeviceId"); |
| 21 | 1092 | |
|
| 21 | 1093 | | b.ToTable("Devices"); |
| 21 | 1094 | | }); |
| | 1095 | |
|
| 21 | 1096 | | modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b => |
| 21 | 1097 | | { |
| 21 | 1098 | | b.Property<int>("Id") |
| 21 | 1099 | | .ValueGeneratedOnAdd() |
| 21 | 1100 | | .HasColumnType("INTEGER"); |
| 21 | 1101 | |
|
| 21 | 1102 | | b.Property<string>("CustomName") |
| 21 | 1103 | | .HasColumnType("TEXT"); |
| 21 | 1104 | |
|
| 21 | 1105 | | b.Property<string>("DeviceId") |
| 21 | 1106 | | .IsRequired() |
| 21 | 1107 | | .HasColumnType("TEXT"); |
| 21 | 1108 | |
|
| 21 | 1109 | | b.HasKey("Id"); |
| 21 | 1110 | |
|
| 21 | 1111 | | b.HasIndex("DeviceId") |
| 21 | 1112 | | .IsUnique(); |
| 21 | 1113 | |
|
| 21 | 1114 | | b.ToTable("DeviceOptions"); |
| 21 | 1115 | | }); |
| | 1116 | |
|
| 21 | 1117 | | modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b => |
| 21 | 1118 | | { |
| 21 | 1119 | | b.Property<Guid>("ItemId") |
| 21 | 1120 | | .HasColumnType("TEXT"); |
| 21 | 1121 | |
|
| 21 | 1122 | | b.Property<int>("Width") |
| 21 | 1123 | | .HasColumnType("INTEGER"); |
| 21 | 1124 | |
|
| 21 | 1125 | | b.Property<int>("Bandwidth") |
| 21 | 1126 | | .HasColumnType("INTEGER"); |
| 21 | 1127 | |
|
| 21 | 1128 | | b.Property<int>("Height") |
| 21 | 1129 | | .HasColumnType("INTEGER"); |
| 21 | 1130 | |
|
| 21 | 1131 | | b.Property<int>("Interval") |
| 21 | 1132 | | .HasColumnType("INTEGER"); |
| 21 | 1133 | |
|
| 21 | 1134 | | b.Property<int>("ThumbnailCount") |
| 21 | 1135 | | .HasColumnType("INTEGER"); |
| 21 | 1136 | |
|
| 21 | 1137 | | b.Property<int>("TileHeight") |
| 21 | 1138 | | .HasColumnType("INTEGER"); |
| 21 | 1139 | |
|
| 21 | 1140 | | b.Property<int>("TileWidth") |
| 21 | 1141 | | .HasColumnType("INTEGER"); |
| 21 | 1142 | |
|
| 21 | 1143 | | b.HasKey("ItemId", "Width"); |
| 21 | 1144 | |
|
| 21 | 1145 | | b.ToTable("TrickplayInfos"); |
| 21 | 1146 | | }); |
| | 1147 | |
|
| 21 | 1148 | | modelBuilder.Entity("Jellyfin.Data.Entities.User", b => |
| 21 | 1149 | | { |
| 21 | 1150 | | b.Property<Guid>("Id") |
| 21 | 1151 | | .ValueGeneratedOnAdd() |
| 21 | 1152 | | .HasColumnType("TEXT"); |
| 21 | 1153 | |
|
| 21 | 1154 | | b.Property<string>("AudioLanguagePreference") |
| 21 | 1155 | | .HasMaxLength(255) |
| 21 | 1156 | | .HasColumnType("TEXT"); |
| 21 | 1157 | |
|
| 21 | 1158 | | b.Property<string>("AuthenticationProviderId") |
| 21 | 1159 | | .IsRequired() |
| 21 | 1160 | | .HasMaxLength(255) |
| 21 | 1161 | | .HasColumnType("TEXT"); |
| 21 | 1162 | |
|
| 21 | 1163 | | b.Property<string>("CastReceiverId") |
| 21 | 1164 | | .HasMaxLength(32) |
| 21 | 1165 | | .HasColumnType("TEXT"); |
| 21 | 1166 | |
|
| 21 | 1167 | | b.Property<bool>("DisplayCollectionsView") |
| 21 | 1168 | | .HasColumnType("INTEGER"); |
| 21 | 1169 | |
|
| 21 | 1170 | | b.Property<bool>("DisplayMissingEpisodes") |
| 21 | 1171 | | .HasColumnType("INTEGER"); |
| 21 | 1172 | |
|
| 21 | 1173 | | b.Property<bool>("EnableAutoLogin") |
| 21 | 1174 | | .HasColumnType("INTEGER"); |
| 21 | 1175 | |
|
| 21 | 1176 | | b.Property<bool>("EnableLocalPassword") |
| 21 | 1177 | | .HasColumnType("INTEGER"); |
| 21 | 1178 | |
|
| 21 | 1179 | | b.Property<bool>("EnableNextEpisodeAutoPlay") |
| 21 | 1180 | | .HasColumnType("INTEGER"); |
| 21 | 1181 | |
|
| 21 | 1182 | | b.Property<bool>("EnableUserPreferenceAccess") |
| 21 | 1183 | | .HasColumnType("INTEGER"); |
| 21 | 1184 | |
|
| 21 | 1185 | | b.Property<bool>("HidePlayedInLatest") |
| 21 | 1186 | | .HasColumnType("INTEGER"); |
| 21 | 1187 | |
|
| 21 | 1188 | | b.Property<long>("InternalId") |
| 21 | 1189 | | .HasColumnType("INTEGER"); |
| 21 | 1190 | |
|
| 21 | 1191 | | b.Property<int>("InvalidLoginAttemptCount") |
| 21 | 1192 | | .HasColumnType("INTEGER"); |
| 21 | 1193 | |
|
| 21 | 1194 | | b.Property<DateTime?>("LastActivityDate") |
| 21 | 1195 | | .HasColumnType("TEXT"); |
| 21 | 1196 | |
|
| 21 | 1197 | | b.Property<DateTime?>("LastLoginDate") |
| 21 | 1198 | | .HasColumnType("TEXT"); |
| 21 | 1199 | |
|
| 21 | 1200 | | b.Property<int?>("LoginAttemptsBeforeLockout") |
| 21 | 1201 | | .HasColumnType("INTEGER"); |
| 21 | 1202 | |
|
| 21 | 1203 | | b.Property<int>("MaxActiveSessions") |
| 21 | 1204 | | .HasColumnType("INTEGER"); |
| 21 | 1205 | |
|
| 21 | 1206 | | b.Property<int?>("MaxParentalAgeRating") |
| 21 | 1207 | | .HasColumnType("INTEGER"); |
| 21 | 1208 | |
|
| 21 | 1209 | | b.Property<bool>("MustUpdatePassword") |
| 21 | 1210 | | .HasColumnType("INTEGER"); |
| 21 | 1211 | |
|
| 21 | 1212 | | b.Property<string>("Password") |
| 21 | 1213 | | .HasMaxLength(65535) |
| 21 | 1214 | | .HasColumnType("TEXT"); |
| 21 | 1215 | |
|
| 21 | 1216 | | b.Property<string>("PasswordResetProviderId") |
| 21 | 1217 | | .IsRequired() |
| 21 | 1218 | | .HasMaxLength(255) |
| 21 | 1219 | | .HasColumnType("TEXT"); |
| 21 | 1220 | |
|
| 21 | 1221 | | b.Property<bool>("PlayDefaultAudioTrack") |
| 21 | 1222 | | .HasColumnType("INTEGER"); |
| 21 | 1223 | |
|
| 21 | 1224 | | b.Property<bool>("RememberAudioSelections") |
| 21 | 1225 | | .HasColumnType("INTEGER"); |
| 21 | 1226 | |
|
| 21 | 1227 | | b.Property<bool>("RememberSubtitleSelections") |
| 21 | 1228 | | .HasColumnType("INTEGER"); |
| 21 | 1229 | |
|
| 21 | 1230 | | b.Property<int?>("RemoteClientBitrateLimit") |
| 21 | 1231 | | .HasColumnType("INTEGER"); |
| 21 | 1232 | |
|
| 21 | 1233 | | b.Property<uint>("RowVersion") |
| 21 | 1234 | | .IsConcurrencyToken() |
| 21 | 1235 | | .HasColumnType("INTEGER"); |
| 21 | 1236 | |
|
| 21 | 1237 | | b.Property<string>("SubtitleLanguagePreference") |
| 21 | 1238 | | .HasMaxLength(255) |
| 21 | 1239 | | .HasColumnType("TEXT"); |
| 21 | 1240 | |
|
| 21 | 1241 | | b.Property<int>("SubtitleMode") |
| 21 | 1242 | | .HasColumnType("INTEGER"); |
| 21 | 1243 | |
|
| 21 | 1244 | | b.Property<int>("SyncPlayAccess") |
| 21 | 1245 | | .HasColumnType("INTEGER"); |
| 21 | 1246 | |
|
| 21 | 1247 | | b.Property<string>("Username") |
| 21 | 1248 | | .IsRequired() |
| 21 | 1249 | | .HasMaxLength(255) |
| 21 | 1250 | | .HasColumnType("TEXT"); |
| 21 | 1251 | |
|
| 21 | 1252 | | b.HasKey("Id"); |
| 21 | 1253 | |
|
| 21 | 1254 | | b.HasIndex("Username") |
| 21 | 1255 | | .IsUnique(); |
| 21 | 1256 | |
|
| 21 | 1257 | | b.ToTable("Users"); |
| 21 | 1258 | | }); |
| | 1259 | |
|
| 21 | 1260 | | modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b => |
| 21 | 1261 | | { |
| 21 | 1262 | | b.Property<Guid>("ItemId") |
| 21 | 1263 | | .HasColumnType("TEXT"); |
| 21 | 1264 | |
|
| 21 | 1265 | | b.Property<Guid>("UserId") |
| 21 | 1266 | | .HasColumnType("TEXT"); |
| 21 | 1267 | |
|
| 21 | 1268 | | b.Property<string>("CustomDataKey") |
| 21 | 1269 | | .HasColumnType("TEXT"); |
| 21 | 1270 | |
|
| 21 | 1271 | | b.Property<int?>("AudioStreamIndex") |
| 21 | 1272 | | .HasColumnType("INTEGER"); |
| 21 | 1273 | |
|
| 21 | 1274 | | b.Property<bool>("IsFavorite") |
| 21 | 1275 | | .HasColumnType("INTEGER"); |
| 21 | 1276 | |
|
| 21 | 1277 | | b.Property<DateTime?>("LastPlayedDate") |
| 21 | 1278 | | .HasColumnType("TEXT"); |
| 21 | 1279 | |
|
| 21 | 1280 | | b.Property<bool?>("Likes") |
| 21 | 1281 | | .HasColumnType("INTEGER"); |
| 21 | 1282 | |
|
| 21 | 1283 | | b.Property<int>("PlayCount") |
| 21 | 1284 | | .HasColumnType("INTEGER"); |
| 21 | 1285 | |
|
| 21 | 1286 | | b.Property<long>("PlaybackPositionTicks") |
| 21 | 1287 | | .HasColumnType("INTEGER"); |
| 21 | 1288 | |
|
| 21 | 1289 | | b.Property<bool>("Played") |
| 21 | 1290 | | .HasColumnType("INTEGER"); |
| 21 | 1291 | |
|
| 21 | 1292 | | b.Property<double?>("Rating") |
| 21 | 1293 | | .HasColumnType("REAL"); |
| 21 | 1294 | |
|
| 21 | 1295 | | b.Property<int?>("SubtitleStreamIndex") |
| 21 | 1296 | | .HasColumnType("INTEGER"); |
| 21 | 1297 | |
|
| 21 | 1298 | | b.HasKey("ItemId", "UserId", "CustomDataKey"); |
| 21 | 1299 | |
|
| 21 | 1300 | | b.HasIndex("UserId"); |
| 21 | 1301 | |
|
| 21 | 1302 | | b.HasIndex("ItemId", "UserId", "IsFavorite"); |
| 21 | 1303 | |
|
| 21 | 1304 | | b.HasIndex("ItemId", "UserId", "LastPlayedDate"); |
| 21 | 1305 | |
|
| 21 | 1306 | | b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks"); |
| 21 | 1307 | |
|
| 21 | 1308 | | b.HasIndex("ItemId", "UserId", "Played"); |
| 21 | 1309 | |
|
| 21 | 1310 | | b.ToTable("UserData"); |
| 21 | 1311 | | }); |
| | 1312 | |
|
| 21 | 1313 | | modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b => |
| 21 | 1314 | | { |
| 21 | 1315 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 1316 | | .WithMany("AccessSchedules") |
| 21 | 1317 | | .HasForeignKey("UserId") |
| 21 | 1318 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1319 | | .IsRequired(); |
| 21 | 1320 | | }); |
| | 1321 | |
|
| 21 | 1322 | | modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b => |
| 21 | 1323 | | { |
| 21 | 1324 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1325 | | .WithMany("Children") |
| 21 | 1326 | | .HasForeignKey("ItemId") |
| 21 | 1327 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1328 | | .IsRequired(); |
| 21 | 1329 | |
|
| 21 | 1330 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "ParentItem") |
| 21 | 1331 | | .WithMany("ParentAncestors") |
| 21 | 1332 | | .HasForeignKey("ParentItemId") |
| 21 | 1333 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1334 | | .IsRequired(); |
| 21 | 1335 | |
|
| 21 | 1336 | | b.Navigation("Item"); |
| 21 | 1337 | |
|
| 21 | 1338 | | b.Navigation("ParentItem"); |
| 21 | 1339 | | }); |
| | 1340 | |
|
| 21 | 1341 | | modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b => |
| 21 | 1342 | | { |
| 21 | 1343 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1344 | | .WithMany() |
| 21 | 1345 | | .HasForeignKey("ItemId") |
| 21 | 1346 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1347 | | .IsRequired(); |
| 21 | 1348 | |
|
| 21 | 1349 | | b.Navigation("Item"); |
| 21 | 1350 | | }); |
| | 1351 | |
|
| 21 | 1352 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b => |
| 21 | 1353 | | { |
| 21 | 1354 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1355 | | .WithMany("Images") |
| 21 | 1356 | | .HasForeignKey("ItemId") |
| 21 | 1357 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1358 | | .IsRequired(); |
| 21 | 1359 | |
|
| 21 | 1360 | | b.Navigation("Item"); |
| 21 | 1361 | | }); |
| | 1362 | |
|
| 21 | 1363 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b => |
| 21 | 1364 | | { |
| 21 | 1365 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1366 | | .WithMany("LockedFields") |
| 21 | 1367 | | .HasForeignKey("ItemId") |
| 21 | 1368 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1369 | | .IsRequired(); |
| 21 | 1370 | |
|
| 21 | 1371 | | b.Navigation("Item"); |
| 21 | 1372 | | }); |
| | 1373 | |
|
| 21 | 1374 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b => |
| 21 | 1375 | | { |
| 21 | 1376 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1377 | | .WithMany("Provider") |
| 21 | 1378 | | .HasForeignKey("ItemId") |
| 21 | 1379 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1380 | | .IsRequired(); |
| 21 | 1381 | |
|
| 21 | 1382 | | b.Navigation("Item"); |
| 21 | 1383 | | }); |
| | 1384 | |
|
| 21 | 1385 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b => |
| 21 | 1386 | | { |
| 21 | 1387 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1388 | | .WithMany("TrailerTypes") |
| 21 | 1389 | | .HasForeignKey("ItemId") |
| 21 | 1390 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1391 | | .IsRequired(); |
| 21 | 1392 | |
|
| 21 | 1393 | | b.Navigation("Item"); |
| 21 | 1394 | | }); |
| | 1395 | |
|
| 21 | 1396 | | modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b => |
| 21 | 1397 | | { |
| 21 | 1398 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1399 | | .WithMany("Chapters") |
| 21 | 1400 | | .HasForeignKey("ItemId") |
| 21 | 1401 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1402 | | .IsRequired(); |
| 21 | 1403 | |
|
| 21 | 1404 | | b.Navigation("Item"); |
| 21 | 1405 | | }); |
| | 1406 | |
|
| 21 | 1407 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 21 | 1408 | | { |
| 21 | 1409 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 1410 | | .WithMany("DisplayPreferences") |
| 21 | 1411 | | .HasForeignKey("UserId") |
| 21 | 1412 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1413 | | .IsRequired(); |
| 21 | 1414 | | }); |
| | 1415 | |
|
| 21 | 1416 | | modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b => |
| 21 | 1417 | | { |
| 21 | 1418 | | b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null) |
| 21 | 1419 | | .WithMany("HomeSections") |
| 21 | 1420 | | .HasForeignKey("DisplayPreferencesId") |
| 21 | 1421 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1422 | | .IsRequired(); |
| 21 | 1423 | | }); |
| | 1424 | |
|
| 21 | 1425 | | modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b => |
| 21 | 1426 | | { |
| 21 | 1427 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 1428 | | .WithOne("ProfileImage") |
| 21 | 1429 | | .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId") |
| 21 | 1430 | | .OnDelete(DeleteBehavior.Cascade); |
| 21 | 1431 | | }); |
| | 1432 | |
|
| 21 | 1433 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b => |
| 21 | 1434 | | { |
| 21 | 1435 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 1436 | | .WithMany("ItemDisplayPreferences") |
| 21 | 1437 | | .HasForeignKey("UserId") |
| 21 | 1438 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1439 | | .IsRequired(); |
| 21 | 1440 | | }); |
| | 1441 | |
|
| 21 | 1442 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b => |
| 21 | 1443 | | { |
| 21 | 1444 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1445 | | .WithMany("ItemValues") |
| 21 | 1446 | | .HasForeignKey("ItemId") |
| 21 | 1447 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1448 | | .IsRequired(); |
| 21 | 1449 | |
|
| 21 | 1450 | | b.HasOne("Jellyfin.Data.Entities.ItemValue", "ItemValue") |
| 21 | 1451 | | .WithMany("BaseItemsMap") |
| 21 | 1452 | | .HasForeignKey("ItemValueId") |
| 21 | 1453 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1454 | | .IsRequired(); |
| 21 | 1455 | |
|
| 21 | 1456 | | b.Navigation("Item"); |
| 21 | 1457 | |
|
| 21 | 1458 | | b.Navigation("ItemValue"); |
| 21 | 1459 | | }); |
| | 1460 | |
|
| 21 | 1461 | | modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b => |
| 21 | 1462 | | { |
| 21 | 1463 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1464 | | .WithMany("MediaStreams") |
| 21 | 1465 | | .HasForeignKey("ItemId") |
| 21 | 1466 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1467 | | .IsRequired(); |
| 21 | 1468 | |
|
| 21 | 1469 | | b.Navigation("Item"); |
| 21 | 1470 | | }); |
| | 1471 | |
|
| 21 | 1472 | | modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b => |
| 21 | 1473 | | { |
| 21 | 1474 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1475 | | .WithMany("Peoples") |
| 21 | 1476 | | .HasForeignKey("ItemId") |
| 21 | 1477 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1478 | | .IsRequired(); |
| 21 | 1479 | |
|
| 21 | 1480 | | b.HasOne("Jellyfin.Data.Entities.People", "People") |
| 21 | 1481 | | .WithMany("BaseItems") |
| 21 | 1482 | | .HasForeignKey("PeopleId") |
| 21 | 1483 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1484 | | .IsRequired(); |
| 21 | 1485 | |
|
| 21 | 1486 | | b.Navigation("Item"); |
| 21 | 1487 | |
|
| 21 | 1488 | | b.Navigation("People"); |
| 21 | 1489 | | }); |
| | 1490 | |
|
| 21 | 1491 | | modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b => |
| 21 | 1492 | | { |
| 21 | 1493 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 1494 | | .WithMany("Permissions") |
| 21 | 1495 | | .HasForeignKey("UserId") |
| 21 | 1496 | | .OnDelete(DeleteBehavior.Cascade); |
| 21 | 1497 | | }); |
| | 1498 | |
|
| 21 | 1499 | | modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b => |
| 21 | 1500 | | { |
| 21 | 1501 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 1502 | | .WithMany("Preferences") |
| 21 | 1503 | | .HasForeignKey("UserId") |
| 21 | 1504 | | .OnDelete(DeleteBehavior.Cascade); |
| 21 | 1505 | | }); |
| | 1506 | |
|
| 21 | 1507 | | modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b => |
| 21 | 1508 | | { |
| 21 | 1509 | | b.HasOne("Jellyfin.Data.Entities.User", "User") |
| 21 | 1510 | | .WithMany() |
| 21 | 1511 | | .HasForeignKey("UserId") |
| 21 | 1512 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1513 | | .IsRequired(); |
| 21 | 1514 | |
|
| 21 | 1515 | | b.Navigation("User"); |
| 21 | 1516 | | }); |
| | 1517 | |
|
| 21 | 1518 | | modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b => |
| 21 | 1519 | | { |
| 21 | 1520 | | b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item") |
| 21 | 1521 | | .WithMany("UserData") |
| 21 | 1522 | | .HasForeignKey("ItemId") |
| 21 | 1523 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1524 | | .IsRequired(); |
| 21 | 1525 | |
|
| 21 | 1526 | | b.HasOne("Jellyfin.Data.Entities.User", "User") |
| 21 | 1527 | | .WithMany() |
| 21 | 1528 | | .HasForeignKey("UserId") |
| 21 | 1529 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 1530 | | .IsRequired(); |
| 21 | 1531 | |
|
| 21 | 1532 | | b.Navigation("Item"); |
| 21 | 1533 | |
|
| 21 | 1534 | | b.Navigation("User"); |
| 21 | 1535 | | }); |
| | 1536 | |
|
| 21 | 1537 | | modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b => |
| 21 | 1538 | | { |
| 21 | 1539 | | b.Navigation("Chapters"); |
| 21 | 1540 | |
|
| 21 | 1541 | | b.Navigation("Children"); |
| 21 | 1542 | |
|
| 21 | 1543 | | b.Navigation("Images"); |
| 21 | 1544 | |
|
| 21 | 1545 | | b.Navigation("ItemValues"); |
| 21 | 1546 | |
|
| 21 | 1547 | | b.Navigation("LockedFields"); |
| 21 | 1548 | |
|
| 21 | 1549 | | b.Navigation("MediaStreams"); |
| 21 | 1550 | |
|
| 21 | 1551 | | b.Navigation("ParentAncestors"); |
| 21 | 1552 | |
|
| 21 | 1553 | | b.Navigation("Peoples"); |
| 21 | 1554 | |
|
| 21 | 1555 | | b.Navigation("Provider"); |
| 21 | 1556 | |
|
| 21 | 1557 | | b.Navigation("TrailerTypes"); |
| 21 | 1558 | |
|
| 21 | 1559 | | b.Navigation("UserData"); |
| 21 | 1560 | | }); |
| | 1561 | |
|
| 21 | 1562 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 21 | 1563 | | { |
| 21 | 1564 | | b.Navigation("HomeSections"); |
| 21 | 1565 | | }); |
| | 1566 | |
|
| 21 | 1567 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b => |
| 21 | 1568 | | { |
| 21 | 1569 | | b.Navigation("BaseItemsMap"); |
| 21 | 1570 | | }); |
| | 1571 | |
|
| 21 | 1572 | | modelBuilder.Entity("Jellyfin.Data.Entities.People", b => |
| 21 | 1573 | | { |
| 21 | 1574 | | b.Navigation("BaseItems"); |
| 21 | 1575 | | }); |
| | 1576 | |
|
| 21 | 1577 | | modelBuilder.Entity("Jellyfin.Data.Entities.User", b => |
| 21 | 1578 | | { |
| 21 | 1579 | | b.Navigation("AccessSchedules"); |
| 21 | 1580 | |
|
| 21 | 1581 | | b.Navigation("DisplayPreferences"); |
| 21 | 1582 | |
|
| 21 | 1583 | | b.Navigation("ItemDisplayPreferences"); |
| 21 | 1584 | |
|
| 21 | 1585 | | b.Navigation("Permissions"); |
| 21 | 1586 | |
|
| 21 | 1587 | | b.Navigation("Preferences"); |
| 21 | 1588 | |
|
| 21 | 1589 | | b.Navigation("ProfileImage"); |
| 21 | 1590 | | }); |
| | 1591 | | #pragma warning restore 612, 618 |
| 21 | 1592 | | } |
| | 1593 | | } |
| | 1594 | | } |