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.

ApplicationDbContextModelSnapshot.cs 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using Teknik.IdentityServer;
  8. namespace Teknik.IdentityServer.Data.Migrations.ApplicationDb
  9. {
  10. [DbContext(typeof(ApplicationDbContext))]
  11. partial class ApplicationDbContextModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. #pragma warning disable 612, 618
  16. modelBuilder
  17. .HasAnnotation("ProductVersion", "2.1.4-rtm-31024")
  18. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  19. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  20. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
  21. {
  22. b.Property<string>("Id")
  23. .ValueGeneratedOnAdd();
  24. b.Property<string>("ConcurrencyStamp")
  25. .IsConcurrencyToken();
  26. b.Property<string>("Name")
  27. .HasMaxLength(256);
  28. b.Property<string>("NormalizedName")
  29. .HasMaxLength(256);
  30. b.HasKey("Id");
  31. b.HasIndex("NormalizedName")
  32. .IsUnique()
  33. .HasName("RoleNameIndex")
  34. .HasFilter("[NormalizedName] IS NOT NULL");
  35. b.ToTable("AspNetRoles");
  36. });
  37. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  38. {
  39. b.Property<int>("Id")
  40. .ValueGeneratedOnAdd()
  41. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  42. b.Property<string>("ClaimType");
  43. b.Property<string>("ClaimValue");
  44. b.Property<string>("RoleId")
  45. .IsRequired();
  46. b.HasKey("Id");
  47. b.HasIndex("RoleId");
  48. b.ToTable("AspNetRoleClaims");
  49. });
  50. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  51. {
  52. b.Property<int>("Id")
  53. .ValueGeneratedOnAdd()
  54. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  55. b.Property<string>("ClaimType");
  56. b.Property<string>("ClaimValue");
  57. b.Property<string>("UserId")
  58. .IsRequired();
  59. b.HasKey("Id");
  60. b.HasIndex("UserId");
  61. b.ToTable("AspNetUserClaims");
  62. });
  63. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  64. {
  65. b.Property<string>("LoginProvider");
  66. b.Property<string>("ProviderKey");
  67. b.Property<string>("ProviderDisplayName");
  68. b.Property<string>("UserId")
  69. .IsRequired();
  70. b.HasKey("LoginProvider", "ProviderKey");
  71. b.HasIndex("UserId");
  72. b.ToTable("AspNetUserLogins");
  73. });
  74. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  75. {
  76. b.Property<string>("UserId");
  77. b.Property<string>("RoleId");
  78. b.HasKey("UserId", "RoleId");
  79. b.HasIndex("RoleId");
  80. b.ToTable("AspNetUserRoles");
  81. });
  82. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  83. {
  84. b.Property<string>("UserId");
  85. b.Property<string>("LoginProvider");
  86. b.Property<string>("Name");
  87. b.Property<string>("Value");
  88. b.HasKey("UserId", "LoginProvider", "Name");
  89. b.ToTable("AspNetUserTokens");
  90. });
  91. modelBuilder.Entity("Teknik.IdentityServer.Models.ApplicationUser", b =>
  92. {
  93. b.Property<string>("Id")
  94. .ValueGeneratedOnAdd();
  95. b.Property<int>("AccessFailedCount");
  96. b.Property<int>("AccountStatus");
  97. b.Property<int>("AccountType");
  98. b.Property<string>("ConcurrencyStamp")
  99. .IsConcurrencyToken();
  100. b.Property<DateTime>("CreationDate");
  101. b.Property<string>("Email")
  102. .HasMaxLength(256);
  103. b.Property<bool>("EmailConfirmed");
  104. b.Property<DateTime>("LastEdit");
  105. b.Property<DateTime>("LastSeen");
  106. b.Property<bool>("LockoutEnabled");
  107. b.Property<DateTimeOffset?>("LockoutEnd");
  108. b.Property<string>("NormalizedEmail")
  109. .HasMaxLength(256);
  110. b.Property<string>("NormalizedUserName")
  111. .HasMaxLength(256);
  112. b.Property<string>("PGPPublicKey");
  113. b.Property<string>("PasswordHash");
  114. b.Property<string>("PhoneNumber");
  115. b.Property<bool>("PhoneNumberConfirmed");
  116. b.Property<string>("SecurityStamp");
  117. b.Property<bool>("TwoFactorEnabled");
  118. b.Property<string>("UserName")
  119. .HasMaxLength(256);
  120. b.HasKey("Id");
  121. b.HasIndex("NormalizedEmail")
  122. .HasName("EmailIndex");
  123. b.HasIndex("NormalizedUserName")
  124. .IsUnique()
  125. .HasName("UserNameIndex")
  126. .HasFilter("[NormalizedUserName] IS NOT NULL");
  127. b.ToTable("AspNetUsers");
  128. });
  129. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  130. {
  131. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
  132. .WithMany()
  133. .HasForeignKey("RoleId")
  134. .OnDelete(DeleteBehavior.Cascade);
  135. });
  136. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  137. {
  138. b.HasOne("Teknik.IdentityServer.Models.ApplicationUser")
  139. .WithMany()
  140. .HasForeignKey("UserId")
  141. .OnDelete(DeleteBehavior.Cascade);
  142. });
  143. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  144. {
  145. b.HasOne("Teknik.IdentityServer.Models.ApplicationUser")
  146. .WithMany()
  147. .HasForeignKey("UserId")
  148. .OnDelete(DeleteBehavior.Cascade);
  149. });
  150. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  151. {
  152. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
  153. .WithMany()
  154. .HasForeignKey("RoleId")
  155. .OnDelete(DeleteBehavior.Cascade);
  156. b.HasOne("Teknik.IdentityServer.Models.ApplicationUser")
  157. .WithMany()
  158. .HasForeignKey("UserId")
  159. .OnDelete(DeleteBehavior.Cascade);
  160. });
  161. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  162. {
  163. b.HasOne("Teknik.IdentityServer.Models.ApplicationUser")
  164. .WithMany()
  165. .HasForeignKey("UserId")
  166. .OnDelete(DeleteBehavior.Cascade);
  167. });
  168. #pragma warning restore 612, 618
  169. }
  170. }
  171. }