20210320162107_identity.Designer.cs 9.6 KB

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