You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20220906133332_init.Designer.cs 10KB

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