Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

BRDbContextModelSnapshot.cs 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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.Storage.ValueConversion;
  7. #nullable disable
  8. namespace BlackRock.Reporting.API.Migrations
  9. {
  10. [DbContext(typeof(BRDbContext))]
  11. partial class BRDbContextModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. #pragma warning disable 612, 618
  16. modelBuilder.HasAnnotation("ProductVersion", "6.0.0");
  17. modelBuilder.Entity("BlackRock.Reporting.API.Core.Models.ApplicationUser", b =>
  18. {
  19. b.Property<string>("Id")
  20. .HasColumnType("TEXT");
  21. b.Property<int>("AccessFailedCount")
  22. .HasColumnType("INTEGER");
  23. b.Property<string>("ConcurrencyStamp")
  24. .IsConcurrencyToken()
  25. .HasColumnType("TEXT");
  26. b.Property<string>("Email")
  27. .HasMaxLength(256)
  28. .HasColumnType("TEXT");
  29. b.Property<bool>("EmailConfirmed")
  30. .HasColumnType("INTEGER");
  31. b.Property<bool>("LockoutEnabled")
  32. .HasColumnType("INTEGER");
  33. b.Property<DateTimeOffset?>("LockoutEnd")
  34. .HasColumnType("TEXT");
  35. b.Property<string>("NormalizedEmail")
  36. .HasMaxLength(256)
  37. .HasColumnType("TEXT");
  38. b.Property<string>("NormalizedUserName")
  39. .HasMaxLength(256)
  40. .HasColumnType("TEXT");
  41. b.Property<string>("PasswordHash")
  42. .HasColumnType("TEXT");
  43. b.Property<string>("PhoneNumber")
  44. .HasColumnType("TEXT");
  45. b.Property<bool>("PhoneNumberConfirmed")
  46. .HasColumnType("INTEGER");
  47. b.Property<string>("SecurityStamp")
  48. .HasColumnType("TEXT");
  49. b.Property<bool>("TwoFactorEnabled")
  50. .HasColumnType("INTEGER");
  51. b.Property<string>("UserName")
  52. .HasMaxLength(256)
  53. .HasColumnType("TEXT");
  54. b.HasKey("Id");
  55. b.HasIndex("NormalizedEmail")
  56. .HasDatabaseName("EmailIndex");
  57. b.HasIndex("NormalizedUserName")
  58. .IsUnique()
  59. .HasDatabaseName("UserNameIndex");
  60. b.ToTable("AspNetUsers", (string)null);
  61. });
  62. modelBuilder.Entity("BlackRock.Reporting.API.Core.Models.User", b =>
  63. {
  64. b.Property<int>("Id")
  65. .ValueGeneratedOnAdd()
  66. .HasColumnType("INTEGER");
  67. b.Property<string>("Email")
  68. .HasColumnType("TEXT");
  69. b.Property<string>("Name")
  70. .HasColumnType("TEXT");
  71. b.HasKey("Id");
  72. b.ToTable("Users", (string)null);
  73. });
  74. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
  75. {
  76. b.Property<string>("Id")
  77. .HasColumnType("TEXT");
  78. b.Property<string>("ConcurrencyStamp")
  79. .IsConcurrencyToken()
  80. .HasColumnType("TEXT");
  81. b.Property<string>("Name")
  82. .HasMaxLength(256)
  83. .HasColumnType("TEXT");
  84. b.Property<string>("NormalizedName")
  85. .HasMaxLength(256)
  86. .HasColumnType("TEXT");
  87. b.HasKey("Id");
  88. b.HasIndex("NormalizedName")
  89. .IsUnique()
  90. .HasDatabaseName("RoleNameIndex");
  91. b.ToTable("AspNetRoles", (string)null);
  92. });
  93. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  94. {
  95. b.Property<int>("Id")
  96. .ValueGeneratedOnAdd()
  97. .HasColumnType("INTEGER");
  98. b.Property<string>("ClaimType")
  99. .HasColumnType("TEXT");
  100. b.Property<string>("ClaimValue")
  101. .HasColumnType("TEXT");
  102. b.Property<string>("RoleId")
  103. .IsRequired()
  104. .HasColumnType("TEXT");
  105. b.HasKey("Id");
  106. b.HasIndex("RoleId");
  107. b.ToTable("AspNetRoleClaims", (string)null);
  108. });
  109. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  110. {
  111. b.Property<int>("Id")
  112. .ValueGeneratedOnAdd()
  113. .HasColumnType("INTEGER");
  114. b.Property<string>("ClaimType")
  115. .HasColumnType("TEXT");
  116. b.Property<string>("ClaimValue")
  117. .HasColumnType("TEXT");
  118. b.Property<string>("UserId")
  119. .IsRequired()
  120. .HasColumnType("TEXT");
  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("TEXT");
  129. b.Property<string>("ProviderKey")
  130. .HasColumnType("TEXT");
  131. b.Property<string>("ProviderDisplayName")
  132. .HasColumnType("TEXT");
  133. b.Property<string>("UserId")
  134. .IsRequired()
  135. .HasColumnType("TEXT");
  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("TEXT");
  144. b.Property<string>("RoleId")
  145. .HasColumnType("TEXT");
  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("TEXT");
  154. b.Property<string>("LoginProvider")
  155. .HasColumnType("TEXT");
  156. b.Property<string>("Name")
  157. .HasColumnType("TEXT");
  158. b.Property<string>("Value")
  159. .HasColumnType("TEXT");
  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("BlackRock.Reporting.API.Core.Models.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("BlackRock.Reporting.API.Core.Models.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("BlackRock.Reporting.API.Core.Models.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("BlackRock.Reporting.API.Core.Models.ApplicationUser", null)
  203. .WithMany()
  204. .HasForeignKey("UserId")
  205. .OnDelete(DeleteBehavior.Cascade)
  206. .IsRequired();
  207. });
  208. #pragma warning restore 612, 618
  209. }
  210. }
  211. }