20260323070126_InitIdentity.Designer.cs 10 KB

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