ApplicationDbContextModelSnapshot.cs 7.5 KB

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