ApplicationDbContextModelSnapshot.cs 9.5 KB

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