20240303141711_updateHistory.Designer.cs 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375
  1. // <auto-generated />
  2. using System;
  3. using MTWorkHR.Infrastructure.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.Infrastructure.Migrations
  11. {
  12. [DbContext(typeof(HRDataContext))]
  13. [Migration("20240303141711_updateHistory")]
  14. partial class updateHistory
  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.AuthLog", 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<string>("Channel")
  42. .HasColumnType("nvarchar(max)");
  43. b.Property<DateTime>("CreateDate")
  44. .HasColumnType("datetime2");
  45. b.Property<string>("CreateUser")
  46. .IsRequired()
  47. .HasColumnType("nvarchar(max)");
  48. b.Property<string>("ErrorCode")
  49. .IsRequired()
  50. .HasColumnType("nvarchar(max)");
  51. b.Property<string>("ErrorDescription")
  52. .IsRequired()
  53. .HasColumnType("nvarchar(max)");
  54. b.Property<string>("InnerException")
  55. .HasColumnType("nvarchar(max)");
  56. b.Property<string>("Input")
  57. .HasColumnType("nvarchar(max)");
  58. b.Property<string>("Method")
  59. .IsRequired()
  60. .HasColumnType("nvarchar(max)");
  61. b.Property<string>("QueryString")
  62. .HasColumnType("nvarchar(max)");
  63. b.Property<string>("ServerIP")
  64. .HasColumnType("nvarchar(max)");
  65. b.Property<string>("ServiceResponseTimeInSeconds")
  66. .IsRequired()
  67. .HasColumnType("nvarchar(max)");
  68. b.Property<string>("UserIP")
  69. .HasColumnType("nvarchar(max)");
  70. b.Property<string>("userAgent")
  71. .HasColumnType("nvarchar(max)");
  72. b.HasKey("Id");
  73. b.ToTable("AuthLogs");
  74. });
  75. modelBuilder.Entity("MTWorkHR.Core.Entities.Base.AttachmentType", b =>
  76. {
  77. b.Property<long>("Id")
  78. .ValueGeneratedOnAdd()
  79. .HasColumnType("bigint")
  80. .HasColumnOrder(0);
  81. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  82. b.Property<bool>("IsRequired")
  83. .HasColumnType("bit");
  84. b.Property<string>("NameAr")
  85. .IsRequired()
  86. .HasMaxLength(250)
  87. .HasColumnType("nvarchar(250)");
  88. b.Property<string>("NameEn")
  89. .IsRequired()
  90. .HasMaxLength(250)
  91. .HasColumnType("nvarchar(250)");
  92. b.HasKey("Id");
  93. b.ToTable("AttachmentTypes");
  94. b.HasData(
  95. new
  96. {
  97. Id = 1L,
  98. IsRequired = false,
  99. NameAr = "السيرة الذاتية",
  100. NameEn = "CV"
  101. },
  102. new
  103. {
  104. Id = 2L,
  105. IsRequired = false,
  106. NameAr = "الهوية",
  107. NameEn = "Identification"
  108. });
  109. });
  110. modelBuilder.Entity("MTWorkHR.Core.Entities.Company", b =>
  111. {
  112. b.Property<long>("Id")
  113. .ValueGeneratedOnAdd()
  114. .HasColumnType("bigint")
  115. .HasColumnOrder(0);
  116. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  117. b.Property<string>("CRNumber")
  118. .IsRequired()
  119. .HasColumnType("nvarchar(max)");
  120. b.Property<string>("CompanyName")
  121. .IsRequired()
  122. .HasColumnType("nvarchar(max)");
  123. b.Property<DateTime>("CreateDate")
  124. .HasColumnType("datetime2")
  125. .HasColumnOrder(3);
  126. b.Property<string>("CreateUser")
  127. .HasMaxLength(450)
  128. .HasColumnType("nvarchar(450)")
  129. .HasColumnOrder(1);
  130. b.Property<bool>("IsDeleted")
  131. .HasColumnType("bit");
  132. b.Property<int>("TaxNumber")
  133. .HasColumnType("int");
  134. b.Property<DateTime?>("UpdateDate")
  135. .HasColumnType("datetime2")
  136. .HasColumnOrder(4);
  137. b.Property<string>("UpdateUser")
  138. .HasMaxLength(450)
  139. .HasColumnType("nvarchar(450)")
  140. .HasColumnOrder(2);
  141. b.Property<long>("UserId")
  142. .HasColumnType("bigint");
  143. b.HasKey("Id");
  144. b.ToTable("Companies");
  145. });
  146. modelBuilder.Entity("MTWorkHR.Core.Entities.FileLog", b =>
  147. {
  148. b.Property<long>("Id")
  149. .ValueGeneratedOnAdd()
  150. .HasColumnType("bigint")
  151. .HasColumnOrder(0);
  152. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  153. b.Property<string>("Channel")
  154. .HasColumnType("nvarchar(max)");
  155. b.Property<DateTime>("CreateDate")
  156. .HasColumnType("datetime2");
  157. b.Property<string>("CreateUser")
  158. .IsRequired()
  159. .HasColumnType("nvarchar(max)");
  160. b.Property<string>("ErrorCode")
  161. .IsRequired()
  162. .HasColumnType("nvarchar(max)");
  163. b.Property<string>("ErrorDescription")
  164. .IsRequired()
  165. .HasColumnType("nvarchar(max)");
  166. b.Property<string>("InnerException")
  167. .HasColumnType("nvarchar(max)");
  168. b.Property<string>("Input")
  169. .HasColumnType("nvarchar(max)");
  170. b.Property<string>("Method")
  171. .IsRequired()
  172. .HasColumnType("nvarchar(max)");
  173. b.Property<string>("QueryString")
  174. .HasColumnType("nvarchar(max)");
  175. b.Property<string>("ServerIP")
  176. .HasColumnType("nvarchar(max)");
  177. b.Property<string>("ServiceResponseTimeInSeconds")
  178. .IsRequired()
  179. .HasColumnType("nvarchar(max)");
  180. b.Property<string>("UserIP")
  181. .HasColumnType("nvarchar(max)");
  182. b.Property<string>("userAgent")
  183. .HasColumnType("nvarchar(max)");
  184. b.HasKey("Id");
  185. b.ToTable("FileLogs");
  186. });
  187. modelBuilder.Entity("MTWorkHR.Core.Entities.Permission", b =>
  188. {
  189. b.Property<long>("Id")
  190. .ValueGeneratedOnAdd()
  191. .HasColumnType("bigint")
  192. .HasColumnOrder(0);
  193. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  194. b.Property<string>("CategoryName")
  195. .IsRequired()
  196. .HasMaxLength(150)
  197. .HasColumnType("nvarchar(150)");
  198. b.Property<string>("Desc")
  199. .IsRequired()
  200. .HasMaxLength(250)
  201. .HasColumnType("nvarchar(250)");
  202. b.Property<string>("Name")
  203. .IsRequired()
  204. .HasMaxLength(250)
  205. .HasColumnType("nvarchar(250)");
  206. b.Property<bool>("Show")
  207. .HasColumnType("bit");
  208. b.HasKey("Id");
  209. b.ToTable("Permissions");
  210. });
  211. modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
  212. {
  213. b.Property<long>("Id")
  214. .ValueGeneratedOnAdd()
  215. .HasColumnType("bigint")
  216. .HasColumnOrder(0);
  217. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  218. b.Property<string>("NameAr")
  219. .IsRequired()
  220. .HasMaxLength(250)
  221. .HasColumnType("nvarchar(250)");
  222. b.Property<string>("NameEn")
  223. .IsRequired()
  224. .HasMaxLength(250)
  225. .HasColumnType("nvarchar(250)");
  226. b.HasKey("Id");
  227. b.ToTable("Projects");
  228. });
  229. modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
  230. {
  231. b.Property<long>("Id")
  232. .ValueGeneratedOnAdd()
  233. .HasColumnType("bigint")
  234. .HasColumnOrder(0);
  235. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  236. b.Property<string>("Channel")
  237. .HasColumnType("nvarchar(max)");
  238. b.Property<DateTime>("CreateDate")
  239. .HasColumnType("datetime2");
  240. b.Property<string>("CreateUser")
  241. .IsRequired()
  242. .HasColumnType("nvarchar(max)");
  243. b.Property<string>("ErrorCode")
  244. .IsRequired()
  245. .HasColumnType("nvarchar(max)");
  246. b.Property<string>("ErrorDescription")
  247. .IsRequired()
  248. .HasColumnType("nvarchar(max)");
  249. b.Property<string>("InnerException")
  250. .HasColumnType("nvarchar(max)");
  251. b.Property<string>("Input")
  252. .HasColumnType("nvarchar(max)");
  253. b.Property<string>("Method")
  254. .IsRequired()
  255. .HasColumnType("nvarchar(max)");
  256. b.Property<string>("QueryString")
  257. .HasColumnType("nvarchar(max)");
  258. b.Property<string>("ServerIP")
  259. .HasColumnType("nvarchar(max)");
  260. b.Property<string>("ServiceResponseTimeInSeconds")
  261. .IsRequired()
  262. .HasColumnType("nvarchar(max)");
  263. b.Property<string>("UserIP")
  264. .HasColumnType("nvarchar(max)");
  265. b.Property<string>("userAgent")
  266. .HasColumnType("nvarchar(max)");
  267. b.HasKey("Id");
  268. b.ToTable("RoleLogs");
  269. });
  270. modelBuilder.Entity("MTWorkHR.Core.Entities.SettingLog", b =>
  271. {
  272. b.Property<long>("Id")
  273. .ValueGeneratedOnAdd()
  274. .HasColumnType("bigint")
  275. .HasColumnOrder(0);
  276. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  277. b.Property<string>("Channel")
  278. .HasColumnType("nvarchar(max)");
  279. b.Property<DateTime>("CreateDate")
  280. .HasColumnType("datetime2");
  281. b.Property<string>("CreateUser")
  282. .IsRequired()
  283. .HasColumnType("nvarchar(max)");
  284. b.Property<string>("ErrorCode")
  285. .IsRequired()
  286. .HasColumnType("nvarchar(max)");
  287. b.Property<string>("ErrorDescription")
  288. .IsRequired()
  289. .HasColumnType("nvarchar(max)");
  290. b.Property<string>("InnerException")
  291. .HasColumnType("nvarchar(max)");
  292. b.Property<string>("Input")
  293. .HasColumnType("nvarchar(max)");
  294. b.Property<string>("Method")
  295. .IsRequired()
  296. .HasColumnType("nvarchar(max)");
  297. b.Property<string>("QueryString")
  298. .HasColumnType("nvarchar(max)");
  299. b.Property<string>("ServerIP")
  300. .HasColumnType("nvarchar(max)");
  301. b.Property<string>("ServiceResponseTimeInSeconds")
  302. .IsRequired()
  303. .HasColumnType("nvarchar(max)");
  304. b.Property<string>("UserIP")
  305. .HasColumnType("nvarchar(max)");
  306. b.Property<string>("userAgent")
  307. .HasColumnType("nvarchar(max)");
  308. b.HasKey("Id");
  309. b.ToTable("SettingLogs");
  310. });
  311. modelBuilder.Entity("MTWorkHR.Core.Entities.UserLog", b =>
  312. {
  313. b.Property<long>("Id")
  314. .ValueGeneratedOnAdd()
  315. .HasColumnType("bigint")
  316. .HasColumnOrder(0);
  317. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  318. b.Property<string>("Channel")
  319. .HasColumnType("nvarchar(max)");
  320. b.Property<DateTime>("CreateDate")
  321. .HasColumnType("datetime2");
  322. b.Property<string>("CreateUser")
  323. .IsRequired()
  324. .HasColumnType("nvarchar(max)");
  325. b.Property<string>("ErrorCode")
  326. .IsRequired()
  327. .HasColumnType("nvarchar(max)");
  328. b.Property<string>("ErrorDescription")
  329. .IsRequired()
  330. .HasColumnType("nvarchar(max)");
  331. b.Property<string>("InnerException")
  332. .HasColumnType("nvarchar(max)");
  333. b.Property<string>("Input")
  334. .HasColumnType("nvarchar(max)");
  335. b.Property<string>("Method")
  336. .IsRequired()
  337. .HasColumnType("nvarchar(max)");
  338. b.Property<string>("QueryString")
  339. .HasColumnType("nvarchar(max)");
  340. b.Property<string>("ServerIP")
  341. .HasColumnType("nvarchar(max)");
  342. b.Property<string>("ServiceResponseTimeInSeconds")
  343. .IsRequired()
  344. .HasColumnType("nvarchar(max)");
  345. b.Property<string>("UserIP")
  346. .HasColumnType("nvarchar(max)");
  347. b.Property<string>("userAgent")
  348. .HasColumnType("nvarchar(max)");
  349. b.HasKey("Id");
  350. b.ToTable("UserLogs");
  351. });
  352. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  353. {
  354. b.Property<long>("Id")
  355. .ValueGeneratedOnAdd()
  356. .HasColumnType("bigint")
  357. .HasColumnOrder(0);
  358. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  359. b.Property<long>("AssignedUserId")
  360. .HasColumnType("bigint");
  361. b.Property<DateTime>("CreateDate")
  362. .HasColumnType("datetime2")
  363. .HasColumnOrder(3);
  364. b.Property<string>("CreateUser")
  365. .HasMaxLength(450)
  366. .HasColumnType("nvarchar(450)")
  367. .HasColumnOrder(1);
  368. b.Property<string>("DeleteUserId")
  369. .HasMaxLength(450)
  370. .HasColumnType("nvarchar(450)")
  371. .HasColumnOrder(8);
  372. b.Property<string>("Description")
  373. .IsRequired()
  374. .HasColumnType("nvarchar(max)");
  375. b.Property<DateTime>("DueDate")
  376. .HasColumnType("datetime2");
  377. b.Property<bool>("IsDeleted")
  378. .HasColumnType("bit")
  379. .HasColumnOrder(7);
  380. b.Property<int>("Priority")
  381. .HasColumnType("int");
  382. b.Property<long>("ProjectId")
  383. .HasColumnType("bigint");
  384. b.Property<long>("StatusId")
  385. .HasColumnType("bigint");
  386. b.Property<string>("Title")
  387. .IsRequired()
  388. .HasColumnType("nvarchar(max)");
  389. b.Property<DateTime?>("UpdateDate")
  390. .HasColumnType("datetime2")
  391. .HasColumnOrder(4);
  392. b.Property<string>("UpdateUser")
  393. .HasMaxLength(450)
  394. .HasColumnType("nvarchar(450)")
  395. .HasColumnOrder(2);
  396. b.HasKey("Id");
  397. b.HasIndex("ProjectId");
  398. b.HasIndex("StatusId");
  399. b.ToTable("UserTasks");
  400. });
  401. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  402. {
  403. b.Property<long>("Id")
  404. .ValueGeneratedOnAdd()
  405. .HasColumnType("bigint")
  406. .HasColumnOrder(0);
  407. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  408. b.Property<long>("AttachmentTypeId")
  409. .HasColumnType("bigint");
  410. b.Property<DateTime>("CreateDate")
  411. .HasColumnType("datetime2")
  412. .HasColumnOrder(3);
  413. b.Property<string>("CreateUser")
  414. .HasMaxLength(450)
  415. .HasColumnType("nvarchar(450)")
  416. .HasColumnOrder(1);
  417. b.Property<string>("FileName")
  418. .IsRequired()
  419. .HasMaxLength(250)
  420. .HasColumnType("nvarchar(250)");
  421. b.Property<string>("OriginalName")
  422. .IsRequired()
  423. .HasMaxLength(250)
  424. .HasColumnType("nvarchar(250)");
  425. b.Property<long>("TaskId")
  426. .HasColumnType("bigint");
  427. b.Property<DateTime?>("UpdateDate")
  428. .HasColumnType("datetime2")
  429. .HasColumnOrder(4);
  430. b.Property<string>("UpdateUser")
  431. .HasMaxLength(450)
  432. .HasColumnType("nvarchar(450)")
  433. .HasColumnOrder(2);
  434. b.HasKey("Id");
  435. b.HasIndex("AttachmentTypeId");
  436. b.HasIndex("TaskId");
  437. b.ToTable("UserTaskAttachments");
  438. });
  439. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  440. {
  441. b.Property<long>("Id")
  442. .ValueGeneratedOnAdd()
  443. .HasColumnType("bigint")
  444. .HasColumnOrder(0);
  445. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  446. b.Property<long>("AssignedToUserId")
  447. .HasColumnType("bigint");
  448. b.Property<string>("Comment")
  449. .IsRequired()
  450. .HasMaxLength(500)
  451. .HasColumnType("nvarchar(500)");
  452. b.Property<DateTime>("CreateDate")
  453. .HasColumnType("datetime2")
  454. .HasColumnOrder(3);
  455. b.Property<string>("CreateUser")
  456. .HasMaxLength(450)
  457. .HasColumnType("nvarchar(450)")
  458. .HasColumnOrder(1);
  459. b.Property<long>("CurrentStatusId")
  460. .HasColumnType("bigint");
  461. b.Property<bool>("IsDeleted")
  462. .HasColumnType("bit");
  463. b.Property<long>("TaskId")
  464. .HasColumnType("bigint");
  465. b.Property<DateTime?>("UpdateDate")
  466. .HasColumnType("datetime2")
  467. .HasColumnOrder(4);
  468. b.Property<string>("UpdateUser")
  469. .HasMaxLength(450)
  470. .HasColumnType("nvarchar(450)")
  471. .HasColumnOrder(2);
  472. b.Property<long?>("UserTaskId")
  473. .HasColumnType("bigint");
  474. b.HasKey("Id");
  475. b.HasIndex("CurrentStatusId");
  476. b.HasIndex("UserTaskId");
  477. b.ToTable("UserTaskHistories");
  478. });
  479. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskStatus", b =>
  480. {
  481. b.Property<long>("Id")
  482. .ValueGeneratedOnAdd()
  483. .HasColumnType("bigint")
  484. .HasColumnOrder(0);
  485. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  486. b.Property<string>("NameAr")
  487. .IsRequired()
  488. .HasMaxLength(250)
  489. .HasColumnType("nvarchar(250)");
  490. b.Property<string>("NameEn")
  491. .IsRequired()
  492. .HasMaxLength(250)
  493. .HasColumnType("nvarchar(250)");
  494. b.HasKey("Id");
  495. b.ToTable("UserTaskStatuses");
  496. });
  497. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  498. {
  499. b.Property<string>("Id")
  500. .HasColumnType("nvarchar(450)");
  501. b.Property<string>("ConcurrencyStamp")
  502. .IsConcurrencyToken()
  503. .HasColumnType("nvarchar(max)");
  504. b.Property<DateTime>("CreateDate")
  505. .HasColumnType("datetime2");
  506. b.Property<string>("CreateUser")
  507. .HasColumnType("nvarchar(max)");
  508. b.Property<string>("DeleteUserId")
  509. .HasColumnType("nvarchar(max)");
  510. b.Property<bool?>("IsAdmin")
  511. .HasColumnType("bit");
  512. b.Property<bool>("IsDeleted")
  513. .HasColumnType("bit");
  514. b.Property<string>("Name")
  515. .HasMaxLength(256)
  516. .HasColumnType("nvarchar(256)");
  517. b.Property<string>("NormalizedName")
  518. .HasMaxLength(256)
  519. .HasColumnType("nvarchar(256)");
  520. b.Property<DateTime?>("UpdateDate")
  521. .HasColumnType("datetime2");
  522. b.Property<string>("UpdateUser")
  523. .HasColumnType("nvarchar(max)");
  524. b.HasKey("Id");
  525. b.HasIndex("NormalizedName")
  526. .IsUnique()
  527. .HasDatabaseName("RoleNameIndex")
  528. .HasFilter("[NormalizedName] IS NOT NULL");
  529. b.ToTable("AspNetRoles", (string)null);
  530. b.HasData(
  531. new
  532. {
  533. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  534. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  535. IsAdmin = true,
  536. IsDeleted = false,
  537. Name = "Admin",
  538. NormalizedName = "ADMIN"
  539. },
  540. new
  541. {
  542. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E",
  543. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  544. IsAdmin = false,
  545. IsDeleted = false,
  546. Name = "Employee",
  547. NormalizedName = "EMPLOYEE"
  548. });
  549. });
  550. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  551. {
  552. b.Property<string>("Id")
  553. .HasColumnType("nvarchar(450)");
  554. b.Property<int>("AccessFailedCount")
  555. .HasColumnType("int");
  556. b.Property<string>("ConcurrencyStamp")
  557. .IsConcurrencyToken()
  558. .HasColumnType("nvarchar(max)");
  559. b.Property<string>("CreateUser")
  560. .HasColumnType("nvarchar(max)");
  561. b.Property<string>("DeleteUserId")
  562. .HasColumnType("nvarchar(max)");
  563. b.Property<string>("Email")
  564. .HasMaxLength(256)
  565. .HasColumnType("nvarchar(256)");
  566. b.Property<bool>("EmailConfirmed")
  567. .HasColumnType("bit");
  568. b.Property<string>("FavoriteName")
  569. .HasColumnType("nvarchar(max)");
  570. b.Property<string>("FirstName")
  571. .IsRequired()
  572. .HasColumnType("nvarchar(max)");
  573. b.Property<decimal?>("IncomeTaxValue")
  574. .HasColumnType("decimal(18,2)");
  575. b.Property<bool>("IsDeleted")
  576. .HasColumnType("bit");
  577. b.Property<bool>("IsStopped")
  578. .HasColumnType("bit");
  579. b.Property<string>("JobTitle")
  580. .HasColumnType("nvarchar(max)");
  581. b.Property<string>("LastName")
  582. .IsRequired()
  583. .HasColumnType("nvarchar(max)");
  584. b.Property<bool>("LockoutEnabled")
  585. .HasColumnType("bit");
  586. b.Property<DateTimeOffset?>("LockoutEnd")
  587. .HasColumnType("datetimeoffset");
  588. b.Property<string>("ManagerId")
  589. .HasColumnType("nvarchar(450)");
  590. b.Property<string>("NormalizedEmail")
  591. .HasMaxLength(256)
  592. .HasColumnType("nvarchar(256)");
  593. b.Property<string>("NormalizedUserName")
  594. .HasMaxLength(256)
  595. .HasColumnType("nvarchar(256)");
  596. b.Property<string>("PassportNumber")
  597. .IsRequired()
  598. .HasColumnType("nvarchar(max)");
  599. b.Property<string>("PasswordHash")
  600. .HasColumnType("nvarchar(max)");
  601. b.Property<string>("PhoneNumber")
  602. .HasColumnType("nvarchar(max)");
  603. b.Property<bool>("PhoneNumberConfirmed")
  604. .HasColumnType("bit");
  605. b.Property<int?>("QualificationId")
  606. .HasColumnType("int");
  607. b.Property<string>("SecurityStamp")
  608. .HasColumnType("nvarchar(max)");
  609. b.Property<decimal?>("TaxNumber")
  610. .HasColumnType("decimal(18,2)");
  611. b.Property<bool>("TwoFactorEnabled")
  612. .HasColumnType("bit");
  613. b.Property<string>("University")
  614. .HasColumnType("nvarchar(max)");
  615. b.Property<string>("UpdateUser")
  616. .HasColumnType("nvarchar(max)");
  617. b.Property<string>("UserName")
  618. .HasMaxLength(256)
  619. .HasColumnType("nvarchar(256)");
  620. b.Property<int>("UserType")
  621. .HasColumnType("int");
  622. b.HasKey("Id");
  623. b.HasIndex("ManagerId");
  624. b.HasIndex("NormalizedEmail")
  625. .HasDatabaseName("EmailIndex");
  626. b.HasIndex("NormalizedUserName")
  627. .IsUnique()
  628. .HasDatabaseName("UserNameIndex")
  629. .HasFilter("[NormalizedUserName] IS NOT NULL");
  630. b.ToTable("AspNetUsers", (string)null);
  631. b.HasData(
  632. new
  633. {
  634. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  635. AccessFailedCount = 0,
  636. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  637. Email = "a@b.com",
  638. EmailConfirmed = true,
  639. FirstName = "Zinab",
  640. IncomeTaxValue = 1m,
  641. IsDeleted = false,
  642. IsStopped = false,
  643. LastName = "Elgendy",
  644. LockoutEnabled = false,
  645. NormalizedEmail = "A@B.COM",
  646. NormalizedUserName = "ADMIN",
  647. PassportNumber = "1234567",
  648. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  649. PhoneNumber = "1234567890",
  650. PhoneNumberConfirmed = true,
  651. QualificationId = 1,
  652. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  653. TaxNumber = 111m,
  654. TwoFactorEnabled = false,
  655. UserName = "Admin",
  656. UserType = 1
  657. },
  658. new
  659. {
  660. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  661. AccessFailedCount = 0,
  662. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  663. Email = "ali@b.com",
  664. EmailConfirmed = true,
  665. FirstName = "Ali",
  666. IncomeTaxValue = 100m,
  667. IsDeleted = false,
  668. IsStopped = false,
  669. LastName = "Farok",
  670. LockoutEnabled = false,
  671. NormalizedEmail = "ALI@B.COM",
  672. NormalizedUserName = "ALI",
  673. PassportNumber = "7654321001010",
  674. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  675. PhoneNumber = "1234567890",
  676. PhoneNumberConfirmed = true,
  677. QualificationId = 1,
  678. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  679. TaxNumber = 222m,
  680. TwoFactorEnabled = false,
  681. UserName = "ali",
  682. UserType = 1
  683. });
  684. });
  685. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  686. {
  687. b.Property<long>("Id")
  688. .ValueGeneratedOnAdd()
  689. .HasColumnType("bigint")
  690. .HasColumnOrder(0);
  691. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  692. b.Property<long>("PermissionId")
  693. .HasColumnType("bigint");
  694. b.Property<string>("PermissionName")
  695. .IsRequired()
  696. .HasColumnType("nvarchar(max)");
  697. b.Property<string>("RoleId")
  698. .IsRequired()
  699. .HasColumnType("nvarchar(450)");
  700. b.HasKey("Id");
  701. b.HasIndex("PermissionId");
  702. b.HasIndex("RoleId");
  703. b.ToTable("RolePermissions");
  704. });
  705. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  706. {
  707. b.Property<long>("Id")
  708. .ValueGeneratedOnAdd()
  709. .HasColumnType("bigint")
  710. .HasColumnOrder(0);
  711. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  712. b.Property<string>("AddressDesc")
  713. .IsRequired()
  714. .HasColumnType("nvarchar(max)");
  715. b.Property<string>("City")
  716. .IsRequired()
  717. .HasColumnType("nvarchar(max)");
  718. b.Property<int>("CountryId")
  719. .HasColumnType("int");
  720. b.Property<DateTime>("CreateDate")
  721. .HasColumnType("datetime2")
  722. .HasColumnOrder(3);
  723. b.Property<string>("CreateUser")
  724. .HasMaxLength(450)
  725. .HasColumnType("nvarchar(450)")
  726. .HasColumnOrder(1);
  727. b.Property<string>("PostalCode")
  728. .IsRequired()
  729. .HasColumnType("nvarchar(max)");
  730. b.Property<DateTime?>("UpdateDate")
  731. .HasColumnType("datetime2")
  732. .HasColumnOrder(4);
  733. b.Property<string>("UpdateUser")
  734. .HasMaxLength(450)
  735. .HasColumnType("nvarchar(450)")
  736. .HasColumnOrder(2);
  737. b.Property<string>("UserId")
  738. .IsRequired()
  739. .HasColumnType("nvarchar(450)");
  740. b.HasKey("Id");
  741. b.HasIndex("UserId")
  742. .IsUnique();
  743. b.ToTable("UserAddress");
  744. });
  745. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  746. {
  747. b.Property<long>("Id")
  748. .ValueGeneratedOnAdd()
  749. .HasColumnType("bigint")
  750. .HasColumnOrder(0);
  751. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  752. b.Property<long>("AttachmentTypeId")
  753. .HasColumnType("bigint");
  754. b.Property<DateTime>("CreateDate")
  755. .HasColumnType("datetime2")
  756. .HasColumnOrder(3);
  757. b.Property<string>("CreateUser")
  758. .HasMaxLength(450)
  759. .HasColumnType("nvarchar(450)")
  760. .HasColumnOrder(1);
  761. b.Property<string>("FileName")
  762. .IsRequired()
  763. .HasMaxLength(250)
  764. .HasColumnType("nvarchar(250)");
  765. b.Property<string>("OriginalName")
  766. .IsRequired()
  767. .HasMaxLength(250)
  768. .HasColumnType("nvarchar(250)");
  769. b.Property<DateTime?>("UpdateDate")
  770. .HasColumnType("datetime2")
  771. .HasColumnOrder(4);
  772. b.Property<string>("UpdateUser")
  773. .HasMaxLength(450)
  774. .HasColumnType("nvarchar(450)")
  775. .HasColumnOrder(2);
  776. b.Property<string>("UserId")
  777. .IsRequired()
  778. .HasColumnType("nvarchar(450)");
  779. b.HasKey("Id");
  780. b.HasIndex("AttachmentTypeId");
  781. b.HasIndex("UserId");
  782. b.ToTable("UserAttachments");
  783. });
  784. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  785. {
  786. b.Property<int>("Id")
  787. .ValueGeneratedOnAdd()
  788. .HasColumnType("int");
  789. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  790. b.Property<string>("ClaimType")
  791. .HasColumnType("nvarchar(max)");
  792. b.Property<string>("ClaimValue")
  793. .HasColumnType("nvarchar(max)");
  794. b.Property<string>("RoleId")
  795. .IsRequired()
  796. .HasColumnType("nvarchar(450)");
  797. b.HasKey("Id");
  798. b.HasIndex("RoleId");
  799. b.ToTable("AspNetRoleClaims", (string)null);
  800. });
  801. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  802. {
  803. b.Property<int>("Id")
  804. .ValueGeneratedOnAdd()
  805. .HasColumnType("int");
  806. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  807. b.Property<string>("ClaimType")
  808. .HasColumnType("nvarchar(max)");
  809. b.Property<string>("ClaimValue")
  810. .HasColumnType("nvarchar(max)");
  811. b.Property<string>("UserId")
  812. .IsRequired()
  813. .HasColumnType("nvarchar(450)");
  814. b.HasKey("Id");
  815. b.HasIndex("UserId");
  816. b.ToTable("AspNetUserClaims", (string)null);
  817. });
  818. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  819. {
  820. b.Property<string>("LoginProvider")
  821. .HasColumnType("nvarchar(450)");
  822. b.Property<string>("ProviderKey")
  823. .HasColumnType("nvarchar(450)");
  824. b.Property<string>("ProviderDisplayName")
  825. .HasColumnType("nvarchar(max)");
  826. b.Property<string>("UserId")
  827. .IsRequired()
  828. .HasColumnType("nvarchar(450)");
  829. b.HasKey("LoginProvider", "ProviderKey");
  830. b.HasIndex("UserId");
  831. b.ToTable("AspNetUserLogins", (string)null);
  832. });
  833. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  834. {
  835. b.Property<string>("UserId")
  836. .HasColumnType("nvarchar(450)");
  837. b.Property<string>("RoleId")
  838. .HasColumnType("nvarchar(450)");
  839. b.HasKey("UserId", "RoleId");
  840. b.HasIndex("RoleId");
  841. b.ToTable("AspNetUserRoles", (string)null);
  842. b.HasData(
  843. new
  844. {
  845. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  846. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  847. },
  848. new
  849. {
  850. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  851. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  852. });
  853. });
  854. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  855. {
  856. b.Property<string>("UserId")
  857. .HasColumnType("nvarchar(450)");
  858. b.Property<string>("LoginProvider")
  859. .HasColumnType("nvarchar(450)");
  860. b.Property<string>("Name")
  861. .HasColumnType("nvarchar(450)");
  862. b.Property<string>("Value")
  863. .HasColumnType("nvarchar(max)");
  864. b.HasKey("UserId", "LoginProvider", "Name");
  865. b.ToTable("AspNetUserTokens", (string)null);
  866. });
  867. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  868. {
  869. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  870. .WithMany()
  871. .HasForeignKey("UserRolesId")
  872. .OnDelete(DeleteBehavior.Cascade)
  873. .IsRequired();
  874. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  875. .WithMany()
  876. .HasForeignKey("UsersId")
  877. .OnDelete(DeleteBehavior.Cascade)
  878. .IsRequired();
  879. });
  880. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  881. {
  882. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  883. .WithMany()
  884. .HasForeignKey("ProjectId")
  885. .OnDelete(DeleteBehavior.Cascade)
  886. .IsRequired();
  887. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  888. .WithMany()
  889. .HasForeignKey("StatusId")
  890. .OnDelete(DeleteBehavior.Cascade)
  891. .IsRequired();
  892. b.Navigation("Project");
  893. b.Navigation("TaskStatus");
  894. });
  895. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  896. {
  897. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  898. .WithMany()
  899. .HasForeignKey("AttachmentTypeId")
  900. .OnDelete(DeleteBehavior.Cascade)
  901. .IsRequired();
  902. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  903. .WithMany("TaskAttachments")
  904. .HasForeignKey("TaskId")
  905. .OnDelete(DeleteBehavior.Cascade)
  906. .IsRequired();
  907. b.Navigation("AttachmentType");
  908. b.Navigation("UserTask");
  909. });
  910. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  911. {
  912. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  913. .WithMany()
  914. .HasForeignKey("CurrentStatusId")
  915. .OnDelete(DeleteBehavior.Cascade)
  916. .IsRequired();
  917. b.HasOne("MTWorkHR.Core.Entities.UserTask", null)
  918. .WithMany("UserTaskHistories")
  919. .HasForeignKey("UserTaskId");
  920. b.Navigation("TaskStatus");
  921. });
  922. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  923. {
  924. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
  925. .WithMany()
  926. .HasForeignKey("ManagerId");
  927. b.Navigation("Manager");
  928. });
  929. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  930. {
  931. b.HasOne("MTWorkHR.Core.Entities.Permission", "Permission")
  932. .WithMany()
  933. .HasForeignKey("PermissionId")
  934. .OnDelete(DeleteBehavior.Cascade)
  935. .IsRequired();
  936. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", "Role")
  937. .WithMany("RolePermissions")
  938. .HasForeignKey("RoleId")
  939. .OnDelete(DeleteBehavior.Cascade)
  940. .IsRequired();
  941. b.Navigation("Permission");
  942. b.Navigation("Role");
  943. });
  944. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  945. {
  946. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  947. .WithOne("UserAddress")
  948. .HasForeignKey("MTWorkHR.Infrastructure.Entities.UserAddress", "UserId")
  949. .OnDelete(DeleteBehavior.Cascade)
  950. .IsRequired();
  951. b.Navigation("User");
  952. });
  953. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  954. {
  955. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  956. .WithMany()
  957. .HasForeignKey("AttachmentTypeId")
  958. .OnDelete(DeleteBehavior.Cascade)
  959. .IsRequired();
  960. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  961. .WithMany("UserAttachments")
  962. .HasForeignKey("UserId")
  963. .OnDelete(DeleteBehavior.Cascade)
  964. .IsRequired();
  965. b.Navigation("AttachmentType");
  966. b.Navigation("User");
  967. });
  968. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  969. {
  970. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  971. .WithMany()
  972. .HasForeignKey("RoleId")
  973. .OnDelete(DeleteBehavior.Cascade)
  974. .IsRequired();
  975. });
  976. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  977. {
  978. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  979. .WithMany()
  980. .HasForeignKey("UserId")
  981. .OnDelete(DeleteBehavior.Cascade)
  982. .IsRequired();
  983. });
  984. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  985. {
  986. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  987. .WithMany()
  988. .HasForeignKey("UserId")
  989. .OnDelete(DeleteBehavior.Cascade)
  990. .IsRequired();
  991. });
  992. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  993. {
  994. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  995. .WithMany()
  996. .HasForeignKey("RoleId")
  997. .OnDelete(DeleteBehavior.Cascade)
  998. .IsRequired();
  999. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1000. .WithMany()
  1001. .HasForeignKey("UserId")
  1002. .OnDelete(DeleteBehavior.Cascade)
  1003. .IsRequired();
  1004. });
  1005. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  1006. {
  1007. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1008. .WithMany()
  1009. .HasForeignKey("UserId")
  1010. .OnDelete(DeleteBehavior.Cascade)
  1011. .IsRequired();
  1012. });
  1013. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1014. {
  1015. b.Navigation("TaskAttachments");
  1016. b.Navigation("UserTaskHistories");
  1017. });
  1018. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  1019. {
  1020. b.Navigation("RolePermissions");
  1021. });
  1022. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  1023. {
  1024. b.Navigation("UserAddress")
  1025. .IsRequired();
  1026. b.Navigation("UserAttachments");
  1027. });
  1028. #pragma warning restore 612, 618
  1029. }
  1030. }
  1031. }