20240115092554_identity.Designer.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. // <auto-generated />
  2. using System;
  3. using MTWorkHR.Identity.DBContext;
  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. #nullable disable
  10. namespace MTWorkHR.Identity.Migrations
  11. {
  12. [DbContext(typeof(HRIdentityDBContext))]
  13. [Migration("20240115092554_identity")]
  14. partial class identity
  15. {
  16. /// <inheritdoc />
  17. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  18. {
  19. #pragma warning disable 612, 618
  20. modelBuilder
  21. .HasAnnotation("ProductVersion", "8.0.1")
  22. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  23. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  24. modelBuilder.Entity("MTWorkHR.Identity.Models.ApplicationUser", b =>
  25. {
  26. b.Property<string>("Id")
  27. .HasColumnType("nvarchar(450)");
  28. b.Property<int>("AccessFailedCount")
  29. .HasColumnType("int");
  30. b.Property<string>("ConcurrencyStamp")
  31. .IsConcurrencyToken()
  32. .HasColumnType("nvarchar(max)");
  33. b.Property<string>("Email")
  34. .HasMaxLength(256)
  35. .HasColumnType("nvarchar(256)");
  36. b.Property<bool>("EmailConfirmed")
  37. .HasColumnType("bit");
  38. b.Property<string>("FirstName")
  39. .IsRequired()
  40. .HasColumnType("nvarchar(max)");
  41. b.Property<string>("LastName")
  42. .IsRequired()
  43. .HasColumnType("nvarchar(max)");
  44. b.Property<bool>("LockoutEnabled")
  45. .HasColumnType("bit");
  46. b.Property<DateTimeOffset?>("LockoutEnd")
  47. .HasColumnType("datetimeoffset");
  48. b.Property<string>("NormalizedEmail")
  49. .HasMaxLength(256)
  50. .HasColumnType("nvarchar(256)");
  51. b.Property<string>("NormalizedUserName")
  52. .HasMaxLength(256)
  53. .HasColumnType("nvarchar(256)");
  54. b.Property<string>("PasswordHash")
  55. .HasColumnType("nvarchar(max)");
  56. b.Property<string>("PhoneNumber")
  57. .HasColumnType("nvarchar(max)");
  58. b.Property<bool>("PhoneNumberConfirmed")
  59. .HasColumnType("bit");
  60. b.Property<string>("SecurityStamp")
  61. .HasColumnType("nvarchar(max)");
  62. b.Property<bool>("TwoFactorEnabled")
  63. .HasColumnType("bit");
  64. b.Property<string>("UserName")
  65. .HasMaxLength(256)
  66. .HasColumnType("nvarchar(256)");
  67. b.HasKey("Id");
  68. b.HasIndex("NormalizedEmail")
  69. .HasDatabaseName("EmailIndex");
  70. b.HasIndex("NormalizedUserName")
  71. .IsUnique()
  72. .HasDatabaseName("UserNameIndex")
  73. .HasFilter("[NormalizedUserName] IS NOT NULL");
  74. b.ToTable("AspNetUsers", (string)null);
  75. b.HasData(
  76. new
  77. {
  78. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  79. AccessFailedCount = 0,
  80. ConcurrencyStamp = "d1e41737-1312-47fe-b7e9-fa9917dd94ad",
  81. Email = "a@b.com",
  82. EmailConfirmed = true,
  83. FirstName = "Zinab",
  84. LastName = "Elgendy",
  85. LockoutEnabled = false,
  86. NormalizedEmail = "A@B.COM",
  87. NormalizedUserName = "ADMIN",
  88. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  89. PhoneNumber = "1234567890",
  90. PhoneNumberConfirmed = true,
  91. SecurityStamp = "7714198f-15f6-4524-a221-b0826892516b",
  92. TwoFactorEnabled = false,
  93. UserName = "Admin"
  94. },
  95. new
  96. {
  97. Id = "LL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  98. AccessFailedCount = 0,
  99. ConcurrencyStamp = "fe634cad-b63a-4cc1-8938-4499edd22d35",
  100. Email = "ali@b.com",
  101. EmailConfirmed = true,
  102. FirstName = "Ali",
  103. LastName = "Farok",
  104. LockoutEnabled = false,
  105. NormalizedEmail = "ALI@B.COM",
  106. NormalizedUserName = "ALI",
  107. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  108. PhoneNumber = "1234567890",
  109. PhoneNumberConfirmed = true,
  110. SecurityStamp = "bba3264c-1777-4ca7-837a-2f8ed1b16d01",
  111. TwoFactorEnabled = false,
  112. UserName = "ali"
  113. });
  114. });
  115. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
  116. {
  117. b.Property<string>("Id")
  118. .HasColumnType("nvarchar(450)");
  119. b.Property<string>("ConcurrencyStamp")
  120. .IsConcurrencyToken()
  121. .HasColumnType("nvarchar(max)");
  122. b.Property<string>("Name")
  123. .HasMaxLength(256)
  124. .HasColumnType("nvarchar(256)");
  125. b.Property<string>("NormalizedName")
  126. .HasMaxLength(256)
  127. .HasColumnType("nvarchar(256)");
  128. b.HasKey("Id");
  129. b.HasIndex("NormalizedName")
  130. .IsUnique()
  131. .HasDatabaseName("RoleNameIndex")
  132. .HasFilter("[NormalizedName] IS NOT NULL");
  133. b.ToTable("AspNetRoles", (string)null);
  134. b.HasData(
  135. new
  136. {
  137. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211B",
  138. Name = "Admin",
  139. NormalizedName = "ADMIN"
  140. },
  141. new
  142. {
  143. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  144. Name = "Employee",
  145. NormalizedName = "EMPLOYEE"
  146. });
  147. });
  148. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  149. {
  150. b.Property<int>("Id")
  151. .ValueGeneratedOnAdd()
  152. .HasColumnType("int");
  153. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  154. b.Property<string>("ClaimType")
  155. .HasColumnType("nvarchar(max)");
  156. b.Property<string>("ClaimValue")
  157. .HasColumnType("nvarchar(max)");
  158. b.Property<string>("RoleId")
  159. .IsRequired()
  160. .HasColumnType("nvarchar(450)");
  161. b.HasKey("Id");
  162. b.HasIndex("RoleId");
  163. b.ToTable("AspNetRoleClaims", (string)null);
  164. });
  165. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  166. {
  167. b.Property<int>("Id")
  168. .ValueGeneratedOnAdd()
  169. .HasColumnType("int");
  170. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  171. b.Property<string>("ClaimType")
  172. .HasColumnType("nvarchar(max)");
  173. b.Property<string>("ClaimValue")
  174. .HasColumnType("nvarchar(max)");
  175. b.Property<string>("UserId")
  176. .IsRequired()
  177. .HasColumnType("nvarchar(450)");
  178. b.HasKey("Id");
  179. b.HasIndex("UserId");
  180. b.ToTable("AspNetUserClaims", (string)null);
  181. });
  182. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  183. {
  184. b.Property<string>("LoginProvider")
  185. .HasColumnType("nvarchar(450)");
  186. b.Property<string>("ProviderKey")
  187. .HasColumnType("nvarchar(450)");
  188. b.Property<string>("ProviderDisplayName")
  189. .HasColumnType("nvarchar(max)");
  190. b.Property<string>("UserId")
  191. .IsRequired()
  192. .HasColumnType("nvarchar(450)");
  193. b.HasKey("LoginProvider", "ProviderKey");
  194. b.HasIndex("UserId");
  195. b.ToTable("AspNetUserLogins", (string)null);
  196. });
  197. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  198. {
  199. b.Property<string>("UserId")
  200. .HasColumnType("nvarchar(450)");
  201. b.Property<string>("RoleId")
  202. .HasColumnType("nvarchar(450)");
  203. b.HasKey("UserId", "RoleId");
  204. b.HasIndex("RoleId");
  205. b.ToTable("AspNetUserRoles", (string)null);
  206. b.HasData(
  207. new
  208. {
  209. UserId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  210. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211B"
  211. },
  212. new
  213. {
  214. UserId = "LL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  215. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  216. });
  217. });
  218. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  219. {
  220. b.Property<string>("UserId")
  221. .HasColumnType("nvarchar(450)");
  222. b.Property<string>("LoginProvider")
  223. .HasColumnType("nvarchar(450)");
  224. b.Property<string>("Name")
  225. .HasColumnType("nvarchar(450)");
  226. b.Property<string>("Value")
  227. .HasColumnType("nvarchar(max)");
  228. b.HasKey("UserId", "LoginProvider", "Name");
  229. b.ToTable("AspNetUserTokens", (string)null);
  230. });
  231. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  232. {
  233. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  234. .WithMany()
  235. .HasForeignKey("RoleId")
  236. .OnDelete(DeleteBehavior.Cascade)
  237. .IsRequired();
  238. });
  239. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  240. {
  241. b.HasOne("MTWorkHR.Identity.Models.ApplicationUser", null)
  242. .WithMany()
  243. .HasForeignKey("UserId")
  244. .OnDelete(DeleteBehavior.Cascade)
  245. .IsRequired();
  246. });
  247. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  248. {
  249. b.HasOne("MTWorkHR.Identity.Models.ApplicationUser", null)
  250. .WithMany()
  251. .HasForeignKey("UserId")
  252. .OnDelete(DeleteBehavior.Cascade)
  253. .IsRequired();
  254. });
  255. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  256. {
  257. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  258. .WithMany()
  259. .HasForeignKey("RoleId")
  260. .OnDelete(DeleteBehavior.Cascade)
  261. .IsRequired();
  262. b.HasOne("MTWorkHR.Identity.Models.ApplicationUser", null)
  263. .WithMany()
  264. .HasForeignKey("UserId")
  265. .OnDelete(DeleteBehavior.Cascade)
  266. .IsRequired();
  267. });
  268. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  269. {
  270. b.HasOne("MTWorkHR.Identity.Models.ApplicationUser", null)
  271. .WithMany()
  272. .HasForeignKey("UserId")
  273. .OnDelete(DeleteBehavior.Cascade)
  274. .IsRequired();
  275. });
  276. #pragma warning restore 612, 618
  277. }
  278. }
  279. }