Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

AppDbContextModelSnapshot.cs 11KB

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