20240221104859_updateUser.Designer.cs 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  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("20240221104859_updateUser")]
  14. partial class updateUser
  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("ApplicationRoleApplicationUser", b =>
  25. {
  26. b.Property<string>("UserRolesId")
  27. .HasColumnType("nvarchar(450)");
  28. b.Property<string>("UsersId")
  29. .HasColumnType("nvarchar(450)");
  30. b.HasKey("UserRolesId", "UsersId");
  31. b.HasIndex("UsersId");
  32. b.ToTable("ApplicationRoleApplicationUser");
  33. });
  34. modelBuilder.Entity("MTWorkHR.Core.Entities.Base.AttachmentType", b =>
  35. {
  36. b.Property<long>("Id")
  37. .ValueGeneratedOnAdd()
  38. .HasColumnType("bigint")
  39. .HasColumnOrder(0);
  40. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  41. b.Property<bool>("IsRequired")
  42. .HasColumnType("bit");
  43. b.Property<string>("NameAr")
  44. .IsRequired()
  45. .HasMaxLength(250)
  46. .HasColumnType("nvarchar(250)");
  47. b.Property<string>("NameEn")
  48. .IsRequired()
  49. .HasMaxLength(250)
  50. .HasColumnType("nvarchar(250)");
  51. b.HasKey("Id");
  52. b.ToTable("AttachmentTypes");
  53. b.HasData(
  54. new
  55. {
  56. Id = 1L,
  57. IsRequired = false,
  58. NameAr = "السيرة الذاتية",
  59. NameEn = "CV"
  60. },
  61. new
  62. {
  63. Id = 2L,
  64. IsRequired = false,
  65. NameAr = "الهوية",
  66. NameEn = "Identification"
  67. });
  68. });
  69. modelBuilder.Entity("MTWorkHR.Identity.Entities.ApplicationRole", b =>
  70. {
  71. b.Property<string>("Id")
  72. .HasColumnType("nvarchar(450)");
  73. b.Property<string>("ConcurrencyStamp")
  74. .IsConcurrencyToken()
  75. .HasColumnType("nvarchar(max)");
  76. b.Property<DateTime>("CreateDate")
  77. .HasColumnType("datetime2");
  78. b.Property<string>("CreateUser")
  79. .HasColumnType("nvarchar(max)");
  80. b.Property<string>("DeleteUserId")
  81. .HasColumnType("nvarchar(max)");
  82. b.Property<bool?>("IsAdmin")
  83. .HasColumnType("bit");
  84. b.Property<bool>("IsDeleted")
  85. .HasColumnType("bit");
  86. b.Property<string>("Name")
  87. .HasMaxLength(256)
  88. .HasColumnType("nvarchar(256)");
  89. b.Property<string>("NormalizedName")
  90. .HasMaxLength(256)
  91. .HasColumnType("nvarchar(256)");
  92. b.Property<DateTime?>("UpdateDate")
  93. .HasColumnType("datetime2");
  94. b.Property<string>("UpdateUser")
  95. .HasColumnType("nvarchar(max)");
  96. b.HasKey("Id");
  97. b.HasIndex("NormalizedName")
  98. .IsUnique()
  99. .HasDatabaseName("RoleNameIndex")
  100. .HasFilter("[NormalizedName] IS NOT NULL");
  101. b.ToTable("AspNetRoles", (string)null);
  102. b.HasData(
  103. new
  104. {
  105. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  106. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  107. IsAdmin = true,
  108. IsDeleted = false,
  109. Name = "Admin",
  110. NormalizedName = "ADMIN"
  111. },
  112. new
  113. {
  114. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E",
  115. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  116. IsAdmin = false,
  117. IsDeleted = false,
  118. Name = "Employee",
  119. NormalizedName = "EMPLOYEE"
  120. });
  121. });
  122. modelBuilder.Entity("MTWorkHR.Identity.Entities.ApplicationUser", b =>
  123. {
  124. b.Property<string>("Id")
  125. .HasColumnType("nvarchar(450)");
  126. b.Property<int>("AccessFailedCount")
  127. .HasColumnType("int");
  128. b.Property<string>("ConcurrencyStamp")
  129. .IsConcurrencyToken()
  130. .HasColumnType("nvarchar(max)");
  131. b.Property<string>("CreateUser")
  132. .HasColumnType("nvarchar(max)");
  133. b.Property<string>("DeleteUserId")
  134. .HasColumnType("nvarchar(max)");
  135. b.Property<string>("Email")
  136. .HasMaxLength(256)
  137. .HasColumnType("nvarchar(256)");
  138. b.Property<bool>("EmailConfirmed")
  139. .HasColumnType("bit");
  140. b.Property<string>("FavoriteName")
  141. .HasColumnType("nvarchar(max)");
  142. b.Property<string>("FirstName")
  143. .IsRequired()
  144. .HasColumnType("nvarchar(max)");
  145. b.Property<decimal?>("IncomeTaxValue")
  146. .HasColumnType("decimal(18,2)");
  147. b.Property<bool>("IsDeleted")
  148. .HasColumnType("bit");
  149. b.Property<bool>("IsStopped")
  150. .HasColumnType("bit");
  151. b.Property<string>("JobTitle")
  152. .HasColumnType("nvarchar(max)");
  153. b.Property<string>("LastName")
  154. .IsRequired()
  155. .HasColumnType("nvarchar(max)");
  156. b.Property<bool>("LockoutEnabled")
  157. .HasColumnType("bit");
  158. b.Property<DateTimeOffset?>("LockoutEnd")
  159. .HasColumnType("datetimeoffset");
  160. b.Property<string>("ManagerId")
  161. .HasColumnType("nvarchar(450)");
  162. b.Property<string>("NormalizedEmail")
  163. .HasMaxLength(256)
  164. .HasColumnType("nvarchar(256)");
  165. b.Property<string>("NormalizedUserName")
  166. .HasMaxLength(256)
  167. .HasColumnType("nvarchar(256)");
  168. b.Property<string>("PassportNumber")
  169. .IsRequired()
  170. .HasColumnType("nvarchar(max)");
  171. b.Property<string>("PasswordHash")
  172. .HasColumnType("nvarchar(max)");
  173. b.Property<string>("PhoneNumber")
  174. .HasColumnType("nvarchar(max)");
  175. b.Property<bool>("PhoneNumberConfirmed")
  176. .HasColumnType("bit");
  177. b.Property<int?>("QualificationId")
  178. .HasColumnType("int");
  179. b.Property<string>("SecurityStamp")
  180. .HasColumnType("nvarchar(max)");
  181. b.Property<decimal?>("TaxNumber")
  182. .HasColumnType("decimal(18,2)");
  183. b.Property<bool>("TwoFactorEnabled")
  184. .HasColumnType("bit");
  185. b.Property<string>("University")
  186. .HasColumnType("nvarchar(max)");
  187. b.Property<string>("UpdateUser")
  188. .HasColumnType("nvarchar(max)");
  189. b.Property<string>("UserName")
  190. .HasMaxLength(256)
  191. .HasColumnType("nvarchar(256)");
  192. b.Property<int>("UserType")
  193. .HasColumnType("int");
  194. b.HasKey("Id");
  195. b.HasIndex("ManagerId");
  196. b.HasIndex("NormalizedEmail")
  197. .HasDatabaseName("EmailIndex");
  198. b.HasIndex("NormalizedUserName")
  199. .IsUnique()
  200. .HasDatabaseName("UserNameIndex")
  201. .HasFilter("[NormalizedUserName] IS NOT NULL");
  202. b.ToTable("AspNetUsers", (string)null);
  203. b.HasData(
  204. new
  205. {
  206. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  207. AccessFailedCount = 0,
  208. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  209. Email = "a@b.com",
  210. EmailConfirmed = true,
  211. FirstName = "Zinab",
  212. IncomeTaxValue = 1m,
  213. IsDeleted = false,
  214. IsStopped = false,
  215. LastName = "Elgendy",
  216. LockoutEnabled = false,
  217. NormalizedEmail = "A@B.COM",
  218. NormalizedUserName = "ADMIN",
  219. PassportNumber = "1234567",
  220. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  221. PhoneNumber = "1234567890",
  222. PhoneNumberConfirmed = true,
  223. QualificationId = 1,
  224. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  225. TaxNumber = 111m,
  226. TwoFactorEnabled = false,
  227. UserName = "Admin",
  228. UserType = 1
  229. },
  230. new
  231. {
  232. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  233. AccessFailedCount = 0,
  234. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  235. Email = "ali@b.com",
  236. EmailConfirmed = true,
  237. FirstName = "Ali",
  238. IncomeTaxValue = 100m,
  239. IsDeleted = false,
  240. IsStopped = false,
  241. LastName = "Farok",
  242. LockoutEnabled = false,
  243. NormalizedEmail = "ALI@B.COM",
  244. NormalizedUserName = "ALI",
  245. PassportNumber = "7654321001010",
  246. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  247. PhoneNumber = "1234567890",
  248. PhoneNumberConfirmed = true,
  249. QualificationId = 1,
  250. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  251. TaxNumber = 222m,
  252. TwoFactorEnabled = false,
  253. UserName = "ali",
  254. UserType = 1
  255. });
  256. });
  257. modelBuilder.Entity("MTWorkHR.Identity.Entities.Permission", b =>
  258. {
  259. b.Property<long>("Id")
  260. .ValueGeneratedOnAdd()
  261. .HasColumnType("bigint")
  262. .HasColumnOrder(0);
  263. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  264. b.Property<string>("CategoryName")
  265. .IsRequired()
  266. .HasMaxLength(150)
  267. .HasColumnType("nvarchar(150)");
  268. b.Property<string>("Desc")
  269. .IsRequired()
  270. .HasMaxLength(250)
  271. .HasColumnType("nvarchar(250)");
  272. b.Property<string>("Name")
  273. .IsRequired()
  274. .HasMaxLength(250)
  275. .HasColumnType("nvarchar(250)");
  276. b.Property<bool>("Show")
  277. .HasColumnType("bit");
  278. b.HasKey("Id");
  279. b.ToTable("Permissions");
  280. });
  281. modelBuilder.Entity("MTWorkHR.Identity.Entities.RolePermission", b =>
  282. {
  283. b.Property<long>("Id")
  284. .ValueGeneratedOnAdd()
  285. .HasColumnType("bigint")
  286. .HasColumnOrder(0);
  287. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  288. b.Property<long>("PermissionId")
  289. .HasColumnType("bigint");
  290. b.Property<string>("PermissionName")
  291. .IsRequired()
  292. .HasColumnType("nvarchar(max)");
  293. b.Property<string>("RoleId")
  294. .IsRequired()
  295. .HasColumnType("nvarchar(450)");
  296. b.HasKey("Id");
  297. b.HasIndex("PermissionId");
  298. b.HasIndex("RoleId");
  299. b.ToTable("RolePermissions");
  300. });
  301. modelBuilder.Entity("MTWorkHR.Identity.Entities.UserAddress", b =>
  302. {
  303. b.Property<long>("Id")
  304. .ValueGeneratedOnAdd()
  305. .HasColumnType("bigint")
  306. .HasColumnOrder(0);
  307. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  308. b.Property<string>("AddressDesc")
  309. .IsRequired()
  310. .HasColumnType("nvarchar(max)");
  311. b.Property<string>("City")
  312. .IsRequired()
  313. .HasColumnType("nvarchar(max)");
  314. b.Property<int>("CountryId")
  315. .HasColumnType("int");
  316. b.Property<DateTime>("CreateDate")
  317. .HasColumnType("datetime2")
  318. .HasColumnOrder(3);
  319. b.Property<string>("CreateUser")
  320. .HasMaxLength(450)
  321. .HasColumnType("nvarchar(450)")
  322. .HasColumnOrder(1);
  323. b.Property<string>("PostalCode")
  324. .IsRequired()
  325. .HasColumnType("nvarchar(max)");
  326. b.Property<DateTime?>("UpdateDate")
  327. .HasColumnType("datetime2")
  328. .HasColumnOrder(4);
  329. b.Property<string>("UpdateUser")
  330. .HasMaxLength(450)
  331. .HasColumnType("nvarchar(450)")
  332. .HasColumnOrder(2);
  333. b.Property<string>("UserId")
  334. .IsRequired()
  335. .HasColumnType("nvarchar(450)");
  336. b.HasKey("Id");
  337. b.HasIndex("UserId")
  338. .IsUnique();
  339. b.ToTable("UserAddress");
  340. });
  341. modelBuilder.Entity("MTWorkHR.Identity.Entities.UserAttachment", b =>
  342. {
  343. b.Property<long>("Id")
  344. .ValueGeneratedOnAdd()
  345. .HasColumnType("bigint")
  346. .HasColumnOrder(0);
  347. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  348. b.Property<long>("AttachmentTypeId")
  349. .HasColumnType("bigint");
  350. b.Property<DateTime>("CreateDate")
  351. .HasColumnType("datetime2")
  352. .HasColumnOrder(3);
  353. b.Property<string>("CreateUser")
  354. .HasMaxLength(450)
  355. .HasColumnType("nvarchar(450)")
  356. .HasColumnOrder(1);
  357. b.Property<string>("FileName")
  358. .IsRequired()
  359. .HasMaxLength(250)
  360. .HasColumnType("nvarchar(250)");
  361. b.Property<string>("OriginalName")
  362. .IsRequired()
  363. .HasMaxLength(250)
  364. .HasColumnType("nvarchar(250)");
  365. b.Property<DateTime?>("UpdateDate")
  366. .HasColumnType("datetime2")
  367. .HasColumnOrder(4);
  368. b.Property<string>("UpdateUser")
  369. .HasMaxLength(450)
  370. .HasColumnType("nvarchar(450)")
  371. .HasColumnOrder(2);
  372. b.Property<string>("UserId")
  373. .IsRequired()
  374. .HasColumnType("nvarchar(450)");
  375. b.HasKey("Id");
  376. b.HasIndex("AttachmentTypeId");
  377. b.HasIndex("UserId");
  378. b.ToTable("UserAttachments");
  379. });
  380. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  381. {
  382. b.Property<int>("Id")
  383. .ValueGeneratedOnAdd()
  384. .HasColumnType("int");
  385. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  386. b.Property<string>("ClaimType")
  387. .HasColumnType("nvarchar(max)");
  388. b.Property<string>("ClaimValue")
  389. .HasColumnType("nvarchar(max)");
  390. b.Property<string>("RoleId")
  391. .IsRequired()
  392. .HasColumnType("nvarchar(450)");
  393. b.HasKey("Id");
  394. b.HasIndex("RoleId");
  395. b.ToTable("AspNetRoleClaims", (string)null);
  396. });
  397. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  398. {
  399. b.Property<int>("Id")
  400. .ValueGeneratedOnAdd()
  401. .HasColumnType("int");
  402. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  403. b.Property<string>("ClaimType")
  404. .HasColumnType("nvarchar(max)");
  405. b.Property<string>("ClaimValue")
  406. .HasColumnType("nvarchar(max)");
  407. b.Property<string>("UserId")
  408. .IsRequired()
  409. .HasColumnType("nvarchar(450)");
  410. b.HasKey("Id");
  411. b.HasIndex("UserId");
  412. b.ToTable("AspNetUserClaims", (string)null);
  413. });
  414. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  415. {
  416. b.Property<string>("LoginProvider")
  417. .HasColumnType("nvarchar(450)");
  418. b.Property<string>("ProviderKey")
  419. .HasColumnType("nvarchar(450)");
  420. b.Property<string>("ProviderDisplayName")
  421. .HasColumnType("nvarchar(max)");
  422. b.Property<string>("UserId")
  423. .IsRequired()
  424. .HasColumnType("nvarchar(450)");
  425. b.HasKey("LoginProvider", "ProviderKey");
  426. b.HasIndex("UserId");
  427. b.ToTable("AspNetUserLogins", (string)null);
  428. });
  429. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  430. {
  431. b.Property<string>("UserId")
  432. .HasColumnType("nvarchar(450)");
  433. b.Property<string>("RoleId")
  434. .HasColumnType("nvarchar(450)");
  435. b.HasKey("UserId", "RoleId");
  436. b.HasIndex("RoleId");
  437. b.ToTable("AspNetUserRoles", (string)null);
  438. b.HasData(
  439. new
  440. {
  441. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  442. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  443. },
  444. new
  445. {
  446. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  447. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  448. });
  449. });
  450. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  451. {
  452. b.Property<string>("UserId")
  453. .HasColumnType("nvarchar(450)");
  454. b.Property<string>("LoginProvider")
  455. .HasColumnType("nvarchar(450)");
  456. b.Property<string>("Name")
  457. .HasColumnType("nvarchar(450)");
  458. b.Property<string>("Value")
  459. .HasColumnType("nvarchar(max)");
  460. b.HasKey("UserId", "LoginProvider", "Name");
  461. b.ToTable("AspNetUserTokens", (string)null);
  462. });
  463. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  464. {
  465. b.HasOne("MTWorkHR.Identity.Entities.ApplicationRole", null)
  466. .WithMany()
  467. .HasForeignKey("UserRolesId")
  468. .OnDelete(DeleteBehavior.Cascade)
  469. .IsRequired();
  470. b.HasOne("MTWorkHR.Identity.Entities.ApplicationUser", null)
  471. .WithMany()
  472. .HasForeignKey("UsersId")
  473. .OnDelete(DeleteBehavior.Cascade)
  474. .IsRequired();
  475. });
  476. modelBuilder.Entity("MTWorkHR.Identity.Entities.ApplicationUser", b =>
  477. {
  478. b.HasOne("MTWorkHR.Identity.Entities.ApplicationUser", "Manager")
  479. .WithMany()
  480. .HasForeignKey("ManagerId");
  481. b.Navigation("Manager");
  482. });
  483. modelBuilder.Entity("MTWorkHR.Identity.Entities.RolePermission", b =>
  484. {
  485. b.HasOne("MTWorkHR.Identity.Entities.Permission", "Permission")
  486. .WithMany()
  487. .HasForeignKey("PermissionId")
  488. .OnDelete(DeleteBehavior.Cascade)
  489. .IsRequired();
  490. b.HasOne("MTWorkHR.Identity.Entities.ApplicationRole", "Role")
  491. .WithMany("RolePermissions")
  492. .HasForeignKey("RoleId")
  493. .OnDelete(DeleteBehavior.Cascade)
  494. .IsRequired();
  495. b.Navigation("Permission");
  496. b.Navigation("Role");
  497. });
  498. modelBuilder.Entity("MTWorkHR.Identity.Entities.UserAddress", b =>
  499. {
  500. b.HasOne("MTWorkHR.Identity.Entities.ApplicationUser", "User")
  501. .WithOne("UserAddress")
  502. .HasForeignKey("MTWorkHR.Identity.Entities.UserAddress", "UserId")
  503. .OnDelete(DeleteBehavior.Cascade)
  504. .IsRequired();
  505. b.Navigation("User");
  506. });
  507. modelBuilder.Entity("MTWorkHR.Identity.Entities.UserAttachment", b =>
  508. {
  509. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  510. .WithMany()
  511. .HasForeignKey("AttachmentTypeId")
  512. .OnDelete(DeleteBehavior.Cascade)
  513. .IsRequired();
  514. b.HasOne("MTWorkHR.Identity.Entities.ApplicationUser", "User")
  515. .WithMany("UserAttachments")
  516. .HasForeignKey("UserId")
  517. .OnDelete(DeleteBehavior.Cascade)
  518. .IsRequired();
  519. b.Navigation("AttachmentType");
  520. b.Navigation("User");
  521. });
  522. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  523. {
  524. b.HasOne("MTWorkHR.Identity.Entities.ApplicationRole", null)
  525. .WithMany()
  526. .HasForeignKey("RoleId")
  527. .OnDelete(DeleteBehavior.Cascade)
  528. .IsRequired();
  529. });
  530. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  531. {
  532. b.HasOne("MTWorkHR.Identity.Entities.ApplicationUser", null)
  533. .WithMany()
  534. .HasForeignKey("UserId")
  535. .OnDelete(DeleteBehavior.Cascade)
  536. .IsRequired();
  537. });
  538. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  539. {
  540. b.HasOne("MTWorkHR.Identity.Entities.ApplicationUser", null)
  541. .WithMany()
  542. .HasForeignKey("UserId")
  543. .OnDelete(DeleteBehavior.Cascade)
  544. .IsRequired();
  545. });
  546. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  547. {
  548. b.HasOne("MTWorkHR.Identity.Entities.ApplicationRole", null)
  549. .WithMany()
  550. .HasForeignKey("RoleId")
  551. .OnDelete(DeleteBehavior.Cascade)
  552. .IsRequired();
  553. b.HasOne("MTWorkHR.Identity.Entities.ApplicationUser", null)
  554. .WithMany()
  555. .HasForeignKey("UserId")
  556. .OnDelete(DeleteBehavior.Cascade)
  557. .IsRequired();
  558. });
  559. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  560. {
  561. b.HasOne("MTWorkHR.Identity.Entities.ApplicationUser", null)
  562. .WithMany()
  563. .HasForeignKey("UserId")
  564. .OnDelete(DeleteBehavior.Cascade)
  565. .IsRequired();
  566. });
  567. modelBuilder.Entity("MTWorkHR.Identity.Entities.ApplicationRole", b =>
  568. {
  569. b.Navigation("RolePermissions");
  570. });
  571. modelBuilder.Entity("MTWorkHR.Identity.Entities.ApplicationUser", b =>
  572. {
  573. b.Navigation("UserAddress")
  574. .IsRequired();
  575. b.Navigation("UserAttachments");
  576. });
  577. #pragma warning restore 612, 618
  578. }
  579. }
  580. }