| | 1 | | #pragma warning disable CS1591 |
| | 2 | | // <auto-generated /> |
| | 3 | | using System; |
| | 4 | | using Jellyfin.Database.Implementations; |
| | 5 | | using Microsoft.EntityFrameworkCore; |
| | 6 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | 7 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | 8 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | 9 | |
|
| | 10 | | namespace Jellyfin.Server.Implementations.Migrations |
| | 11 | | { |
| | 12 | | [DbContext(typeof(JellyfinDbContext))] |
| | 13 | | [Migration("20210407110544_NullableCustomPrefValue")] |
| | 14 | | partial class NullableCustomPrefValue |
| | 15 | | { |
| | 16 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | 17 | | { |
| | 18 | | #pragma warning disable 612, 618 |
| 21 | 19 | | modelBuilder |
| 21 | 20 | | .HasDefaultSchema("jellyfin") |
| 21 | 21 | | .HasAnnotation("ProductVersion", "5.0.3"); |
| | 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.ToTable("ActivityLogs"); |
| 21 | 92 | | }); |
| | 93 | |
|
| 21 | 94 | | modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b => |
| 21 | 95 | | { |
| 21 | 96 | | b.Property<int>("Id") |
| 21 | 97 | | .ValueGeneratedOnAdd() |
| 21 | 98 | | .HasColumnType("INTEGER"); |
| 21 | 99 | |
|
| 21 | 100 | | b.Property<string>("Client") |
| 21 | 101 | | .IsRequired() |
| 21 | 102 | | .HasMaxLength(32) |
| 21 | 103 | | .HasColumnType("TEXT"); |
| 21 | 104 | |
|
| 21 | 105 | | b.Property<Guid>("ItemId") |
| 21 | 106 | | .HasColumnType("TEXT"); |
| 21 | 107 | |
|
| 21 | 108 | | b.Property<string>("Key") |
| 21 | 109 | | .IsRequired() |
| 21 | 110 | | .HasColumnType("TEXT"); |
| 21 | 111 | |
|
| 21 | 112 | | b.Property<Guid>("UserId") |
| 21 | 113 | | .HasColumnType("TEXT"); |
| 21 | 114 | |
|
| 21 | 115 | | b.Property<string>("Value") |
| 21 | 116 | | .HasColumnType("TEXT"); |
| 21 | 117 | |
|
| 21 | 118 | | b.HasKey("Id"); |
| 21 | 119 | |
|
| 21 | 120 | | b.HasIndex("UserId"); |
| 21 | 121 | |
|
| 21 | 122 | | b.HasIndex("UserId", "ItemId", "Client", "Key") |
| 21 | 123 | | .IsUnique(); |
| 21 | 124 | |
|
| 21 | 125 | | b.ToTable("CustomItemDisplayPreferences"); |
| 21 | 126 | | }); |
| | 127 | |
|
| 21 | 128 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 21 | 129 | | { |
| 21 | 130 | | b.Property<int>("Id") |
| 21 | 131 | | .ValueGeneratedOnAdd() |
| 21 | 132 | | .HasColumnType("INTEGER"); |
| 21 | 133 | |
|
| 21 | 134 | | b.Property<int>("ChromecastVersion") |
| 21 | 135 | | .HasColumnType("INTEGER"); |
| 21 | 136 | |
|
| 21 | 137 | | b.Property<string>("Client") |
| 21 | 138 | | .IsRequired() |
| 21 | 139 | | .HasMaxLength(32) |
| 21 | 140 | | .HasColumnType("TEXT"); |
| 21 | 141 | |
|
| 21 | 142 | | b.Property<string>("DashboardTheme") |
| 21 | 143 | | .HasMaxLength(32) |
| 21 | 144 | | .HasColumnType("TEXT"); |
| 21 | 145 | |
|
| 21 | 146 | | b.Property<bool>("EnableNextVideoInfoOverlay") |
| 21 | 147 | | .HasColumnType("INTEGER"); |
| 21 | 148 | |
|
| 21 | 149 | | b.Property<int?>("IndexBy") |
| 21 | 150 | | .HasColumnType("INTEGER"); |
| 21 | 151 | |
|
| 21 | 152 | | b.Property<Guid>("ItemId") |
| 21 | 153 | | .HasColumnType("TEXT"); |
| 21 | 154 | |
|
| 21 | 155 | | b.Property<int>("ScrollDirection") |
| 21 | 156 | | .HasColumnType("INTEGER"); |
| 21 | 157 | |
|
| 21 | 158 | | b.Property<bool>("ShowBackdrop") |
| 21 | 159 | | .HasColumnType("INTEGER"); |
| 21 | 160 | |
|
| 21 | 161 | | b.Property<bool>("ShowSidebar") |
| 21 | 162 | | .HasColumnType("INTEGER"); |
| 21 | 163 | |
|
| 21 | 164 | | b.Property<int>("SkipBackwardLength") |
| 21 | 165 | | .HasColumnType("INTEGER"); |
| 21 | 166 | |
|
| 21 | 167 | | b.Property<int>("SkipForwardLength") |
| 21 | 168 | | .HasColumnType("INTEGER"); |
| 21 | 169 | |
|
| 21 | 170 | | b.Property<string>("TvHome") |
| 21 | 171 | | .HasMaxLength(32) |
| 21 | 172 | | .HasColumnType("TEXT"); |
| 21 | 173 | |
|
| 21 | 174 | | b.Property<Guid>("UserId") |
| 21 | 175 | | .HasColumnType("TEXT"); |
| 21 | 176 | |
|
| 21 | 177 | | b.HasKey("Id"); |
| 21 | 178 | |
|
| 21 | 179 | | b.HasIndex("UserId"); |
| 21 | 180 | |
|
| 21 | 181 | | b.HasIndex("UserId", "ItemId", "Client") |
| 21 | 182 | | .IsUnique(); |
| 21 | 183 | |
|
| 21 | 184 | | b.ToTable("DisplayPreferences"); |
| 21 | 185 | | }); |
| | 186 | |
|
| 21 | 187 | | modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b => |
| 21 | 188 | | { |
| 21 | 189 | | b.Property<int>("Id") |
| 21 | 190 | | .ValueGeneratedOnAdd() |
| 21 | 191 | | .HasColumnType("INTEGER"); |
| 21 | 192 | |
|
| 21 | 193 | | b.Property<int>("DisplayPreferencesId") |
| 21 | 194 | | .HasColumnType("INTEGER"); |
| 21 | 195 | |
|
| 21 | 196 | | b.Property<int>("Order") |
| 21 | 197 | | .HasColumnType("INTEGER"); |
| 21 | 198 | |
|
| 21 | 199 | | b.Property<int>("Type") |
| 21 | 200 | | .HasColumnType("INTEGER"); |
| 21 | 201 | |
|
| 21 | 202 | | b.HasKey("Id"); |
| 21 | 203 | |
|
| 21 | 204 | | b.HasIndex("DisplayPreferencesId"); |
| 21 | 205 | |
|
| 21 | 206 | | b.ToTable("HomeSection"); |
| 21 | 207 | | }); |
| | 208 | |
|
| 21 | 209 | | modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b => |
| 21 | 210 | | { |
| 21 | 211 | | b.Property<int>("Id") |
| 21 | 212 | | .ValueGeneratedOnAdd() |
| 21 | 213 | | .HasColumnType("INTEGER"); |
| 21 | 214 | |
|
| 21 | 215 | | b.Property<DateTime>("LastModified") |
| 21 | 216 | | .HasColumnType("TEXT"); |
| 21 | 217 | |
|
| 21 | 218 | | b.Property<string>("Path") |
| 21 | 219 | | .IsRequired() |
| 21 | 220 | | .HasMaxLength(512) |
| 21 | 221 | | .HasColumnType("TEXT"); |
| 21 | 222 | |
|
| 21 | 223 | | b.Property<Guid?>("UserId") |
| 21 | 224 | | .HasColumnType("TEXT"); |
| 21 | 225 | |
|
| 21 | 226 | | b.HasKey("Id"); |
| 21 | 227 | |
|
| 21 | 228 | | b.HasIndex("UserId") |
| 21 | 229 | | .IsUnique(); |
| 21 | 230 | |
|
| 21 | 231 | | b.ToTable("ImageInfos"); |
| 21 | 232 | | }); |
| | 233 | |
|
| 21 | 234 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b => |
| 21 | 235 | | { |
| 21 | 236 | | b.Property<int>("Id") |
| 21 | 237 | | .ValueGeneratedOnAdd() |
| 21 | 238 | | .HasColumnType("INTEGER"); |
| 21 | 239 | |
|
| 21 | 240 | | b.Property<string>("Client") |
| 21 | 241 | | .IsRequired() |
| 21 | 242 | | .HasMaxLength(32) |
| 21 | 243 | | .HasColumnType("TEXT"); |
| 21 | 244 | |
|
| 21 | 245 | | b.Property<int?>("IndexBy") |
| 21 | 246 | | .HasColumnType("INTEGER"); |
| 21 | 247 | |
|
| 21 | 248 | | b.Property<Guid>("ItemId") |
| 21 | 249 | | .HasColumnType("TEXT"); |
| 21 | 250 | |
|
| 21 | 251 | | b.Property<bool>("RememberIndexing") |
| 21 | 252 | | .HasColumnType("INTEGER"); |
| 21 | 253 | |
|
| 21 | 254 | | b.Property<bool>("RememberSorting") |
| 21 | 255 | | .HasColumnType("INTEGER"); |
| 21 | 256 | |
|
| 21 | 257 | | b.Property<string>("SortBy") |
| 21 | 258 | | .IsRequired() |
| 21 | 259 | | .HasMaxLength(64) |
| 21 | 260 | | .HasColumnType("TEXT"); |
| 21 | 261 | |
|
| 21 | 262 | | b.Property<int>("SortOrder") |
| 21 | 263 | | .HasColumnType("INTEGER"); |
| 21 | 264 | |
|
| 21 | 265 | | b.Property<Guid>("UserId") |
| 21 | 266 | | .HasColumnType("TEXT"); |
| 21 | 267 | |
|
| 21 | 268 | | b.Property<int>("ViewType") |
| 21 | 269 | | .HasColumnType("INTEGER"); |
| 21 | 270 | |
|
| 21 | 271 | | b.HasKey("Id"); |
| 21 | 272 | |
|
| 21 | 273 | | b.HasIndex("UserId"); |
| 21 | 274 | |
|
| 21 | 275 | | b.ToTable("ItemDisplayPreferences"); |
| 21 | 276 | | }); |
| | 277 | |
|
| 21 | 278 | | modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b => |
| 21 | 279 | | { |
| 21 | 280 | | b.Property<int>("Id") |
| 21 | 281 | | .ValueGeneratedOnAdd() |
| 21 | 282 | | .HasColumnType("INTEGER"); |
| 21 | 283 | |
|
| 21 | 284 | | b.Property<int>("Kind") |
| 21 | 285 | | .HasColumnType("INTEGER"); |
| 21 | 286 | |
|
| 21 | 287 | | b.Property<Guid?>("Permission_Permissions_Guid") |
| 21 | 288 | | .HasColumnType("TEXT"); |
| 21 | 289 | |
|
| 21 | 290 | | b.Property<uint>("RowVersion") |
| 21 | 291 | | .IsConcurrencyToken() |
| 21 | 292 | | .HasColumnType("INTEGER"); |
| 21 | 293 | |
|
| 21 | 294 | | b.Property<bool>("Value") |
| 21 | 295 | | .HasColumnType("INTEGER"); |
| 21 | 296 | |
|
| 21 | 297 | | b.HasKey("Id"); |
| 21 | 298 | |
|
| 21 | 299 | | b.HasIndex("Permission_Permissions_Guid"); |
| 21 | 300 | |
|
| 21 | 301 | | b.ToTable("Permissions"); |
| 21 | 302 | | }); |
| | 303 | |
|
| 21 | 304 | | modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b => |
| 21 | 305 | | { |
| 21 | 306 | | b.Property<int>("Id") |
| 21 | 307 | | .ValueGeneratedOnAdd() |
| 21 | 308 | | .HasColumnType("INTEGER"); |
| 21 | 309 | |
|
| 21 | 310 | | b.Property<int>("Kind") |
| 21 | 311 | | .HasColumnType("INTEGER"); |
| 21 | 312 | |
|
| 21 | 313 | | b.Property<Guid?>("Preference_Preferences_Guid") |
| 21 | 314 | | .HasColumnType("TEXT"); |
| 21 | 315 | |
|
| 21 | 316 | | b.Property<uint>("RowVersion") |
| 21 | 317 | | .IsConcurrencyToken() |
| 21 | 318 | | .HasColumnType("INTEGER"); |
| 21 | 319 | |
|
| 21 | 320 | | b.Property<string>("Value") |
| 21 | 321 | | .IsRequired() |
| 21 | 322 | | .HasMaxLength(65535) |
| 21 | 323 | | .HasColumnType("TEXT"); |
| 21 | 324 | |
|
| 21 | 325 | | b.HasKey("Id"); |
| 21 | 326 | |
|
| 21 | 327 | | b.HasIndex("Preference_Preferences_Guid"); |
| 21 | 328 | |
|
| 21 | 329 | | b.ToTable("Preferences"); |
| 21 | 330 | | }); |
| | 331 | |
|
| 21 | 332 | | modelBuilder.Entity("Jellyfin.Data.Entities.User", b => |
| 21 | 333 | | { |
| 21 | 334 | | b.Property<Guid>("Id") |
| 21 | 335 | | .ValueGeneratedOnAdd() |
| 21 | 336 | | .HasColumnType("TEXT"); |
| 21 | 337 | |
|
| 21 | 338 | | b.Property<string>("AudioLanguagePreference") |
| 21 | 339 | | .HasMaxLength(255) |
| 21 | 340 | | .HasColumnType("TEXT"); |
| 21 | 341 | |
|
| 21 | 342 | | b.Property<string>("AuthenticationProviderId") |
| 21 | 343 | | .IsRequired() |
| 21 | 344 | | .HasMaxLength(255) |
| 21 | 345 | | .HasColumnType("TEXT"); |
| 21 | 346 | |
|
| 21 | 347 | | b.Property<bool>("DisplayCollectionsView") |
| 21 | 348 | | .HasColumnType("INTEGER"); |
| 21 | 349 | |
|
| 21 | 350 | | b.Property<bool>("DisplayMissingEpisodes") |
| 21 | 351 | | .HasColumnType("INTEGER"); |
| 21 | 352 | |
|
| 21 | 353 | | b.Property<string>("EasyPassword") |
| 21 | 354 | | .HasMaxLength(65535) |
| 21 | 355 | | .HasColumnType("TEXT"); |
| 21 | 356 | |
|
| 21 | 357 | | b.Property<bool>("EnableAutoLogin") |
| 21 | 358 | | .HasColumnType("INTEGER"); |
| 21 | 359 | |
|
| 21 | 360 | | b.Property<bool>("EnableLocalPassword") |
| 21 | 361 | | .HasColumnType("INTEGER"); |
| 21 | 362 | |
|
| 21 | 363 | | b.Property<bool>("EnableNextEpisodeAutoPlay") |
| 21 | 364 | | .HasColumnType("INTEGER"); |
| 21 | 365 | |
|
| 21 | 366 | | b.Property<bool>("EnableUserPreferenceAccess") |
| 21 | 367 | | .HasColumnType("INTEGER"); |
| 21 | 368 | |
|
| 21 | 369 | | b.Property<bool>("HidePlayedInLatest") |
| 21 | 370 | | .HasColumnType("INTEGER"); |
| 21 | 371 | |
|
| 21 | 372 | | b.Property<long>("InternalId") |
| 21 | 373 | | .HasColumnType("INTEGER"); |
| 21 | 374 | |
|
| 21 | 375 | | b.Property<int>("InvalidLoginAttemptCount") |
| 21 | 376 | | .HasColumnType("INTEGER"); |
| 21 | 377 | |
|
| 21 | 378 | | b.Property<DateTime?>("LastActivityDate") |
| 21 | 379 | | .HasColumnType("TEXT"); |
| 21 | 380 | |
|
| 21 | 381 | | b.Property<DateTime?>("LastLoginDate") |
| 21 | 382 | | .HasColumnType("TEXT"); |
| 21 | 383 | |
|
| 21 | 384 | | b.Property<int?>("LoginAttemptsBeforeLockout") |
| 21 | 385 | | .HasColumnType("INTEGER"); |
| 21 | 386 | |
|
| 21 | 387 | | b.Property<int>("MaxActiveSessions") |
| 21 | 388 | | .HasColumnType("INTEGER"); |
| 21 | 389 | |
|
| 21 | 390 | | b.Property<int?>("MaxParentalAgeRating") |
| 21 | 391 | | .HasColumnType("INTEGER"); |
| 21 | 392 | |
|
| 21 | 393 | | b.Property<bool>("MustUpdatePassword") |
| 21 | 394 | | .HasColumnType("INTEGER"); |
| 21 | 395 | |
|
| 21 | 396 | | b.Property<string>("Password") |
| 21 | 397 | | .HasMaxLength(65535) |
| 21 | 398 | | .HasColumnType("TEXT"); |
| 21 | 399 | |
|
| 21 | 400 | | b.Property<string>("PasswordResetProviderId") |
| 21 | 401 | | .IsRequired() |
| 21 | 402 | | .HasMaxLength(255) |
| 21 | 403 | | .HasColumnType("TEXT"); |
| 21 | 404 | |
|
| 21 | 405 | | b.Property<bool>("PlayDefaultAudioTrack") |
| 21 | 406 | | .HasColumnType("INTEGER"); |
| 21 | 407 | |
|
| 21 | 408 | | b.Property<bool>("RememberAudioSelections") |
| 21 | 409 | | .HasColumnType("INTEGER"); |
| 21 | 410 | |
|
| 21 | 411 | | b.Property<bool>("RememberSubtitleSelections") |
| 21 | 412 | | .HasColumnType("INTEGER"); |
| 21 | 413 | |
|
| 21 | 414 | | b.Property<int?>("RemoteClientBitrateLimit") |
| 21 | 415 | | .HasColumnType("INTEGER"); |
| 21 | 416 | |
|
| 21 | 417 | | b.Property<uint>("RowVersion") |
| 21 | 418 | | .IsConcurrencyToken() |
| 21 | 419 | | .HasColumnType("INTEGER"); |
| 21 | 420 | |
|
| 21 | 421 | | b.Property<string>("SubtitleLanguagePreference") |
| 21 | 422 | | .HasMaxLength(255) |
| 21 | 423 | | .HasColumnType("TEXT"); |
| 21 | 424 | |
|
| 21 | 425 | | b.Property<int>("SubtitleMode") |
| 21 | 426 | | .HasColumnType("INTEGER"); |
| 21 | 427 | |
|
| 21 | 428 | | b.Property<int>("SyncPlayAccess") |
| 21 | 429 | | .HasColumnType("INTEGER"); |
| 21 | 430 | |
|
| 21 | 431 | | b.Property<string>("Username") |
| 21 | 432 | | .IsRequired() |
| 21 | 433 | | .HasMaxLength(255) |
| 21 | 434 | | .HasColumnType("TEXT"); |
| 21 | 435 | |
|
| 21 | 436 | | b.HasKey("Id"); |
| 21 | 437 | |
|
| 21 | 438 | | b.ToTable("Users"); |
| 21 | 439 | | }); |
| | 440 | |
|
| 21 | 441 | | modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b => |
| 21 | 442 | | { |
| 21 | 443 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 444 | | .WithMany("AccessSchedules") |
| 21 | 445 | | .HasForeignKey("UserId") |
| 21 | 446 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 447 | | .IsRequired(); |
| 21 | 448 | | }); |
| | 449 | |
|
| 21 | 450 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 21 | 451 | | { |
| 21 | 452 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 453 | | .WithMany("DisplayPreferences") |
| 21 | 454 | | .HasForeignKey("UserId") |
| 21 | 455 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 456 | | .IsRequired(); |
| 21 | 457 | | }); |
| | 458 | |
|
| 21 | 459 | | modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b => |
| 21 | 460 | | { |
| 21 | 461 | | b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null) |
| 21 | 462 | | .WithMany("HomeSections") |
| 21 | 463 | | .HasForeignKey("DisplayPreferencesId") |
| 21 | 464 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 465 | | .IsRequired(); |
| 21 | 466 | | }); |
| | 467 | |
|
| 21 | 468 | | modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b => |
| 21 | 469 | | { |
| 21 | 470 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 471 | | .WithOne("ProfileImage") |
| 21 | 472 | | .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId"); |
| 21 | 473 | | }); |
| | 474 | |
|
| 21 | 475 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b => |
| 21 | 476 | | { |
| 21 | 477 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 478 | | .WithMany("ItemDisplayPreferences") |
| 21 | 479 | | .HasForeignKey("UserId") |
| 21 | 480 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 481 | | .IsRequired(); |
| 21 | 482 | | }); |
| | 483 | |
|
| 21 | 484 | | modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b => |
| 21 | 485 | | { |
| 21 | 486 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 487 | | .WithMany("Permissions") |
| 21 | 488 | | .HasForeignKey("Permission_Permissions_Guid"); |
| 21 | 489 | | }); |
| | 490 | |
|
| 21 | 491 | | modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b => |
| 21 | 492 | | { |
| 21 | 493 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 494 | | .WithMany("Preferences") |
| 21 | 495 | | .HasForeignKey("Preference_Preferences_Guid"); |
| 21 | 496 | | }); |
| | 497 | |
|
| 21 | 498 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 21 | 499 | | { |
| 21 | 500 | | b.Navigation("HomeSections"); |
| 21 | 501 | | }); |
| | 502 | |
|
| 21 | 503 | | modelBuilder.Entity("Jellyfin.Data.Entities.User", b => |
| 21 | 504 | | { |
| 21 | 505 | | b.Navigation("AccessSchedules"); |
| 21 | 506 | |
|
| 21 | 507 | | b.Navigation("DisplayPreferences"); |
| 21 | 508 | |
|
| 21 | 509 | | b.Navigation("ItemDisplayPreferences"); |
| 21 | 510 | |
|
| 21 | 511 | | b.Navigation("Permissions"); |
| 21 | 512 | |
|
| 21 | 513 | | b.Navigation("Preferences"); |
| 21 | 514 | |
|
| 21 | 515 | | b.Navigation("ProfileImage"); |
| 21 | 516 | | }); |
| | 517 | | #pragma warning restore 612, 618 |
| 21 | 518 | | } |
| | 519 | | } |
| | 520 | | } |