20250109071240_InitialIdentitySchema.Designer.cs 10 KB

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