20260122090557_Init_Identity.Designer.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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.Persistence.Migrations
  11. {
  12. [DbContext(typeof(IdentityDbContext))]
  13. [Migration("20260122090557_Init_Identity")]
  14. partial class Init_Identity
  15. {
  16. /// <inheritdoc />
  17. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  18. {
  19. #pragma warning disable 612, 618
  20. modelBuilder
  21. .HasAnnotation("ProductVersion", "10.0.2")
  22. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  23. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  24. modelBuilder.Entity("Domain.Entities.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. .HasMaxLength(128)
  132. .HasColumnType("nvarchar(128)");
  133. b.Property<string>("ProviderKey")
  134. .HasMaxLength(128)
  135. .HasColumnType("nvarchar(128)");
  136. b.Property<string>("ProviderDisplayName")
  137. .HasColumnType("nvarchar(max)");
  138. b.Property<string>("UserId")
  139. .IsRequired()
  140. .HasColumnType("nvarchar(450)");
  141. b.HasKey("LoginProvider", "ProviderKey");
  142. b.HasIndex("UserId");
  143. b.ToTable("AspNetUserLogins", (string)null);
  144. });
  145. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  146. {
  147. b.Property<string>("UserId")
  148. .HasColumnType("nvarchar(450)");
  149. b.Property<string>("RoleId")
  150. .HasColumnType("nvarchar(450)");
  151. b.HasKey("UserId", "RoleId");
  152. b.HasIndex("RoleId");
  153. b.ToTable("AspNetUserRoles", (string)null);
  154. });
  155. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  156. {
  157. b.Property<string>("UserId")
  158. .HasColumnType("nvarchar(450)");
  159. b.Property<string>("LoginProvider")
  160. .HasMaxLength(128)
  161. .HasColumnType("nvarchar(128)");
  162. b.Property<string>("Name")
  163. .HasMaxLength(128)
  164. .HasColumnType("nvarchar(128)");
  165. b.Property<string>("Value")
  166. .HasColumnType("nvarchar(max)");
  167. b.HasKey("UserId", "LoginProvider", "Name");
  168. b.ToTable("AspNetUserTokens", (string)null);
  169. });
  170. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  171. {
  172. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  173. .WithMany()
  174. .HasForeignKey("RoleId")
  175. .OnDelete(DeleteBehavior.Cascade)
  176. .IsRequired();
  177. });
  178. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  179. {
  180. b.HasOne("Domain.Entities.Identity.ApplicationUser", null)
  181. .WithMany()
  182. .HasForeignKey("UserId")
  183. .OnDelete(DeleteBehavior.Cascade)
  184. .IsRequired();
  185. });
  186. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  187. {
  188. b.HasOne("Domain.Entities.Identity.ApplicationUser", null)
  189. .WithMany()
  190. .HasForeignKey("UserId")
  191. .OnDelete(DeleteBehavior.Cascade)
  192. .IsRequired();
  193. });
  194. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  195. {
  196. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  197. .WithMany()
  198. .HasForeignKey("RoleId")
  199. .OnDelete(DeleteBehavior.Cascade)
  200. .IsRequired();
  201. b.HasOne("Domain.Entities.Identity.ApplicationUser", null)
  202. .WithMany()
  203. .HasForeignKey("UserId")
  204. .OnDelete(DeleteBehavior.Cascade)
  205. .IsRequired();
  206. });
  207. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  208. {
  209. b.HasOne("Domain.Entities.Identity.ApplicationUser", null)
  210. .WithMany()
  211. .HasForeignKey("UserId")
  212. .OnDelete(DeleteBehavior.Cascade)
  213. .IsRequired();
  214. });
  215. #pragma warning restore 612, 618
  216. }
  217. }
  218. }