IdentityDbContextModelSnapshot.cs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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.5")
  19. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  20. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  21. modelBuilder.Entity("Infrastructure.Persistence.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. .HasColumnType("nvarchar(450)");
  129. b.Property<string>("ProviderKey")
  130. .HasColumnType("nvarchar(450)");
  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. .HasColumnType("nvarchar(450)");
  156. b.Property<string>("Name")
  157. .HasColumnType("nvarchar(450)");
  158. b.Property<string>("Value")
  159. .HasColumnType("nvarchar(max)");
  160. b.HasKey("UserId", "LoginProvider", "Name");
  161. b.ToTable("AspNetUserTokens", (string)null);
  162. });
  163. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  164. {
  165. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  166. .WithMany()
  167. .HasForeignKey("RoleId")
  168. .OnDelete(DeleteBehavior.Cascade)
  169. .IsRequired();
  170. });
  171. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  172. {
  173. b.HasOne("Infrastructure.Persistence.Identity.ApplicationUser", null)
  174. .WithMany()
  175. .HasForeignKey("UserId")
  176. .OnDelete(DeleteBehavior.Cascade)
  177. .IsRequired();
  178. });
  179. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  180. {
  181. b.HasOne("Infrastructure.Persistence.Identity.ApplicationUser", null)
  182. .WithMany()
  183. .HasForeignKey("UserId")
  184. .OnDelete(DeleteBehavior.Cascade)
  185. .IsRequired();
  186. });
  187. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  188. {
  189. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  190. .WithMany()
  191. .HasForeignKey("RoleId")
  192. .OnDelete(DeleteBehavior.Cascade)
  193. .IsRequired();
  194. b.HasOne("Infrastructure.Persistence.Identity.ApplicationUser", null)
  195. .WithMany()
  196. .HasForeignKey("UserId")
  197. .OnDelete(DeleteBehavior.Cascade)
  198. .IsRequired();
  199. });
  200. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  201. {
  202. b.HasOne("Infrastructure.Persistence.Identity.ApplicationUser", null)
  203. .WithMany()
  204. .HasForeignKey("UserId")
  205. .OnDelete(DeleteBehavior.Cascade)
  206. .IsRequired();
  207. });
  208. #pragma warning restore 612, 618
  209. }
  210. }
  211. }