20240304140346_addStatusConfig.Designer.cs 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828
  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("20240304140346_addStatusConfig")]
  14. partial class addStatusConfig
  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.Meeting", 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<DateTime>("CreateDate")
  195. .HasColumnType("datetime2")
  196. .HasColumnOrder(3);
  197. b.Property<string>("CreateUser")
  198. .HasMaxLength(450)
  199. .HasColumnType("nvarchar(450)")
  200. .HasColumnOrder(1);
  201. b.Property<string>("DeleteUserId")
  202. .HasMaxLength(450)
  203. .HasColumnType("nvarchar(450)")
  204. .HasColumnOrder(8);
  205. b.Property<string>("Description")
  206. .HasMaxLength(500)
  207. .HasColumnType("nvarchar(500)");
  208. b.Property<bool>("IsDeleted")
  209. .HasColumnType("bit")
  210. .HasColumnOrder(7);
  211. b.Property<DateTime>("MeetingDateTime")
  212. .HasColumnType("datetime2");
  213. b.Property<string>("MeetingLink")
  214. .HasMaxLength(250)
  215. .HasColumnType("nvarchar(250)");
  216. b.Property<string>("Title")
  217. .IsRequired()
  218. .HasMaxLength(250)
  219. .HasColumnType("nvarchar(250)");
  220. b.Property<DateTime?>("UpdateDate")
  221. .HasColumnType("datetime2")
  222. .HasColumnOrder(4);
  223. b.Property<string>("UpdateUser")
  224. .HasMaxLength(450)
  225. .HasColumnType("nvarchar(450)")
  226. .HasColumnOrder(2);
  227. b.HasKey("Id");
  228. b.ToTable("Meetings");
  229. });
  230. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingLog", b =>
  231. {
  232. b.Property<long>("Id")
  233. .ValueGeneratedOnAdd()
  234. .HasColumnType("bigint")
  235. .HasColumnOrder(0);
  236. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  237. b.Property<string>("Channel")
  238. .HasColumnType("nvarchar(max)");
  239. b.Property<DateTime>("CreateDate")
  240. .HasColumnType("datetime2");
  241. b.Property<string>("CreateUser")
  242. .IsRequired()
  243. .HasColumnType("nvarchar(max)");
  244. b.Property<string>("ErrorCode")
  245. .IsRequired()
  246. .HasColumnType("nvarchar(max)");
  247. b.Property<string>("ErrorDescription")
  248. .IsRequired()
  249. .HasColumnType("nvarchar(max)");
  250. b.Property<string>("InnerException")
  251. .HasColumnType("nvarchar(max)");
  252. b.Property<string>("Input")
  253. .HasColumnType("nvarchar(max)");
  254. b.Property<string>("Method")
  255. .IsRequired()
  256. .HasColumnType("nvarchar(max)");
  257. b.Property<string>("QueryString")
  258. .HasColumnType("nvarchar(max)");
  259. b.Property<string>("ServerIP")
  260. .HasColumnType("nvarchar(max)");
  261. b.Property<string>("ServiceResponseTimeInSeconds")
  262. .IsRequired()
  263. .HasColumnType("nvarchar(max)");
  264. b.Property<string>("UserIP")
  265. .HasColumnType("nvarchar(max)");
  266. b.Property<string>("userAgent")
  267. .HasColumnType("nvarchar(max)");
  268. b.HasKey("Id");
  269. b.ToTable("MeetingLogs");
  270. });
  271. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  272. {
  273. b.Property<long>("Id")
  274. .ValueGeneratedOnAdd()
  275. .HasColumnType("bigint")
  276. .HasColumnOrder(0);
  277. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  278. b.Property<string>("AssignedUserId")
  279. .IsRequired()
  280. .HasColumnType("nvarchar(max)");
  281. b.Property<DateTime>("CreateDate")
  282. .HasColumnType("datetime2")
  283. .HasColumnOrder(3);
  284. b.Property<string>("CreateUser")
  285. .HasMaxLength(450)
  286. .HasColumnType("nvarchar(450)")
  287. .HasColumnOrder(1);
  288. b.Property<long>("MeetingId")
  289. .HasColumnType("bigint");
  290. b.Property<DateTime?>("UpdateDate")
  291. .HasColumnType("datetime2")
  292. .HasColumnOrder(4);
  293. b.Property<string>("UpdateUser")
  294. .HasMaxLength(450)
  295. .HasColumnType("nvarchar(450)")
  296. .HasColumnOrder(2);
  297. b.HasKey("Id");
  298. b.HasIndex("MeetingId");
  299. b.ToTable("MeetingUser");
  300. });
  301. modelBuilder.Entity("MTWorkHR.Core.Entities.Permission", 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>("CategoryName")
  309. .IsRequired()
  310. .HasMaxLength(150)
  311. .HasColumnType("nvarchar(150)");
  312. b.Property<string>("Desc")
  313. .IsRequired()
  314. .HasMaxLength(250)
  315. .HasColumnType("nvarchar(250)");
  316. b.Property<string>("Name")
  317. .IsRequired()
  318. .HasMaxLength(250)
  319. .HasColumnType("nvarchar(250)");
  320. b.Property<bool>("Show")
  321. .HasColumnType("bit");
  322. b.HasKey("Id");
  323. b.ToTable("Permissions");
  324. });
  325. modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
  326. {
  327. b.Property<long>("Id")
  328. .ValueGeneratedOnAdd()
  329. .HasColumnType("bigint")
  330. .HasColumnOrder(0);
  331. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  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>("DeleteUserId")
  340. .HasMaxLength(450)
  341. .HasColumnType("nvarchar(450)")
  342. .HasColumnOrder(8);
  343. b.Property<bool>("IsDeleted")
  344. .HasColumnType("bit")
  345. .HasColumnOrder(7);
  346. b.Property<string>("NameAr")
  347. .IsRequired()
  348. .HasMaxLength(250)
  349. .HasColumnType("nvarchar(250)");
  350. b.Property<string>("NameEn")
  351. .IsRequired()
  352. .HasMaxLength(250)
  353. .HasColumnType("nvarchar(250)");
  354. b.Property<DateTime?>("UpdateDate")
  355. .HasColumnType("datetime2")
  356. .HasColumnOrder(4);
  357. b.Property<string>("UpdateUser")
  358. .HasMaxLength(450)
  359. .HasColumnType("nvarchar(450)")
  360. .HasColumnOrder(2);
  361. b.HasKey("Id");
  362. b.ToTable("Projects");
  363. });
  364. modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
  365. {
  366. b.Property<long>("Id")
  367. .ValueGeneratedOnAdd()
  368. .HasColumnType("bigint")
  369. .HasColumnOrder(0);
  370. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  371. b.Property<string>("Channel")
  372. .HasColumnType("nvarchar(max)");
  373. b.Property<DateTime>("CreateDate")
  374. .HasColumnType("datetime2");
  375. b.Property<string>("CreateUser")
  376. .IsRequired()
  377. .HasColumnType("nvarchar(max)");
  378. b.Property<string>("ErrorCode")
  379. .IsRequired()
  380. .HasColumnType("nvarchar(max)");
  381. b.Property<string>("ErrorDescription")
  382. .IsRequired()
  383. .HasColumnType("nvarchar(max)");
  384. b.Property<string>("InnerException")
  385. .HasColumnType("nvarchar(max)");
  386. b.Property<string>("Input")
  387. .HasColumnType("nvarchar(max)");
  388. b.Property<string>("Method")
  389. .IsRequired()
  390. .HasColumnType("nvarchar(max)");
  391. b.Property<string>("QueryString")
  392. .HasColumnType("nvarchar(max)");
  393. b.Property<string>("ServerIP")
  394. .HasColumnType("nvarchar(max)");
  395. b.Property<string>("ServiceResponseTimeInSeconds")
  396. .IsRequired()
  397. .HasColumnType("nvarchar(max)");
  398. b.Property<string>("UserIP")
  399. .HasColumnType("nvarchar(max)");
  400. b.Property<string>("userAgent")
  401. .HasColumnType("nvarchar(max)");
  402. b.HasKey("Id");
  403. b.ToTable("RoleLogs");
  404. });
  405. modelBuilder.Entity("MTWorkHR.Core.Entities.SettingLog", b =>
  406. {
  407. b.Property<long>("Id")
  408. .ValueGeneratedOnAdd()
  409. .HasColumnType("bigint")
  410. .HasColumnOrder(0);
  411. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  412. b.Property<string>("Channel")
  413. .HasColumnType("nvarchar(max)");
  414. b.Property<DateTime>("CreateDate")
  415. .HasColumnType("datetime2");
  416. b.Property<string>("CreateUser")
  417. .IsRequired()
  418. .HasColumnType("nvarchar(max)");
  419. b.Property<string>("ErrorCode")
  420. .IsRequired()
  421. .HasColumnType("nvarchar(max)");
  422. b.Property<string>("ErrorDescription")
  423. .IsRequired()
  424. .HasColumnType("nvarchar(max)");
  425. b.Property<string>("InnerException")
  426. .HasColumnType("nvarchar(max)");
  427. b.Property<string>("Input")
  428. .HasColumnType("nvarchar(max)");
  429. b.Property<string>("Method")
  430. .IsRequired()
  431. .HasColumnType("nvarchar(max)");
  432. b.Property<string>("QueryString")
  433. .HasColumnType("nvarchar(max)");
  434. b.Property<string>("ServerIP")
  435. .HasColumnType("nvarchar(max)");
  436. b.Property<string>("ServiceResponseTimeInSeconds")
  437. .IsRequired()
  438. .HasColumnType("nvarchar(max)");
  439. b.Property<string>("UserIP")
  440. .HasColumnType("nvarchar(max)");
  441. b.Property<string>("userAgent")
  442. .HasColumnType("nvarchar(max)");
  443. b.HasKey("Id");
  444. b.ToTable("SettingLogs");
  445. });
  446. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  447. {
  448. b.Property<long>("Id")
  449. .ValueGeneratedOnAdd()
  450. .HasColumnType("bigint")
  451. .HasColumnOrder(0);
  452. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  453. b.Property<DateTime>("CreateDate")
  454. .HasColumnType("datetime2")
  455. .HasColumnOrder(3);
  456. b.Property<string>("CreateUser")
  457. .HasMaxLength(450)
  458. .HasColumnType("nvarchar(450)")
  459. .HasColumnOrder(1);
  460. b.Property<string>("DeleteUserId")
  461. .HasMaxLength(450)
  462. .HasColumnType("nvarchar(450)")
  463. .HasColumnOrder(8);
  464. b.Property<bool>("IsDeleted")
  465. .HasColumnType("bit")
  466. .HasColumnOrder(7);
  467. b.Property<string>("NameAr")
  468. .IsRequired()
  469. .HasMaxLength(250)
  470. .HasColumnType("nvarchar(250)");
  471. b.Property<string>("NameEn")
  472. .IsRequired()
  473. .HasMaxLength(250)
  474. .HasColumnType("nvarchar(250)");
  475. b.Property<DateTime?>("UpdateDate")
  476. .HasColumnType("datetime2")
  477. .HasColumnOrder(4);
  478. b.Property<string>("UpdateUser")
  479. .HasMaxLength(450)
  480. .HasColumnType("nvarchar(450)")
  481. .HasColumnOrder(2);
  482. b.HasKey("Id");
  483. b.ToTable("Teams");
  484. });
  485. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamLog", b =>
  486. {
  487. b.Property<long>("Id")
  488. .ValueGeneratedOnAdd()
  489. .HasColumnType("bigint")
  490. .HasColumnOrder(0);
  491. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  492. b.Property<string>("Channel")
  493. .HasColumnType("nvarchar(max)");
  494. b.Property<DateTime>("CreateDate")
  495. .HasColumnType("datetime2");
  496. b.Property<string>("CreateUser")
  497. .IsRequired()
  498. .HasColumnType("nvarchar(max)");
  499. b.Property<string>("ErrorCode")
  500. .IsRequired()
  501. .HasColumnType("nvarchar(max)");
  502. b.Property<string>("ErrorDescription")
  503. .IsRequired()
  504. .HasColumnType("nvarchar(max)");
  505. b.Property<string>("InnerException")
  506. .HasColumnType("nvarchar(max)");
  507. b.Property<string>("Input")
  508. .HasColumnType("nvarchar(max)");
  509. b.Property<string>("Method")
  510. .IsRequired()
  511. .HasColumnType("nvarchar(max)");
  512. b.Property<string>("QueryString")
  513. .HasColumnType("nvarchar(max)");
  514. b.Property<string>("ServerIP")
  515. .HasColumnType("nvarchar(max)");
  516. b.Property<string>("ServiceResponseTimeInSeconds")
  517. .IsRequired()
  518. .HasColumnType("nvarchar(max)");
  519. b.Property<string>("UserIP")
  520. .HasColumnType("nvarchar(max)");
  521. b.Property<string>("userAgent")
  522. .HasColumnType("nvarchar(max)");
  523. b.HasKey("Id");
  524. b.ToTable("TeamLogs");
  525. });
  526. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  527. {
  528. b.Property<long>("Id")
  529. .ValueGeneratedOnAdd()
  530. .HasColumnType("bigint")
  531. .HasColumnOrder(0);
  532. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  533. b.Property<string>("AssignedUserId")
  534. .IsRequired()
  535. .HasColumnType("nvarchar(max)");
  536. b.Property<DateTime>("CreateDate")
  537. .HasColumnType("datetime2")
  538. .HasColumnOrder(3);
  539. b.Property<string>("CreateUser")
  540. .HasMaxLength(450)
  541. .HasColumnType("nvarchar(450)")
  542. .HasColumnOrder(1);
  543. b.Property<long>("TeamId")
  544. .HasColumnType("bigint");
  545. b.Property<DateTime?>("UpdateDate")
  546. .HasColumnType("datetime2")
  547. .HasColumnOrder(4);
  548. b.Property<string>("UpdateUser")
  549. .HasMaxLength(450)
  550. .HasColumnType("nvarchar(450)")
  551. .HasColumnOrder(2);
  552. b.HasKey("Id");
  553. b.HasIndex("TeamId");
  554. b.ToTable("TeamUser");
  555. });
  556. modelBuilder.Entity("MTWorkHR.Core.Entities.UserLog", b =>
  557. {
  558. b.Property<long>("Id")
  559. .ValueGeneratedOnAdd()
  560. .HasColumnType("bigint")
  561. .HasColumnOrder(0);
  562. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  563. b.Property<string>("Channel")
  564. .HasColumnType("nvarchar(max)");
  565. b.Property<DateTime>("CreateDate")
  566. .HasColumnType("datetime2");
  567. b.Property<string>("CreateUser")
  568. .IsRequired()
  569. .HasColumnType("nvarchar(max)");
  570. b.Property<string>("ErrorCode")
  571. .IsRequired()
  572. .HasColumnType("nvarchar(max)");
  573. b.Property<string>("ErrorDescription")
  574. .IsRequired()
  575. .HasColumnType("nvarchar(max)");
  576. b.Property<string>("InnerException")
  577. .HasColumnType("nvarchar(max)");
  578. b.Property<string>("Input")
  579. .HasColumnType("nvarchar(max)");
  580. b.Property<string>("Method")
  581. .IsRequired()
  582. .HasColumnType("nvarchar(max)");
  583. b.Property<string>("QueryString")
  584. .HasColumnType("nvarchar(max)");
  585. b.Property<string>("ServerIP")
  586. .HasColumnType("nvarchar(max)");
  587. b.Property<string>("ServiceResponseTimeInSeconds")
  588. .IsRequired()
  589. .HasColumnType("nvarchar(max)");
  590. b.Property<string>("UserIP")
  591. .HasColumnType("nvarchar(max)");
  592. b.Property<string>("userAgent")
  593. .HasColumnType("nvarchar(max)");
  594. b.HasKey("Id");
  595. b.ToTable("UserLogs");
  596. });
  597. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  598. {
  599. b.Property<long>("Id")
  600. .ValueGeneratedOnAdd()
  601. .HasColumnType("bigint")
  602. .HasColumnOrder(0);
  603. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  604. b.Property<long>("AssignedUserId")
  605. .HasColumnType("bigint");
  606. b.Property<DateTime>("CreateDate")
  607. .HasColumnType("datetime2")
  608. .HasColumnOrder(3);
  609. b.Property<string>("CreateUser")
  610. .HasMaxLength(450)
  611. .HasColumnType("nvarchar(450)")
  612. .HasColumnOrder(1);
  613. b.Property<string>("DeleteUserId")
  614. .HasMaxLength(450)
  615. .HasColumnType("nvarchar(450)")
  616. .HasColumnOrder(8);
  617. b.Property<string>("Description")
  618. .IsRequired()
  619. .HasColumnType("nvarchar(max)");
  620. b.Property<DateTime>("DueDate")
  621. .HasColumnType("datetime2");
  622. b.Property<bool>("IsDeleted")
  623. .HasColumnType("bit")
  624. .HasColumnOrder(7);
  625. b.Property<int>("Priority")
  626. .HasColumnType("int");
  627. b.Property<long>("ProjectId")
  628. .HasColumnType("bigint");
  629. b.Property<long>("StatusId")
  630. .HasColumnType("bigint");
  631. b.Property<string>("Title")
  632. .IsRequired()
  633. .HasColumnType("nvarchar(max)");
  634. b.Property<DateTime?>("UpdateDate")
  635. .HasColumnType("datetime2")
  636. .HasColumnOrder(4);
  637. b.Property<string>("UpdateUser")
  638. .HasMaxLength(450)
  639. .HasColumnType("nvarchar(450)")
  640. .HasColumnOrder(2);
  641. b.HasKey("Id");
  642. b.HasIndex("ProjectId");
  643. b.HasIndex("StatusId");
  644. b.ToTable("UserTasks");
  645. });
  646. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  647. {
  648. b.Property<long>("Id")
  649. .ValueGeneratedOnAdd()
  650. .HasColumnType("bigint")
  651. .HasColumnOrder(0);
  652. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  653. b.Property<long>("AttachmentTypeId")
  654. .HasColumnType("bigint");
  655. b.Property<DateTime>("CreateDate")
  656. .HasColumnType("datetime2")
  657. .HasColumnOrder(3);
  658. b.Property<string>("CreateUser")
  659. .HasMaxLength(450)
  660. .HasColumnType("nvarchar(450)")
  661. .HasColumnOrder(1);
  662. b.Property<string>("FileName")
  663. .HasMaxLength(250)
  664. .HasColumnType("nvarchar(250)");
  665. b.Property<string>("OriginalName")
  666. .IsRequired()
  667. .HasMaxLength(250)
  668. .HasColumnType("nvarchar(250)");
  669. b.Property<long>("TaskId")
  670. .HasColumnType("bigint");
  671. b.Property<DateTime?>("UpdateDate")
  672. .HasColumnType("datetime2")
  673. .HasColumnOrder(4);
  674. b.Property<string>("UpdateUser")
  675. .HasMaxLength(450)
  676. .HasColumnType("nvarchar(450)")
  677. .HasColumnOrder(2);
  678. b.HasKey("Id");
  679. b.HasIndex("AttachmentTypeId");
  680. b.HasIndex("TaskId");
  681. b.ToTable("UserTaskAttachments");
  682. });
  683. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  684. {
  685. b.Property<long>("Id")
  686. .ValueGeneratedOnAdd()
  687. .HasColumnType("bigint")
  688. .HasColumnOrder(0);
  689. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  690. b.Property<long>("AssignedToUserId")
  691. .HasColumnType("bigint");
  692. b.Property<string>("Comment")
  693. .HasMaxLength(500)
  694. .HasColumnType("nvarchar(500)");
  695. b.Property<DateTime>("CreateDate")
  696. .HasColumnType("datetime2")
  697. .HasColumnOrder(3);
  698. b.Property<string>("CreateUser")
  699. .HasMaxLength(450)
  700. .HasColumnType("nvarchar(450)")
  701. .HasColumnOrder(1);
  702. b.Property<long>("CurrentStatusId")
  703. .HasColumnType("bigint");
  704. b.Property<bool>("IsDeleted")
  705. .HasColumnType("bit");
  706. b.Property<long>("TaskId")
  707. .HasColumnType("bigint");
  708. b.Property<DateTime?>("UpdateDate")
  709. .HasColumnType("datetime2")
  710. .HasColumnOrder(4);
  711. b.Property<string>("UpdateUser")
  712. .HasMaxLength(450)
  713. .HasColumnType("nvarchar(450)")
  714. .HasColumnOrder(2);
  715. b.Property<long?>("UserTaskId")
  716. .HasColumnType("bigint");
  717. b.HasKey("Id");
  718. b.HasIndex("CurrentStatusId");
  719. b.HasIndex("UserTaskId");
  720. b.ToTable("UserTaskHistories");
  721. });
  722. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskLog", b =>
  723. {
  724. b.Property<long>("Id")
  725. .ValueGeneratedOnAdd()
  726. .HasColumnType("bigint")
  727. .HasColumnOrder(0);
  728. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  729. b.Property<string>("Channel")
  730. .HasColumnType("nvarchar(max)");
  731. b.Property<DateTime>("CreateDate")
  732. .HasColumnType("datetime2");
  733. b.Property<string>("CreateUser")
  734. .IsRequired()
  735. .HasColumnType("nvarchar(max)");
  736. b.Property<string>("ErrorCode")
  737. .IsRequired()
  738. .HasColumnType("nvarchar(max)");
  739. b.Property<string>("ErrorDescription")
  740. .IsRequired()
  741. .HasColumnType("nvarchar(max)");
  742. b.Property<string>("InnerException")
  743. .HasColumnType("nvarchar(max)");
  744. b.Property<string>("Input")
  745. .HasColumnType("nvarchar(max)");
  746. b.Property<string>("Method")
  747. .IsRequired()
  748. .HasColumnType("nvarchar(max)");
  749. b.Property<string>("QueryString")
  750. .HasColumnType("nvarchar(max)");
  751. b.Property<string>("ServerIP")
  752. .HasColumnType("nvarchar(max)");
  753. b.Property<string>("ServiceResponseTimeInSeconds")
  754. .IsRequired()
  755. .HasColumnType("nvarchar(max)");
  756. b.Property<string>("UserIP")
  757. .HasColumnType("nvarchar(max)");
  758. b.Property<string>("userAgent")
  759. .HasColumnType("nvarchar(max)");
  760. b.HasKey("Id");
  761. b.ToTable("UserTaskLogs");
  762. });
  763. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskStatus", b =>
  764. {
  765. b.Property<long>("Id")
  766. .ValueGeneratedOnAdd()
  767. .HasColumnType("bigint")
  768. .HasColumnOrder(0);
  769. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  770. b.Property<string>("NameAr")
  771. .IsRequired()
  772. .HasMaxLength(250)
  773. .HasColumnType("nvarchar(250)");
  774. b.Property<string>("NameEn")
  775. .IsRequired()
  776. .HasMaxLength(250)
  777. .HasColumnType("nvarchar(250)");
  778. b.HasKey("Id");
  779. b.ToTable("UserTaskStatuses");
  780. b.HasData(
  781. new
  782. {
  783. Id = 1L,
  784. NameAr = "جديدة",
  785. NameEn = "New"
  786. },
  787. new
  788. {
  789. Id = 2L,
  790. NameAr = "قيد العمل",
  791. NameEn = "Under progress"
  792. },
  793. new
  794. {
  795. Id = 3L,
  796. NameAr = "أغلقت",
  797. NameEn = "Closed"
  798. },
  799. new
  800. {
  801. Id = 4L,
  802. NameAr = "تمت",
  803. NameEn = "Completed"
  804. },
  805. new
  806. {
  807. Id = 5L,
  808. NameAr = "مؤجلة",
  809. NameEn = "Delayed"
  810. });
  811. });
  812. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  813. {
  814. b.Property<string>("Id")
  815. .HasColumnType("nvarchar(450)");
  816. b.Property<string>("ConcurrencyStamp")
  817. .IsConcurrencyToken()
  818. .HasColumnType("nvarchar(max)");
  819. b.Property<DateTime>("CreateDate")
  820. .HasColumnType("datetime2");
  821. b.Property<string>("CreateUser")
  822. .HasColumnType("nvarchar(max)");
  823. b.Property<string>("DeleteUserId")
  824. .HasColumnType("nvarchar(max)");
  825. b.Property<bool?>("IsAdmin")
  826. .HasColumnType("bit");
  827. b.Property<bool>("IsDeleted")
  828. .HasColumnType("bit");
  829. b.Property<string>("Name")
  830. .HasMaxLength(256)
  831. .HasColumnType("nvarchar(256)");
  832. b.Property<string>("NormalizedName")
  833. .HasMaxLength(256)
  834. .HasColumnType("nvarchar(256)");
  835. b.Property<DateTime?>("UpdateDate")
  836. .HasColumnType("datetime2");
  837. b.Property<string>("UpdateUser")
  838. .HasColumnType("nvarchar(max)");
  839. b.HasKey("Id");
  840. b.HasIndex("NormalizedName")
  841. .IsUnique()
  842. .HasDatabaseName("RoleNameIndex")
  843. .HasFilter("[NormalizedName] IS NOT NULL");
  844. b.ToTable("AspNetRoles", (string)null);
  845. b.HasData(
  846. new
  847. {
  848. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  849. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  850. IsAdmin = true,
  851. IsDeleted = false,
  852. Name = "Admin",
  853. NormalizedName = "ADMIN"
  854. },
  855. new
  856. {
  857. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E",
  858. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  859. IsAdmin = false,
  860. IsDeleted = false,
  861. Name = "Employee",
  862. NormalizedName = "EMPLOYEE"
  863. });
  864. });
  865. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  866. {
  867. b.Property<string>("Id")
  868. .HasColumnType("nvarchar(450)");
  869. b.Property<int>("AccessFailedCount")
  870. .HasColumnType("int");
  871. b.Property<string>("ConcurrencyStamp")
  872. .IsConcurrencyToken()
  873. .HasColumnType("nvarchar(max)");
  874. b.Property<string>("CreateUser")
  875. .HasColumnType("nvarchar(max)");
  876. b.Property<string>("DeleteUserId")
  877. .HasColumnType("nvarchar(max)");
  878. b.Property<string>("Email")
  879. .HasMaxLength(256)
  880. .HasColumnType("nvarchar(256)");
  881. b.Property<bool>("EmailConfirmed")
  882. .HasColumnType("bit");
  883. b.Property<string>("FavoriteName")
  884. .HasColumnType("nvarchar(max)");
  885. b.Property<string>("FirstName")
  886. .IsRequired()
  887. .HasColumnType("nvarchar(max)");
  888. b.Property<decimal?>("IncomeTaxValue")
  889. .HasColumnType("decimal(18,2)");
  890. b.Property<bool>("IsDeleted")
  891. .HasColumnType("bit");
  892. b.Property<bool>("IsStopped")
  893. .HasColumnType("bit");
  894. b.Property<string>("JobTitle")
  895. .HasColumnType("nvarchar(max)");
  896. b.Property<string>("LastName")
  897. .IsRequired()
  898. .HasColumnType("nvarchar(max)");
  899. b.Property<bool>("LockoutEnabled")
  900. .HasColumnType("bit");
  901. b.Property<DateTimeOffset?>("LockoutEnd")
  902. .HasColumnType("datetimeoffset");
  903. b.Property<string>("ManagerId")
  904. .HasColumnType("nvarchar(450)");
  905. b.Property<string>("NormalizedEmail")
  906. .HasMaxLength(256)
  907. .HasColumnType("nvarchar(256)");
  908. b.Property<string>("NormalizedUserName")
  909. .HasMaxLength(256)
  910. .HasColumnType("nvarchar(256)");
  911. b.Property<string>("PassportNumber")
  912. .IsRequired()
  913. .HasColumnType("nvarchar(max)");
  914. b.Property<string>("PasswordHash")
  915. .HasColumnType("nvarchar(max)");
  916. b.Property<string>("PhoneNumber")
  917. .HasColumnType("nvarchar(max)");
  918. b.Property<bool>("PhoneNumberConfirmed")
  919. .HasColumnType("bit");
  920. b.Property<int?>("QualificationId")
  921. .HasColumnType("int");
  922. b.Property<string>("SecurityStamp")
  923. .HasColumnType("nvarchar(max)");
  924. b.Property<decimal?>("TaxNumber")
  925. .HasColumnType("decimal(18,2)");
  926. b.Property<bool>("TwoFactorEnabled")
  927. .HasColumnType("bit");
  928. b.Property<string>("University")
  929. .HasColumnType("nvarchar(max)");
  930. b.Property<string>("UpdateUser")
  931. .HasColumnType("nvarchar(max)");
  932. b.Property<string>("UserName")
  933. .HasMaxLength(256)
  934. .HasColumnType("nvarchar(256)");
  935. b.Property<int>("UserType")
  936. .HasColumnType("int");
  937. b.HasKey("Id");
  938. b.HasIndex("ManagerId");
  939. b.HasIndex("NormalizedEmail")
  940. .HasDatabaseName("EmailIndex");
  941. b.HasIndex("NormalizedUserName")
  942. .IsUnique()
  943. .HasDatabaseName("UserNameIndex")
  944. .HasFilter("[NormalizedUserName] IS NOT NULL");
  945. b.ToTable("AspNetUsers", (string)null);
  946. b.HasData(
  947. new
  948. {
  949. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  950. AccessFailedCount = 0,
  951. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  952. Email = "a@b.com",
  953. EmailConfirmed = true,
  954. FirstName = "Zinab",
  955. IncomeTaxValue = 1m,
  956. IsDeleted = false,
  957. IsStopped = false,
  958. LastName = "Elgendy",
  959. LockoutEnabled = false,
  960. NormalizedEmail = "A@B.COM",
  961. NormalizedUserName = "ADMIN",
  962. PassportNumber = "1234567",
  963. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  964. PhoneNumber = "1234567890",
  965. PhoneNumberConfirmed = true,
  966. QualificationId = 1,
  967. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  968. TaxNumber = 111m,
  969. TwoFactorEnabled = false,
  970. UserName = "Admin",
  971. UserType = 1
  972. },
  973. new
  974. {
  975. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  976. AccessFailedCount = 0,
  977. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  978. Email = "ali@b.com",
  979. EmailConfirmed = true,
  980. FirstName = "Ali",
  981. IncomeTaxValue = 100m,
  982. IsDeleted = false,
  983. IsStopped = false,
  984. LastName = "Farok",
  985. LockoutEnabled = false,
  986. NormalizedEmail = "ALI@B.COM",
  987. NormalizedUserName = "ALI",
  988. PassportNumber = "7654321001010",
  989. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  990. PhoneNumber = "1234567890",
  991. PhoneNumberConfirmed = true,
  992. QualificationId = 1,
  993. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  994. TaxNumber = 222m,
  995. TwoFactorEnabled = false,
  996. UserName = "ali",
  997. UserType = 1
  998. });
  999. });
  1000. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  1001. {
  1002. b.Property<long>("Id")
  1003. .ValueGeneratedOnAdd()
  1004. .HasColumnType("bigint")
  1005. .HasColumnOrder(0);
  1006. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1007. b.Property<long>("PermissionId")
  1008. .HasColumnType("bigint");
  1009. b.Property<string>("PermissionName")
  1010. .IsRequired()
  1011. .HasColumnType("nvarchar(max)");
  1012. b.Property<string>("RoleId")
  1013. .IsRequired()
  1014. .HasColumnType("nvarchar(450)");
  1015. b.HasKey("Id");
  1016. b.HasIndex("PermissionId");
  1017. b.HasIndex("RoleId");
  1018. b.ToTable("RolePermissions");
  1019. });
  1020. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  1021. {
  1022. b.Property<long>("Id")
  1023. .ValueGeneratedOnAdd()
  1024. .HasColumnType("bigint")
  1025. .HasColumnOrder(0);
  1026. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1027. b.Property<string>("AddressDesc")
  1028. .IsRequired()
  1029. .HasColumnType("nvarchar(max)");
  1030. b.Property<string>("City")
  1031. .IsRequired()
  1032. .HasColumnType("nvarchar(max)");
  1033. b.Property<int>("CountryId")
  1034. .HasColumnType("int");
  1035. b.Property<DateTime>("CreateDate")
  1036. .HasColumnType("datetime2")
  1037. .HasColumnOrder(3);
  1038. b.Property<string>("CreateUser")
  1039. .HasMaxLength(450)
  1040. .HasColumnType("nvarchar(450)")
  1041. .HasColumnOrder(1);
  1042. b.Property<string>("PostalCode")
  1043. .IsRequired()
  1044. .HasColumnType("nvarchar(max)");
  1045. b.Property<DateTime?>("UpdateDate")
  1046. .HasColumnType("datetime2")
  1047. .HasColumnOrder(4);
  1048. b.Property<string>("UpdateUser")
  1049. .HasMaxLength(450)
  1050. .HasColumnType("nvarchar(450)")
  1051. .HasColumnOrder(2);
  1052. b.Property<string>("UserId")
  1053. .IsRequired()
  1054. .HasColumnType("nvarchar(450)");
  1055. b.HasKey("Id");
  1056. b.HasIndex("UserId")
  1057. .IsUnique();
  1058. b.ToTable("UserAddress");
  1059. });
  1060. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  1061. {
  1062. b.Property<long>("Id")
  1063. .ValueGeneratedOnAdd()
  1064. .HasColumnType("bigint")
  1065. .HasColumnOrder(0);
  1066. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1067. b.Property<long>("AttachmentTypeId")
  1068. .HasColumnType("bigint");
  1069. b.Property<DateTime>("CreateDate")
  1070. .HasColumnType("datetime2")
  1071. .HasColumnOrder(3);
  1072. b.Property<string>("CreateUser")
  1073. .HasMaxLength(450)
  1074. .HasColumnType("nvarchar(450)")
  1075. .HasColumnOrder(1);
  1076. b.Property<string>("FileName")
  1077. .IsRequired()
  1078. .HasMaxLength(250)
  1079. .HasColumnType("nvarchar(250)");
  1080. b.Property<string>("OriginalName")
  1081. .IsRequired()
  1082. .HasMaxLength(250)
  1083. .HasColumnType("nvarchar(250)");
  1084. b.Property<DateTime?>("UpdateDate")
  1085. .HasColumnType("datetime2")
  1086. .HasColumnOrder(4);
  1087. b.Property<string>("UpdateUser")
  1088. .HasMaxLength(450)
  1089. .HasColumnType("nvarchar(450)")
  1090. .HasColumnOrder(2);
  1091. b.Property<string>("UserId")
  1092. .IsRequired()
  1093. .HasColumnType("nvarchar(450)");
  1094. b.HasKey("Id");
  1095. b.HasIndex("AttachmentTypeId");
  1096. b.HasIndex("UserId");
  1097. b.ToTable("UserAttachments");
  1098. });
  1099. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  1100. {
  1101. b.Property<int>("Id")
  1102. .ValueGeneratedOnAdd()
  1103. .HasColumnType("int");
  1104. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  1105. b.Property<string>("ClaimType")
  1106. .HasColumnType("nvarchar(max)");
  1107. b.Property<string>("ClaimValue")
  1108. .HasColumnType("nvarchar(max)");
  1109. b.Property<string>("RoleId")
  1110. .IsRequired()
  1111. .HasColumnType("nvarchar(450)");
  1112. b.HasKey("Id");
  1113. b.HasIndex("RoleId");
  1114. b.ToTable("AspNetRoleClaims", (string)null);
  1115. });
  1116. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  1117. {
  1118. b.Property<int>("Id")
  1119. .ValueGeneratedOnAdd()
  1120. .HasColumnType("int");
  1121. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  1122. b.Property<string>("ClaimType")
  1123. .HasColumnType("nvarchar(max)");
  1124. b.Property<string>("ClaimValue")
  1125. .HasColumnType("nvarchar(max)");
  1126. b.Property<string>("UserId")
  1127. .IsRequired()
  1128. .HasColumnType("nvarchar(450)");
  1129. b.HasKey("Id");
  1130. b.HasIndex("UserId");
  1131. b.ToTable("AspNetUserClaims", (string)null);
  1132. });
  1133. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  1134. {
  1135. b.Property<string>("LoginProvider")
  1136. .HasColumnType("nvarchar(450)");
  1137. b.Property<string>("ProviderKey")
  1138. .HasColumnType("nvarchar(450)");
  1139. b.Property<string>("ProviderDisplayName")
  1140. .HasColumnType("nvarchar(max)");
  1141. b.Property<string>("UserId")
  1142. .IsRequired()
  1143. .HasColumnType("nvarchar(450)");
  1144. b.HasKey("LoginProvider", "ProviderKey");
  1145. b.HasIndex("UserId");
  1146. b.ToTable("AspNetUserLogins", (string)null);
  1147. });
  1148. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  1149. {
  1150. b.Property<string>("UserId")
  1151. .HasColumnType("nvarchar(450)");
  1152. b.Property<string>("RoleId")
  1153. .HasColumnType("nvarchar(450)");
  1154. b.HasKey("UserId", "RoleId");
  1155. b.HasIndex("RoleId");
  1156. b.ToTable("AspNetUserRoles", (string)null);
  1157. b.HasData(
  1158. new
  1159. {
  1160. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  1161. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  1162. },
  1163. new
  1164. {
  1165. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  1166. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  1167. });
  1168. });
  1169. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  1170. {
  1171. b.Property<string>("UserId")
  1172. .HasColumnType("nvarchar(450)");
  1173. b.Property<string>("LoginProvider")
  1174. .HasColumnType("nvarchar(450)");
  1175. b.Property<string>("Name")
  1176. .HasColumnType("nvarchar(450)");
  1177. b.Property<string>("Value")
  1178. .HasColumnType("nvarchar(max)");
  1179. b.HasKey("UserId", "LoginProvider", "Name");
  1180. b.ToTable("AspNetUserTokens", (string)null);
  1181. });
  1182. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  1183. {
  1184. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  1185. .WithMany()
  1186. .HasForeignKey("UserRolesId")
  1187. .OnDelete(DeleteBehavior.Cascade)
  1188. .IsRequired();
  1189. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1190. .WithMany()
  1191. .HasForeignKey("UsersId")
  1192. .OnDelete(DeleteBehavior.Cascade)
  1193. .IsRequired();
  1194. });
  1195. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  1196. {
  1197. b.HasOne("MTWorkHR.Core.Entities.Meeting", "Meeting")
  1198. .WithMany("MeetingUsers")
  1199. .HasForeignKey("MeetingId")
  1200. .OnDelete(DeleteBehavior.Cascade)
  1201. .IsRequired();
  1202. b.Navigation("Meeting");
  1203. });
  1204. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  1205. {
  1206. b.HasOne("MTWorkHR.Core.Entities.Team", "Team")
  1207. .WithMany("TeamUsers")
  1208. .HasForeignKey("TeamId")
  1209. .OnDelete(DeleteBehavior.Cascade)
  1210. .IsRequired();
  1211. b.Navigation("Team");
  1212. });
  1213. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1214. {
  1215. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  1216. .WithMany()
  1217. .HasForeignKey("ProjectId")
  1218. .OnDelete(DeleteBehavior.Cascade)
  1219. .IsRequired();
  1220. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  1221. .WithMany()
  1222. .HasForeignKey("StatusId")
  1223. .OnDelete(DeleteBehavior.Cascade)
  1224. .IsRequired();
  1225. b.Navigation("Project");
  1226. b.Navigation("TaskStatus");
  1227. });
  1228. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  1229. {
  1230. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  1231. .WithMany()
  1232. .HasForeignKey("AttachmentTypeId")
  1233. .OnDelete(DeleteBehavior.Cascade)
  1234. .IsRequired();
  1235. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  1236. .WithMany("TaskAttachments")
  1237. .HasForeignKey("TaskId")
  1238. .OnDelete(DeleteBehavior.Cascade)
  1239. .IsRequired();
  1240. b.Navigation("AttachmentType");
  1241. b.Navigation("UserTask");
  1242. });
  1243. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  1244. {
  1245. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  1246. .WithMany()
  1247. .HasForeignKey("CurrentStatusId")
  1248. .OnDelete(DeleteBehavior.Cascade)
  1249. .IsRequired();
  1250. b.HasOne("MTWorkHR.Core.Entities.UserTask", null)
  1251. .WithMany("UserTaskHistories")
  1252. .HasForeignKey("UserTaskId");
  1253. b.Navigation("TaskStatus");
  1254. });
  1255. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  1256. {
  1257. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
  1258. .WithMany()
  1259. .HasForeignKey("ManagerId");
  1260. b.Navigation("Manager");
  1261. });
  1262. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  1263. {
  1264. b.HasOne("MTWorkHR.Core.Entities.Permission", "Permission")
  1265. .WithMany()
  1266. .HasForeignKey("PermissionId")
  1267. .OnDelete(DeleteBehavior.Cascade)
  1268. .IsRequired();
  1269. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", "Role")
  1270. .WithMany("RolePermissions")
  1271. .HasForeignKey("RoleId")
  1272. .OnDelete(DeleteBehavior.Cascade)
  1273. .IsRequired();
  1274. b.Navigation("Permission");
  1275. b.Navigation("Role");
  1276. });
  1277. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  1278. {
  1279. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  1280. .WithOne("UserAddress")
  1281. .HasForeignKey("MTWorkHR.Infrastructure.Entities.UserAddress", "UserId")
  1282. .OnDelete(DeleteBehavior.Cascade)
  1283. .IsRequired();
  1284. b.Navigation("User");
  1285. });
  1286. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  1287. {
  1288. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  1289. .WithMany()
  1290. .HasForeignKey("AttachmentTypeId")
  1291. .OnDelete(DeleteBehavior.Cascade)
  1292. .IsRequired();
  1293. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  1294. .WithMany("UserAttachments")
  1295. .HasForeignKey("UserId")
  1296. .OnDelete(DeleteBehavior.Cascade)
  1297. .IsRequired();
  1298. b.Navigation("AttachmentType");
  1299. b.Navigation("User");
  1300. });
  1301. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  1302. {
  1303. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  1304. .WithMany()
  1305. .HasForeignKey("RoleId")
  1306. .OnDelete(DeleteBehavior.Cascade)
  1307. .IsRequired();
  1308. });
  1309. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  1310. {
  1311. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1312. .WithMany()
  1313. .HasForeignKey("UserId")
  1314. .OnDelete(DeleteBehavior.Cascade)
  1315. .IsRequired();
  1316. });
  1317. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  1318. {
  1319. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1320. .WithMany()
  1321. .HasForeignKey("UserId")
  1322. .OnDelete(DeleteBehavior.Cascade)
  1323. .IsRequired();
  1324. });
  1325. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  1326. {
  1327. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  1328. .WithMany()
  1329. .HasForeignKey("RoleId")
  1330. .OnDelete(DeleteBehavior.Cascade)
  1331. .IsRequired();
  1332. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1333. .WithMany()
  1334. .HasForeignKey("UserId")
  1335. .OnDelete(DeleteBehavior.Cascade)
  1336. .IsRequired();
  1337. });
  1338. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  1339. {
  1340. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1341. .WithMany()
  1342. .HasForeignKey("UserId")
  1343. .OnDelete(DeleteBehavior.Cascade)
  1344. .IsRequired();
  1345. });
  1346. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  1347. {
  1348. b.Navigation("MeetingUsers");
  1349. });
  1350. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  1351. {
  1352. b.Navigation("TeamUsers");
  1353. });
  1354. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1355. {
  1356. b.Navigation("TaskAttachments");
  1357. b.Navigation("UserTaskHistories");
  1358. });
  1359. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  1360. {
  1361. b.Navigation("RolePermissions");
  1362. });
  1363. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  1364. {
  1365. b.Navigation("UserAddress")
  1366. .IsRequired();
  1367. b.Navigation("UserAttachments");
  1368. });
  1369. #pragma warning restore 612, 618
  1370. }
  1371. }
  1372. }