| | 1 | | #pragma warning disable CS1591 |
| | 2 | |
|
| | 3 | | // <auto-generated /> |
| | 4 | | using System; |
| | 5 | | using Jellyfin.Server.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("20210814002109_AddDevices")] |
| | 15 | | partial class AddDevices |
| | 16 | | { |
| | 17 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | 18 | | { |
| | 19 | | #pragma warning disable 612, 618 |
| 22 | 20 | | modelBuilder |
| 22 | 21 | | .HasDefaultSchema("jellyfin") |
| 22 | 22 | | .HasAnnotation("ProductVersion", "5.0.7"); |
| | 23 | |
|
| 22 | 24 | | modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b => |
| 22 | 25 | | { |
| 22 | 26 | | b.Property<int>("Id") |
| 22 | 27 | | .ValueGeneratedOnAdd() |
| 22 | 28 | | .HasColumnType("INTEGER"); |
| 22 | 29 | |
|
| 22 | 30 | | b.Property<int>("DayOfWeek") |
| 22 | 31 | | .HasColumnType("INTEGER"); |
| 22 | 32 | |
|
| 22 | 33 | | b.Property<double>("EndHour") |
| 22 | 34 | | .HasColumnType("REAL"); |
| 22 | 35 | |
|
| 22 | 36 | | b.Property<double>("StartHour") |
| 22 | 37 | | .HasColumnType("REAL"); |
| 22 | 38 | |
|
| 22 | 39 | | b.Property<Guid>("UserId") |
| 22 | 40 | | .HasColumnType("TEXT"); |
| 22 | 41 | |
|
| 22 | 42 | | b.HasKey("Id"); |
| 22 | 43 | |
|
| 22 | 44 | | b.HasIndex("UserId"); |
| 22 | 45 | |
|
| 22 | 46 | | b.ToTable("AccessSchedules"); |
| 22 | 47 | | }); |
| | 48 | |
|
| 22 | 49 | | modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b => |
| 22 | 50 | | { |
| 22 | 51 | | b.Property<int>("Id") |
| 22 | 52 | | .ValueGeneratedOnAdd() |
| 22 | 53 | | .HasColumnType("INTEGER"); |
| 22 | 54 | |
|
| 22 | 55 | | b.Property<DateTime>("DateCreated") |
| 22 | 56 | | .HasColumnType("TEXT"); |
| 22 | 57 | |
|
| 22 | 58 | | b.Property<string>("ItemId") |
| 22 | 59 | | .HasMaxLength(256) |
| 22 | 60 | | .HasColumnType("TEXT"); |
| 22 | 61 | |
|
| 22 | 62 | | b.Property<int>("LogSeverity") |
| 22 | 63 | | .HasColumnType("INTEGER"); |
| 22 | 64 | |
|
| 22 | 65 | | b.Property<string>("Name") |
| 22 | 66 | | .IsRequired() |
| 22 | 67 | | .HasMaxLength(512) |
| 22 | 68 | | .HasColumnType("TEXT"); |
| 22 | 69 | |
|
| 22 | 70 | | b.Property<string>("Overview") |
| 22 | 71 | | .HasMaxLength(512) |
| 22 | 72 | | .HasColumnType("TEXT"); |
| 22 | 73 | |
|
| 22 | 74 | | b.Property<uint>("RowVersion") |
| 22 | 75 | | .IsConcurrencyToken() |
| 22 | 76 | | .HasColumnType("INTEGER"); |
| 22 | 77 | |
|
| 22 | 78 | | b.Property<string>("ShortOverview") |
| 22 | 79 | | .HasMaxLength(512) |
| 22 | 80 | | .HasColumnType("TEXT"); |
| 22 | 81 | |
|
| 22 | 82 | | b.Property<string>("Type") |
| 22 | 83 | | .IsRequired() |
| 22 | 84 | | .HasMaxLength(256) |
| 22 | 85 | | .HasColumnType("TEXT"); |
| 22 | 86 | |
|
| 22 | 87 | | b.Property<Guid>("UserId") |
| 22 | 88 | | .HasColumnType("TEXT"); |
| 22 | 89 | |
|
| 22 | 90 | | b.HasKey("Id"); |
| 22 | 91 | |
|
| 22 | 92 | | b.ToTable("ActivityLogs"); |
| 22 | 93 | | }); |
| | 94 | |
|
| 22 | 95 | | modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b => |
| 22 | 96 | | { |
| 22 | 97 | | b.Property<int>("Id") |
| 22 | 98 | | .ValueGeneratedOnAdd() |
| 22 | 99 | | .HasColumnType("INTEGER"); |
| 22 | 100 | |
|
| 22 | 101 | | b.Property<string>("Client") |
| 22 | 102 | | .IsRequired() |
| 22 | 103 | | .HasMaxLength(32) |
| 22 | 104 | | .HasColumnType("TEXT"); |
| 22 | 105 | |
|
| 22 | 106 | | b.Property<Guid>("ItemId") |
| 22 | 107 | | .HasColumnType("TEXT"); |
| 22 | 108 | |
|
| 22 | 109 | | b.Property<string>("Key") |
| 22 | 110 | | .IsRequired() |
| 22 | 111 | | .HasColumnType("TEXT"); |
| 22 | 112 | |
|
| 22 | 113 | | b.Property<Guid>("UserId") |
| 22 | 114 | | .HasColumnType("TEXT"); |
| 22 | 115 | |
|
| 22 | 116 | | b.Property<string>("Value") |
| 22 | 117 | | .HasColumnType("TEXT"); |
| 22 | 118 | |
|
| 22 | 119 | | b.HasKey("Id"); |
| 22 | 120 | |
|
| 22 | 121 | | b.HasIndex("UserId", "ItemId", "Client", "Key") |
| 22 | 122 | | .IsUnique(); |
| 22 | 123 | |
|
| 22 | 124 | | b.ToTable("CustomItemDisplayPreferences"); |
| 22 | 125 | | }); |
| | 126 | |
|
| 22 | 127 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 22 | 128 | | { |
| 22 | 129 | | b.Property<int>("Id") |
| 22 | 130 | | .ValueGeneratedOnAdd() |
| 22 | 131 | | .HasColumnType("INTEGER"); |
| 22 | 132 | |
|
| 22 | 133 | | b.Property<int>("ChromecastVersion") |
| 22 | 134 | | .HasColumnType("INTEGER"); |
| 22 | 135 | |
|
| 22 | 136 | | b.Property<string>("Client") |
| 22 | 137 | | .IsRequired() |
| 22 | 138 | | .HasMaxLength(32) |
| 22 | 139 | | .HasColumnType("TEXT"); |
| 22 | 140 | |
|
| 22 | 141 | | b.Property<string>("DashboardTheme") |
| 22 | 142 | | .HasMaxLength(32) |
| 22 | 143 | | .HasColumnType("TEXT"); |
| 22 | 144 | |
|
| 22 | 145 | | b.Property<bool>("EnableNextVideoInfoOverlay") |
| 22 | 146 | | .HasColumnType("INTEGER"); |
| 22 | 147 | |
|
| 22 | 148 | | b.Property<int?>("IndexBy") |
| 22 | 149 | | .HasColumnType("INTEGER"); |
| 22 | 150 | |
|
| 22 | 151 | | b.Property<Guid>("ItemId") |
| 22 | 152 | | .HasColumnType("TEXT"); |
| 22 | 153 | |
|
| 22 | 154 | | b.Property<int>("ScrollDirection") |
| 22 | 155 | | .HasColumnType("INTEGER"); |
| 22 | 156 | |
|
| 22 | 157 | | b.Property<bool>("ShowBackdrop") |
| 22 | 158 | | .HasColumnType("INTEGER"); |
| 22 | 159 | |
|
| 22 | 160 | | b.Property<bool>("ShowSidebar") |
| 22 | 161 | | .HasColumnType("INTEGER"); |
| 22 | 162 | |
|
| 22 | 163 | | b.Property<int>("SkipBackwardLength") |
| 22 | 164 | | .HasColumnType("INTEGER"); |
| 22 | 165 | |
|
| 22 | 166 | | b.Property<int>("SkipForwardLength") |
| 22 | 167 | | .HasColumnType("INTEGER"); |
| 22 | 168 | |
|
| 22 | 169 | | b.Property<string>("TvHome") |
| 22 | 170 | | .HasMaxLength(32) |
| 22 | 171 | | .HasColumnType("TEXT"); |
| 22 | 172 | |
|
| 22 | 173 | | b.Property<Guid>("UserId") |
| 22 | 174 | | .HasColumnType("TEXT"); |
| 22 | 175 | |
|
| 22 | 176 | | b.HasKey("Id"); |
| 22 | 177 | |
|
| 22 | 178 | | b.HasIndex("UserId", "ItemId", "Client") |
| 22 | 179 | | .IsUnique(); |
| 22 | 180 | |
|
| 22 | 181 | | b.ToTable("DisplayPreferences"); |
| 22 | 182 | | }); |
| | 183 | |
|
| 22 | 184 | | modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b => |
| 22 | 185 | | { |
| 22 | 186 | | b.Property<int>("Id") |
| 22 | 187 | | .ValueGeneratedOnAdd() |
| 22 | 188 | | .HasColumnType("INTEGER"); |
| 22 | 189 | |
|
| 22 | 190 | | b.Property<int>("DisplayPreferencesId") |
| 22 | 191 | | .HasColumnType("INTEGER"); |
| 22 | 192 | |
|
| 22 | 193 | | b.Property<int>("Order") |
| 22 | 194 | | .HasColumnType("INTEGER"); |
| 22 | 195 | |
|
| 22 | 196 | | b.Property<int>("Type") |
| 22 | 197 | | .HasColumnType("INTEGER"); |
| 22 | 198 | |
|
| 22 | 199 | | b.HasKey("Id"); |
| 22 | 200 | |
|
| 22 | 201 | | b.HasIndex("DisplayPreferencesId"); |
| 22 | 202 | |
|
| 22 | 203 | | b.ToTable("HomeSection"); |
| 22 | 204 | | }); |
| | 205 | |
|
| 22 | 206 | | modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b => |
| 22 | 207 | | { |
| 22 | 208 | | b.Property<int>("Id") |
| 22 | 209 | | .ValueGeneratedOnAdd() |
| 22 | 210 | | .HasColumnType("INTEGER"); |
| 22 | 211 | |
|
| 22 | 212 | | b.Property<DateTime>("LastModified") |
| 22 | 213 | | .HasColumnType("TEXT"); |
| 22 | 214 | |
|
| 22 | 215 | | b.Property<string>("Path") |
| 22 | 216 | | .IsRequired() |
| 22 | 217 | | .HasMaxLength(512) |
| 22 | 218 | | .HasColumnType("TEXT"); |
| 22 | 219 | |
|
| 22 | 220 | | b.Property<Guid?>("UserId") |
| 22 | 221 | | .HasColumnType("TEXT"); |
| 22 | 222 | |
|
| 22 | 223 | | b.HasKey("Id"); |
| 22 | 224 | |
|
| 22 | 225 | | b.HasIndex("UserId") |
| 22 | 226 | | .IsUnique(); |
| 22 | 227 | |
|
| 22 | 228 | | b.ToTable("ImageInfos"); |
| 22 | 229 | | }); |
| | 230 | |
|
| 22 | 231 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b => |
| 22 | 232 | | { |
| 22 | 233 | | b.Property<int>("Id") |
| 22 | 234 | | .ValueGeneratedOnAdd() |
| 22 | 235 | | .HasColumnType("INTEGER"); |
| 22 | 236 | |
|
| 22 | 237 | | b.Property<string>("Client") |
| 22 | 238 | | .IsRequired() |
| 22 | 239 | | .HasMaxLength(32) |
| 22 | 240 | | .HasColumnType("TEXT"); |
| 22 | 241 | |
|
| 22 | 242 | | b.Property<int?>("IndexBy") |
| 22 | 243 | | .HasColumnType("INTEGER"); |
| 22 | 244 | |
|
| 22 | 245 | | b.Property<Guid>("ItemId") |
| 22 | 246 | | .HasColumnType("TEXT"); |
| 22 | 247 | |
|
| 22 | 248 | | b.Property<bool>("RememberIndexing") |
| 22 | 249 | | .HasColumnType("INTEGER"); |
| 22 | 250 | |
|
| 22 | 251 | | b.Property<bool>("RememberSorting") |
| 22 | 252 | | .HasColumnType("INTEGER"); |
| 22 | 253 | |
|
| 22 | 254 | | b.Property<string>("SortBy") |
| 22 | 255 | | .IsRequired() |
| 22 | 256 | | .HasMaxLength(64) |
| 22 | 257 | | .HasColumnType("TEXT"); |
| 22 | 258 | |
|
| 22 | 259 | | b.Property<int>("SortOrder") |
| 22 | 260 | | .HasColumnType("INTEGER"); |
| 22 | 261 | |
|
| 22 | 262 | | b.Property<Guid>("UserId") |
| 22 | 263 | | .HasColumnType("TEXT"); |
| 22 | 264 | |
|
| 22 | 265 | | b.Property<int>("ViewType") |
| 22 | 266 | | .HasColumnType("INTEGER"); |
| 22 | 267 | |
|
| 22 | 268 | | b.HasKey("Id"); |
| 22 | 269 | |
|
| 22 | 270 | | b.HasIndex("UserId"); |
| 22 | 271 | |
|
| 22 | 272 | | b.ToTable("ItemDisplayPreferences"); |
| 22 | 273 | | }); |
| | 274 | |
|
| 22 | 275 | | modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b => |
| 22 | 276 | | { |
| 22 | 277 | | b.Property<int>("Id") |
| 22 | 278 | | .ValueGeneratedOnAdd() |
| 22 | 279 | | .HasColumnType("INTEGER"); |
| 22 | 280 | |
|
| 22 | 281 | | b.Property<int>("Kind") |
| 22 | 282 | | .HasColumnType("INTEGER"); |
| 22 | 283 | |
|
| 22 | 284 | | b.Property<Guid?>("Permission_Permissions_Guid") |
| 22 | 285 | | .HasColumnType("TEXT"); |
| 22 | 286 | |
|
| 22 | 287 | | b.Property<uint>("RowVersion") |
| 22 | 288 | | .IsConcurrencyToken() |
| 22 | 289 | | .HasColumnType("INTEGER"); |
| 22 | 290 | |
|
| 22 | 291 | | b.Property<Guid?>("UserId") |
| 22 | 292 | | .HasColumnType("TEXT"); |
| 22 | 293 | |
|
| 22 | 294 | | b.Property<bool>("Value") |
| 22 | 295 | | .HasColumnType("INTEGER"); |
| 22 | 296 | |
|
| 22 | 297 | | b.HasKey("Id"); |
| 22 | 298 | |
|
| 22 | 299 | | b.HasIndex("UserId", "Kind") |
| 22 | 300 | | .IsUnique() |
| 22 | 301 | | .HasFilter("[UserId] IS NOT NULL"); |
| 22 | 302 | |
|
| 22 | 303 | | b.ToTable("Permissions"); |
| 22 | 304 | | }); |
| | 305 | |
|
| 22 | 306 | | modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b => |
| 22 | 307 | | { |
| 22 | 308 | | b.Property<int>("Id") |
| 22 | 309 | | .ValueGeneratedOnAdd() |
| 22 | 310 | | .HasColumnType("INTEGER"); |
| 22 | 311 | |
|
| 22 | 312 | | b.Property<int>("Kind") |
| 22 | 313 | | .HasColumnType("INTEGER"); |
| 22 | 314 | |
|
| 22 | 315 | | b.Property<Guid?>("Preference_Preferences_Guid") |
| 22 | 316 | | .HasColumnType("TEXT"); |
| 22 | 317 | |
|
| 22 | 318 | | b.Property<uint>("RowVersion") |
| 22 | 319 | | .IsConcurrencyToken() |
| 22 | 320 | | .HasColumnType("INTEGER"); |
| 22 | 321 | |
|
| 22 | 322 | | b.Property<Guid?>("UserId") |
| 22 | 323 | | .HasColumnType("TEXT"); |
| 22 | 324 | |
|
| 22 | 325 | | b.Property<string>("Value") |
| 22 | 326 | | .IsRequired() |
| 22 | 327 | | .HasMaxLength(65535) |
| 22 | 328 | | .HasColumnType("TEXT"); |
| 22 | 329 | |
|
| 22 | 330 | | b.HasKey("Id"); |
| 22 | 331 | |
|
| 22 | 332 | | b.HasIndex("UserId", "Kind") |
| 22 | 333 | | .IsUnique() |
| 22 | 334 | | .HasFilter("[UserId] IS NOT NULL"); |
| 22 | 335 | |
|
| 22 | 336 | | b.ToTable("Preferences"); |
| 22 | 337 | | }); |
| | 338 | |
|
| 22 | 339 | | modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b => |
| 22 | 340 | | { |
| 22 | 341 | | b.Property<int>("Id") |
| 22 | 342 | | .ValueGeneratedOnAdd() |
| 22 | 343 | | .HasColumnType("INTEGER"); |
| 22 | 344 | |
|
| 22 | 345 | | b.Property<string>("AccessToken") |
| 22 | 346 | | .IsRequired() |
| 22 | 347 | | .HasColumnType("TEXT"); |
| 22 | 348 | |
|
| 22 | 349 | | b.Property<DateTime>("DateCreated") |
| 22 | 350 | | .HasColumnType("TEXT"); |
| 22 | 351 | |
|
| 22 | 352 | | b.Property<DateTime>("DateLastActivity") |
| 22 | 353 | | .HasColumnType("TEXT"); |
| 22 | 354 | |
|
| 22 | 355 | | b.Property<string>("Name") |
| 22 | 356 | | .IsRequired() |
| 22 | 357 | | .HasMaxLength(64) |
| 22 | 358 | | .HasColumnType("TEXT"); |
| 22 | 359 | |
|
| 22 | 360 | | b.HasKey("Id"); |
| 22 | 361 | |
|
| 22 | 362 | | b.HasIndex("AccessToken") |
| 22 | 363 | | .IsUnique(); |
| 22 | 364 | |
|
| 22 | 365 | | b.ToTable("ApiKeys"); |
| 22 | 366 | | }); |
| | 367 | |
|
| 22 | 368 | | modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b => |
| 22 | 369 | | { |
| 22 | 370 | | b.Property<int>("Id") |
| 22 | 371 | | .ValueGeneratedOnAdd() |
| 22 | 372 | | .HasColumnType("INTEGER"); |
| 22 | 373 | |
|
| 22 | 374 | | b.Property<string>("AccessToken") |
| 22 | 375 | | .IsRequired() |
| 22 | 376 | | .HasColumnType("TEXT"); |
| 22 | 377 | |
|
| 22 | 378 | | b.Property<string>("AppName") |
| 22 | 379 | | .IsRequired() |
| 22 | 380 | | .HasMaxLength(64) |
| 22 | 381 | | .HasColumnType("TEXT"); |
| 22 | 382 | |
|
| 22 | 383 | | b.Property<string>("AppVersion") |
| 22 | 384 | | .IsRequired() |
| 22 | 385 | | .HasMaxLength(32) |
| 22 | 386 | | .HasColumnType("TEXT"); |
| 22 | 387 | |
|
| 22 | 388 | | b.Property<DateTime>("DateCreated") |
| 22 | 389 | | .HasColumnType("TEXT"); |
| 22 | 390 | |
|
| 22 | 391 | | b.Property<DateTime>("DateLastActivity") |
| 22 | 392 | | .HasColumnType("TEXT"); |
| 22 | 393 | |
|
| 22 | 394 | | b.Property<DateTime>("DateModified") |
| 22 | 395 | | .HasColumnType("TEXT"); |
| 22 | 396 | |
|
| 22 | 397 | | b.Property<string>("DeviceId") |
| 22 | 398 | | .IsRequired() |
| 22 | 399 | | .HasMaxLength(256) |
| 22 | 400 | | .HasColumnType("TEXT"); |
| 22 | 401 | |
|
| 22 | 402 | | b.Property<string>("DeviceName") |
| 22 | 403 | | .IsRequired() |
| 22 | 404 | | .HasMaxLength(64) |
| 22 | 405 | | .HasColumnType("TEXT"); |
| 22 | 406 | |
|
| 22 | 407 | | b.Property<bool>("IsActive") |
| 22 | 408 | | .HasColumnType("INTEGER"); |
| 22 | 409 | |
|
| 22 | 410 | | b.Property<Guid>("UserId") |
| 22 | 411 | | .HasColumnType("TEXT"); |
| 22 | 412 | |
|
| 22 | 413 | | b.HasKey("Id"); |
| 22 | 414 | |
|
| 22 | 415 | | b.HasIndex("DeviceId"); |
| 22 | 416 | |
|
| 22 | 417 | | b.HasIndex("AccessToken", "DateLastActivity"); |
| 22 | 418 | |
|
| 22 | 419 | | b.HasIndex("DeviceId", "DateLastActivity"); |
| 22 | 420 | |
|
| 22 | 421 | | b.HasIndex("UserId", "DeviceId"); |
| 22 | 422 | |
|
| 22 | 423 | | b.ToTable("Devices"); |
| 22 | 424 | | }); |
| | 425 | |
|
| 22 | 426 | | modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b => |
| 22 | 427 | | { |
| 22 | 428 | | b.Property<int>("Id") |
| 22 | 429 | | .ValueGeneratedOnAdd() |
| 22 | 430 | | .HasColumnType("INTEGER"); |
| 22 | 431 | |
|
| 22 | 432 | | b.Property<string>("CustomName") |
| 22 | 433 | | .HasColumnType("TEXT"); |
| 22 | 434 | |
|
| 22 | 435 | | b.Property<string>("DeviceId") |
| 22 | 436 | | .IsRequired() |
| 22 | 437 | | .HasColumnType("TEXT"); |
| 22 | 438 | |
|
| 22 | 439 | | b.HasKey("Id"); |
| 22 | 440 | |
|
| 22 | 441 | | b.HasIndex("DeviceId") |
| 22 | 442 | | .IsUnique(); |
| 22 | 443 | |
|
| 22 | 444 | | b.ToTable("DeviceOptions"); |
| 22 | 445 | | }); |
| | 446 | |
|
| 22 | 447 | | modelBuilder.Entity("Jellyfin.Data.Entities.User", b => |
| 22 | 448 | | { |
| 22 | 449 | | b.Property<Guid>("Id") |
| 22 | 450 | | .ValueGeneratedOnAdd() |
| 22 | 451 | | .HasColumnType("TEXT"); |
| 22 | 452 | |
|
| 22 | 453 | | b.Property<string>("AudioLanguagePreference") |
| 22 | 454 | | .HasMaxLength(255) |
| 22 | 455 | | .HasColumnType("TEXT"); |
| 22 | 456 | |
|
| 22 | 457 | | b.Property<string>("AuthenticationProviderId") |
| 22 | 458 | | .IsRequired() |
| 22 | 459 | | .HasMaxLength(255) |
| 22 | 460 | | .HasColumnType("TEXT"); |
| 22 | 461 | |
|
| 22 | 462 | | b.Property<bool>("DisplayCollectionsView") |
| 22 | 463 | | .HasColumnType("INTEGER"); |
| 22 | 464 | |
|
| 22 | 465 | | b.Property<bool>("DisplayMissingEpisodes") |
| 22 | 466 | | .HasColumnType("INTEGER"); |
| 22 | 467 | |
|
| 22 | 468 | | b.Property<string>("EasyPassword") |
| 22 | 469 | | .HasMaxLength(65535) |
| 22 | 470 | | .HasColumnType("TEXT"); |
| 22 | 471 | |
|
| 22 | 472 | | b.Property<bool>("EnableAutoLogin") |
| 22 | 473 | | .HasColumnType("INTEGER"); |
| 22 | 474 | |
|
| 22 | 475 | | b.Property<bool>("EnableLocalPassword") |
| 22 | 476 | | .HasColumnType("INTEGER"); |
| 22 | 477 | |
|
| 22 | 478 | | b.Property<bool>("EnableNextEpisodeAutoPlay") |
| 22 | 479 | | .HasColumnType("INTEGER"); |
| 22 | 480 | |
|
| 22 | 481 | | b.Property<bool>("EnableUserPreferenceAccess") |
| 22 | 482 | | .HasColumnType("INTEGER"); |
| 22 | 483 | |
|
| 22 | 484 | | b.Property<bool>("HidePlayedInLatest") |
| 22 | 485 | | .HasColumnType("INTEGER"); |
| 22 | 486 | |
|
| 22 | 487 | | b.Property<long>("InternalId") |
| 22 | 488 | | .HasColumnType("INTEGER"); |
| 22 | 489 | |
|
| 22 | 490 | | b.Property<int>("InvalidLoginAttemptCount") |
| 22 | 491 | | .HasColumnType("INTEGER"); |
| 22 | 492 | |
|
| 22 | 493 | | b.Property<DateTime?>("LastActivityDate") |
| 22 | 494 | | .HasColumnType("TEXT"); |
| 22 | 495 | |
|
| 22 | 496 | | b.Property<DateTime?>("LastLoginDate") |
| 22 | 497 | | .HasColumnType("TEXT"); |
| 22 | 498 | |
|
| 22 | 499 | | b.Property<int?>("LoginAttemptsBeforeLockout") |
| 22 | 500 | | .HasColumnType("INTEGER"); |
| 22 | 501 | |
|
| 22 | 502 | | b.Property<int>("MaxActiveSessions") |
| 22 | 503 | | .HasColumnType("INTEGER"); |
| 22 | 504 | |
|
| 22 | 505 | | b.Property<int?>("MaxParentalAgeRating") |
| 22 | 506 | | .HasColumnType("INTEGER"); |
| 22 | 507 | |
|
| 22 | 508 | | b.Property<bool>("MustUpdatePassword") |
| 22 | 509 | | .HasColumnType("INTEGER"); |
| 22 | 510 | |
|
| 22 | 511 | | b.Property<string>("Password") |
| 22 | 512 | | .HasMaxLength(65535) |
| 22 | 513 | | .HasColumnType("TEXT"); |
| 22 | 514 | |
|
| 22 | 515 | | b.Property<string>("PasswordResetProviderId") |
| 22 | 516 | | .IsRequired() |
| 22 | 517 | | .HasMaxLength(255) |
| 22 | 518 | | .HasColumnType("TEXT"); |
| 22 | 519 | |
|
| 22 | 520 | | b.Property<bool>("PlayDefaultAudioTrack") |
| 22 | 521 | | .HasColumnType("INTEGER"); |
| 22 | 522 | |
|
| 22 | 523 | | b.Property<bool>("RememberAudioSelections") |
| 22 | 524 | | .HasColumnType("INTEGER"); |
| 22 | 525 | |
|
| 22 | 526 | | b.Property<bool>("RememberSubtitleSelections") |
| 22 | 527 | | .HasColumnType("INTEGER"); |
| 22 | 528 | |
|
| 22 | 529 | | b.Property<int?>("RemoteClientBitrateLimit") |
| 22 | 530 | | .HasColumnType("INTEGER"); |
| 22 | 531 | |
|
| 22 | 532 | | b.Property<uint>("RowVersion") |
| 22 | 533 | | .IsConcurrencyToken() |
| 22 | 534 | | .HasColumnType("INTEGER"); |
| 22 | 535 | |
|
| 22 | 536 | | b.Property<string>("SubtitleLanguagePreference") |
| 22 | 537 | | .HasMaxLength(255) |
| 22 | 538 | | .HasColumnType("TEXT"); |
| 22 | 539 | |
|
| 22 | 540 | | b.Property<int>("SubtitleMode") |
| 22 | 541 | | .HasColumnType("INTEGER"); |
| 22 | 542 | |
|
| 22 | 543 | | b.Property<int>("SyncPlayAccess") |
| 22 | 544 | | .HasColumnType("INTEGER"); |
| 22 | 545 | |
|
| 22 | 546 | | b.Property<string>("Username") |
| 22 | 547 | | .IsRequired() |
| 22 | 548 | | .HasMaxLength(255) |
| 22 | 549 | | .HasColumnType("TEXT") |
| 22 | 550 | | .UseCollation("NOCASE"); |
| 22 | 551 | |
|
| 22 | 552 | | b.HasKey("Id"); |
| 22 | 553 | |
|
| 22 | 554 | | b.HasIndex("Username") |
| 22 | 555 | | .IsUnique(); |
| 22 | 556 | |
|
| 22 | 557 | | b.ToTable("Users"); |
| 22 | 558 | | }); |
| | 559 | |
|
| 22 | 560 | | modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b => |
| 22 | 561 | | { |
| 22 | 562 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 22 | 563 | | .WithMany("AccessSchedules") |
| 22 | 564 | | .HasForeignKey("UserId") |
| 22 | 565 | | .OnDelete(DeleteBehavior.Cascade) |
| 22 | 566 | | .IsRequired(); |
| 22 | 567 | | }); |
| | 568 | |
|
| 22 | 569 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 22 | 570 | | { |
| 22 | 571 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 22 | 572 | | .WithMany("DisplayPreferences") |
| 22 | 573 | | .HasForeignKey("UserId") |
| 22 | 574 | | .OnDelete(DeleteBehavior.Cascade) |
| 22 | 575 | | .IsRequired(); |
| 22 | 576 | | }); |
| | 577 | |
|
| 22 | 578 | | modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b => |
| 22 | 579 | | { |
| 22 | 580 | | b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null) |
| 22 | 581 | | .WithMany("HomeSections") |
| 22 | 582 | | .HasForeignKey("DisplayPreferencesId") |
| 22 | 583 | | .OnDelete(DeleteBehavior.Cascade) |
| 22 | 584 | | .IsRequired(); |
| 22 | 585 | | }); |
| | 586 | |
|
| 22 | 587 | | modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b => |
| 22 | 588 | | { |
| 22 | 589 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 22 | 590 | | .WithOne("ProfileImage") |
| 22 | 591 | | .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId") |
| 22 | 592 | | .OnDelete(DeleteBehavior.Cascade); |
| 22 | 593 | | }); |
| | 594 | |
|
| 22 | 595 | | modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b => |
| 22 | 596 | | { |
| 22 | 597 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 22 | 598 | | .WithMany("ItemDisplayPreferences") |
| 22 | 599 | | .HasForeignKey("UserId") |
| 22 | 600 | | .OnDelete(DeleteBehavior.Cascade) |
| 22 | 601 | | .IsRequired(); |
| 22 | 602 | | }); |
| | 603 | |
|
| 22 | 604 | | modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b => |
| 22 | 605 | | { |
| 22 | 606 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 22 | 607 | | .WithMany("Permissions") |
| 22 | 608 | | .HasForeignKey("UserId") |
| 22 | 609 | | .OnDelete(DeleteBehavior.Cascade); |
| 22 | 610 | | }); |
| | 611 | |
|
| 22 | 612 | | modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b => |
| 22 | 613 | | { |
| 22 | 614 | | b.HasOne("Jellyfin.Data.Entities.User", null) |
| 22 | 615 | | .WithMany("Preferences") |
| 22 | 616 | | .HasForeignKey("UserId") |
| 22 | 617 | | .OnDelete(DeleteBehavior.Cascade); |
| 22 | 618 | | }); |
| | 619 | |
|
| 22 | 620 | | modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b => |
| 22 | 621 | | { |
| 22 | 622 | | b.HasOne("Jellyfin.Data.Entities.User", "User") |
| 22 | 623 | | .WithMany() |
| 22 | 624 | | .HasForeignKey("UserId") |
| 22 | 625 | | .OnDelete(DeleteBehavior.Cascade) |
| 22 | 626 | | .IsRequired(); |
| 22 | 627 | |
|
| 22 | 628 | | b.Navigation("User"); |
| 22 | 629 | | }); |
| | 630 | |
|
| 22 | 631 | | modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b => |
| 22 | 632 | | { |
| 22 | 633 | | b.Navigation("HomeSections"); |
| 22 | 634 | | }); |
| | 635 | |
|
| 22 | 636 | | modelBuilder.Entity("Jellyfin.Data.Entities.User", b => |
| 22 | 637 | | { |
| 22 | 638 | | b.Navigation("AccessSchedules"); |
| 22 | 639 | |
|
| 22 | 640 | | b.Navigation("DisplayPreferences"); |
| 22 | 641 | |
|
| 22 | 642 | | b.Navigation("ItemDisplayPreferences"); |
| 22 | 643 | |
|
| 22 | 644 | | b.Navigation("Permissions"); |
| 22 | 645 | |
|
| 22 | 646 | | b.Navigation("Preferences"); |
| 22 | 647 | |
|
| 22 | 648 | | b.Navigation("ProfileImage"); |
| 22 | 649 | | }); |
| | 650 | | #pragma warning restore 612, 618 |
| 22 | 651 | | } |
| | 652 | | } |
| | 653 | | } |