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