UserContextModelSnapshot.cs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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. #nullable disable
  8. namespace bitforum.Migrations.User
  9. {
  10. [DbContext(typeof(UserContext))]
  11. partial class UserContextModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. #pragma warning disable 612, 618
  16. modelBuilder
  17. .HasAnnotation("ProductVersion", "8.0.0")
  18. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  19. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  20. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
  21. {
  22. b.Property<string>("Id")
  23. .HasColumnType("nvarchar(450)");
  24. b.Property<string>("ConcurrencyStamp")
  25. .IsConcurrencyToken()
  26. .HasColumnType("nvarchar(max)");
  27. b.Property<string>("Name")
  28. .HasMaxLength(256)
  29. .HasColumnType("nvarchar(256)");
  30. b.Property<string>("NormalizedName")
  31. .HasMaxLength(256)
  32. .HasColumnType("nvarchar(256)");
  33. b.HasKey("Id");
  34. b.HasIndex("NormalizedName")
  35. .IsUnique()
  36. .HasDatabaseName("RoleNameIndex")
  37. .HasFilter("[NormalizedName] IS NOT NULL");
  38. b.ToTable("AspNetRoles", (string)null);
  39. });
  40. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  41. {
  42. b.Property<int>("Id")
  43. .ValueGeneratedOnAdd()
  44. .HasColumnType("int");
  45. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  46. b.Property<string>("ClaimType")
  47. .HasColumnType("nvarchar(max)");
  48. b.Property<string>("ClaimValue")
  49. .HasColumnType("nvarchar(max)");
  50. b.Property<string>("RoleId")
  51. .IsRequired()
  52. .HasColumnType("nvarchar(450)");
  53. b.HasKey("Id");
  54. b.HasIndex("RoleId");
  55. b.ToTable("AspNetRoleClaims", (string)null);
  56. });
  57. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  58. {
  59. b.Property<int>("Id")
  60. .ValueGeneratedOnAdd()
  61. .HasColumnType("int");
  62. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  63. b.Property<string>("ClaimType")
  64. .HasColumnType("nvarchar(max)");
  65. b.Property<string>("ClaimValue")
  66. .HasColumnType("nvarchar(max)");
  67. b.Property<string>("UserId")
  68. .IsRequired()
  69. .HasColumnType("nvarchar(450)");
  70. b.HasKey("Id");
  71. b.HasIndex("UserId");
  72. b.ToTable("AspNetUserClaims", (string)null);
  73. });
  74. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  75. {
  76. b.Property<string>("LoginProvider")
  77. .HasColumnType("nvarchar(450)");
  78. b.Property<string>("ProviderKey")
  79. .HasColumnType("nvarchar(450)");
  80. b.Property<string>("ProviderDisplayName")
  81. .HasColumnType("nvarchar(max)");
  82. b.Property<string>("UserId")
  83. .IsRequired()
  84. .HasColumnType("nvarchar(450)");
  85. b.HasKey("LoginProvider", "ProviderKey");
  86. b.HasIndex("UserId");
  87. b.ToTable("AspNetUserLogins", (string)null);
  88. });
  89. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  90. {
  91. b.Property<string>("UserId")
  92. .HasColumnType("nvarchar(450)");
  93. b.Property<string>("RoleId")
  94. .HasColumnType("nvarchar(450)");
  95. b.HasKey("UserId", "RoleId");
  96. b.HasIndex("RoleId");
  97. b.ToTable("AspNetUserRoles", (string)null);
  98. });
  99. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  100. {
  101. b.Property<string>("UserId")
  102. .HasColumnType("nvarchar(450)");
  103. b.Property<string>("LoginProvider")
  104. .HasColumnType("nvarchar(450)");
  105. b.Property<string>("Name")
  106. .HasColumnType("nvarchar(450)");
  107. b.Property<string>("Value")
  108. .HasColumnType("nvarchar(max)");
  109. b.HasKey("UserId", "LoginProvider", "Name");
  110. b.ToTable("AspNetUserTokens", (string)null);
  111. });
  112. modelBuilder.Entity("bitforum.Models.User.ApplicationUser", b =>
  113. {
  114. b.Property<string>("Id")
  115. .HasColumnType("nvarchar(450)");
  116. b.Property<int>("AccessFailedCount")
  117. .HasColumnType("int");
  118. b.Property<string>("ConcurrencyStamp")
  119. .IsConcurrencyToken()
  120. .HasColumnType("nvarchar(max)");
  121. b.Property<string>("Email")
  122. .HasMaxLength(256)
  123. .HasColumnType("nvarchar(256)");
  124. b.Property<bool>("EmailConfirmed")
  125. .HasColumnType("bit");
  126. b.Property<string>("FullName")
  127. .HasMaxLength(256)
  128. .HasColumnType("nvarchar(256)");
  129. b.Property<bool>("LockoutEnabled")
  130. .HasColumnType("bit");
  131. b.Property<DateTimeOffset?>("LockoutEnd")
  132. .HasColumnType("datetimeoffset");
  133. b.Property<string>("NormalizedEmail")
  134. .HasMaxLength(256)
  135. .HasColumnType("nvarchar(256)");
  136. b.Property<string>("NormalizedUserName")
  137. .HasMaxLength(256)
  138. .HasColumnType("nvarchar(256)");
  139. b.Property<string>("PasswordHash")
  140. .HasColumnType("nvarchar(max)");
  141. b.Property<string>("PhoneNumber")
  142. .HasColumnType("nvarchar(max)");
  143. b.Property<bool>("PhoneNumberConfirmed")
  144. .HasColumnType("bit");
  145. b.Property<string>("SecurityStamp")
  146. .HasColumnType("nvarchar(max)");
  147. b.Property<bool>("TwoFactorEnabled")
  148. .HasColumnType("bit");
  149. b.Property<string>("UserName")
  150. .HasMaxLength(256)
  151. .HasColumnType("nvarchar(256)");
  152. b.HasKey("Id");
  153. b.HasIndex("NormalizedEmail")
  154. .HasDatabaseName("EmailIndex");
  155. b.HasIndex("NormalizedUserName")
  156. .IsUnique()
  157. .HasDatabaseName("UserNameIndex")
  158. .HasFilter("[NormalizedUserName] IS NOT NULL");
  159. b.ToTable("AspNetUsers", (string)null);
  160. });
  161. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  162. {
  163. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  164. .WithMany()
  165. .HasForeignKey("RoleId")
  166. .OnDelete(DeleteBehavior.Cascade)
  167. .IsRequired();
  168. });
  169. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  170. {
  171. b.HasOne("bitforum.Models.User.ApplicationUser", null)
  172. .WithMany()
  173. .HasForeignKey("UserId")
  174. .OnDelete(DeleteBehavior.Cascade)
  175. .IsRequired();
  176. });
  177. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  178. {
  179. b.HasOne("bitforum.Models.User.ApplicationUser", null)
  180. .WithMany()
  181. .HasForeignKey("UserId")
  182. .OnDelete(DeleteBehavior.Cascade)
  183. .IsRequired();
  184. });
  185. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  186. {
  187. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  188. .WithMany()
  189. .HasForeignKey("RoleId")
  190. .OnDelete(DeleteBehavior.Cascade)
  191. .IsRequired();
  192. b.HasOne("bitforum.Models.User.ApplicationUser", null)
  193. .WithMany()
  194. .HasForeignKey("UserId")
  195. .OnDelete(DeleteBehavior.Cascade)
  196. .IsRequired();
  197. });
  198. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  199. {
  200. b.HasOne("bitforum.Models.User.ApplicationUser", null)
  201. .WithMany()
  202. .HasForeignKey("UserId")
  203. .OnDelete(DeleteBehavior.Cascade)
  204. .IsRequired();
  205. });
  206. #pragma warning restore 612, 618
  207. }
  208. }
  209. }