20240407125448_JobTitles.Designer.cs 104 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831
  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("20240407125448_JobTitles")]
  14. partial class JobTitles
  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.Attendance", 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<DateTime>("AttendanceDate")
  42. .HasColumnType("datetime2");
  43. b.Property<DateTime?>("CheckInTime")
  44. .HasColumnType("datetime2");
  45. b.Property<DateTime?>("CheckOutTime")
  46. .HasColumnType("datetime2");
  47. b.Property<DateTime>("CreateDate")
  48. .HasColumnType("datetime2")
  49. .HasColumnOrder(3);
  50. b.Property<string>("CreateUser")
  51. .HasMaxLength(450)
  52. .HasColumnType("nvarchar(450)")
  53. .HasColumnOrder(1);
  54. b.Property<string>("DeleteUserId")
  55. .HasMaxLength(450)
  56. .HasColumnType("nvarchar(450)")
  57. .HasColumnOrder(8);
  58. b.Property<bool>("IsDeleted")
  59. .HasColumnType("bit")
  60. .HasColumnOrder(7);
  61. b.Property<string>("LeaveReason")
  62. .HasMaxLength(250)
  63. .HasColumnType("nvarchar(250)");
  64. b.Property<int>("LeaveType")
  65. .HasColumnType("int");
  66. b.Property<DateTime?>("UpdateDate")
  67. .HasColumnType("datetime2")
  68. .HasColumnOrder(4);
  69. b.Property<string>("UpdateUser")
  70. .HasMaxLength(450)
  71. .HasColumnType("nvarchar(450)")
  72. .HasColumnOrder(2);
  73. b.Property<string>("UserId")
  74. .IsRequired()
  75. .HasColumnType("nvarchar(max)");
  76. b.Property<string>("UserName")
  77. .HasColumnType("nvarchar(max)");
  78. b.HasKey("Id");
  79. b.ToTable("Attendances");
  80. });
  81. modelBuilder.Entity("MTWorkHR.Core.Entities.AttendanceLog", b =>
  82. {
  83. b.Property<long>("Id")
  84. .ValueGeneratedOnAdd()
  85. .HasColumnType("bigint")
  86. .HasColumnOrder(0);
  87. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  88. b.Property<string>("Channel")
  89. .HasColumnType("nvarchar(max)");
  90. b.Property<DateTime>("CreateDate")
  91. .HasColumnType("datetime2");
  92. b.Property<string>("CreateUser")
  93. .IsRequired()
  94. .HasColumnType("nvarchar(max)");
  95. b.Property<string>("ErrorCode")
  96. .IsRequired()
  97. .HasColumnType("nvarchar(max)");
  98. b.Property<string>("ErrorDescription")
  99. .IsRequired()
  100. .HasColumnType("nvarchar(max)");
  101. b.Property<string>("InnerException")
  102. .HasColumnType("nvarchar(max)");
  103. b.Property<string>("Input")
  104. .HasColumnType("nvarchar(max)");
  105. b.Property<string>("Method")
  106. .IsRequired()
  107. .HasColumnType("nvarchar(max)");
  108. b.Property<string>("QueryString")
  109. .HasColumnType("nvarchar(max)");
  110. b.Property<string>("ServerIP")
  111. .HasColumnType("nvarchar(max)");
  112. b.Property<string>("ServiceResponseTimeInSeconds")
  113. .IsRequired()
  114. .HasColumnType("nvarchar(max)");
  115. b.Property<string>("UserIP")
  116. .HasColumnType("nvarchar(max)");
  117. b.Property<string>("userAgent")
  118. .HasColumnType("nvarchar(max)");
  119. b.HasKey("Id");
  120. b.ToTable("AttendanceLogs");
  121. });
  122. modelBuilder.Entity("MTWorkHR.Core.Entities.AuthLog", b =>
  123. {
  124. b.Property<long>("Id")
  125. .ValueGeneratedOnAdd()
  126. .HasColumnType("bigint")
  127. .HasColumnOrder(0);
  128. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  129. b.Property<string>("Channel")
  130. .HasColumnType("nvarchar(max)");
  131. b.Property<DateTime>("CreateDate")
  132. .HasColumnType("datetime2");
  133. b.Property<string>("CreateUser")
  134. .IsRequired()
  135. .HasColumnType("nvarchar(max)");
  136. b.Property<string>("ErrorCode")
  137. .IsRequired()
  138. .HasColumnType("nvarchar(max)");
  139. b.Property<string>("ErrorDescription")
  140. .IsRequired()
  141. .HasColumnType("nvarchar(max)");
  142. b.Property<string>("InnerException")
  143. .HasColumnType("nvarchar(max)");
  144. b.Property<string>("Input")
  145. .HasColumnType("nvarchar(max)");
  146. b.Property<string>("Method")
  147. .IsRequired()
  148. .HasColumnType("nvarchar(max)");
  149. b.Property<string>("QueryString")
  150. .HasColumnType("nvarchar(max)");
  151. b.Property<string>("ServerIP")
  152. .HasColumnType("nvarchar(max)");
  153. b.Property<string>("ServiceResponseTimeInSeconds")
  154. .IsRequired()
  155. .HasColumnType("nvarchar(max)");
  156. b.Property<string>("UserIP")
  157. .HasColumnType("nvarchar(max)");
  158. b.Property<string>("userAgent")
  159. .HasColumnType("nvarchar(max)");
  160. b.HasKey("Id");
  161. b.ToTable("AuthLogs");
  162. });
  163. modelBuilder.Entity("MTWorkHR.Core.Entities.Base.AttachmentType", b =>
  164. {
  165. b.Property<long>("Id")
  166. .ValueGeneratedOnAdd()
  167. .HasColumnType("bigint")
  168. .HasColumnOrder(0);
  169. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  170. b.Property<bool>("IsRequired")
  171. .HasColumnType("bit");
  172. b.Property<string>("NameAr")
  173. .IsRequired()
  174. .HasMaxLength(250)
  175. .HasColumnType("nvarchar(250)");
  176. b.Property<string>("NameEn")
  177. .IsRequired()
  178. .HasMaxLength(250)
  179. .HasColumnType("nvarchar(250)");
  180. b.HasKey("Id");
  181. b.ToTable("AttachmentTypes");
  182. b.HasData(
  183. new
  184. {
  185. Id = 1L,
  186. IsRequired = false,
  187. NameAr = "السيرة الذاتية",
  188. NameEn = "CV"
  189. },
  190. new
  191. {
  192. Id = 2L,
  193. IsRequired = false,
  194. NameAr = "الهوية",
  195. NameEn = "Identification"
  196. });
  197. });
  198. modelBuilder.Entity("MTWorkHR.Core.Entities.Company", b =>
  199. {
  200. b.Property<long>("Id")
  201. .ValueGeneratedOnAdd()
  202. .HasColumnType("bigint")
  203. .HasColumnOrder(0);
  204. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  205. b.Property<string>("CRNumber")
  206. .IsRequired()
  207. .HasColumnType("nvarchar(max)");
  208. b.Property<string>("CompanyName")
  209. .IsRequired()
  210. .HasColumnType("nvarchar(max)");
  211. b.Property<DateTime>("CreateDate")
  212. .HasColumnType("datetime2")
  213. .HasColumnOrder(3);
  214. b.Property<string>("CreateUser")
  215. .HasMaxLength(450)
  216. .HasColumnType("nvarchar(450)")
  217. .HasColumnOrder(1);
  218. b.Property<string>("DeleteUserId")
  219. .HasMaxLength(450)
  220. .HasColumnType("nvarchar(450)")
  221. .HasColumnOrder(8);
  222. b.Property<bool>("IsDeleted")
  223. .HasColumnType("bit")
  224. .HasColumnOrder(7);
  225. b.Property<int>("TaxNumber")
  226. .HasColumnType("int");
  227. b.Property<DateTime?>("UpdateDate")
  228. .HasColumnType("datetime2")
  229. .HasColumnOrder(4);
  230. b.Property<string>("UpdateUser")
  231. .HasMaxLength(450)
  232. .HasColumnType("nvarchar(450)")
  233. .HasColumnOrder(2);
  234. b.Property<string>("UserId")
  235. .IsRequired()
  236. .HasColumnType("nvarchar(max)");
  237. b.HasKey("Id");
  238. b.ToTable("Companies");
  239. });
  240. modelBuilder.Entity("MTWorkHR.Core.Entities.CountryLookup", b =>
  241. {
  242. b.Property<long>("Id")
  243. .ValueGeneratedOnAdd()
  244. .HasColumnType("bigint")
  245. .HasColumnOrder(0);
  246. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  247. b.Property<string>("Code")
  248. .IsRequired()
  249. .HasColumnType("nvarchar(max)");
  250. b.Property<string>("NameAr")
  251. .IsRequired()
  252. .HasMaxLength(250)
  253. .HasColumnType("nvarchar(250)");
  254. b.Property<string>("NameEn")
  255. .IsRequired()
  256. .HasMaxLength(250)
  257. .HasColumnType("nvarchar(250)");
  258. b.HasKey("Id");
  259. b.ToTable("CountryLookups");
  260. });
  261. modelBuilder.Entity("MTWorkHR.Core.Entities.FileLog", b =>
  262. {
  263. b.Property<long>("Id")
  264. .ValueGeneratedOnAdd()
  265. .HasColumnType("bigint")
  266. .HasColumnOrder(0);
  267. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  268. b.Property<string>("Channel")
  269. .HasColumnType("nvarchar(max)");
  270. b.Property<DateTime>("CreateDate")
  271. .HasColumnType("datetime2");
  272. b.Property<string>("CreateUser")
  273. .IsRequired()
  274. .HasColumnType("nvarchar(max)");
  275. b.Property<string>("ErrorCode")
  276. .IsRequired()
  277. .HasColumnType("nvarchar(max)");
  278. b.Property<string>("ErrorDescription")
  279. .IsRequired()
  280. .HasColumnType("nvarchar(max)");
  281. b.Property<string>("InnerException")
  282. .HasColumnType("nvarchar(max)");
  283. b.Property<string>("Input")
  284. .HasColumnType("nvarchar(max)");
  285. b.Property<string>("Method")
  286. .IsRequired()
  287. .HasColumnType("nvarchar(max)");
  288. b.Property<string>("QueryString")
  289. .HasColumnType("nvarchar(max)");
  290. b.Property<string>("ServerIP")
  291. .HasColumnType("nvarchar(max)");
  292. b.Property<string>("ServiceResponseTimeInSeconds")
  293. .IsRequired()
  294. .HasColumnType("nvarchar(max)");
  295. b.Property<string>("UserIP")
  296. .HasColumnType("nvarchar(max)");
  297. b.Property<string>("userAgent")
  298. .HasColumnType("nvarchar(max)");
  299. b.HasKey("Id");
  300. b.ToTable("FileLogs");
  301. });
  302. modelBuilder.Entity("MTWorkHR.Core.Entities.Industry", b =>
  303. {
  304. b.Property<long>("Id")
  305. .ValueGeneratedOnAdd()
  306. .HasColumnType("bigint")
  307. .HasColumnOrder(0);
  308. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  309. b.Property<string>("NameAr")
  310. .IsRequired()
  311. .HasMaxLength(250)
  312. .HasColumnType("nvarchar(250)");
  313. b.Property<string>("NameEn")
  314. .IsRequired()
  315. .HasMaxLength(250)
  316. .HasColumnType("nvarchar(250)");
  317. b.HasKey("Id");
  318. b.ToTable("Industries");
  319. b.HasData(
  320. new
  321. {
  322. Id = 1L,
  323. NameAr = "صناعة الطيران والفضاء",
  324. NameEn = "Aerospace industry"
  325. },
  326. new
  327. {
  328. Id = 2L,
  329. NameAr = "صناعة الزراعة",
  330. NameEn = "Agricultural industry"
  331. },
  332. new
  333. {
  334. Id = 3L,
  335. NameAr = "صناعة السيارات",
  336. NameEn = "Automotive industry"
  337. },
  338. new
  339. {
  340. Id = 4L,
  341. NameAr = "صناعة المعادن الأساسية",
  342. NameEn = "Basic metal"
  343. },
  344. new
  345. {
  346. Id = 5L,
  347. NameAr = "صناعة الكيماويات",
  348. NameEn = "Chemical industry"
  349. },
  350. new
  351. {
  352. Id = 6L,
  353. NameAr = "صناعة الحواسيب",
  354. NameEn = "Computer industry"
  355. },
  356. new
  357. {
  358. Id = 7L,
  359. NameAr = "صناعة البناء",
  360. NameEn = "Construction industry"
  361. },
  362. new
  363. {
  364. Id = 8L,
  365. NameAr = "صناعة الإبداعية",
  366. NameEn = "Creative industry"
  367. },
  368. new
  369. {
  370. Id = 9L,
  371. NameAr = "صناعة الثقافة",
  372. NameEn = "Cultural industry"
  373. },
  374. new
  375. {
  376. Id = 10L,
  377. NameAr = "صناعة الدفاع",
  378. NameEn = "Defense industry"
  379. },
  380. new
  381. {
  382. Id = 11L,
  383. NameAr = "صناعة التعليم",
  384. NameEn = "Education industry"
  385. },
  386. new
  387. {
  388. Id = 12L,
  389. NameAr = "صناعة الطاقة الكهربائية",
  390. NameEn = "Electric power"
  391. },
  392. new
  393. {
  394. Id = 13L,
  395. NameAr = "صناعة الإلكترونيات",
  396. NameEn = "Electronics industry"
  397. },
  398. new
  399. {
  400. Id = 14L,
  401. NameAr = "صناعة الطاقة",
  402. NameEn = "Energy industry"
  403. },
  404. new
  405. {
  406. Id = 15L,
  407. NameAr = "صناعة الهندسة",
  408. NameEn = "Engineering industry"
  409. },
  410. new
  411. {
  412. Id = 16L,
  413. NameAr = "صناعة الترفيه",
  414. NameEn = "Entertainment industry"
  415. },
  416. new
  417. {
  418. Id = 17L,
  419. NameAr = "صناعة الزراعة",
  420. NameEn = "Farming industry"
  421. },
  422. new
  423. {
  424. Id = 18L,
  425. NameAr = "صناعة الموضة",
  426. NameEn = "Fashion industry"
  427. },
  428. new
  429. {
  430. Id = 19L,
  431. NameAr = "صناعة السينما",
  432. NameEn = "Film industry"
  433. },
  434. new
  435. {
  436. Id = 20L,
  437. NameAr = "صناعة الخدمات المالية",
  438. NameEn = "Financial services"
  439. },
  440. new
  441. {
  442. Id = 21L,
  443. NameAr = "صناعة الصيد",
  444. NameEn = "Fishing industry"
  445. },
  446. new
  447. {
  448. Id = 22L,
  449. NameAr = "صناعة الأغذية",
  450. NameEn = "Food industry"
  451. },
  452. new
  453. {
  454. Id = 23L,
  455. NameAr = "صناعة الغابات",
  456. NameEn = "Forestry industry"
  457. },
  458. new
  459. {
  460. Id = 24L,
  461. NameAr = "صناعة القمار",
  462. NameEn = "Gambling industry"
  463. },
  464. new
  465. {
  466. Id = 25L,
  467. NameAr = "صناعة الغاز",
  468. NameEn = "Gas industry"
  469. },
  470. new
  471. {
  472. Id = 26L,
  473. NameAr = "صناعة البيئة",
  474. NameEn = "Green industry"
  475. },
  476. new
  477. {
  478. Id = 27L,
  479. NameAr = "صناعة الخدمات الصحية",
  480. NameEn = "Health services industry"
  481. },
  482. new
  483. {
  484. Id = 28L,
  485. NameAr = "صناعة الضيافة",
  486. NameEn = "Hospitality industry"
  487. },
  488. new
  489. {
  490. Id = 29L,
  491. NameAr = "صناعة الفنادق",
  492. NameEn = "Hotels industry"
  493. },
  494. new
  495. {
  496. Id = 30L,
  497. NameAr = "صناعة الروبوتات الصناعية",
  498. NameEn = "Industrial robot"
  499. },
  500. new
  501. {
  502. Id = 31L,
  503. NameAr = "صناعة المعلومات",
  504. NameEn = "Information industry"
  505. },
  506. new
  507. {
  508. Id = 32L,
  509. NameAr = "صناعة تكنولوجيا المعلومات",
  510. NameEn = "Information technology"
  511. },
  512. new
  513. {
  514. Id = 33L,
  515. NameAr = "صناعة البنية التحتية",
  516. NameEn = "Infrastructure industry"
  517. },
  518. new
  519. {
  520. Id = 34L,
  521. NameAr = "صناعة التأمين",
  522. NameEn = "Insurance industry"
  523. },
  524. new
  525. {
  526. Id = 35L,
  527. NameAr = "صناعة الترفيه",
  528. NameEn = "Leisure industry"
  529. },
  530. new
  531. {
  532. Id = 36L,
  533. NameAr = "صناعة التكنولوجيا المنخفضة",
  534. NameEn = "Low technology"
  535. },
  536. new
  537. {
  538. Id = 37L,
  539. NameAr = "صناعة التصنيع",
  540. NameEn = "Manufacturing industry"
  541. },
  542. new
  543. {
  544. Id = 38L,
  545. NameAr = "صناعة اللحوم",
  546. NameEn = "Meat industry"
  547. },
  548. new
  549. {
  550. Id = 39L,
  551. NameAr = "صناعة الإعلام",
  552. NameEn = "Media industry"
  553. },
  554. new
  555. {
  556. Id = 40L,
  557. NameAr = "صناعة التجارة",
  558. NameEn = "Merchandising industry"
  559. },
  560. new
  561. {
  562. Id = 41L,
  563. NameAr = "صناعة التعدين",
  564. NameEn = "Mining industry"
  565. },
  566. new
  567. {
  568. Id = 42L,
  569. NameAr = "صناعة الموسيقى",
  570. NameEn = "Music industry"
  571. },
  572. new
  573. {
  574. Id = 43L,
  575. NameAr = "صناعة وسائل الإعلام",
  576. NameEn = "News media"
  577. },
  578. new
  579. {
  580. Id = 44L,
  581. NameAr = "صناعة النفط والغاز",
  582. NameEn = "Oil and gas industry"
  583. },
  584. new
  585. {
  586. Id = 45L,
  587. NameAr = "صناعة الأدوية",
  588. NameEn = "Pharmaceutical industry"
  589. },
  590. new
  591. {
  592. Id = 46L,
  593. NameAr = "صناعة المهنية",
  594. NameEn = "Professional industry"
  595. },
  596. new
  597. {
  598. Id = 47L,
  599. NameAr = "صناعة النشر",
  600. NameEn = "Publishing industry"
  601. },
  602. new
  603. {
  604. Id = 48L,
  605. NameAr = "صناعة الورق واللب",
  606. NameEn = "Pulp and paper industry"
  607. },
  608. new
  609. {
  610. Id = 49L,
  611. NameAr = "صناعة السكك الحديدية",
  612. NameEn = "Railway industry"
  613. },
  614. new
  615. {
  616. Id = 50L,
  617. NameAr = "الانشاءات",
  618. NameEn = "Real estate"
  619. });
  620. });
  621. modelBuilder.Entity("MTWorkHR.Core.Entities.JobTitle", b =>
  622. {
  623. b.Property<long>("Id")
  624. .ValueGeneratedOnAdd()
  625. .HasColumnType("bigint")
  626. .HasColumnOrder(0);
  627. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  628. b.Property<string>("NameAr")
  629. .IsRequired()
  630. .HasMaxLength(250)
  631. .HasColumnType("nvarchar(250)");
  632. b.Property<string>("NameEn")
  633. .IsRequired()
  634. .HasMaxLength(250)
  635. .HasColumnType("nvarchar(250)");
  636. b.HasKey("Id");
  637. b.ToTable("JobTitles");
  638. b.HasData(
  639. new
  640. {
  641. Id = 1L,
  642. NameAr = "مساعد ادارى",
  643. NameEn = "Administrative Assistant"
  644. },
  645. new
  646. {
  647. Id = 2L,
  648. NameAr = "موظف استقبال",
  649. NameEn = "Receptionist"
  650. },
  651. new
  652. {
  653. Id = 3L,
  654. NameAr = "مدير مكتب",
  655. NameEn = "Office Manager"
  656. },
  657. new
  658. {
  659. Id = 4L,
  660. NameAr = "مدقق محتوى",
  661. NameEn = "Auditing Clerk"
  662. },
  663. new
  664. {
  665. Id = 5L,
  666. NameAr = "محاسب",
  667. NameEn = "Bookkeeper"
  668. },
  669. new
  670. {
  671. Id = 6L,
  672. NameAr = "مدير تنفيذى",
  673. NameEn = "Account Executive"
  674. },
  675. new
  676. {
  677. Id = 7L,
  678. NameAr = "مدير فرع",
  679. NameEn = "Branch Manager"
  680. },
  681. new
  682. {
  683. Id = 8L,
  684. NameAr = "مدير",
  685. NameEn = "Business Manager"
  686. },
  687. new
  688. {
  689. Id = 9L,
  690. NameAr = "مسؤول الجودة",
  691. NameEn = "Quality Control Coordinator"
  692. },
  693. new
  694. {
  695. Id = 10L,
  696. NameAr = "مدير ادارى",
  697. NameEn = "Administrative Manager"
  698. },
  699. new
  700. {
  701. Id = 11L,
  702. NameAr = "الرئيس التنفيذي",
  703. NameEn = "Chief Executive Officer"
  704. },
  705. new
  706. {
  707. Id = 12L,
  708. NameAr = "محلل",
  709. NameEn = "Business Analyst"
  710. },
  711. new
  712. {
  713. Id = 13L,
  714. NameAr = "مدير المخاطر",
  715. NameEn = "Risk Manager"
  716. },
  717. new
  718. {
  719. Id = 14L,
  720. NameAr = "موارد بشرية",
  721. NameEn = "Human Resources"
  722. },
  723. new
  724. {
  725. Id = 15L,
  726. NameAr = "مساعد مكتب",
  727. NameEn = "Office Assistant"
  728. },
  729. new
  730. {
  731. Id = 16L,
  732. NameAr = "السكرتارية",
  733. NameEn = "Secretary"
  734. },
  735. new
  736. {
  737. Id = 17L,
  738. NameAr = "موظف مكتب",
  739. NameEn = "Office Clerk"
  740. },
  741. new
  742. {
  743. Id = 18L,
  744. NameAr = "جامع الحسابات",
  745. NameEn = "Account Collector"
  746. },
  747. new
  748. {
  749. Id = 19L,
  750. NameAr = "أخصائي إداري",
  751. NameEn = "Administrative Specialist"
  752. },
  753. new
  754. {
  755. Id = 20L,
  756. NameAr = "مساعد تنفيذي",
  757. NameEn = "Executive Assistant"
  758. },
  759. new
  760. {
  761. Id = 21L,
  762. NameAr = "مسؤل البرنامج",
  763. NameEn = "Program Administrator"
  764. },
  765. new
  766. {
  767. Id = 22L,
  768. NameAr = "مدير البرنامج",
  769. NameEn = "Program Manager"
  770. },
  771. new
  772. {
  773. Id = 23L,
  774. NameAr = "محلل إداري",
  775. NameEn = "Administrative Analyst"
  776. },
  777. new
  778. {
  779. Id = 24L,
  780. NameAr = "مدخل بيانات",
  781. NameEn = "Data Entry"
  782. });
  783. });
  784. modelBuilder.Entity("MTWorkHR.Core.Entities.LeaveType", b =>
  785. {
  786. b.Property<long>("Id")
  787. .ValueGeneratedOnAdd()
  788. .HasColumnType("bigint")
  789. .HasColumnOrder(0);
  790. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  791. b.Property<int>("DefaultDays")
  792. .HasColumnType("int");
  793. b.Property<string>("NameAr")
  794. .IsRequired()
  795. .HasColumnType("nvarchar(max)");
  796. b.Property<string>("NameEn")
  797. .IsRequired()
  798. .HasColumnType("nvarchar(max)");
  799. b.HasKey("Id");
  800. b.ToTable("LeaveTypes");
  801. b.HasData(
  802. new
  803. {
  804. Id = 1L,
  805. DefaultDays = 21,
  806. NameAr = "أجازة سنوية",
  807. NameEn = "Annual Leave"
  808. },
  809. new
  810. {
  811. Id = 2L,
  812. DefaultDays = 15,
  813. NameAr = "أجازة مرضية",
  814. NameEn = "Sick Leave"
  815. },
  816. new
  817. {
  818. Id = 3L,
  819. DefaultDays = 20,
  820. NameAr = "أجازة زواج",
  821. NameEn = "Marriage Leave"
  822. },
  823. new
  824. {
  825. Id = 4L,
  826. DefaultDays = 10,
  827. NameAr = "أجازة وضع",
  828. NameEn = "Paternity leave"
  829. },
  830. new
  831. {
  832. Id = 5L,
  833. DefaultDays = 10,
  834. NameAr = "أجازة طارئة",
  835. NameEn = "Emergency leave"
  836. });
  837. });
  838. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  839. {
  840. b.Property<long>("Id")
  841. .ValueGeneratedOnAdd()
  842. .HasColumnType("bigint")
  843. .HasColumnOrder(0);
  844. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  845. b.Property<DateTime>("CreateDate")
  846. .HasColumnType("datetime2")
  847. .HasColumnOrder(3);
  848. b.Property<string>("CreateUser")
  849. .HasMaxLength(450)
  850. .HasColumnType("nvarchar(450)")
  851. .HasColumnOrder(1);
  852. b.Property<string>("DeleteUserId")
  853. .HasMaxLength(450)
  854. .HasColumnType("nvarchar(450)")
  855. .HasColumnOrder(8);
  856. b.Property<string>("Description")
  857. .HasMaxLength(500)
  858. .HasColumnType("nvarchar(500)");
  859. b.Property<DateTime>("EndDate")
  860. .HasColumnType("datetime2");
  861. b.Property<bool>("IsDeleted")
  862. .HasColumnType("bit")
  863. .HasColumnOrder(7);
  864. b.Property<string>("Location")
  865. .HasMaxLength(250)
  866. .HasColumnType("nvarchar(250)");
  867. b.Property<string>("MeetingLink")
  868. .HasMaxLength(250)
  869. .HasColumnType("nvarchar(250)");
  870. b.Property<DateTime>("StartDate")
  871. .HasColumnType("datetime2");
  872. b.Property<string>("Title")
  873. .IsRequired()
  874. .HasMaxLength(250)
  875. .HasColumnType("nvarchar(250)");
  876. b.Property<DateTime?>("UpdateDate")
  877. .HasColumnType("datetime2")
  878. .HasColumnOrder(4);
  879. b.Property<string>("UpdateUser")
  880. .HasMaxLength(450)
  881. .HasColumnType("nvarchar(450)")
  882. .HasColumnOrder(2);
  883. b.HasKey("Id");
  884. b.ToTable("Meetings");
  885. });
  886. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingLog", b =>
  887. {
  888. b.Property<long>("Id")
  889. .ValueGeneratedOnAdd()
  890. .HasColumnType("bigint")
  891. .HasColumnOrder(0);
  892. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  893. b.Property<string>("Channel")
  894. .HasColumnType("nvarchar(max)");
  895. b.Property<DateTime>("CreateDate")
  896. .HasColumnType("datetime2");
  897. b.Property<string>("CreateUser")
  898. .IsRequired()
  899. .HasColumnType("nvarchar(max)");
  900. b.Property<string>("ErrorCode")
  901. .IsRequired()
  902. .HasColumnType("nvarchar(max)");
  903. b.Property<string>("ErrorDescription")
  904. .IsRequired()
  905. .HasColumnType("nvarchar(max)");
  906. b.Property<string>("InnerException")
  907. .HasColumnType("nvarchar(max)");
  908. b.Property<string>("Input")
  909. .HasColumnType("nvarchar(max)");
  910. b.Property<string>("Method")
  911. .IsRequired()
  912. .HasColumnType("nvarchar(max)");
  913. b.Property<string>("QueryString")
  914. .HasColumnType("nvarchar(max)");
  915. b.Property<string>("ServerIP")
  916. .HasColumnType("nvarchar(max)");
  917. b.Property<string>("ServiceResponseTimeInSeconds")
  918. .IsRequired()
  919. .HasColumnType("nvarchar(max)");
  920. b.Property<string>("UserIP")
  921. .HasColumnType("nvarchar(max)");
  922. b.Property<string>("userAgent")
  923. .HasColumnType("nvarchar(max)");
  924. b.HasKey("Id");
  925. b.ToTable("MeetingLogs");
  926. });
  927. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  928. {
  929. b.Property<long>("Id")
  930. .ValueGeneratedOnAdd()
  931. .HasColumnType("bigint")
  932. .HasColumnOrder(0);
  933. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  934. b.Property<string>("AssignedUserId")
  935. .IsRequired()
  936. .HasColumnType("nvarchar(max)");
  937. b.Property<DateTime>("CreateDate")
  938. .HasColumnType("datetime2")
  939. .HasColumnOrder(3);
  940. b.Property<string>("CreateUser")
  941. .HasMaxLength(450)
  942. .HasColumnType("nvarchar(450)")
  943. .HasColumnOrder(1);
  944. b.Property<long>("MeetingId")
  945. .HasColumnType("bigint");
  946. b.Property<DateTime?>("UpdateDate")
  947. .HasColumnType("datetime2")
  948. .HasColumnOrder(4);
  949. b.Property<string>("UpdateUser")
  950. .HasMaxLength(450)
  951. .HasColumnType("nvarchar(450)")
  952. .HasColumnOrder(2);
  953. b.HasKey("Id");
  954. b.HasIndex("MeetingId");
  955. b.ToTable("MeetingUser");
  956. });
  957. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderAllocation", b =>
  958. {
  959. b.Property<long>("Id")
  960. .ValueGeneratedOnAdd()
  961. .HasColumnType("bigint")
  962. .HasColumnOrder(0);
  963. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  964. b.Property<DateTime>("CreateDate")
  965. .HasColumnType("datetime2")
  966. .HasColumnOrder(3);
  967. b.Property<string>("CreateUser")
  968. .HasMaxLength(450)
  969. .HasColumnType("nvarchar(450)")
  970. .HasColumnOrder(1);
  971. b.Property<string>("EmployeeId")
  972. .IsRequired()
  973. .HasColumnType("nvarchar(max)");
  974. b.Property<long?>("LeaveTypeId")
  975. .HasColumnType("bigint");
  976. b.Property<int>("NumberOfDays")
  977. .HasColumnType("int");
  978. b.Property<long>("OrderTypeId")
  979. .HasColumnType("bigint");
  980. b.Property<int>("Period")
  981. .HasColumnType("int");
  982. b.Property<DateTime?>("UpdateDate")
  983. .HasColumnType("datetime2")
  984. .HasColumnOrder(4);
  985. b.Property<string>("UpdateUser")
  986. .HasMaxLength(450)
  987. .HasColumnType("nvarchar(450)")
  988. .HasColumnOrder(2);
  989. b.HasKey("Id");
  990. b.HasIndex("LeaveTypeId");
  991. b.HasIndex("OrderTypeId");
  992. b.ToTable("OrderAllocations");
  993. });
  994. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderType", b =>
  995. {
  996. b.Property<long>("Id")
  997. .ValueGeneratedOnAdd()
  998. .HasColumnType("bigint")
  999. .HasColumnOrder(0);
  1000. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1001. b.Property<int>("DefaultDays")
  1002. .HasColumnType("int");
  1003. b.Property<string>("NameAr")
  1004. .IsRequired()
  1005. .HasColumnType("nvarchar(max)");
  1006. b.Property<string>("NameEn")
  1007. .IsRequired()
  1008. .HasColumnType("nvarchar(max)");
  1009. b.HasKey("Id");
  1010. b.ToTable("OrderTypes");
  1011. b.HasData(
  1012. new
  1013. {
  1014. Id = 1L,
  1015. DefaultDays = 2,
  1016. NameAr = "إذن",
  1017. NameEn = "Leave"
  1018. },
  1019. new
  1020. {
  1021. Id = 2L,
  1022. DefaultDays = 15,
  1023. NameAr = "طبية",
  1024. NameEn = "Medical"
  1025. },
  1026. new
  1027. {
  1028. Id = 3L,
  1029. DefaultDays = 20,
  1030. NameAr = "وقت إضافي",
  1031. NameEn = "Overtime"
  1032. },
  1033. new
  1034. {
  1035. Id = 4L,
  1036. DefaultDays = 0,
  1037. NameAr = "رحلة عمل",
  1038. NameEn = "Business trip"
  1039. },
  1040. new
  1041. {
  1042. Id = 5L,
  1043. DefaultDays = 0,
  1044. NameAr = "دورة تدريبية",
  1045. NameEn = "Course"
  1046. });
  1047. });
  1048. modelBuilder.Entity("MTWorkHR.Core.Entities.Permission", b =>
  1049. {
  1050. b.Property<long>("Id")
  1051. .ValueGeneratedOnAdd()
  1052. .HasColumnType("bigint")
  1053. .HasColumnOrder(0);
  1054. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1055. b.Property<string>("CategoryName")
  1056. .IsRequired()
  1057. .HasMaxLength(150)
  1058. .HasColumnType("nvarchar(150)");
  1059. b.Property<string>("Desc")
  1060. .IsRequired()
  1061. .HasMaxLength(250)
  1062. .HasColumnType("nvarchar(250)");
  1063. b.Property<string>("Name")
  1064. .IsRequired()
  1065. .HasMaxLength(250)
  1066. .HasColumnType("nvarchar(250)");
  1067. b.Property<bool>("Show")
  1068. .HasColumnType("bit");
  1069. b.HasKey("Id");
  1070. b.ToTable("Permissions");
  1071. });
  1072. modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
  1073. {
  1074. b.Property<long>("Id")
  1075. .ValueGeneratedOnAdd()
  1076. .HasColumnType("bigint")
  1077. .HasColumnOrder(0);
  1078. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1079. b.Property<DateTime>("CreateDate")
  1080. .HasColumnType("datetime2")
  1081. .HasColumnOrder(3);
  1082. b.Property<string>("CreateUser")
  1083. .HasMaxLength(450)
  1084. .HasColumnType("nvarchar(450)")
  1085. .HasColumnOrder(1);
  1086. b.Property<string>("DeleteUserId")
  1087. .HasMaxLength(450)
  1088. .HasColumnType("nvarchar(450)")
  1089. .HasColumnOrder(8);
  1090. b.Property<bool>("IsDeleted")
  1091. .HasColumnType("bit")
  1092. .HasColumnOrder(7);
  1093. b.Property<string>("NameAr")
  1094. .IsRequired()
  1095. .HasMaxLength(250)
  1096. .HasColumnType("nvarchar(250)");
  1097. b.Property<string>("NameEn")
  1098. .IsRequired()
  1099. .HasMaxLength(250)
  1100. .HasColumnType("nvarchar(250)");
  1101. b.Property<DateTime?>("UpdateDate")
  1102. .HasColumnType("datetime2")
  1103. .HasColumnOrder(4);
  1104. b.Property<string>("UpdateUser")
  1105. .HasMaxLength(450)
  1106. .HasColumnType("nvarchar(450)")
  1107. .HasColumnOrder(2);
  1108. b.HasKey("Id");
  1109. b.ToTable("Projects");
  1110. });
  1111. modelBuilder.Entity("MTWorkHR.Core.Entities.Qualification", b =>
  1112. {
  1113. b.Property<long>("Id")
  1114. .ValueGeneratedOnAdd()
  1115. .HasColumnType("bigint")
  1116. .HasColumnOrder(0);
  1117. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1118. b.Property<string>("NameAr")
  1119. .IsRequired()
  1120. .HasMaxLength(250)
  1121. .HasColumnType("nvarchar(250)");
  1122. b.Property<string>("NameEn")
  1123. .IsRequired()
  1124. .HasMaxLength(250)
  1125. .HasColumnType("nvarchar(250)");
  1126. b.HasKey("Id");
  1127. b.ToTable("Qualifications");
  1128. });
  1129. modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
  1130. {
  1131. b.Property<long>("Id")
  1132. .ValueGeneratedOnAdd()
  1133. .HasColumnType("bigint")
  1134. .HasColumnOrder(0);
  1135. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1136. b.Property<string>("Channel")
  1137. .HasColumnType("nvarchar(max)");
  1138. b.Property<DateTime>("CreateDate")
  1139. .HasColumnType("datetime2");
  1140. b.Property<string>("CreateUser")
  1141. .IsRequired()
  1142. .HasColumnType("nvarchar(max)");
  1143. b.Property<string>("ErrorCode")
  1144. .IsRequired()
  1145. .HasColumnType("nvarchar(max)");
  1146. b.Property<string>("ErrorDescription")
  1147. .IsRequired()
  1148. .HasColumnType("nvarchar(max)");
  1149. b.Property<string>("InnerException")
  1150. .HasColumnType("nvarchar(max)");
  1151. b.Property<string>("Input")
  1152. .HasColumnType("nvarchar(max)");
  1153. b.Property<string>("Method")
  1154. .IsRequired()
  1155. .HasColumnType("nvarchar(max)");
  1156. b.Property<string>("QueryString")
  1157. .HasColumnType("nvarchar(max)");
  1158. b.Property<string>("ServerIP")
  1159. .HasColumnType("nvarchar(max)");
  1160. b.Property<string>("ServiceResponseTimeInSeconds")
  1161. .IsRequired()
  1162. .HasColumnType("nvarchar(max)");
  1163. b.Property<string>("UserIP")
  1164. .HasColumnType("nvarchar(max)");
  1165. b.Property<string>("userAgent")
  1166. .HasColumnType("nvarchar(max)");
  1167. b.HasKey("Id");
  1168. b.ToTable("RoleLogs");
  1169. });
  1170. modelBuilder.Entity("MTWorkHR.Core.Entities.SettingLog", b =>
  1171. {
  1172. b.Property<long>("Id")
  1173. .ValueGeneratedOnAdd()
  1174. .HasColumnType("bigint")
  1175. .HasColumnOrder(0);
  1176. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1177. b.Property<string>("Channel")
  1178. .HasColumnType("nvarchar(max)");
  1179. b.Property<DateTime>("CreateDate")
  1180. .HasColumnType("datetime2");
  1181. b.Property<string>("CreateUser")
  1182. .IsRequired()
  1183. .HasColumnType("nvarchar(max)");
  1184. b.Property<string>("ErrorCode")
  1185. .IsRequired()
  1186. .HasColumnType("nvarchar(max)");
  1187. b.Property<string>("ErrorDescription")
  1188. .IsRequired()
  1189. .HasColumnType("nvarchar(max)");
  1190. b.Property<string>("InnerException")
  1191. .HasColumnType("nvarchar(max)");
  1192. b.Property<string>("Input")
  1193. .HasColumnType("nvarchar(max)");
  1194. b.Property<string>("Method")
  1195. .IsRequired()
  1196. .HasColumnType("nvarchar(max)");
  1197. b.Property<string>("QueryString")
  1198. .HasColumnType("nvarchar(max)");
  1199. b.Property<string>("ServerIP")
  1200. .HasColumnType("nvarchar(max)");
  1201. b.Property<string>("ServiceResponseTimeInSeconds")
  1202. .IsRequired()
  1203. .HasColumnType("nvarchar(max)");
  1204. b.Property<string>("UserIP")
  1205. .HasColumnType("nvarchar(max)");
  1206. b.Property<string>("userAgent")
  1207. .HasColumnType("nvarchar(max)");
  1208. b.HasKey("Id");
  1209. b.ToTable("SettingLogs");
  1210. });
  1211. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  1212. {
  1213. b.Property<long>("Id")
  1214. .ValueGeneratedOnAdd()
  1215. .HasColumnType("bigint")
  1216. .HasColumnOrder(0);
  1217. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1218. b.Property<DateTime>("CreateDate")
  1219. .HasColumnType("datetime2")
  1220. .HasColumnOrder(3);
  1221. b.Property<string>("CreateUser")
  1222. .HasMaxLength(450)
  1223. .HasColumnType("nvarchar(450)")
  1224. .HasColumnOrder(1);
  1225. b.Property<string>("DeleteUserId")
  1226. .HasMaxLength(450)
  1227. .HasColumnType("nvarchar(450)")
  1228. .HasColumnOrder(8);
  1229. b.Property<bool>("IsDeleted")
  1230. .HasColumnType("bit")
  1231. .HasColumnOrder(7);
  1232. b.Property<string>("NameAr")
  1233. .IsRequired()
  1234. .HasMaxLength(250)
  1235. .HasColumnType("nvarchar(250)");
  1236. b.Property<string>("NameEn")
  1237. .IsRequired()
  1238. .HasMaxLength(250)
  1239. .HasColumnType("nvarchar(250)");
  1240. b.Property<DateTime?>("UpdateDate")
  1241. .HasColumnType("datetime2")
  1242. .HasColumnOrder(4);
  1243. b.Property<string>("UpdateUser")
  1244. .HasMaxLength(450)
  1245. .HasColumnType("nvarchar(450)")
  1246. .HasColumnOrder(2);
  1247. b.HasKey("Id");
  1248. b.ToTable("Teams");
  1249. });
  1250. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamLog", b =>
  1251. {
  1252. b.Property<long>("Id")
  1253. .ValueGeneratedOnAdd()
  1254. .HasColumnType("bigint")
  1255. .HasColumnOrder(0);
  1256. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1257. b.Property<string>("Channel")
  1258. .HasColumnType("nvarchar(max)");
  1259. b.Property<DateTime>("CreateDate")
  1260. .HasColumnType("datetime2");
  1261. b.Property<string>("CreateUser")
  1262. .IsRequired()
  1263. .HasColumnType("nvarchar(max)");
  1264. b.Property<string>("ErrorCode")
  1265. .IsRequired()
  1266. .HasColumnType("nvarchar(max)");
  1267. b.Property<string>("ErrorDescription")
  1268. .IsRequired()
  1269. .HasColumnType("nvarchar(max)");
  1270. b.Property<string>("InnerException")
  1271. .HasColumnType("nvarchar(max)");
  1272. b.Property<string>("Input")
  1273. .HasColumnType("nvarchar(max)");
  1274. b.Property<string>("Method")
  1275. .IsRequired()
  1276. .HasColumnType("nvarchar(max)");
  1277. b.Property<string>("QueryString")
  1278. .HasColumnType("nvarchar(max)");
  1279. b.Property<string>("ServerIP")
  1280. .HasColumnType("nvarchar(max)");
  1281. b.Property<string>("ServiceResponseTimeInSeconds")
  1282. .IsRequired()
  1283. .HasColumnType("nvarchar(max)");
  1284. b.Property<string>("UserIP")
  1285. .HasColumnType("nvarchar(max)");
  1286. b.Property<string>("userAgent")
  1287. .HasColumnType("nvarchar(max)");
  1288. b.HasKey("Id");
  1289. b.ToTable("TeamLogs");
  1290. });
  1291. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  1292. {
  1293. b.Property<long>("Id")
  1294. .ValueGeneratedOnAdd()
  1295. .HasColumnType("bigint")
  1296. .HasColumnOrder(0);
  1297. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1298. b.Property<string>("AssignedUserId")
  1299. .IsRequired()
  1300. .HasColumnType("nvarchar(max)");
  1301. b.Property<DateTime>("CreateDate")
  1302. .HasColumnType("datetime2")
  1303. .HasColumnOrder(3);
  1304. b.Property<string>("CreateUser")
  1305. .HasMaxLength(450)
  1306. .HasColumnType("nvarchar(450)")
  1307. .HasColumnOrder(1);
  1308. b.Property<bool>("IsAdmin")
  1309. .HasColumnType("bit");
  1310. b.Property<long>("TeamId")
  1311. .HasColumnType("bigint");
  1312. b.Property<DateTime?>("UpdateDate")
  1313. .HasColumnType("datetime2")
  1314. .HasColumnOrder(4);
  1315. b.Property<string>("UpdateUser")
  1316. .HasMaxLength(450)
  1317. .HasColumnType("nvarchar(450)")
  1318. .HasColumnOrder(2);
  1319. b.HasKey("Id");
  1320. b.HasIndex("TeamId");
  1321. b.ToTable("TeamUser");
  1322. });
  1323. modelBuilder.Entity("MTWorkHR.Core.Entities.University", b =>
  1324. {
  1325. b.Property<long>("Id")
  1326. .ValueGeneratedOnAdd()
  1327. .HasColumnType("bigint")
  1328. .HasColumnOrder(0);
  1329. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1330. b.Property<string>("NameAr")
  1331. .IsRequired()
  1332. .HasMaxLength(250)
  1333. .HasColumnType("nvarchar(250)");
  1334. b.Property<string>("NameEn")
  1335. .IsRequired()
  1336. .HasMaxLength(250)
  1337. .HasColumnType("nvarchar(250)");
  1338. b.HasKey("Id");
  1339. b.ToTable("Universities");
  1340. });
  1341. modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
  1342. {
  1343. b.Property<long>("Id")
  1344. .ValueGeneratedOnAdd()
  1345. .HasColumnType("bigint")
  1346. .HasColumnOrder(0);
  1347. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1348. b.Property<int?>("CityId")
  1349. .HasColumnType("int");
  1350. b.Property<int?>("CountryId")
  1351. .HasColumnType("int");
  1352. b.Property<DateTime>("CreateDate")
  1353. .HasColumnType("datetime2")
  1354. .HasColumnOrder(3);
  1355. b.Property<string>("CreateUser")
  1356. .HasMaxLength(450)
  1357. .HasColumnType("nvarchar(450)")
  1358. .HasColumnOrder(1);
  1359. b.Property<string>("DeleteUserId")
  1360. .HasMaxLength(450)
  1361. .HasColumnType("nvarchar(450)")
  1362. .HasColumnOrder(8);
  1363. b.Property<DateTime?>("EndDate")
  1364. .HasColumnType("datetime2");
  1365. b.Property<bool>("IsDeleted")
  1366. .HasColumnType("bit")
  1367. .HasColumnOrder(7);
  1368. b.Property<long?>("LeaveTypeId")
  1369. .HasColumnType("bigint");
  1370. b.Property<int?>("OrderStatus")
  1371. .HasColumnType("int");
  1372. b.Property<long>("OrderTypeId")
  1373. .HasColumnType("bigint");
  1374. b.Property<string>("RequestComments")
  1375. .HasColumnType("nvarchar(max)");
  1376. b.Property<string>("RequestingEmployeeId")
  1377. .IsRequired()
  1378. .HasColumnType("nvarchar(max)");
  1379. b.Property<DateTime>("StartDate")
  1380. .HasColumnType("datetime2");
  1381. b.Property<DateTime?>("UpdateDate")
  1382. .HasColumnType("datetime2")
  1383. .HasColumnOrder(4);
  1384. b.Property<string>("UpdateUser")
  1385. .HasMaxLength(450)
  1386. .HasColumnType("nvarchar(450)")
  1387. .HasColumnOrder(2);
  1388. b.HasKey("Id");
  1389. b.HasIndex("LeaveTypeId");
  1390. b.HasIndex("OrderTypeId");
  1391. b.ToTable("OrderRequests");
  1392. });
  1393. modelBuilder.Entity("MTWorkHR.Core.Entities.UserLog", b =>
  1394. {
  1395. b.Property<long>("Id")
  1396. .ValueGeneratedOnAdd()
  1397. .HasColumnType("bigint")
  1398. .HasColumnOrder(0);
  1399. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1400. b.Property<string>("Channel")
  1401. .HasColumnType("nvarchar(max)");
  1402. b.Property<DateTime>("CreateDate")
  1403. .HasColumnType("datetime2");
  1404. b.Property<string>("CreateUser")
  1405. .IsRequired()
  1406. .HasColumnType("nvarchar(max)");
  1407. b.Property<string>("ErrorCode")
  1408. .IsRequired()
  1409. .HasColumnType("nvarchar(max)");
  1410. b.Property<string>("ErrorDescription")
  1411. .IsRequired()
  1412. .HasColumnType("nvarchar(max)");
  1413. b.Property<string>("InnerException")
  1414. .HasColumnType("nvarchar(max)");
  1415. b.Property<string>("Input")
  1416. .HasColumnType("nvarchar(max)");
  1417. b.Property<string>("Method")
  1418. .IsRequired()
  1419. .HasColumnType("nvarchar(max)");
  1420. b.Property<string>("QueryString")
  1421. .HasColumnType("nvarchar(max)");
  1422. b.Property<string>("ServerIP")
  1423. .HasColumnType("nvarchar(max)");
  1424. b.Property<string>("ServiceResponseTimeInSeconds")
  1425. .IsRequired()
  1426. .HasColumnType("nvarchar(max)");
  1427. b.Property<string>("UserIP")
  1428. .HasColumnType("nvarchar(max)");
  1429. b.Property<string>("userAgent")
  1430. .HasColumnType("nvarchar(max)");
  1431. b.HasKey("Id");
  1432. b.ToTable("UserLogs");
  1433. });
  1434. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1435. {
  1436. b.Property<long>("Id")
  1437. .ValueGeneratedOnAdd()
  1438. .HasColumnType("bigint")
  1439. .HasColumnOrder(0);
  1440. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1441. b.Property<long>("AssignedUserId")
  1442. .HasColumnType("bigint");
  1443. b.Property<DateTime>("CreateDate")
  1444. .HasColumnType("datetime2")
  1445. .HasColumnOrder(3);
  1446. b.Property<string>("CreateUser")
  1447. .HasMaxLength(450)
  1448. .HasColumnType("nvarchar(450)")
  1449. .HasColumnOrder(1);
  1450. b.Property<string>("DeleteUserId")
  1451. .HasMaxLength(450)
  1452. .HasColumnType("nvarchar(450)")
  1453. .HasColumnOrder(8);
  1454. b.Property<string>("Description")
  1455. .IsRequired()
  1456. .HasColumnType("nvarchar(max)");
  1457. b.Property<DateTime>("DueDate")
  1458. .HasColumnType("datetime2");
  1459. b.Property<bool>("IsDeleted")
  1460. .HasColumnType("bit")
  1461. .HasColumnOrder(7);
  1462. b.Property<int>("Priority")
  1463. .HasColumnType("int");
  1464. b.Property<long>("ProjectId")
  1465. .HasColumnType("bigint");
  1466. b.Property<long>("StatusId")
  1467. .HasColumnType("bigint");
  1468. b.Property<string>("Title")
  1469. .IsRequired()
  1470. .HasColumnType("nvarchar(max)");
  1471. b.Property<DateTime?>("UpdateDate")
  1472. .HasColumnType("datetime2")
  1473. .HasColumnOrder(4);
  1474. b.Property<string>("UpdateUser")
  1475. .HasMaxLength(450)
  1476. .HasColumnType("nvarchar(450)")
  1477. .HasColumnOrder(2);
  1478. b.HasKey("Id");
  1479. b.HasIndex("ProjectId");
  1480. b.HasIndex("StatusId");
  1481. b.ToTable("UserTasks");
  1482. });
  1483. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  1484. {
  1485. b.Property<long>("Id")
  1486. .ValueGeneratedOnAdd()
  1487. .HasColumnType("bigint")
  1488. .HasColumnOrder(0);
  1489. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1490. b.Property<long>("AttachmentTypeId")
  1491. .HasColumnType("bigint");
  1492. b.Property<DateTime>("CreateDate")
  1493. .HasColumnType("datetime2")
  1494. .HasColumnOrder(3);
  1495. b.Property<string>("CreateUser")
  1496. .HasMaxLength(450)
  1497. .HasColumnType("nvarchar(450)")
  1498. .HasColumnOrder(1);
  1499. b.Property<string>("FileName")
  1500. .HasMaxLength(250)
  1501. .HasColumnType("nvarchar(250)");
  1502. b.Property<string>("OriginalName")
  1503. .IsRequired()
  1504. .HasMaxLength(250)
  1505. .HasColumnType("nvarchar(250)");
  1506. b.Property<long>("TaskId")
  1507. .HasColumnType("bigint");
  1508. b.Property<DateTime?>("UpdateDate")
  1509. .HasColumnType("datetime2")
  1510. .HasColumnOrder(4);
  1511. b.Property<string>("UpdateUser")
  1512. .HasMaxLength(450)
  1513. .HasColumnType("nvarchar(450)")
  1514. .HasColumnOrder(2);
  1515. b.HasKey("Id");
  1516. b.HasIndex("AttachmentTypeId");
  1517. b.HasIndex("TaskId");
  1518. b.ToTable("UserTaskAttachments");
  1519. });
  1520. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  1521. {
  1522. b.Property<long>("Id")
  1523. .ValueGeneratedOnAdd()
  1524. .HasColumnType("bigint")
  1525. .HasColumnOrder(0);
  1526. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1527. b.Property<long>("AssignedToUserId")
  1528. .HasColumnType("bigint");
  1529. b.Property<string>("Comment")
  1530. .HasMaxLength(500)
  1531. .HasColumnType("nvarchar(500)");
  1532. b.Property<DateTime>("CreateDate")
  1533. .HasColumnType("datetime2")
  1534. .HasColumnOrder(3);
  1535. b.Property<string>("CreateUser")
  1536. .HasMaxLength(450)
  1537. .HasColumnType("nvarchar(450)")
  1538. .HasColumnOrder(1);
  1539. b.Property<long>("CurrentStatusId")
  1540. .HasColumnType("bigint");
  1541. b.Property<bool>("IsDeleted")
  1542. .HasColumnType("bit");
  1543. b.Property<long>("TaskId")
  1544. .HasColumnType("bigint");
  1545. b.Property<DateTime?>("UpdateDate")
  1546. .HasColumnType("datetime2")
  1547. .HasColumnOrder(4);
  1548. b.Property<string>("UpdateUser")
  1549. .HasMaxLength(450)
  1550. .HasColumnType("nvarchar(450)")
  1551. .HasColumnOrder(2);
  1552. b.Property<long?>("UserTaskId")
  1553. .HasColumnType("bigint");
  1554. b.HasKey("Id");
  1555. b.HasIndex("CurrentStatusId");
  1556. b.HasIndex("UserTaskId");
  1557. b.ToTable("UserTaskHistories");
  1558. });
  1559. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskLog", b =>
  1560. {
  1561. b.Property<long>("Id")
  1562. .ValueGeneratedOnAdd()
  1563. .HasColumnType("bigint")
  1564. .HasColumnOrder(0);
  1565. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1566. b.Property<string>("Channel")
  1567. .HasColumnType("nvarchar(max)");
  1568. b.Property<DateTime>("CreateDate")
  1569. .HasColumnType("datetime2");
  1570. b.Property<string>("CreateUser")
  1571. .IsRequired()
  1572. .HasColumnType("nvarchar(max)");
  1573. b.Property<string>("ErrorCode")
  1574. .IsRequired()
  1575. .HasColumnType("nvarchar(max)");
  1576. b.Property<string>("ErrorDescription")
  1577. .IsRequired()
  1578. .HasColumnType("nvarchar(max)");
  1579. b.Property<string>("InnerException")
  1580. .HasColumnType("nvarchar(max)");
  1581. b.Property<string>("Input")
  1582. .HasColumnType("nvarchar(max)");
  1583. b.Property<string>("Method")
  1584. .IsRequired()
  1585. .HasColumnType("nvarchar(max)");
  1586. b.Property<string>("QueryString")
  1587. .HasColumnType("nvarchar(max)");
  1588. b.Property<string>("ServerIP")
  1589. .HasColumnType("nvarchar(max)");
  1590. b.Property<string>("ServiceResponseTimeInSeconds")
  1591. .IsRequired()
  1592. .HasColumnType("nvarchar(max)");
  1593. b.Property<string>("UserIP")
  1594. .HasColumnType("nvarchar(max)");
  1595. b.Property<string>("userAgent")
  1596. .HasColumnType("nvarchar(max)");
  1597. b.HasKey("Id");
  1598. b.ToTable("UserTaskLogs");
  1599. });
  1600. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskStatus", b =>
  1601. {
  1602. b.Property<long>("Id")
  1603. .ValueGeneratedOnAdd()
  1604. .HasColumnType("bigint")
  1605. .HasColumnOrder(0);
  1606. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1607. b.Property<string>("NameAr")
  1608. .IsRequired()
  1609. .HasMaxLength(250)
  1610. .HasColumnType("nvarchar(250)");
  1611. b.Property<string>("NameEn")
  1612. .IsRequired()
  1613. .HasMaxLength(250)
  1614. .HasColumnType("nvarchar(250)");
  1615. b.HasKey("Id");
  1616. b.ToTable("UserTaskStatuses");
  1617. b.HasData(
  1618. new
  1619. {
  1620. Id = 1L,
  1621. NameAr = "جديدة",
  1622. NameEn = "New"
  1623. },
  1624. new
  1625. {
  1626. Id = 2L,
  1627. NameAr = "قيد العمل",
  1628. NameEn = "Under progress"
  1629. },
  1630. new
  1631. {
  1632. Id = 3L,
  1633. NameAr = "أغلقت",
  1634. NameEn = "Closed"
  1635. },
  1636. new
  1637. {
  1638. Id = 4L,
  1639. NameAr = "تمت",
  1640. NameEn = "Completed"
  1641. },
  1642. new
  1643. {
  1644. Id = 5L,
  1645. NameAr = "مؤجلة",
  1646. NameEn = "Delayed"
  1647. });
  1648. });
  1649. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  1650. {
  1651. b.Property<string>("Id")
  1652. .HasColumnType("nvarchar(450)");
  1653. b.Property<string>("ConcurrencyStamp")
  1654. .IsConcurrencyToken()
  1655. .HasColumnType("nvarchar(max)");
  1656. b.Property<DateTime>("CreateDate")
  1657. .HasColumnType("datetime2");
  1658. b.Property<string>("CreateUser")
  1659. .HasColumnType("nvarchar(max)");
  1660. b.Property<string>("DeleteUserId")
  1661. .HasColumnType("nvarchar(max)");
  1662. b.Property<bool?>("IsAdmin")
  1663. .HasColumnType("bit");
  1664. b.Property<bool>("IsDeleted")
  1665. .HasColumnType("bit");
  1666. b.Property<string>("Name")
  1667. .HasMaxLength(256)
  1668. .HasColumnType("nvarchar(256)");
  1669. b.Property<string>("NormalizedName")
  1670. .HasMaxLength(256)
  1671. .HasColumnType("nvarchar(256)");
  1672. b.Property<DateTime?>("UpdateDate")
  1673. .HasColumnType("datetime2");
  1674. b.Property<string>("UpdateUser")
  1675. .HasColumnType("nvarchar(max)");
  1676. b.HasKey("Id");
  1677. b.HasIndex("NormalizedName")
  1678. .IsUnique()
  1679. .HasDatabaseName("RoleNameIndex")
  1680. .HasFilter("[NormalizedName] IS NOT NULL");
  1681. b.ToTable("AspNetRoles", (string)null);
  1682. b.HasData(
  1683. new
  1684. {
  1685. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  1686. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  1687. IsAdmin = true,
  1688. IsDeleted = false,
  1689. Name = "Admin",
  1690. NormalizedName = "ADMIN"
  1691. },
  1692. new
  1693. {
  1694. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E",
  1695. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  1696. IsAdmin = false,
  1697. IsDeleted = false,
  1698. Name = "Employee",
  1699. NormalizedName = "EMPLOYEE"
  1700. });
  1701. });
  1702. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  1703. {
  1704. b.Property<string>("Id")
  1705. .HasColumnType("nvarchar(450)");
  1706. b.Property<int>("AccessFailedCount")
  1707. .HasColumnType("int");
  1708. b.Property<string>("ConcurrencyStamp")
  1709. .IsConcurrencyToken()
  1710. .HasColumnType("nvarchar(max)");
  1711. b.Property<int?>("CountryId")
  1712. .HasColumnType("int");
  1713. b.Property<string>("CreateUser")
  1714. .HasColumnType("nvarchar(max)");
  1715. b.Property<string>("DeleteUserId")
  1716. .HasColumnType("nvarchar(max)");
  1717. b.Property<string>("Email")
  1718. .HasMaxLength(256)
  1719. .HasColumnType("nvarchar(256)");
  1720. b.Property<bool>("EmailConfirmed")
  1721. .HasColumnType("bit");
  1722. b.Property<string>("FavoriteName")
  1723. .HasColumnType("nvarchar(max)");
  1724. b.Property<string>("FirstName")
  1725. .IsRequired()
  1726. .HasColumnType("nvarchar(max)");
  1727. b.Property<decimal?>("IncomeTaxValue")
  1728. .HasColumnType("decimal(18,2)");
  1729. b.Property<int?>("IndustryId")
  1730. .HasColumnType("int");
  1731. b.Property<bool>("IsDeleted")
  1732. .HasColumnType("bit");
  1733. b.Property<bool>("IsStopped")
  1734. .HasColumnType("bit");
  1735. b.Property<int?>("JobTitleId")
  1736. .HasColumnType("int");
  1737. b.Property<string>("LastName")
  1738. .IsRequired()
  1739. .HasColumnType("nvarchar(max)");
  1740. b.Property<string>("LinkedInLink")
  1741. .HasColumnType("nvarchar(max)");
  1742. b.Property<bool>("LockoutEnabled")
  1743. .HasColumnType("bit");
  1744. b.Property<DateTimeOffset?>("LockoutEnd")
  1745. .HasColumnType("datetimeoffset");
  1746. b.Property<string>("ManagerId")
  1747. .HasColumnType("nvarchar(450)");
  1748. b.Property<string>("NormalizedEmail")
  1749. .HasMaxLength(256)
  1750. .HasColumnType("nvarchar(256)");
  1751. b.Property<string>("NormalizedUserName")
  1752. .HasMaxLength(256)
  1753. .HasColumnType("nvarchar(256)");
  1754. b.Property<string>("PassportNumber")
  1755. .IsRequired()
  1756. .HasColumnType("nvarchar(max)");
  1757. b.Property<string>("PasswordHash")
  1758. .HasColumnType("nvarchar(max)");
  1759. b.Property<string>("PhoneNumber")
  1760. .HasColumnType("nvarchar(max)");
  1761. b.Property<bool>("PhoneNumberConfirmed")
  1762. .HasColumnType("bit");
  1763. b.Property<int?>("QualificationId")
  1764. .HasColumnType("int");
  1765. b.Property<string>("SecurityStamp")
  1766. .HasColumnType("nvarchar(max)");
  1767. b.Property<decimal?>("TaxNumber")
  1768. .HasColumnType("decimal(18,2)");
  1769. b.Property<bool>("TwoFactorEnabled")
  1770. .HasColumnType("bit");
  1771. b.Property<int?>("UniversityId")
  1772. .HasColumnType("int");
  1773. b.Property<string>("UpdateUser")
  1774. .HasColumnType("nvarchar(max)");
  1775. b.Property<string>("UserName")
  1776. .HasMaxLength(256)
  1777. .HasColumnType("nvarchar(256)");
  1778. b.Property<int>("UserType")
  1779. .HasColumnType("int");
  1780. b.HasKey("Id");
  1781. b.HasIndex("ManagerId");
  1782. b.HasIndex("NormalizedEmail")
  1783. .HasDatabaseName("EmailIndex");
  1784. b.HasIndex("NormalizedUserName")
  1785. .IsUnique()
  1786. .HasDatabaseName("UserNameIndex")
  1787. .HasFilter("[NormalizedUserName] IS NOT NULL");
  1788. b.ToTable("AspNetUsers", (string)null);
  1789. b.HasData(
  1790. new
  1791. {
  1792. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  1793. AccessFailedCount = 0,
  1794. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  1795. Email = "a@b.com",
  1796. EmailConfirmed = true,
  1797. FirstName = "Zinab",
  1798. IncomeTaxValue = 1m,
  1799. IsDeleted = false,
  1800. IsStopped = false,
  1801. LastName = "Elgendy",
  1802. LockoutEnabled = false,
  1803. NormalizedEmail = "A@B.COM",
  1804. NormalizedUserName = "ADMIN",
  1805. PassportNumber = "1234567",
  1806. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  1807. PhoneNumber = "1234567890",
  1808. PhoneNumberConfirmed = true,
  1809. QualificationId = 1,
  1810. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  1811. TaxNumber = 111m,
  1812. TwoFactorEnabled = false,
  1813. UserName = "Admin",
  1814. UserType = 1
  1815. },
  1816. new
  1817. {
  1818. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  1819. AccessFailedCount = 0,
  1820. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  1821. Email = "ali@b.com",
  1822. EmailConfirmed = true,
  1823. FirstName = "Ali",
  1824. IncomeTaxValue = 100m,
  1825. IsDeleted = false,
  1826. IsStopped = false,
  1827. LastName = "Farok",
  1828. LockoutEnabled = false,
  1829. NormalizedEmail = "ALI@B.COM",
  1830. NormalizedUserName = "ALI",
  1831. PassportNumber = "7654321001010",
  1832. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  1833. PhoneNumber = "1234567890",
  1834. PhoneNumberConfirmed = true,
  1835. QualificationId = 1,
  1836. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  1837. TaxNumber = 222m,
  1838. TwoFactorEnabled = false,
  1839. UserName = "ali",
  1840. UserType = 1
  1841. });
  1842. });
  1843. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  1844. {
  1845. b.Property<long>("Id")
  1846. .ValueGeneratedOnAdd()
  1847. .HasColumnType("bigint")
  1848. .HasColumnOrder(0);
  1849. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1850. b.Property<long>("PermissionId")
  1851. .HasColumnType("bigint");
  1852. b.Property<string>("PermissionName")
  1853. .IsRequired()
  1854. .HasColumnType("nvarchar(max)");
  1855. b.Property<string>("RoleId")
  1856. .IsRequired()
  1857. .HasColumnType("nvarchar(450)");
  1858. b.HasKey("Id");
  1859. b.HasIndex("PermissionId");
  1860. b.HasIndex("RoleId");
  1861. b.ToTable("RolePermissions");
  1862. });
  1863. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  1864. {
  1865. b.Property<long>("Id")
  1866. .ValueGeneratedOnAdd()
  1867. .HasColumnType("bigint")
  1868. .HasColumnOrder(0);
  1869. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1870. b.Property<string>("AddressDesc")
  1871. .IsRequired()
  1872. .HasColumnType("nvarchar(max)");
  1873. b.Property<string>("City")
  1874. .IsRequired()
  1875. .HasColumnType("nvarchar(max)");
  1876. b.Property<int>("CountryId")
  1877. .HasColumnType("int");
  1878. b.Property<DateTime>("CreateDate")
  1879. .HasColumnType("datetime2")
  1880. .HasColumnOrder(3);
  1881. b.Property<string>("CreateUser")
  1882. .HasMaxLength(450)
  1883. .HasColumnType("nvarchar(450)")
  1884. .HasColumnOrder(1);
  1885. b.Property<string>("PostalCode")
  1886. .IsRequired()
  1887. .HasColumnType("nvarchar(max)");
  1888. b.Property<DateTime?>("UpdateDate")
  1889. .HasColumnType("datetime2")
  1890. .HasColumnOrder(4);
  1891. b.Property<string>("UpdateUser")
  1892. .HasMaxLength(450)
  1893. .HasColumnType("nvarchar(450)")
  1894. .HasColumnOrder(2);
  1895. b.Property<string>("UserId")
  1896. .IsRequired()
  1897. .HasColumnType("nvarchar(450)");
  1898. b.HasKey("Id");
  1899. b.HasIndex("UserId")
  1900. .IsUnique();
  1901. b.ToTable("UserAddress");
  1902. });
  1903. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  1904. {
  1905. b.Property<long>("Id")
  1906. .ValueGeneratedOnAdd()
  1907. .HasColumnType("bigint")
  1908. .HasColumnOrder(0);
  1909. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1910. b.Property<long>("AttachmentTypeId")
  1911. .HasColumnType("bigint");
  1912. b.Property<DateTime>("CreateDate")
  1913. .HasColumnType("datetime2")
  1914. .HasColumnOrder(3);
  1915. b.Property<string>("CreateUser")
  1916. .HasMaxLength(450)
  1917. .HasColumnType("nvarchar(450)")
  1918. .HasColumnOrder(1);
  1919. b.Property<string>("FileName")
  1920. .IsRequired()
  1921. .HasMaxLength(250)
  1922. .HasColumnType("nvarchar(250)");
  1923. b.Property<string>("OriginalName")
  1924. .IsRequired()
  1925. .HasMaxLength(250)
  1926. .HasColumnType("nvarchar(250)");
  1927. b.Property<DateTime?>("UpdateDate")
  1928. .HasColumnType("datetime2")
  1929. .HasColumnOrder(4);
  1930. b.Property<string>("UpdateUser")
  1931. .HasMaxLength(450)
  1932. .HasColumnType("nvarchar(450)")
  1933. .HasColumnOrder(2);
  1934. b.Property<string>("UserId")
  1935. .IsRequired()
  1936. .HasColumnType("nvarchar(450)");
  1937. b.HasKey("Id");
  1938. b.HasIndex("AttachmentTypeId");
  1939. b.HasIndex("UserId");
  1940. b.ToTable("UserAttachments");
  1941. });
  1942. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  1943. {
  1944. b.Property<int>("Id")
  1945. .ValueGeneratedOnAdd()
  1946. .HasColumnType("int");
  1947. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  1948. b.Property<string>("ClaimType")
  1949. .HasColumnType("nvarchar(max)");
  1950. b.Property<string>("ClaimValue")
  1951. .HasColumnType("nvarchar(max)");
  1952. b.Property<string>("RoleId")
  1953. .IsRequired()
  1954. .HasColumnType("nvarchar(450)");
  1955. b.HasKey("Id");
  1956. b.HasIndex("RoleId");
  1957. b.ToTable("AspNetRoleClaims", (string)null);
  1958. });
  1959. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  1960. {
  1961. b.Property<int>("Id")
  1962. .ValueGeneratedOnAdd()
  1963. .HasColumnType("int");
  1964. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  1965. b.Property<string>("ClaimType")
  1966. .HasColumnType("nvarchar(max)");
  1967. b.Property<string>("ClaimValue")
  1968. .HasColumnType("nvarchar(max)");
  1969. b.Property<string>("UserId")
  1970. .IsRequired()
  1971. .HasColumnType("nvarchar(450)");
  1972. b.HasKey("Id");
  1973. b.HasIndex("UserId");
  1974. b.ToTable("AspNetUserClaims", (string)null);
  1975. });
  1976. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  1977. {
  1978. b.Property<string>("LoginProvider")
  1979. .HasColumnType("nvarchar(450)");
  1980. b.Property<string>("ProviderKey")
  1981. .HasColumnType("nvarchar(450)");
  1982. b.Property<string>("ProviderDisplayName")
  1983. .HasColumnType("nvarchar(max)");
  1984. b.Property<string>("UserId")
  1985. .IsRequired()
  1986. .HasColumnType("nvarchar(450)");
  1987. b.HasKey("LoginProvider", "ProviderKey");
  1988. b.HasIndex("UserId");
  1989. b.ToTable("AspNetUserLogins", (string)null);
  1990. });
  1991. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  1992. {
  1993. b.Property<string>("UserId")
  1994. .HasColumnType("nvarchar(450)");
  1995. b.Property<string>("RoleId")
  1996. .HasColumnType("nvarchar(450)");
  1997. b.HasKey("UserId", "RoleId");
  1998. b.HasIndex("RoleId");
  1999. b.ToTable("AspNetUserRoles", (string)null);
  2000. b.HasData(
  2001. new
  2002. {
  2003. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  2004. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  2005. },
  2006. new
  2007. {
  2008. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  2009. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  2010. });
  2011. });
  2012. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  2013. {
  2014. b.Property<string>("UserId")
  2015. .HasColumnType("nvarchar(450)");
  2016. b.Property<string>("LoginProvider")
  2017. .HasColumnType("nvarchar(450)");
  2018. b.Property<string>("Name")
  2019. .HasColumnType("nvarchar(450)");
  2020. b.Property<string>("Value")
  2021. .HasColumnType("nvarchar(max)");
  2022. b.HasKey("UserId", "LoginProvider", "Name");
  2023. b.ToTable("AspNetUserTokens", (string)null);
  2024. });
  2025. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  2026. {
  2027. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  2028. .WithMany()
  2029. .HasForeignKey("UserRolesId")
  2030. .OnDelete(DeleteBehavior.Cascade)
  2031. .IsRequired();
  2032. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2033. .WithMany()
  2034. .HasForeignKey("UsersId")
  2035. .OnDelete(DeleteBehavior.Cascade)
  2036. .IsRequired();
  2037. });
  2038. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  2039. {
  2040. b.HasOne("MTWorkHR.Core.Entities.Meeting", "Meeting")
  2041. .WithMany("MeetingUsers")
  2042. .HasForeignKey("MeetingId")
  2043. .OnDelete(DeleteBehavior.Cascade)
  2044. .IsRequired();
  2045. b.Navigation("Meeting");
  2046. });
  2047. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderAllocation", b =>
  2048. {
  2049. b.HasOne("MTWorkHR.Core.Entities.LeaveType", "LeaveType")
  2050. .WithMany()
  2051. .HasForeignKey("LeaveTypeId");
  2052. b.HasOne("MTWorkHR.Core.Entities.OrderType", "OrderType")
  2053. .WithMany()
  2054. .HasForeignKey("OrderTypeId")
  2055. .OnDelete(DeleteBehavior.Cascade)
  2056. .IsRequired();
  2057. b.Navigation("LeaveType");
  2058. b.Navigation("OrderType");
  2059. });
  2060. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  2061. {
  2062. b.HasOne("MTWorkHR.Core.Entities.Team", "Team")
  2063. .WithMany("TeamUsers")
  2064. .HasForeignKey("TeamId")
  2065. .OnDelete(DeleteBehavior.Cascade)
  2066. .IsRequired();
  2067. b.Navigation("Team");
  2068. });
  2069. modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
  2070. {
  2071. b.HasOne("MTWorkHR.Core.Entities.LeaveType", "LeaveType")
  2072. .WithMany()
  2073. .HasForeignKey("LeaveTypeId");
  2074. b.HasOne("MTWorkHR.Core.Entities.OrderType", "OrderType")
  2075. .WithMany()
  2076. .HasForeignKey("OrderTypeId")
  2077. .OnDelete(DeleteBehavior.Cascade)
  2078. .IsRequired();
  2079. b.Navigation("LeaveType");
  2080. b.Navigation("OrderType");
  2081. });
  2082. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  2083. {
  2084. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  2085. .WithMany()
  2086. .HasForeignKey("ProjectId")
  2087. .OnDelete(DeleteBehavior.Cascade)
  2088. .IsRequired();
  2089. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  2090. .WithMany()
  2091. .HasForeignKey("StatusId")
  2092. .OnDelete(DeleteBehavior.Cascade)
  2093. .IsRequired();
  2094. b.Navigation("Project");
  2095. b.Navigation("TaskStatus");
  2096. });
  2097. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  2098. {
  2099. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  2100. .WithMany()
  2101. .HasForeignKey("AttachmentTypeId")
  2102. .OnDelete(DeleteBehavior.Cascade)
  2103. .IsRequired();
  2104. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  2105. .WithMany("TaskAttachments")
  2106. .HasForeignKey("TaskId")
  2107. .OnDelete(DeleteBehavior.Cascade)
  2108. .IsRequired();
  2109. b.Navigation("AttachmentType");
  2110. b.Navigation("UserTask");
  2111. });
  2112. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  2113. {
  2114. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  2115. .WithMany()
  2116. .HasForeignKey("CurrentStatusId")
  2117. .OnDelete(DeleteBehavior.Cascade)
  2118. .IsRequired();
  2119. b.HasOne("MTWorkHR.Core.Entities.UserTask", null)
  2120. .WithMany("UserTaskHistories")
  2121. .HasForeignKey("UserTaskId");
  2122. b.Navigation("TaskStatus");
  2123. });
  2124. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  2125. {
  2126. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
  2127. .WithMany()
  2128. .HasForeignKey("ManagerId");
  2129. b.Navigation("Manager");
  2130. });
  2131. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  2132. {
  2133. b.HasOne("MTWorkHR.Core.Entities.Permission", "Permission")
  2134. .WithMany()
  2135. .HasForeignKey("PermissionId")
  2136. .OnDelete(DeleteBehavior.Cascade)
  2137. .IsRequired();
  2138. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", "Role")
  2139. .WithMany("RolePermissions")
  2140. .HasForeignKey("RoleId")
  2141. .OnDelete(DeleteBehavior.Cascade)
  2142. .IsRequired();
  2143. b.Navigation("Permission");
  2144. b.Navigation("Role");
  2145. });
  2146. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  2147. {
  2148. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  2149. .WithOne("UserAddress")
  2150. .HasForeignKey("MTWorkHR.Infrastructure.Entities.UserAddress", "UserId")
  2151. .OnDelete(DeleteBehavior.Cascade)
  2152. .IsRequired();
  2153. b.Navigation("User");
  2154. });
  2155. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  2156. {
  2157. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  2158. .WithMany()
  2159. .HasForeignKey("AttachmentTypeId")
  2160. .OnDelete(DeleteBehavior.Cascade)
  2161. .IsRequired();
  2162. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  2163. .WithMany("UserAttachments")
  2164. .HasForeignKey("UserId")
  2165. .OnDelete(DeleteBehavior.Cascade)
  2166. .IsRequired();
  2167. b.Navigation("AttachmentType");
  2168. b.Navigation("User");
  2169. });
  2170. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  2171. {
  2172. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  2173. .WithMany()
  2174. .HasForeignKey("RoleId")
  2175. .OnDelete(DeleteBehavior.Cascade)
  2176. .IsRequired();
  2177. });
  2178. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  2179. {
  2180. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2181. .WithMany()
  2182. .HasForeignKey("UserId")
  2183. .OnDelete(DeleteBehavior.Cascade)
  2184. .IsRequired();
  2185. });
  2186. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  2187. {
  2188. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2189. .WithMany()
  2190. .HasForeignKey("UserId")
  2191. .OnDelete(DeleteBehavior.Cascade)
  2192. .IsRequired();
  2193. });
  2194. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  2195. {
  2196. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  2197. .WithMany()
  2198. .HasForeignKey("RoleId")
  2199. .OnDelete(DeleteBehavior.Cascade)
  2200. .IsRequired();
  2201. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2202. .WithMany()
  2203. .HasForeignKey("UserId")
  2204. .OnDelete(DeleteBehavior.Cascade)
  2205. .IsRequired();
  2206. });
  2207. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  2208. {
  2209. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2210. .WithMany()
  2211. .HasForeignKey("UserId")
  2212. .OnDelete(DeleteBehavior.Cascade)
  2213. .IsRequired();
  2214. });
  2215. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  2216. {
  2217. b.Navigation("MeetingUsers");
  2218. });
  2219. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  2220. {
  2221. b.Navigation("TeamUsers");
  2222. });
  2223. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  2224. {
  2225. b.Navigation("TaskAttachments");
  2226. b.Navigation("UserTaskHistories");
  2227. });
  2228. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  2229. {
  2230. b.Navigation("RolePermissions");
  2231. });
  2232. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  2233. {
  2234. b.Navigation("UserAddress")
  2235. .IsRequired();
  2236. b.Navigation("UserAttachments");
  2237. });
  2238. #pragma warning restore 612, 618
  2239. }
  2240. }
  2241. }