HRIdentityDBContextModelSnapshot.cs 27 KB

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