Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

20220909105407_MessageExpiryDate.Designer.cs 11KB

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