00000000000000_CreateIdentitySchema.Designer.cs 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.EntityFrameworkCore;
  6. using Microsoft.EntityFrameworkCore.Infrastructure;
  7. using Microsoft.EntityFrameworkCore.Metadata;
  8. using Microsoft.EntityFrameworkCore.Migrations;
  9. namespace Winsoft.GOV.XF.WXCore.Data.Migrations
  10. {
  11. [DbContext(typeof(ApplicationDbContext))]
  12. [Migration("00000000000000_CreateIdentitySchema")]
  13. partial class CreateIdentitySchema
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. modelBuilder
  18. .HasAnnotation("ProductVersion", "1.0.0-rc3")
  19. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  20. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole", b =>
  21. {
  22. b.Property<string>("Id");
  23. b.Property<string>("ConcurrencyStamp")
  24. .IsConcurrencyToken();
  25. b.Property<string>("Name")
  26. .HasAnnotation("MaxLength", 256);
  27. b.Property<string>("NormalizedName")
  28. .HasAnnotation("MaxLength", 256);
  29. b.HasKey("Id");
  30. b.HasIndex("NormalizedName")
  31. .HasName("RoleNameIndex");
  32. b.ToTable("AspNetRoles");
  33. });
  34. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<string>", b =>
  35. {
  36. b.Property<int>("Id")
  37. .ValueGeneratedOnAdd();
  38. b.Property<string>("ClaimType");
  39. b.Property<string>("ClaimValue");
  40. b.Property<string>("RoleId")
  41. .IsRequired();
  42. b.HasKey("Id");
  43. b.HasIndex("RoleId");
  44. b.ToTable("AspNetRoleClaims");
  45. });
  46. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<string>", b =>
  47. {
  48. b.Property<int>("Id")
  49. .ValueGeneratedOnAdd();
  50. b.Property<string>("ClaimType");
  51. b.Property<string>("ClaimValue");
  52. b.Property<string>("UserId")
  53. .IsRequired();
  54. b.HasKey("Id");
  55. b.HasIndex("UserId");
  56. b.ToTable("AspNetUserClaims");
  57. });
  58. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<string>", b =>
  59. {
  60. b.Property<string>("LoginProvider");
  61. b.Property<string>("ProviderKey");
  62. b.Property<string>("ProviderDisplayName");
  63. b.Property<string>("UserId")
  64. .IsRequired();
  65. b.HasKey("LoginProvider", "ProviderKey");
  66. b.HasIndex("UserId");
  67. b.ToTable("AspNetUserLogins");
  68. });
  69. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<string>", b =>
  70. {
  71. b.Property<string>("UserId");
  72. b.Property<string>("RoleId");
  73. b.HasKey("UserId", "RoleId");
  74. b.HasIndex("RoleId");
  75. b.HasIndex("UserId");
  76. b.ToTable("AspNetUserRoles");
  77. });
  78. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken<string>", b =>
  79. {
  80. b.Property<string>("UserId");
  81. b.Property<string>("LoginProvider");
  82. b.Property<string>("Name");
  83. b.Property<string>("Value");
  84. b.HasKey("UserId", "LoginProvider", "Name");
  85. b.ToTable("AspNetUserTokens");
  86. });
  87. modelBuilder.Entity("Winsoft.GOV.XF.WXCore.Models.ApplicationUser", b =>
  88. {
  89. b.Property<string>("Id");
  90. b.Property<int>("AccessFailedCount");
  91. b.Property<string>("ConcurrencyStamp")
  92. .IsConcurrencyToken();
  93. b.Property<string>("Email")
  94. .HasAnnotation("MaxLength", 256);
  95. b.Property<bool>("EmailConfirmed");
  96. b.Property<bool>("LockoutEnabled");
  97. b.Property<DateTimeOffset?>("LockoutEnd");
  98. b.Property<string>("NormalizedEmail")
  99. .HasAnnotation("MaxLength", 256);
  100. b.Property<string>("NormalizedUserName")
  101. .HasAnnotation("MaxLength", 256);
  102. b.Property<string>("PasswordHash");
  103. b.Property<string>("PhoneNumber");
  104. b.Property<bool>("PhoneNumberConfirmed");
  105. b.Property<string>("SecurityStamp");
  106. b.Property<bool>("TwoFactorEnabled");
  107. b.Property<string>("UserName")
  108. .HasAnnotation("MaxLength", 256);
  109. b.HasKey("Id");
  110. b.HasIndex("NormalizedEmail")
  111. .HasName("EmailIndex");
  112. b.HasIndex("NormalizedUserName")
  113. .IsUnique()
  114. .HasName("UserNameIndex");
  115. b.ToTable("AspNetUsers");
  116. });
  117. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<string>", b =>
  118. {
  119. b.HasOne("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole")
  120. .WithMany("Claims")
  121. .HasForeignKey("RoleId")
  122. .OnDelete(DeleteBehavior.Cascade);
  123. });
  124. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<string>", b =>
  125. {
  126. b.HasOne("Winsoft.GOV.XF.WXCore.Models.ApplicationUser")
  127. .WithMany("Claims")
  128. .HasForeignKey("UserId")
  129. .OnDelete(DeleteBehavior.Cascade);
  130. });
  131. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<string>", b =>
  132. {
  133. b.HasOne("Winsoft.GOV.XF.WXCore.Models.ApplicationUser")
  134. .WithMany("Logins")
  135. .HasForeignKey("UserId")
  136. .OnDelete(DeleteBehavior.Cascade);
  137. });
  138. modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<string>", b =>
  139. {
  140. b.HasOne("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole")
  141. .WithMany("Users")
  142. .HasForeignKey("RoleId")
  143. .OnDelete(DeleteBehavior.Cascade);
  144. b.HasOne("Winsoft.GOV.XF.WXCore.Models.ApplicationUser")
  145. .WithMany("Roles")
  146. .HasForeignKey("UserId")
  147. .OnDelete(DeleteBehavior.Cascade);
  148. });
  149. }
  150. }
  151. }