00000000000000_CreateIdentitySchema.Designer.cs 9.3 KB

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