Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

20211129132834_AddedAuth.Designer.cs 9.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. // <auto-generated />
  2. using System;
  3. using BlackRock.Reporting.API.Persistence;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. #nullable disable
  9. namespace BlackRock.Reporting.API.Migrations
  10. {
  11. [DbContext(typeof(BRDbContext))]
  12. [Migration("20211129132834_AddedAuth")]
  13. partial class AddedAuth
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder.HasAnnotation("ProductVersion", "6.0.0");
  19. modelBuilder.Entity("BlackRock.Reporting.API.Core.Models.ApplicationUser", b =>
  20. {
  21. b.Property<string>("Id")
  22. .HasColumnType("TEXT");
  23. b.Property<int>("AccessFailedCount")
  24. .HasColumnType("INTEGER");
  25. b.Property<string>("ConcurrencyStamp")
  26. .IsConcurrencyToken()
  27. .HasColumnType("TEXT");
  28. b.Property<string>("Email")
  29. .HasMaxLength(256)
  30. .HasColumnType("TEXT");
  31. b.Property<bool>("EmailConfirmed")
  32. .HasColumnType("INTEGER");
  33. b.Property<bool>("LockoutEnabled")
  34. .HasColumnType("INTEGER");
  35. b.Property<DateTimeOffset?>("LockoutEnd")
  36. .HasColumnType("TEXT");
  37. b.Property<string>("NormalizedEmail")
  38. .HasMaxLength(256)
  39. .HasColumnType("TEXT");
  40. b.Property<string>("NormalizedUserName")
  41. .HasMaxLength(256)
  42. .HasColumnType("TEXT");
  43. b.Property<string>("PasswordHash")
  44. .HasColumnType("TEXT");
  45. b.Property<string>("PhoneNumber")
  46. .HasColumnType("TEXT");
  47. b.Property<bool>("PhoneNumberConfirmed")
  48. .HasColumnType("INTEGER");
  49. b.Property<string>("SecurityStamp")
  50. .HasColumnType("TEXT");
  51. b.Property<bool>("TwoFactorEnabled")
  52. .HasColumnType("INTEGER");
  53. b.Property<string>("UserName")
  54. .HasMaxLength(256)
  55. .HasColumnType("TEXT");
  56. b.HasKey("Id");
  57. b.HasIndex("NormalizedEmail")
  58. .HasDatabaseName("EmailIndex");
  59. b.HasIndex("NormalizedUserName")
  60. .IsUnique()
  61. .HasDatabaseName("UserNameIndex");
  62. b.ToTable("AspNetUsers", (string)null);
  63. });
  64. modelBuilder.Entity("BlackRock.Reporting.API.Core.Models.User", b =>
  65. {
  66. b.Property<int>("Id")
  67. .ValueGeneratedOnAdd()
  68. .HasColumnType("INTEGER");
  69. b.Property<string>("Email")
  70. .HasColumnType("TEXT");
  71. b.Property<string>("Name")
  72. .HasColumnType("TEXT");
  73. b.HasKey("Id");
  74. b.ToTable("Users");
  75. });
  76. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
  77. {
  78. b.Property<string>("Id")
  79. .HasColumnType("TEXT");
  80. b.Property<string>("ConcurrencyStamp")
  81. .IsConcurrencyToken()
  82. .HasColumnType("TEXT");
  83. b.Property<string>("Name")
  84. .HasMaxLength(256)
  85. .HasColumnType("TEXT");
  86. b.Property<string>("NormalizedName")
  87. .HasMaxLength(256)
  88. .HasColumnType("TEXT");
  89. b.HasKey("Id");
  90. b.HasIndex("NormalizedName")
  91. .IsUnique()
  92. .HasDatabaseName("RoleNameIndex");
  93. b.ToTable("AspNetRoles", (string)null);
  94. });
  95. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  96. {
  97. b.Property<int>("Id")
  98. .ValueGeneratedOnAdd()
  99. .HasColumnType("INTEGER");
  100. b.Property<string>("ClaimType")
  101. .HasColumnType("TEXT");
  102. b.Property<string>("ClaimValue")
  103. .HasColumnType("TEXT");
  104. b.Property<string>("RoleId")
  105. .IsRequired()
  106. .HasColumnType("TEXT");
  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("INTEGER");
  116. b.Property<string>("ClaimType")
  117. .HasColumnType("TEXT");
  118. b.Property<string>("ClaimValue")
  119. .HasColumnType("TEXT");
  120. b.Property<string>("UserId")
  121. .IsRequired()
  122. .HasColumnType("TEXT");
  123. b.HasKey("Id");
  124. b.HasIndex("UserId");
  125. b.ToTable("AspNetUserClaims", (string)null);
  126. });
  127. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  128. {
  129. b.Property<string>("LoginProvider")
  130. .HasColumnType("TEXT");
  131. b.Property<string>("ProviderKey")
  132. .HasColumnType("TEXT");
  133. b.Property<string>("ProviderDisplayName")
  134. .HasColumnType("TEXT");
  135. b.Property<string>("UserId")
  136. .IsRequired()
  137. .HasColumnType("TEXT");
  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("TEXT");
  146. b.Property<string>("RoleId")
  147. .HasColumnType("TEXT");
  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("TEXT");
  156. b.Property<string>("LoginProvider")
  157. .HasColumnType("TEXT");
  158. b.Property<string>("Name")
  159. .HasColumnType("TEXT");
  160. b.Property<string>("Value")
  161. .HasColumnType("TEXT");
  162. b.HasKey("UserId", "LoginProvider", "Name");
  163. b.ToTable("AspNetUserTokens", (string)null);
  164. });
  165. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  166. {
  167. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  168. .WithMany()
  169. .HasForeignKey("RoleId")
  170. .OnDelete(DeleteBehavior.Cascade)
  171. .IsRequired();
  172. });
  173. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  174. {
  175. b.HasOne("BlackRock.Reporting.API.Core.Models.ApplicationUser", null)
  176. .WithMany()
  177. .HasForeignKey("UserId")
  178. .OnDelete(DeleteBehavior.Cascade)
  179. .IsRequired();
  180. });
  181. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  182. {
  183. b.HasOne("BlackRock.Reporting.API.Core.Models.ApplicationUser", null)
  184. .WithMany()
  185. .HasForeignKey("UserId")
  186. .OnDelete(DeleteBehavior.Cascade)
  187. .IsRequired();
  188. });
  189. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  190. {
  191. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  192. .WithMany()
  193. .HasForeignKey("RoleId")
  194. .OnDelete(DeleteBehavior.Cascade)
  195. .IsRequired();
  196. b.HasOne("BlackRock.Reporting.API.Core.Models.ApplicationUser", null)
  197. .WithMany()
  198. .HasForeignKey("UserId")
  199. .OnDelete(DeleteBehavior.Cascade)
  200. .IsRequired();
  201. });
  202. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  203. {
  204. b.HasOne("BlackRock.Reporting.API.Core.Models.ApplicationUser", null)
  205. .WithMany()
  206. .HasForeignKey("UserId")
  207. .OnDelete(DeleteBehavior.Cascade)
  208. .IsRequired();
  209. });
  210. #pragma warning restore 612, 618
  211. }
  212. }
  213. }