Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

20220908115806_AddMessagesTable.Designer.cs 11KB

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