| | 1 | | #pragma warning disable CS1591 |
| | 2 | |
|
| | 3 | | // <auto-generated /> |
| | 4 | | using System; |
| | 5 | | using Jellyfin.Database.Implementations; |
| | 6 | | using Microsoft.EntityFrameworkCore; |
| | 7 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | 8 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | 9 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | 10 | |
|
| | 11 | | namespace Jellyfin.Server.Implementations.Migrations |
| | 12 | | { |
| | 13 | | [DbContext(typeof(JellyfinDbContext))] |
| | 14 | | [Migration("20210320181425_AddIndexesAndCollations")] |
| | 15 | | partial class AddIndexesAndCollations |
| | 16 | | { |
| | 17 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | 18 | | { |
| | 19 | | #pragma warning disable 612, 618 |
| 21 | 20 | | modelBuilder |
| 21 | 21 | | .HasDefaultSchema("jellyfin") |
| 21 | 22 | | .HasAnnotation("ProductVersion", "5.0.3"); |
| | 23 | |
|
| 21 | 24 | | modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b => |
| 21 | 25 | | { |
| 21 | 26 | | b.Property<int>("Id") |
| 21 | 27 | | .ValueGeneratedOnAdd() |
| 21 | 28 | | .HasColumnType("INTEGER"); |
| 21 | 29 | |
|
| 21 | 30 | | b.Property<int>("DayOfWeek") |
| 21 | 31 | | .HasColumnType("INTEGER"); |
| 21 | 32 | |
|
| 21 | 33 | | b.Property<double>("EndHour") |
| 21 | 34 | | .HasColumnType("REAL"); |
| 21 | 35 | |
|
| 21 | 36 | | b.Property<double>("StartHour") |
| 21 | 37 | | .HasColumnType("REAL"); |
| 21 | 38 | |
|
| 21 | 39 | | b.Property<Guid>("UserId") |
| 21 | 40 | | .HasColumnType("TEXT"); |
| 21 | 41 | |
|
| 21 | 42 | | b.HasKey("Id"); |
| 21 | 43 | |
|
| 21 | 44 | | b.HasIndex("UserId"); |
| 21 | 45 | |
|
| 21 | 46 | | b.ToTable("AccessSchedules"); |
| 21 | 47 | | }); |
| | 48 | |
|
| 21 | 49 | | modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b => |
| 21 | 50 | | { |
| 21 | 51 | | b.Property<int>("Id") |
| 21 | 52 | | .ValueGeneratedOnAdd() |
| 21 | 53 | | .HasColumnType("INTEGER"); |
| 21 | 54 | |
|
| 21 | 55 | | b.Property<DateTime>("DateCreated") |
| 21 | 56 | | .HasColumnType("TEXT"); |
| 21 | 57 | |
|
| 21 | 58 | | b.Property<string>("ItemId") |
| 21 | 59 | | .HasMaxLength(256) |
| 21 | 60 | | .HasColumnType("TEXT"); |
| 21 | 61 | |
|
| 21 | 62 | | b.Property<int>("LogSeverity") |
| 21 | 63 | | .HasColumnType("INTEGER"); |
| 21 | 64 | |
|
| 21 | 65 | | b.Property<string>("Name") |
| 21 | 66 | | .IsRequired() |
| 21 | 67 | | .HasMaxLength(512) |
| 21 | 68 | | .HasColumnType("TEXT"); |
| 21 | 69 | |
|
| 21 | 70 | | b.Property<string>("Overview") |
| 21 | 71 | | .HasMaxLength(512) |
| 21 | 72 | | .HasColumnType("TEXT"); |
| 21 | 73 | |
|
| 21 | 74 | | b.Property<uint>("RowVersion") |
| 21 | 75 | | .IsConcurrencyToken() |
| 21 | 76 | | .HasColumnType("INTEGER"); |
| 21 | 77 | |
|
| 21 | 78 | | b.Property<string>("ShortOverview") |
| 21 | 79 | | .HasMaxLength(512) |
| 21 | 80 | | .HasColumnType("TEXT"); |
| 21 | 81 | |
|
| 21 | 82 | | b.Property<string>("Type") |
| 21 | 83 | | .IsRequired() |
| 21 | 84 | | .HasMaxLength(256) |
| 21 | 85 | | .HasColumnType("TEXT"); |
| 21 | 86 | |
|
| 21 | 87 | | b.Property<Guid>("UserId") |
| 21 | 88 | | .HasColumnType("TEXT"); |
| 21 | 89 | |
|
| 21 | 90 | | b.HasKey("Id"); |
| 21 | 91 | |
|
| 21 | 92 | | b.ToTable("ActivityLogs"); |
| 21 | 93 | | }); |
| | 94 | |
|
| 21 | 95 | | modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b => |
| 21 | 96 | | { |
| 21 | 97 | | b.Property<int>("Id") |
| 21 | 98 | | .ValueGeneratedOnAdd() |
| 21 | 99 | | .HasColumnType("INTEGER"); |
| 21 | 100 | |
|
| 21 | 101 | | b.Property<string>("Client") |
| 21 | 102 | | .IsRequired() |
| 21 | 103 | | .HasMaxLength(32) |
| 21 | 104 | | .HasColumnType("TEXT"); |
| 21 | 105 | |
|
| 21 | 106 | | b.Property<Guid>("ItemId") |
| 21 | 107 | | .HasColumnType("TEXT"); |
| 21 | 108 | |
|
| 21 | 109 | | b.Property<string>("Key") |
| 21 | 110 | | .IsRequired() |
| 21 | 111 | | .HasColumnType("TEXT"); |
| 21 | 112 | |
|
| 21 | 113 | | b.Property<Guid>("UserId") |
| 21 | 114 | | .HasColumnType("TEXT"); |
| 21 | 115 | |
|
| 21 | 116 | | b.Property<string>("Value") |
| 21 | 117 | | .IsRequired() |
| 21 | 118 | | .HasColumnType("TEXT"); |
| 21 | 119 | |
|
| 21 | 120 | | b.HasKey("Id"); |
| 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", "ItemId", "Client") |
| 21 | 180 | | .IsUnique(); |
| 21 | 181 | |
|
| 21 | 182 | | b.ToTable("DisplayPreferences"); |
| 21 | 183 | | }); |
| | 184 | |
|
| 21 | 185 | | modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b => |
| 21 | 186 | | { |
| 21 | 187 | | b.Property<int>("Id") |
| 21 | 188 | | .ValueGeneratedOnAdd() |
| 21 | 189 | | .HasColumnType("INTEGER"); |
| 21 | 190 | |
|
| 21 | 191 | | b.Property<int>("DisplayPreferencesId") |
| 21 | 192 | | .HasColumnType("INTEGER"); |
| 21 | 193 | |
|
| 21 | 194 | | b.Property<int>("Order") |
| 21 | 195 | | .HasColumnType("INTEGER"); |
| 21 | 196 | |
|
| 21 | 197 | | b.Property<int>("Type") |
| 21 | 198 | | .HasColumnType("INTEGER"); |
| 21 | 199 | |
|
| 21 | 200 | | b.HasKey("Id"); |
| 21 | 201 | |
|
| 21 | 202 | | b.HasIndex("DisplayPreferencesId"); |
| 21 | 203 | |
|
| 21 | 204 | | b.ToTable("HomeSection"); |
| 21 | 205 | | }); |
| | 206 | |
|
| 21 | 207 | | modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b => |
| 21 | 208 | | { |
| 21 | 209 | | b.Property<int>("Id") |
| 21 | 210 | | .ValueGeneratedOnAdd() |
| 21 | 211 | | .HasColumnType("INTEGER"); |
| 21 | 212 | |
|
| 21 | 213 | | b.Property<DateTime>("LastModified") |
| 21 | 214 | | .HasColumnType("TEXT"); |
| 21 | 215 | |
|
| 21 | 216 | | b.Property<string>("Path") |
| 21 | 217 | | .IsRequired() |
| 21 | 218 | | .HasMaxLength(512) |
| 21 | 219 | | .HasColumnType("TEXT"); |
| 21 | 220 | |
|
| 21 | 221 | | b.Property<Guid?>("UserId") |
| 21 | 222 | | .HasColumnType("TEXT"); |
| 21 | 223 | |
|
| 21 | 224 | | b.HasKey("Id"); |
| 21 | 225 | |
|
| 21 | 226 | | b.HasIndex("UserId") |
| 21 | 227 | | .IsUnique(); |
| 21 | 228 | |
|
| 21 | 229 | | b.ToTable("ImageInfos"); |
| 21 | 230 | | }); |
| | 231 | |
|
| 21 | 232 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b => |
| 21 | 233 | | { |
| 21 | 234 | | b.Property<int>("Id") |
| 21 | 235 | | .ValueGeneratedOnAdd() |
| 21 | 236 | | .HasColumnType("INTEGER"); |
| 21 | 237 | |
|
| 21 | 238 | | b.Property<string>("Client") |
| 21 | 239 | | .IsRequired() |
| 21 | 240 | | .HasMaxLength(32) |
| 21 | 241 | | .HasColumnType("TEXT"); |
| 21 | 242 | |
|
| 21 | 243 | | b.Property<int?>("IndexBy") |
| 21 | 244 | | .HasColumnType("INTEGER"); |
| 21 | 245 | |
|
| 21 | 246 | | b.Property<Guid>("ItemId") |
| 21 | 247 | | .HasColumnType("TEXT"); |
| 21 | 248 | |
|
| 21 | 249 | | b.Property<bool>("RememberIndexing") |
| 21 | 250 | | .HasColumnType("INTEGER"); |
| 21 | 251 | |
|
| 21 | 252 | | b.Property<bool>("RememberSorting") |
| 21 | 253 | | .HasColumnType("INTEGER"); |
| 21 | 254 | |
|
| 21 | 255 | | b.Property<string>("SortBy") |
| 21 | 256 | | .IsRequired() |
| 21 | 257 | | .HasMaxLength(64) |
| 21 | 258 | | .HasColumnType("TEXT"); |
| 21 | 259 | |
|
| 21 | 260 | | b.Property<int>("SortOrder") |
| 21 | 261 | | .HasColumnType("INTEGER"); |
| 21 | 262 | |
|
| 21 | 263 | | b.Property<Guid>("UserId") |
| 21 | 264 | | .HasColumnType("TEXT"); |
| 21 | 265 | |
|
| 21 | 266 | | b.Property<int>("ViewType") |
| 21 | 267 | | .HasColumnType("INTEGER"); |
| 21 | 268 | |
|
| 21 | 269 | | b.HasKey("Id"); |
| 21 | 270 | |
|
| 21 | 271 | | b.HasIndex("UserId"); |
| 21 | 272 | |
|
| 21 | 273 | | b.ToTable("ItemDisplayPreferences"); |
| 21 | 274 | | }); |
| | 275 | |
|
| 21 | 276 | | modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b => |
| 21 | 277 | | { |
| 21 | 278 | | b.Property<int>("Id") |
| 21 | 279 | | .ValueGeneratedOnAdd() |
| 21 | 280 | | .HasColumnType("INTEGER"); |
| 21 | 281 | |
|
| 21 | 282 | | b.Property<int>("Kind") |
| 21 | 283 | | .HasColumnType("INTEGER"); |
| 21 | 284 | |
|
| 21 | 285 | | b.Property<Guid?>("Permission_Permissions_Guid") |
| 21 | 286 | | .HasColumnType("TEXT"); |
| 21 | 287 | |
|
| 21 | 288 | | b.Property<uint>("RowVersion") |
| 21 | 289 | | .IsConcurrencyToken() |
| 21 | 290 | | .HasColumnType("INTEGER"); |
| 21 | 291 | |
|
| 21 | 292 | | b.Property<Guid?>("UserId") |
| 21 | 293 | | .HasColumnType("TEXT"); |
| 21 | 294 | |
|
| 21 | 295 | | b.Property<bool>("Value") |
| 21 | 296 | | .HasColumnType("INTEGER"); |
| 21 | 297 | |
|
| 21 | 298 | | b.HasKey("Id"); |
| 21 | 299 | |
|
| 21 | 300 | | b.HasIndex("UserId", "Kind") |
| 21 | 301 | | .IsUnique() |
| 21 | 302 | | .HasFilter("[UserId] IS NOT NULL"); |
| 21 | 303 | |
|
| 21 | 304 | | b.ToTable("Permissions"); |
| 21 | 305 | | }); |
| | 306 | |
|
| 21 | 307 | | modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b => |
| 21 | 308 | | { |
| 21 | 309 | | b.Property<int>("Id") |
| 21 | 310 | | .ValueGeneratedOnAdd() |
| 21 | 311 | | .HasColumnType("INTEGER"); |
| 21 | 312 | |
|
| 21 | 313 | | b.Property<int>("Kind") |
| 21 | 314 | | .HasColumnType("INTEGER"); |
| 21 | 315 | |
|
| 21 | 316 | | b.Property<Guid?>("Preference_Preferences_Guid") |
| 21 | 317 | | .HasColumnType("TEXT"); |
| 21 | 318 | |
|
| 21 | 319 | | b.Property<uint>("RowVersion") |
| 21 | 320 | | .IsConcurrencyToken() |
| 21 | 321 | | .HasColumnType("INTEGER"); |
| 21 | 322 | |
|
| 21 | 323 | | b.Property<Guid?>("UserId") |
| 21 | 324 | | .HasColumnType("TEXT"); |
| 21 | 325 | |
|
| 21 | 326 | | b.Property<string>("Value") |
| 21 | 327 | | .IsRequired() |
| 21 | 328 | | .HasMaxLength(65535) |
| 21 | 329 | | .HasColumnType("TEXT"); |
| 21 | 330 | |
|
| 21 | 331 | | b.HasKey("Id"); |
| 21 | 332 | |
|
| 21 | 333 | | b.HasIndex("UserId", "Kind") |
| 21 | 334 | | .IsUnique() |
| 21 | 335 | | .HasFilter("[UserId] IS NOT NULL"); |
| 21 | 336 | |
|
| 21 | 337 | | b.ToTable("Preferences"); |
| 21 | 338 | | }); |
| | 339 | |
|
| 21 | 340 | | modelBuilder.Entity("Jellyfin.Data.Entities.User", b => |
| 21 | 341 | | { |
| 21 | 342 | | b.Property<Guid>("Id") |
| 21 | 343 | | .ValueGeneratedOnAdd() |
| 21 | 344 | | .HasColumnType("TEXT"); |
| 21 | 345 | |
|
| 21 | 346 | | b.Property<string>("AudioLanguagePreference") |
| 21 | 347 | | .HasMaxLength(255) |
| 21 | 348 | | .HasColumnType("TEXT"); |
| 21 | 349 | |
|
| 21 | 350 | | b.Property<string>("AuthenticationProviderId") |
| 21 | 351 | | .IsRequired() |
| 21 | 352 | | .HasMaxLength(255) |
| 21 | 353 | | .HasColumnType("TEXT"); |
| 21 | 354 | |
|
| 21 | 355 | | b.Property<bool>("DisplayCollectionsView") |
| 21 | 356 | | .HasColumnType("INTEGER"); |
| 21 | 357 | |
|
| 21 | 358 | | b.Property<bool>("DisplayMissingEpisodes") |
| 21 | 359 | | .HasColumnType("INTEGER"); |
| 21 | 360 | |
|
| 21 | 361 | | b.Property<string>("EasyPassword") |
| 21 | 362 | | .HasMaxLength(65535) |
| 21 | 363 | | .HasColumnType("TEXT"); |
| 21 | 364 | |
|
| 21 | 365 | | b.Property<bool>("EnableAutoLogin") |
| 21 | 366 | | .HasColumnType("INTEGER"); |
| 21 | 367 | |
|
| 21 | 368 | | b.Property<bool>("EnableLocalPassword") |
| 21 | 369 | | .HasColumnType("INTEGER"); |
| 21 | 370 | |
|
| 21 | 371 | | b.Property<bool>("EnableNextEpisodeAutoPlay") |
| 21 | 372 | | .HasColumnType("INTEGER"); |
| 21 | 373 | |
|
| 21 | 374 | | b.Property<bool>("EnableUserPreferenceAccess") |
| 21 | 375 | | .HasColumnType("INTEGER"); |
| 21 | 376 | |
|
| 21 | 377 | | b.Property<bool>("HidePlayedInLatest") |
| 21 | 378 | | .HasColumnType("INTEGER"); |
| 21 | 379 | |
|
| 21 | 380 | | b.Property<long>("InternalId") |
| 21 | 381 | | .HasColumnType("INTEGER"); |
| 21 | 382 | |
|
| 21 | 383 | | b.Property<int>("InvalidLoginAttemptCount") |
| 21 | 384 | | .HasColumnType("INTEGER"); |
| 21 | 385 | |
|
| 21 | 386 | | b.Property<DateTime?>("LastActivityDate") |
| 21 | 387 | | .HasColumnType("TEXT"); |
| 21 | 388 | |
|
| 21 | 389 | | b.Property<DateTime?>("LastLoginDate") |
| 21 | 390 | | .HasColumnType("TEXT"); |
| 21 | 391 | |
|
| 21 | 392 | | b.Property<int?>("LoginAttemptsBeforeLockout") |
| 21 | 393 | | .HasColumnType("INTEGER"); |
| 21 | 394 | |
|
| 21 | 395 | | b.Property<int>("MaxActiveSessions") |
| 21 | 396 | | .HasColumnType("INTEGER"); |
| 21 | 397 | |
|
| 21 | 398 | | b.Property<int?>("MaxParentalAgeRating") |
| 21 | 399 | | .HasColumnType("INTEGER"); |
| 21 | 400 | |
|
| 21 | 401 | | b.Property<bool>("MustUpdatePassword") |
| 21 | 402 | | .HasColumnType("INTEGER"); |
| 21 | 403 | |
|
| 21 | 404 | | b.Property<string>("Password") |
| 21 | 405 | | .HasMaxLength(65535) |
| 21 | 406 | | .HasColumnType("TEXT"); |
| 21 | 407 | |
|
| 21 | 408 | | b.Property<string>("PasswordResetProviderId") |
| 21 | 409 | | .IsRequired() |
| 21 | 410 | | .HasMaxLength(255) |
| 21 | 411 | | .HasColumnType("TEXT"); |
| 21 | 412 | |
|
| 21 | 413 | | b.Property<bool>("PlayDefaultAudioTrack") |
| 21 | 414 | | .HasColumnType("INTEGER"); |
| 21 | 415 | |
|
| 21 | 416 | | b.Property<bool>("RememberAudioSelections") |
| 21 | 417 | | .HasColumnType("INTEGER"); |
| 21 | 418 | |
|
| 21 | 419 | | b.Property<bool>("RememberSubtitleSelections") |
| 21 | 420 | | .HasColumnType("INTEGER"); |
| 21 | 421 | |
|
| 21 | 422 | | b.Property<int?>("RemoteClientBitrateLimit") |
| 21 | 423 | | .HasColumnType("INTEGER"); |
| 21 | 424 | |
|
| 21 | 425 | | b.Property<uint>("RowVersion") |
| 21 | 426 | | .IsConcurrencyToken() |
| 21 | 427 | | .HasColumnType("INTEGER"); |
| 21 | 428 | |
|
| 21 | 429 | | b.Property<string>("SubtitleLanguagePreference") |
| 21 | 430 | | .HasMaxLength(255) |
| 21 | 431 | | .HasColumnType("TEXT"); |
| 21 | 432 | |
|
| 21 | 433 | | b.Property<int>("SubtitleMode") |
| 21 | 434 | | .HasColumnType("INTEGER"); |
| 21 | 435 | |
|
| 21 | 436 | | b.Property<int>("SyncPlayAccess") |
| 21 | 437 | | .HasColumnType("INTEGER"); |
| 21 | 438 | |
|
| 21 | 439 | | b.Property<string>("Username") |
| 21 | 440 | | .IsRequired() |
| 21 | 441 | | .HasMaxLength(255) |
| 21 | 442 | | .HasColumnType("TEXT") |
| 21 | 443 | | .UseCollation("NOCASE"); |
| 21 | 444 | |
|
| 21 | 445 | | b.HasKey("Id"); |
| 21 | 446 | |
|
| 21 | 447 | | b.HasIndex("Username") |
| 21 | 448 | | .IsUnique(); |
| 21 | 449 | |
|
| 21 | 450 | | b.ToTable("Users"); |
| 21 | 451 | | }); |
| | 452 | |
|
| 21 | 453 | | modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b => |
| 21 | 454 | | { |
| 21 | 455 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 456 | | .WithMany("AccessSchedules") |
| 21 | 457 | | .HasForeignKey("UserId") |
| 21 | 458 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 459 | | .IsRequired(); |
| 21 | 460 | | }); |
| | 461 | |
|
| 21 | 462 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 21 | 463 | | { |
| 21 | 464 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 465 | | .WithMany("DisplayPreferences") |
| 21 | 466 | | .HasForeignKey("UserId") |
| 21 | 467 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 468 | | .IsRequired(); |
| 21 | 469 | | }); |
| | 470 | |
|
| 21 | 471 | | modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b => |
| 21 | 472 | | { |
| 21 | 473 | | b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null) |
| 21 | 474 | | .WithMany("HomeSections") |
| 21 | 475 | | .HasForeignKey("DisplayPreferencesId") |
| 21 | 476 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 477 | | .IsRequired(); |
| 21 | 478 | | }); |
| | 479 | |
|
| 21 | 480 | | modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b => |
| 21 | 481 | | { |
| 21 | 482 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 483 | | .WithOne("ProfileImage") |
| 21 | 484 | | .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId") |
| 21 | 485 | | .OnDelete(DeleteBehavior.Cascade); |
| 21 | 486 | | }); |
| | 487 | |
|
| 21 | 488 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b => |
| 21 | 489 | | { |
| 21 | 490 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 491 | | .WithMany("ItemDisplayPreferences") |
| 21 | 492 | | .HasForeignKey("UserId") |
| 21 | 493 | | .OnDelete(DeleteBehavior.Cascade) |
| 21 | 494 | | .IsRequired(); |
| 21 | 495 | | }); |
| | 496 | |
|
| 21 | 497 | | modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b => |
| 21 | 498 | | { |
| 21 | 499 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 500 | | .WithMany("Permissions") |
| 21 | 501 | | .HasForeignKey("UserId") |
| 21 | 502 | | .OnDelete(DeleteBehavior.Cascade); |
| 21 | 503 | | }); |
| | 504 | |
|
| 21 | 505 | | modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b => |
| 21 | 506 | | { |
| 21 | 507 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 21 | 508 | | .WithMany("Preferences") |
| 21 | 509 | | .HasForeignKey("UserId") |
| 21 | 510 | | .OnDelete(DeleteBehavior.Cascade); |
| 21 | 511 | | }); |
| | 512 | |
|
| 21 | 513 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 21 | 514 | | { |
| 21 | 515 | | b.Navigation("HomeSections"); |
| 21 | 516 | | }); |
| | 517 | |
|
| 21 | 518 | | modelBuilder.Entity("Jellyfin.Data.Entities.User", b => |
| 21 | 519 | | { |
| 21 | 520 | | b.Navigation("AccessSchedules"); |
| 21 | 521 | |
|
| 21 | 522 | | b.Navigation("DisplayPreferences"); |
| 21 | 523 | |
|
| 21 | 524 | | b.Navigation("ItemDisplayPreferences"); |
| 21 | 525 | |
|
| 21 | 526 | | b.Navigation("Permissions"); |
| 21 | 527 | |
|
| 21 | 528 | | b.Navigation("Preferences"); |
| 21 | 529 | |
|
| 21 | 530 | | b.Navigation("ProfileImage"); |
| 21 | 531 | | }); |
| | 532 | | #pragma warning restore 612, 618 |
| 21 | 533 | | } |
| | 534 | | } |
| | 535 | | } |