The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PersistedGrantDbContextModelSnapshot.cs 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // <auto-generated />
  2. using System;
  3. using IdentityServer4.EntityFramework.DbContexts;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. namespace Teknik.IdentityServer.Data.Migrations.IdentityServer.PersistedGrantDb
  9. {
  10. [DbContext(typeof(PersistedGrantDbContext))]
  11. partial class PersistedGrantDbContextModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. #pragma warning disable 612, 618
  16. modelBuilder
  17. .HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
  18. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  19. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  20. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
  21. {
  22. b.Property<string>("UserCode")
  23. .ValueGeneratedOnAdd()
  24. .HasMaxLength(200);
  25. b.Property<string>("ClientId")
  26. .IsRequired()
  27. .HasMaxLength(200);
  28. b.Property<DateTime>("CreationTime");
  29. b.Property<string>("Data")
  30. .IsRequired()
  31. .HasMaxLength(50000);
  32. b.Property<string>("DeviceCode")
  33. .IsRequired()
  34. .HasMaxLength(200);
  35. b.Property<DateTime?>("Expiration")
  36. .IsRequired();
  37. b.Property<string>("SubjectId")
  38. .HasMaxLength(200);
  39. b.HasKey("UserCode");
  40. b.HasIndex("DeviceCode")
  41. .IsUnique();
  42. b.HasIndex("Expiration");
  43. b.ToTable("DeviceCodes");
  44. });
  45. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
  46. {
  47. b.Property<string>("Key")
  48. .HasMaxLength(200);
  49. b.Property<string>("ClientId")
  50. .IsRequired()
  51. .HasMaxLength(200);
  52. b.Property<DateTime>("CreationTime");
  53. b.Property<string>("Data")
  54. .IsRequired()
  55. .HasMaxLength(50000);
  56. b.Property<DateTime?>("Expiration");
  57. b.Property<string>("SubjectId")
  58. .HasMaxLength(200);
  59. b.Property<string>("Type")
  60. .IsRequired()
  61. .HasMaxLength(50);
  62. b.HasKey("Key");
  63. b.HasIndex("SubjectId", "ClientId", "Type", "Expiration");
  64. b.ToTable("PersistedGrants");
  65. });
  66. #pragma warning restore 612, 618
  67. }
  68. }
  69. }