20240730134009_altrTaskHistory.Designer.cs 125 KB

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