IdentityDbContextModelSnapshot.cs 10 KB

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