20240131193715_updateUserAddress.Designer.cs 28 KB

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