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