DbContextModelSnapshot.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
  9. {
  10. [DbContext(typeof(DbContext))]
  11. partial class DbContextModelSnapshot : 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.IdentityUser", b =>
  58. {
  59. b.Property<string>("Id")
  60. .HasColumnType("nvarchar(450)");
  61. b.Property<int>("AccessFailedCount")
  62. .HasColumnType("int");
  63. b.Property<string>("ConcurrencyStamp")
  64. .IsConcurrencyToken()
  65. .HasColumnType("nvarchar(max)");
  66. b.Property<string>("Email")
  67. .HasMaxLength(256)
  68. .HasColumnType("nvarchar(256)");
  69. b.Property<bool>("EmailConfirmed")
  70. .HasColumnType("bit");
  71. b.Property<bool>("LockoutEnabled")
  72. .HasColumnType("bit");
  73. b.Property<DateTimeOffset?>("LockoutEnd")
  74. .HasColumnType("datetimeoffset");
  75. b.Property<string>("NormalizedEmail")
  76. .HasMaxLength(256)
  77. .HasColumnType("nvarchar(256)");
  78. b.Property<string>("NormalizedUserName")
  79. .HasMaxLength(256)
  80. .HasColumnType("nvarchar(256)");
  81. b.Property<string>("PasswordHash")
  82. .HasColumnType("nvarchar(max)");
  83. b.Property<string>("PhoneNumber")
  84. .HasColumnType("nvarchar(max)");
  85. b.Property<bool>("PhoneNumberConfirmed")
  86. .HasColumnType("bit");
  87. b.Property<string>("SecurityStamp")
  88. .HasColumnType("nvarchar(max)");
  89. b.Property<bool>("TwoFactorEnabled")
  90. .HasColumnType("bit");
  91. b.Property<string>("UserName")
  92. .HasMaxLength(256)
  93. .HasColumnType("nvarchar(256)");
  94. b.HasKey("Id");
  95. b.HasIndex("NormalizedEmail")
  96. .HasDatabaseName("EmailIndex");
  97. b.HasIndex("NormalizedUserName")
  98. .IsUnique()
  99. .HasDatabaseName("UserNameIndex")
  100. .HasFilter("[NormalizedUserName] IS NOT NULL");
  101. b.ToTable("AspNetUsers", (string)null);
  102. });
  103. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  104. {
  105. b.Property<int>("Id")
  106. .ValueGeneratedOnAdd()
  107. .HasColumnType("int");
  108. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  109. b.Property<string>("ClaimType")
  110. .HasColumnType("nvarchar(max)");
  111. b.Property<string>("ClaimValue")
  112. .HasColumnType("nvarchar(max)");
  113. b.Property<string>("UserId")
  114. .IsRequired()
  115. .HasColumnType("nvarchar(450)");
  116. b.HasKey("Id");
  117. b.HasIndex("UserId");
  118. b.ToTable("AspNetUserClaims", (string)null);
  119. });
  120. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  121. {
  122. b.Property<string>("LoginProvider")
  123. .HasMaxLength(128)
  124. .HasColumnType("nvarchar(128)");
  125. b.Property<string>("ProviderKey")
  126. .HasMaxLength(128)
  127. .HasColumnType("nvarchar(128)");
  128. b.Property<string>("ProviderDisplayName")
  129. .HasColumnType("nvarchar(max)");
  130. b.Property<string>("UserId")
  131. .IsRequired()
  132. .HasColumnType("nvarchar(450)");
  133. b.HasKey("LoginProvider", "ProviderKey");
  134. b.HasIndex("UserId");
  135. b.ToTable("AspNetUserLogins", (string)null);
  136. });
  137. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  138. {
  139. b.Property<string>("UserId")
  140. .HasColumnType("nvarchar(450)");
  141. b.Property<string>("RoleId")
  142. .HasColumnType("nvarchar(450)");
  143. b.HasKey("UserId", "RoleId");
  144. b.HasIndex("RoleId");
  145. b.ToTable("AspNetUserRoles", (string)null);
  146. });
  147. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  148. {
  149. b.Property<string>("UserId")
  150. .HasColumnType("nvarchar(450)");
  151. b.Property<string>("LoginProvider")
  152. .HasMaxLength(128)
  153. .HasColumnType("nvarchar(128)");
  154. b.Property<string>("Name")
  155. .HasMaxLength(128)
  156. .HasColumnType("nvarchar(128)");
  157. b.Property<string>("Value")
  158. .HasColumnType("nvarchar(max)");
  159. b.HasKey("UserId", "LoginProvider", "Name");
  160. b.ToTable("AspNetUserTokens", (string)null);
  161. });
  162. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  163. {
  164. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  165. .WithMany()
  166. .HasForeignKey("RoleId")
  167. .OnDelete(DeleteBehavior.Cascade)
  168. .IsRequired();
  169. });
  170. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  171. {
  172. b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
  173. .WithMany()
  174. .HasForeignKey("UserId")
  175. .OnDelete(DeleteBehavior.Cascade)
  176. .IsRequired();
  177. });
  178. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  179. {
  180. b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
  181. .WithMany()
  182. .HasForeignKey("UserId")
  183. .OnDelete(DeleteBehavior.Cascade)
  184. .IsRequired();
  185. });
  186. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  187. {
  188. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  189. .WithMany()
  190. .HasForeignKey("RoleId")
  191. .OnDelete(DeleteBehavior.Cascade)
  192. .IsRequired();
  193. b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
  194. .WithMany()
  195. .HasForeignKey("UserId")
  196. .OnDelete(DeleteBehavior.Cascade)
  197. .IsRequired();
  198. });
  199. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  200. {
  201. b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
  202. .WithMany()
  203. .HasForeignKey("UserId")
  204. .OnDelete(DeleteBehavior.Cascade)
  205. .IsRequired();
  206. });
  207. #pragma warning restore 612, 618
  208. }
  209. }
  210. }