20250506101722_jobInterview.Designer.cs 277 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352
  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("20250506101722_jobInterview")]
  14. partial class jobInterview
  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. new
  250. {
  251. Id = 10L,
  252. IsRequired = false,
  253. NameAr = "تكلفة التذكرة",
  254. NameEn = "Ticket Cost"
  255. },
  256. new
  257. {
  258. Id = 11L,
  259. IsRequired = false,
  260. NameAr = "تكلفة المواصلات",
  261. NameEn = "Transportation Cost"
  262. },
  263. new
  264. {
  265. Id = 12L,
  266. IsRequired = false,
  267. NameAr = "تكلفة الاقامة",
  268. NameEn = "Accommodation Cost"
  269. },
  270. new
  271. {
  272. Id = 13L,
  273. IsRequired = false,
  274. NameAr = "اخرى",
  275. NameEn = "Other"
  276. });
  277. });
  278. modelBuilder.Entity("MTWorkHR.Core.Entities.BusinessTripAttachment", b =>
  279. {
  280. b.Property<long>("Id")
  281. .ValueGeneratedOnAdd()
  282. .HasColumnType("bigint")
  283. .HasColumnOrder(0);
  284. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  285. b.Property<long>("BusinessTripExpensesId")
  286. .HasColumnType("bigint");
  287. b.Property<string>("ContentType")
  288. .HasColumnType("nvarchar(max)");
  289. b.Property<DateTime>("CreateDate")
  290. .HasColumnType("datetime2")
  291. .HasColumnOrder(3);
  292. b.Property<string>("CreateUser")
  293. .HasMaxLength(450)
  294. .HasColumnType("nvarchar(450)")
  295. .HasColumnOrder(1);
  296. b.Property<string>("FileName")
  297. .HasMaxLength(250)
  298. .HasColumnType("nvarchar(250)");
  299. b.Property<string>("FilePath")
  300. .HasColumnType("nvarchar(max)");
  301. b.Property<string>("OriginalName")
  302. .HasMaxLength(250)
  303. .HasColumnType("nvarchar(250)");
  304. b.Property<DateTime?>("UpdateDate")
  305. .HasColumnType("datetime2")
  306. .HasColumnOrder(4);
  307. b.Property<string>("UpdateUser")
  308. .HasMaxLength(450)
  309. .HasColumnType("nvarchar(450)")
  310. .HasColumnOrder(2);
  311. b.HasKey("Id");
  312. b.HasIndex("BusinessTripExpensesId");
  313. b.ToTable("BusinessTripAttachment");
  314. });
  315. modelBuilder.Entity("MTWorkHR.Core.Entities.BusinessTripExpenses", b =>
  316. {
  317. b.Property<long>("Id")
  318. .ValueGeneratedOnAdd()
  319. .HasColumnType("bigint")
  320. .HasColumnOrder(0);
  321. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  322. b.Property<decimal?>("AccommodationCost")
  323. .HasColumnType("decimal(18,2)");
  324. b.Property<long?>("OrderRequestId")
  325. .HasColumnType("bigint");
  326. b.Property<decimal?>("OtherCost")
  327. .HasColumnType("decimal(18,2)");
  328. b.Property<decimal?>("TicketCost")
  329. .HasColumnType("decimal(18,2)");
  330. b.Property<decimal?>("TotalCost")
  331. .HasColumnType("decimal(18,2)");
  332. b.Property<decimal?>("TransportationCost")
  333. .HasColumnType("decimal(18,2)");
  334. b.HasKey("Id");
  335. b.HasIndex("OrderRequestId")
  336. .IsUnique()
  337. .HasFilter("[OrderRequestId] IS NOT NULL");
  338. b.ToTable("BusinessTripExpenses");
  339. });
  340. modelBuilder.Entity("MTWorkHR.Core.Entities.ChatAttachment", b =>
  341. {
  342. b.Property<long>("Id")
  343. .ValueGeneratedOnAdd()
  344. .HasColumnType("bigint")
  345. .HasColumnOrder(0);
  346. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  347. b.Property<long>("ChatMessageId")
  348. .HasColumnType("bigint");
  349. b.Property<string>("ContentType")
  350. .HasColumnType("nvarchar(max)");
  351. b.Property<DateTime>("CreateDate")
  352. .HasColumnType("datetime2")
  353. .HasColumnOrder(3);
  354. b.Property<string>("CreateUser")
  355. .HasMaxLength(450)
  356. .HasColumnType("nvarchar(450)")
  357. .HasColumnOrder(1);
  358. b.Property<string>("FileName")
  359. .HasMaxLength(250)
  360. .HasColumnType("nvarchar(250)");
  361. b.Property<string>("FilePath")
  362. .IsRequired()
  363. .HasColumnType("nvarchar(max)");
  364. b.Property<string>("FileType")
  365. .IsRequired()
  366. .HasColumnType("nvarchar(max)");
  367. b.Property<DateTime?>("UpdateDate")
  368. .HasColumnType("datetime2")
  369. .HasColumnOrder(4);
  370. b.Property<string>("UpdateUser")
  371. .HasMaxLength(450)
  372. .HasColumnType("nvarchar(450)")
  373. .HasColumnOrder(2);
  374. b.HasKey("Id");
  375. b.HasIndex("ChatMessageId");
  376. b.ToTable("ChatAttachment");
  377. });
  378. modelBuilder.Entity("MTWorkHR.Core.Entities.ChatMessage", b =>
  379. {
  380. b.Property<long>("Id")
  381. .ValueGeneratedOnAdd()
  382. .HasColumnType("bigint")
  383. .HasColumnOrder(0);
  384. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  385. b.Property<string>("Content")
  386. .IsRequired()
  387. .HasColumnType("nvarchar(max)");
  388. b.Property<DateTime>("CreateDate")
  389. .HasColumnType("datetime2")
  390. .HasColumnOrder(3);
  391. b.Property<string>("CreateUser")
  392. .HasMaxLength(450)
  393. .HasColumnType("nvarchar(450)")
  394. .HasColumnOrder(1);
  395. b.Property<bool>("IsSeen")
  396. .HasColumnType("bit");
  397. b.Property<string>("ReceiverId")
  398. .IsRequired()
  399. .HasColumnType("nvarchar(max)");
  400. b.Property<string>("ReceiverName")
  401. .IsRequired()
  402. .HasColumnType("nvarchar(max)");
  403. b.Property<string>("SenderId")
  404. .IsRequired()
  405. .HasColumnType("nvarchar(max)");
  406. b.Property<string>("SenderName")
  407. .IsRequired()
  408. .HasColumnType("nvarchar(max)");
  409. b.Property<DateTime?>("UpdateDate")
  410. .HasColumnType("datetime2")
  411. .HasColumnOrder(4);
  412. b.Property<string>("UpdateUser")
  413. .HasMaxLength(450)
  414. .HasColumnType("nvarchar(450)")
  415. .HasColumnOrder(2);
  416. b.HasKey("Id");
  417. b.ToTable("ChatMessages");
  418. });
  419. modelBuilder.Entity("MTWorkHR.Core.Entities.City", b =>
  420. {
  421. b.Property<long>("Id")
  422. .ValueGeneratedOnAdd()
  423. .HasColumnType("bigint")
  424. .HasColumnOrder(0);
  425. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  426. b.Property<string>("Code")
  427. .IsRequired()
  428. .HasColumnType("nvarchar(max)");
  429. b.Property<long>("CountryId")
  430. .HasColumnType("bigint");
  431. b.Property<string>("NameAr")
  432. .IsRequired()
  433. .HasMaxLength(250)
  434. .HasColumnType("nvarchar(250)");
  435. b.Property<string>("NameEn")
  436. .IsRequired()
  437. .HasMaxLength(250)
  438. .HasColumnType("nvarchar(250)");
  439. b.Property<string>("NameFr")
  440. .IsRequired()
  441. .HasColumnType("nvarchar(max)");
  442. b.HasKey("Id");
  443. b.HasIndex("CountryId");
  444. b.ToTable("Cities");
  445. });
  446. modelBuilder.Entity("MTWorkHR.Core.Entities.Company", b =>
  447. {
  448. b.Property<long>("Id")
  449. .ValueGeneratedOnAdd()
  450. .HasColumnType("bigint")
  451. .HasColumnOrder(0);
  452. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  453. b.Property<string>("Address")
  454. .IsRequired()
  455. .HasColumnType("nvarchar(max)");
  456. b.Property<string>("CRNumber")
  457. .IsRequired()
  458. .HasColumnType("nvarchar(max)");
  459. b.Property<long?>("CityId")
  460. .HasColumnType("bigint");
  461. b.Property<string>("CompanyName")
  462. .IsRequired()
  463. .HasColumnType("nvarchar(max)");
  464. b.Property<long?>("CountryId")
  465. .HasColumnType("bigint");
  466. b.Property<DateTime>("CreateDate")
  467. .HasColumnType("datetime2")
  468. .HasColumnOrder(3);
  469. b.Property<string>("CreateUser")
  470. .HasMaxLength(450)
  471. .HasColumnType("nvarchar(450)")
  472. .HasColumnOrder(1);
  473. b.Property<string>("DeleteUserId")
  474. .HasMaxLength(450)
  475. .HasColumnType("nvarchar(450)")
  476. .HasColumnOrder(8);
  477. b.Property<string>("Email")
  478. .IsRequired()
  479. .HasColumnType("nvarchar(max)");
  480. b.Property<bool>("IsDeleted")
  481. .HasColumnType("bit")
  482. .HasColumnOrder(7);
  483. b.Property<bool>("IsSuspended")
  484. .HasColumnType("bit");
  485. b.Property<string>("PhoneNumber")
  486. .IsRequired()
  487. .HasColumnType("nvarchar(max)");
  488. b.Property<string>("PostalCode")
  489. .HasColumnType("nvarchar(max)");
  490. b.Property<int>("TaxNumber")
  491. .HasColumnType("int");
  492. b.Property<DateTime?>("UpdateDate")
  493. .HasColumnType("datetime2")
  494. .HasColumnOrder(4);
  495. b.Property<string>("UpdateUser")
  496. .HasMaxLength(450)
  497. .HasColumnType("nvarchar(450)")
  498. .HasColumnOrder(2);
  499. b.Property<string>("UserId")
  500. .IsRequired()
  501. .HasColumnType("nvarchar(max)");
  502. b.HasKey("Id");
  503. b.HasIndex("CityId");
  504. b.HasIndex("CountryId");
  505. b.ToTable("Companies");
  506. });
  507. modelBuilder.Entity("MTWorkHR.Core.Entities.Contract", b =>
  508. {
  509. b.Property<long>("Id")
  510. .ValueGeneratedOnAdd()
  511. .HasColumnType("bigint")
  512. .HasColumnOrder(0);
  513. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  514. b.Property<int?>("AcademicQualificationId")
  515. .HasColumnType("int");
  516. b.Property<string>("BillingCycle")
  517. .HasColumnType("nvarchar(max)");
  518. b.Property<long>("CompanyId")
  519. .HasColumnType("bigint");
  520. b.Property<string>("CompanyRepresentativeId")
  521. .IsRequired()
  522. .HasColumnType("nvarchar(max)");
  523. b.Property<int?>("ContractDurationId")
  524. .HasColumnType("int");
  525. b.Property<int>("ContractStatusId")
  526. .HasColumnType("int");
  527. b.Property<int>("ContractTypeId")
  528. .HasColumnType("int");
  529. b.Property<int?>("ContractorTaxResidencyId")
  530. .HasColumnType("int");
  531. b.Property<DateTime>("CreateDate")
  532. .HasColumnType("datetime2")
  533. .HasColumnOrder(3);
  534. b.Property<string>("CreateUser")
  535. .HasMaxLength(450)
  536. .HasColumnType("nvarchar(450)")
  537. .HasColumnOrder(1);
  538. b.Property<string>("Currency")
  539. .HasMaxLength(50)
  540. .HasColumnType("nvarchar(50)");
  541. b.Property<string>("DeleteUserId")
  542. .HasMaxLength(450)
  543. .HasColumnType("nvarchar(450)")
  544. .HasColumnOrder(8);
  545. b.Property<DateTime?>("EndDailyWorkingHours")
  546. .HasColumnType("datetime2");
  547. b.Property<DateTime?>("EndDate")
  548. .HasColumnType("datetime2");
  549. b.Property<string>("FilePath")
  550. .HasColumnType("nvarchar(max)");
  551. b.Property<decimal?>("FirstPatchAmount")
  552. .HasColumnType("decimal(18,2)");
  553. b.Property<DateTime?>("FirstPatchDateFrom")
  554. .HasColumnType("datetime2");
  555. b.Property<DateTime?>("FirstPatchDateTo")
  556. .HasColumnType("datetime2");
  557. b.Property<bool>("IncludesAllAllowances")
  558. .HasColumnType("bit");
  559. b.Property<bool>("IsDeleted")
  560. .HasColumnType("bit")
  561. .HasColumnOrder(7);
  562. b.Property<string>("JobDescription")
  563. .HasColumnType("nvarchar(max)");
  564. b.Property<int?>("JobId")
  565. .HasColumnType("int");
  566. b.Property<string>("JobNumber")
  567. .HasMaxLength(150)
  568. .HasColumnType("nvarchar(150)");
  569. b.Property<string>("JobTitleName")
  570. .HasColumnType("nvarchar(max)");
  571. b.Property<decimal?>("LastPatchAmount")
  572. .HasColumnType("decimal(18,2)");
  573. b.Property<DateTime?>("LastPatchDateFrom")
  574. .HasColumnType("datetime2");
  575. b.Property<DateTime?>("LastPatchDateTo")
  576. .HasColumnType("datetime2");
  577. b.Property<int?>("NoticePeriodBeforeTermination")
  578. .HasColumnType("int");
  579. b.Property<decimal?>("Salary")
  580. .HasColumnType("decimal(18,2)");
  581. b.Property<int?>("SpecializationId")
  582. .HasColumnType("int");
  583. b.Property<DateTime?>("StartDailyWorkingHours")
  584. .HasColumnType("datetime2");
  585. b.Property<DateTime?>("StartDate")
  586. .HasColumnType("datetime2");
  587. b.Property<int>("TrialPeriod")
  588. .HasColumnType("int");
  589. b.Property<int>("TypeOfWork")
  590. .HasColumnType("int");
  591. b.Property<DateTime?>("UpdateDate")
  592. .HasColumnType("datetime2")
  593. .HasColumnOrder(4);
  594. b.Property<string>("UpdateUser")
  595. .HasMaxLength(450)
  596. .HasColumnType("nvarchar(450)")
  597. .HasColumnOrder(2);
  598. b.Property<string>("UserId")
  599. .IsRequired()
  600. .HasColumnType("nvarchar(max)");
  601. b.Property<int?>("VacationDays")
  602. .HasColumnType("int");
  603. b.Property<int?>("WhoCanTerminateContract")
  604. .HasColumnType("int");
  605. b.Property<int?>("WhoCanTerminateContractInTrial")
  606. .HasColumnType("int");
  607. b.Property<int?>("WorkCountryId")
  608. .HasColumnType("int");
  609. b.Property<int?>("WorkStateId")
  610. .HasColumnType("int");
  611. b.Property<string>("WorkingDays")
  612. .HasColumnType("nvarchar(max)");
  613. b.Property<int?>("WorkingHours")
  614. .HasColumnType("int");
  615. b.Property<int?>("WorkingHoursNum")
  616. .HasColumnType("int");
  617. b.HasKey("Id");
  618. b.HasIndex("CompanyId");
  619. b.ToTable("Contracts");
  620. });
  621. modelBuilder.Entity("MTWorkHR.Core.Entities.ContractAllowance", b =>
  622. {
  623. b.Property<long>("Id")
  624. .ValueGeneratedOnAdd()
  625. .HasColumnType("bigint")
  626. .HasColumnOrder(0);
  627. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  628. b.Property<string>("AllowanceDesc")
  629. .HasColumnType("nvarchar(max)");
  630. b.Property<long>("AllowanceType")
  631. .HasColumnType("bigint");
  632. b.Property<long>("ContractId")
  633. .HasColumnType("bigint");
  634. b.Property<DateTime>("CreateDate")
  635. .HasColumnType("datetime2")
  636. .HasColumnOrder(3);
  637. b.Property<string>("CreateUser")
  638. .HasMaxLength(450)
  639. .HasColumnType("nvarchar(450)")
  640. .HasColumnOrder(1);
  641. b.Property<decimal>("EntitlementAmount")
  642. .HasColumnType("decimal(18,2)");
  643. b.Property<decimal>("EntitlementPercent")
  644. .HasColumnType("decimal(18,2)");
  645. b.Property<string>("PaymentType")
  646. .HasColumnType("nvarchar(max)");
  647. b.Property<DateTime?>("UpdateDate")
  648. .HasColumnType("datetime2")
  649. .HasColumnOrder(4);
  650. b.Property<string>("UpdateUser")
  651. .HasMaxLength(450)
  652. .HasColumnType("nvarchar(450)")
  653. .HasColumnOrder(2);
  654. b.HasKey("Id");
  655. b.HasIndex("ContractId");
  656. b.ToTable("ContractAllowance");
  657. });
  658. modelBuilder.Entity("MTWorkHR.Core.Entities.ContractTask", b =>
  659. {
  660. b.Property<long>("Id")
  661. .ValueGeneratedOnAdd()
  662. .HasColumnType("bigint")
  663. .HasColumnOrder(0);
  664. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  665. b.Property<decimal?>("Amount")
  666. .HasColumnType("decimal(18,2)");
  667. b.Property<long>("ContractId")
  668. .HasColumnType("bigint");
  669. b.Property<DateTime>("CreateDate")
  670. .HasColumnType("datetime2")
  671. .HasColumnOrder(3);
  672. b.Property<string>("CreateUser")
  673. .HasMaxLength(450)
  674. .HasColumnType("nvarchar(450)")
  675. .HasColumnOrder(1);
  676. b.Property<string>("ScopeOfWork")
  677. .HasColumnType("nvarchar(max)");
  678. b.Property<DateTime?>("StartDate")
  679. .HasColumnType("datetime2");
  680. b.Property<string>("Title")
  681. .IsRequired()
  682. .HasMaxLength(250)
  683. .HasColumnType("nvarchar(250)");
  684. b.Property<DateTime?>("UpdateDate")
  685. .HasColumnType("datetime2")
  686. .HasColumnOrder(4);
  687. b.Property<string>("UpdateUser")
  688. .HasMaxLength(450)
  689. .HasColumnType("nvarchar(450)")
  690. .HasColumnOrder(2);
  691. b.HasKey("Id");
  692. b.HasIndex("ContractId");
  693. b.ToTable("ContractTask");
  694. });
  695. modelBuilder.Entity("MTWorkHR.Core.Entities.ContractTaskAttachment", b =>
  696. {
  697. b.Property<long>("Id")
  698. .ValueGeneratedOnAdd()
  699. .HasColumnType("bigint")
  700. .HasColumnOrder(0);
  701. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  702. b.Property<long?>("AttachmentTypeId")
  703. .HasColumnType("bigint");
  704. b.Property<string>("ContentType")
  705. .HasColumnType("nvarchar(max)");
  706. b.Property<long>("ContractTaskId")
  707. .HasColumnType("bigint");
  708. b.Property<DateTime>("CreateDate")
  709. .HasColumnType("datetime2")
  710. .HasColumnOrder(3);
  711. b.Property<string>("CreateUser")
  712. .HasMaxLength(450)
  713. .HasColumnType("nvarchar(450)")
  714. .HasColumnOrder(1);
  715. b.Property<string>("FileName")
  716. .HasMaxLength(250)
  717. .HasColumnType("nvarchar(250)");
  718. b.Property<string>("FilePath")
  719. .HasColumnType("nvarchar(max)");
  720. b.Property<string>("OriginalName")
  721. .HasMaxLength(250)
  722. .HasColumnType("nvarchar(250)");
  723. b.Property<DateTime?>("UpdateDate")
  724. .HasColumnType("datetime2")
  725. .HasColumnOrder(4);
  726. b.Property<string>("UpdateUser")
  727. .HasMaxLength(450)
  728. .HasColumnType("nvarchar(450)")
  729. .HasColumnOrder(2);
  730. b.HasKey("Id");
  731. b.HasIndex("ContractTaskId");
  732. b.ToTable("ContractTaskAttachment");
  733. });
  734. modelBuilder.Entity("MTWorkHR.Core.Entities.CountryLookup", b =>
  735. {
  736. b.Property<long>("Id")
  737. .ValueGeneratedOnAdd()
  738. .HasColumnType("bigint")
  739. .HasColumnOrder(0);
  740. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  741. b.Property<string>("Code")
  742. .IsRequired()
  743. .HasColumnType("nvarchar(max)");
  744. b.Property<string>("NameAr")
  745. .IsRequired()
  746. .HasMaxLength(250)
  747. .HasColumnType("nvarchar(250)");
  748. b.Property<string>("NameEn")
  749. .IsRequired()
  750. .HasMaxLength(250)
  751. .HasColumnType("nvarchar(250)");
  752. b.Property<string>("NameFr")
  753. .IsRequired()
  754. .HasColumnType("nvarchar(max)");
  755. b.HasKey("Id");
  756. b.ToTable("CountryLookups");
  757. });
  758. modelBuilder.Entity("MTWorkHR.Core.Entities.FileLog", b =>
  759. {
  760. b.Property<long>("Id")
  761. .ValueGeneratedOnAdd()
  762. .HasColumnType("bigint")
  763. .HasColumnOrder(0);
  764. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  765. b.Property<string>("Channel")
  766. .HasColumnType("nvarchar(max)");
  767. b.Property<DateTime>("CreateDate")
  768. .HasColumnType("datetime2");
  769. b.Property<string>("CreateUser")
  770. .IsRequired()
  771. .HasColumnType("nvarchar(max)");
  772. b.Property<string>("ErrorCode")
  773. .IsRequired()
  774. .HasColumnType("nvarchar(max)");
  775. b.Property<string>("ErrorDescription")
  776. .IsRequired()
  777. .HasColumnType("nvarchar(max)");
  778. b.Property<string>("InnerException")
  779. .HasColumnType("nvarchar(max)");
  780. b.Property<string>("Input")
  781. .HasColumnType("nvarchar(max)");
  782. b.Property<string>("Method")
  783. .IsRequired()
  784. .HasColumnType("nvarchar(max)");
  785. b.Property<string>("QueryString")
  786. .HasColumnType("nvarchar(max)");
  787. b.Property<string>("ServerIP")
  788. .HasColumnType("nvarchar(max)");
  789. b.Property<string>("ServiceResponseTimeInSeconds")
  790. .IsRequired()
  791. .HasColumnType("nvarchar(max)");
  792. b.Property<string>("UserIP")
  793. .HasColumnType("nvarchar(max)");
  794. b.Property<string>("userAgent")
  795. .HasColumnType("nvarchar(max)");
  796. b.HasKey("Id");
  797. b.ToTable("FileLogs");
  798. });
  799. modelBuilder.Entity("MTWorkHR.Core.Entities.HubConnection", b =>
  800. {
  801. b.Property<long>("Id")
  802. .ValueGeneratedOnAdd()
  803. .HasColumnType("bigint")
  804. .HasColumnOrder(0);
  805. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  806. b.Property<string>("SignalrId")
  807. .HasColumnType("nvarchar(max)");
  808. b.Property<DateTime>("TimeStamp")
  809. .HasColumnType("datetime2");
  810. b.Property<string>("UserId")
  811. .HasColumnType("nvarchar(max)");
  812. b.Property<string>("UserName")
  813. .HasColumnType("nvarchar(max)");
  814. b.HasKey("Id");
  815. b.ToTable("HubConnections");
  816. });
  817. modelBuilder.Entity("MTWorkHR.Core.Entities.Industry", b =>
  818. {
  819. b.Property<long>("Id")
  820. .ValueGeneratedOnAdd()
  821. .HasColumnType("bigint")
  822. .HasColumnOrder(0);
  823. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  824. b.Property<string>("NameAr")
  825. .IsRequired()
  826. .HasMaxLength(250)
  827. .HasColumnType("nvarchar(250)");
  828. b.Property<string>("NameEn")
  829. .IsRequired()
  830. .HasMaxLength(250)
  831. .HasColumnType("nvarchar(250)");
  832. b.HasKey("Id");
  833. b.ToTable("Industries");
  834. b.HasData(
  835. new
  836. {
  837. Id = 1L,
  838. NameAr = "صناعة الطيران والفضاء",
  839. NameEn = "Aerospace industry"
  840. },
  841. new
  842. {
  843. Id = 2L,
  844. NameAr = "صناعة الزراعة",
  845. NameEn = "Agricultural industry"
  846. },
  847. new
  848. {
  849. Id = 3L,
  850. NameAr = "صناعة السيارات",
  851. NameEn = "Automotive industry"
  852. },
  853. new
  854. {
  855. Id = 4L,
  856. NameAr = "صناعة المعادن الأساسية",
  857. NameEn = "Basic metal"
  858. },
  859. new
  860. {
  861. Id = 5L,
  862. NameAr = "صناعة الكيماويات",
  863. NameEn = "Chemical industry"
  864. },
  865. new
  866. {
  867. Id = 6L,
  868. NameAr = "صناعة الحواسيب",
  869. NameEn = "Computer industry"
  870. },
  871. new
  872. {
  873. Id = 7L,
  874. NameAr = "صناعة البناء",
  875. NameEn = "Construction industry"
  876. },
  877. new
  878. {
  879. Id = 8L,
  880. NameAr = "صناعة الإبداعية",
  881. NameEn = "Creative industry"
  882. },
  883. new
  884. {
  885. Id = 9L,
  886. NameAr = "صناعة الثقافة",
  887. NameEn = "Cultural industry"
  888. },
  889. new
  890. {
  891. Id = 10L,
  892. NameAr = "صناعة الدفاع",
  893. NameEn = "Defense industry"
  894. },
  895. new
  896. {
  897. Id = 11L,
  898. NameAr = "صناعة التعليم",
  899. NameEn = "Education industry"
  900. },
  901. new
  902. {
  903. Id = 12L,
  904. NameAr = "صناعة الطاقة الكهربائية",
  905. NameEn = "Electric power"
  906. },
  907. new
  908. {
  909. Id = 13L,
  910. NameAr = "صناعة الإلكترونيات",
  911. NameEn = "Electronics industry"
  912. },
  913. new
  914. {
  915. Id = 14L,
  916. NameAr = "صناعة الطاقة",
  917. NameEn = "Energy industry"
  918. },
  919. new
  920. {
  921. Id = 15L,
  922. NameAr = "صناعة الهندسة",
  923. NameEn = "Engineering industry"
  924. },
  925. new
  926. {
  927. Id = 16L,
  928. NameAr = "صناعة الترفيه",
  929. NameEn = "Entertainment industry"
  930. },
  931. new
  932. {
  933. Id = 17L,
  934. NameAr = "صناعة الزراعة",
  935. NameEn = "Farming industry"
  936. },
  937. new
  938. {
  939. Id = 18L,
  940. NameAr = "صناعة الموضة",
  941. NameEn = "Fashion industry"
  942. },
  943. new
  944. {
  945. Id = 19L,
  946. NameAr = "صناعة السينما",
  947. NameEn = "Film industry"
  948. },
  949. new
  950. {
  951. Id = 20L,
  952. NameAr = "صناعة الخدمات المالية",
  953. NameEn = "Financial services"
  954. },
  955. new
  956. {
  957. Id = 21L,
  958. NameAr = "صناعة الصيد",
  959. NameEn = "Fishing industry"
  960. },
  961. new
  962. {
  963. Id = 22L,
  964. NameAr = "صناعة الأغذية",
  965. NameEn = "Food industry"
  966. },
  967. new
  968. {
  969. Id = 23L,
  970. NameAr = "صناعة الغابات",
  971. NameEn = "Forestry industry"
  972. },
  973. new
  974. {
  975. Id = 24L,
  976. NameAr = "صناعة القمار",
  977. NameEn = "Gambling industry"
  978. },
  979. new
  980. {
  981. Id = 25L,
  982. NameAr = "صناعة الغاز",
  983. NameEn = "Gas industry"
  984. },
  985. new
  986. {
  987. Id = 26L,
  988. NameAr = "صناعة البيئة",
  989. NameEn = "Green industry"
  990. },
  991. new
  992. {
  993. Id = 27L,
  994. NameAr = "صناعة الخدمات الصحية",
  995. NameEn = "Health services industry"
  996. },
  997. new
  998. {
  999. Id = 28L,
  1000. NameAr = "صناعة الضيافة",
  1001. NameEn = "Hospitality industry"
  1002. },
  1003. new
  1004. {
  1005. Id = 29L,
  1006. NameAr = "صناعة الفنادق",
  1007. NameEn = "Hotels industry"
  1008. },
  1009. new
  1010. {
  1011. Id = 30L,
  1012. NameAr = "صناعة الروبوتات الصناعية",
  1013. NameEn = "Industrial robot"
  1014. },
  1015. new
  1016. {
  1017. Id = 31L,
  1018. NameAr = "صناعة المعلومات",
  1019. NameEn = "Information industry"
  1020. },
  1021. new
  1022. {
  1023. Id = 32L,
  1024. NameAr = "صناعة تكنولوجيا المعلومات",
  1025. NameEn = "Information technology"
  1026. },
  1027. new
  1028. {
  1029. Id = 33L,
  1030. NameAr = "صناعة البنية التحتية",
  1031. NameEn = "Infrastructure industry"
  1032. },
  1033. new
  1034. {
  1035. Id = 34L,
  1036. NameAr = "صناعة التأمين",
  1037. NameEn = "Insurance industry"
  1038. },
  1039. new
  1040. {
  1041. Id = 35L,
  1042. NameAr = "صناعة الترفيه",
  1043. NameEn = "Leisure industry"
  1044. },
  1045. new
  1046. {
  1047. Id = 36L,
  1048. NameAr = "صناعة التكنولوجيا المنخفضة",
  1049. NameEn = "Low technology"
  1050. },
  1051. new
  1052. {
  1053. Id = 37L,
  1054. NameAr = "صناعة التصنيع",
  1055. NameEn = "Manufacturing industry"
  1056. },
  1057. new
  1058. {
  1059. Id = 38L,
  1060. NameAr = "صناعة اللحوم",
  1061. NameEn = "Meat industry"
  1062. },
  1063. new
  1064. {
  1065. Id = 39L,
  1066. NameAr = "صناعة الإعلام",
  1067. NameEn = "Media industry"
  1068. },
  1069. new
  1070. {
  1071. Id = 40L,
  1072. NameAr = "صناعة التجارة",
  1073. NameEn = "Merchandising industry"
  1074. },
  1075. new
  1076. {
  1077. Id = 41L,
  1078. NameAr = "صناعة التعدين",
  1079. NameEn = "Mining industry"
  1080. },
  1081. new
  1082. {
  1083. Id = 42L,
  1084. NameAr = "صناعة الموسيقى",
  1085. NameEn = "Music industry"
  1086. },
  1087. new
  1088. {
  1089. Id = 43L,
  1090. NameAr = "صناعة وسائل الإعلام",
  1091. NameEn = "News media"
  1092. },
  1093. new
  1094. {
  1095. Id = 44L,
  1096. NameAr = "صناعة النفط والغاز",
  1097. NameEn = "Oil and gas industry"
  1098. },
  1099. new
  1100. {
  1101. Id = 45L,
  1102. NameAr = "صناعة الأدوية",
  1103. NameEn = "Pharmaceutical industry"
  1104. },
  1105. new
  1106. {
  1107. Id = 46L,
  1108. NameAr = "صناعة المهنية",
  1109. NameEn = "Professional industry"
  1110. },
  1111. new
  1112. {
  1113. Id = 47L,
  1114. NameAr = "صناعة النشر",
  1115. NameEn = "Publishing industry"
  1116. },
  1117. new
  1118. {
  1119. Id = 48L,
  1120. NameAr = "صناعة الورق واللب",
  1121. NameEn = "Pulp and paper industry"
  1122. },
  1123. new
  1124. {
  1125. Id = 49L,
  1126. NameAr = "صناعة السكك الحديدية",
  1127. NameEn = "Railway industry"
  1128. },
  1129. new
  1130. {
  1131. Id = 50L,
  1132. NameAr = "الانشاءات",
  1133. NameEn = "Real estate"
  1134. });
  1135. });
  1136. modelBuilder.Entity("MTWorkHR.Core.Entities.Invoice", b =>
  1137. {
  1138. b.Property<long>("Id")
  1139. .ValueGeneratedOnAdd()
  1140. .HasColumnType("bigint")
  1141. .HasColumnOrder(0);
  1142. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1143. b.Property<decimal?>("Amount")
  1144. .HasColumnType("decimal(18,2)");
  1145. b.Property<int?>("ContractId")
  1146. .HasColumnType("int");
  1147. b.Property<DateTime>("CreateDate")
  1148. .HasColumnType("datetime2")
  1149. .HasColumnOrder(3);
  1150. b.Property<string>("CreateUser")
  1151. .HasMaxLength(450)
  1152. .HasColumnType("nvarchar(450)")
  1153. .HasColumnOrder(1);
  1154. b.Property<string>("DeleteUserId")
  1155. .HasMaxLength(450)
  1156. .HasColumnType("nvarchar(450)")
  1157. .HasColumnOrder(8);
  1158. b.Property<DateTime?>("InvoiceDate")
  1159. .HasColumnType("datetime2");
  1160. b.Property<string>("InvoiceNumber")
  1161. .HasColumnType("nvarchar(max)");
  1162. b.Property<bool>("IsDeleted")
  1163. .HasColumnType("bit")
  1164. .HasColumnOrder(7);
  1165. b.Property<int?>("Status")
  1166. .HasColumnType("int");
  1167. b.Property<DateTime?>("UpdateDate")
  1168. .HasColumnType("datetime2")
  1169. .HasColumnOrder(4);
  1170. b.Property<string>("UpdateUser")
  1171. .HasMaxLength(450)
  1172. .HasColumnType("nvarchar(450)")
  1173. .HasColumnOrder(2);
  1174. b.Property<string>("UserId")
  1175. .HasColumnType("nvarchar(max)");
  1176. b.HasKey("Id");
  1177. b.ToTable("Invoices");
  1178. });
  1179. modelBuilder.Entity("MTWorkHR.Core.Entities.JobInterview", b =>
  1180. {
  1181. b.Property<long>("Id")
  1182. .ValueGeneratedOnAdd()
  1183. .HasColumnType("bigint")
  1184. .HasColumnOrder(0);
  1185. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1186. b.Property<long>("CompanyId")
  1187. .HasColumnType("bigint");
  1188. b.Property<DateTime>("CreateDate")
  1189. .HasColumnType("datetime2")
  1190. .HasColumnOrder(3);
  1191. b.Property<string>("CreateUser")
  1192. .HasMaxLength(450)
  1193. .HasColumnType("nvarchar(450)")
  1194. .HasColumnOrder(1);
  1195. b.Property<string>("DeleteUserId")
  1196. .HasMaxLength(450)
  1197. .HasColumnType("nvarchar(450)")
  1198. .HasColumnOrder(8);
  1199. b.Property<string>("Email")
  1200. .IsRequired()
  1201. .HasColumnType("nvarchar(max)");
  1202. b.Property<DateTime>("InterviewDate")
  1203. .HasColumnType("datetime2");
  1204. b.Property<string>("InterviewLink")
  1205. .HasMaxLength(250)
  1206. .HasColumnType("nvarchar(250)");
  1207. b.Property<string>("InterviewTime")
  1208. .HasColumnType("nvarchar(max)");
  1209. b.Property<bool>("IsDeleted")
  1210. .HasColumnType("bit")
  1211. .HasColumnOrder(7);
  1212. b.Property<bool?>("SendByMail")
  1213. .HasColumnType("bit");
  1214. b.Property<DateTime?>("UpdateDate")
  1215. .HasColumnType("datetime2")
  1216. .HasColumnOrder(4);
  1217. b.Property<string>("UpdateUser")
  1218. .HasMaxLength(450)
  1219. .HasColumnType("nvarchar(450)")
  1220. .HasColumnOrder(2);
  1221. b.Property<string>("UserId")
  1222. .IsRequired()
  1223. .HasColumnType("nvarchar(max)");
  1224. b.HasKey("Id");
  1225. b.HasIndex("CompanyId");
  1226. b.ToTable("JobInterviews");
  1227. });
  1228. modelBuilder.Entity("MTWorkHR.Core.Entities.JobTitle", b =>
  1229. {
  1230. b.Property<long>("Id")
  1231. .ValueGeneratedOnAdd()
  1232. .HasColumnType("bigint")
  1233. .HasColumnOrder(0);
  1234. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1235. b.Property<string>("NameAr")
  1236. .IsRequired()
  1237. .HasMaxLength(250)
  1238. .HasColumnType("nvarchar(250)");
  1239. b.Property<string>("NameEn")
  1240. .IsRequired()
  1241. .HasMaxLength(250)
  1242. .HasColumnType("nvarchar(250)");
  1243. b.HasKey("Id");
  1244. b.ToTable("JobTitles");
  1245. b.HasData(
  1246. new
  1247. {
  1248. Id = 1L,
  1249. NameAr = "مساعد ادارى",
  1250. NameEn = "Administrative Assistant"
  1251. },
  1252. new
  1253. {
  1254. Id = 2L,
  1255. NameAr = "موظف استقبال",
  1256. NameEn = "Receptionist"
  1257. },
  1258. new
  1259. {
  1260. Id = 3L,
  1261. NameAr = "مدير مكتب",
  1262. NameEn = "Office Manager"
  1263. },
  1264. new
  1265. {
  1266. Id = 4L,
  1267. NameAr = "مدقق محتوى",
  1268. NameEn = "Auditing Clerk"
  1269. },
  1270. new
  1271. {
  1272. Id = 5L,
  1273. NameAr = "محاسب",
  1274. NameEn = "Bookkeeper"
  1275. },
  1276. new
  1277. {
  1278. Id = 6L,
  1279. NameAr = "مدير تنفيذى",
  1280. NameEn = "Account Executive"
  1281. },
  1282. new
  1283. {
  1284. Id = 7L,
  1285. NameAr = "مدير فرع",
  1286. NameEn = "Branch Manager"
  1287. },
  1288. new
  1289. {
  1290. Id = 8L,
  1291. NameAr = "مدير",
  1292. NameEn = "Business Manager"
  1293. },
  1294. new
  1295. {
  1296. Id = 9L,
  1297. NameAr = "مسؤول الجودة",
  1298. NameEn = "Quality Control Coordinator"
  1299. },
  1300. new
  1301. {
  1302. Id = 10L,
  1303. NameAr = "مدير ادارى",
  1304. NameEn = "Administrative Manager"
  1305. },
  1306. new
  1307. {
  1308. Id = 11L,
  1309. NameAr = "الرئيس التنفيذي",
  1310. NameEn = "Chief Executive Officer"
  1311. },
  1312. new
  1313. {
  1314. Id = 12L,
  1315. NameAr = "محلل",
  1316. NameEn = "Business Analyst"
  1317. },
  1318. new
  1319. {
  1320. Id = 13L,
  1321. NameAr = "مدير المخاطر",
  1322. NameEn = "Risk Manager"
  1323. },
  1324. new
  1325. {
  1326. Id = 14L,
  1327. NameAr = "موارد بشرية",
  1328. NameEn = "Human Resources"
  1329. },
  1330. new
  1331. {
  1332. Id = 15L,
  1333. NameAr = "مساعد مكتب",
  1334. NameEn = "Office Assistant"
  1335. },
  1336. new
  1337. {
  1338. Id = 16L,
  1339. NameAr = "السكرتارية",
  1340. NameEn = "Secretary"
  1341. },
  1342. new
  1343. {
  1344. Id = 17L,
  1345. NameAr = "موظف مكتب",
  1346. NameEn = "Office Clerk"
  1347. },
  1348. new
  1349. {
  1350. Id = 18L,
  1351. NameAr = "جامع الحسابات",
  1352. NameEn = "Account Collector"
  1353. },
  1354. new
  1355. {
  1356. Id = 19L,
  1357. NameAr = "أخصائي إداري",
  1358. NameEn = "Administrative Specialist"
  1359. },
  1360. new
  1361. {
  1362. Id = 20L,
  1363. NameAr = "مساعد تنفيذي",
  1364. NameEn = "Executive Assistant"
  1365. },
  1366. new
  1367. {
  1368. Id = 21L,
  1369. NameAr = "مسؤل البرنامج",
  1370. NameEn = "Program Administrator"
  1371. },
  1372. new
  1373. {
  1374. Id = 22L,
  1375. NameAr = "مدير البرنامج",
  1376. NameEn = "Program Manager"
  1377. },
  1378. new
  1379. {
  1380. Id = 23L,
  1381. NameAr = "محلل إداري",
  1382. NameEn = "Administrative Analyst"
  1383. },
  1384. new
  1385. {
  1386. Id = 24L,
  1387. NameAr = "مدخل بيانات",
  1388. NameEn = "Data Entry"
  1389. });
  1390. });
  1391. modelBuilder.Entity("MTWorkHR.Core.Entities.LeaveType", b =>
  1392. {
  1393. b.Property<long>("Id")
  1394. .ValueGeneratedOnAdd()
  1395. .HasColumnType("bigint")
  1396. .HasColumnOrder(0);
  1397. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1398. b.Property<int>("DefaultDays")
  1399. .HasColumnType("int");
  1400. b.Property<string>("NameAr")
  1401. .IsRequired()
  1402. .HasColumnType("nvarchar(max)");
  1403. b.Property<string>("NameEn")
  1404. .IsRequired()
  1405. .HasColumnType("nvarchar(max)");
  1406. b.HasKey("Id");
  1407. b.ToTable("LeaveTypes");
  1408. b.HasData(
  1409. new
  1410. {
  1411. Id = 1L,
  1412. DefaultDays = 30,
  1413. NameAr = "أجازة سنوية",
  1414. NameEn = "Annual Leave"
  1415. },
  1416. new
  1417. {
  1418. Id = 2L,
  1419. DefaultDays = 90,
  1420. NameAr = "أجازة مرضية",
  1421. NameEn = "Sick Leave"
  1422. },
  1423. new
  1424. {
  1425. Id = 3L,
  1426. DefaultDays = 5,
  1427. NameAr = "أجازة زواج",
  1428. NameEn = "Marriage Leave"
  1429. },
  1430. new
  1431. {
  1432. Id = 4L,
  1433. DefaultDays = 20,
  1434. NameAr = "أجازة وضع",
  1435. NameEn = "Maternity leave"
  1436. },
  1437. new
  1438. {
  1439. Id = 5L,
  1440. DefaultDays = 10,
  1441. NameAr = "أجازة طارئة",
  1442. NameEn = "Emergency leave"
  1443. },
  1444. new
  1445. {
  1446. Id = 6L,
  1447. DefaultDays = 3,
  1448. NameAr = "وفاة",
  1449. NameEn = "Death of a relative"
  1450. });
  1451. });
  1452. modelBuilder.Entity("MTWorkHR.Core.Entities.LoginOTP", b =>
  1453. {
  1454. b.Property<long>("Id")
  1455. .ValueGeneratedOnAdd()
  1456. .HasColumnType("bigint")
  1457. .HasColumnOrder(0);
  1458. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1459. b.Property<DateTime>("CreateDate")
  1460. .HasColumnType("datetime2");
  1461. b.Property<DateTime>("ExpireDate")
  1462. .HasColumnType("datetime2");
  1463. b.Property<string>("OTP")
  1464. .IsRequired()
  1465. .HasColumnType("nvarchar(max)");
  1466. b.Property<string>("UserId")
  1467. .IsRequired()
  1468. .HasColumnType("nvarchar(max)");
  1469. b.HasKey("Id");
  1470. b.ToTable("LoginOTPs");
  1471. });
  1472. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  1473. {
  1474. b.Property<long>("Id")
  1475. .ValueGeneratedOnAdd()
  1476. .HasColumnType("bigint")
  1477. .HasColumnOrder(0);
  1478. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1479. b.Property<long>("CompanyId")
  1480. .HasColumnType("bigint");
  1481. b.Property<DateTime>("CreateDate")
  1482. .HasColumnType("datetime2")
  1483. .HasColumnOrder(3);
  1484. b.Property<string>("CreateUser")
  1485. .HasMaxLength(450)
  1486. .HasColumnType("nvarchar(450)")
  1487. .HasColumnOrder(1);
  1488. b.Property<string>("DeleteUserId")
  1489. .HasMaxLength(450)
  1490. .HasColumnType("nvarchar(450)")
  1491. .HasColumnOrder(8);
  1492. b.Property<string>("Description")
  1493. .HasMaxLength(500)
  1494. .HasColumnType("nvarchar(500)");
  1495. b.Property<string>("EndTime")
  1496. .IsRequired()
  1497. .HasColumnType("nvarchar(max)");
  1498. b.Property<bool>("IsDeleted")
  1499. .HasColumnType("bit")
  1500. .HasColumnOrder(7);
  1501. b.Property<string>("Location")
  1502. .HasMaxLength(250)
  1503. .HasColumnType("nvarchar(250)");
  1504. b.Property<DateTime>("MeetingDate")
  1505. .HasColumnType("datetime2");
  1506. b.Property<string>("MeetingLink")
  1507. .HasMaxLength(250)
  1508. .HasColumnType("nvarchar(250)");
  1509. b.Property<int>("RepeatId")
  1510. .HasColumnType("int");
  1511. b.Property<string>("StartTime")
  1512. .IsRequired()
  1513. .HasColumnType("nvarchar(max)");
  1514. b.Property<string>("Title")
  1515. .IsRequired()
  1516. .HasMaxLength(250)
  1517. .HasColumnType("nvarchar(250)");
  1518. b.Property<DateTime?>("UpdateDate")
  1519. .HasColumnType("datetime2")
  1520. .HasColumnOrder(4);
  1521. b.Property<string>("UpdateUser")
  1522. .HasMaxLength(450)
  1523. .HasColumnType("nvarchar(450)")
  1524. .HasColumnOrder(2);
  1525. b.HasKey("Id");
  1526. b.HasIndex("CompanyId");
  1527. b.ToTable("Meetings");
  1528. });
  1529. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingLog", b =>
  1530. {
  1531. b.Property<long>("Id")
  1532. .ValueGeneratedOnAdd()
  1533. .HasColumnType("bigint")
  1534. .HasColumnOrder(0);
  1535. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1536. b.Property<string>("Channel")
  1537. .HasColumnType("nvarchar(max)");
  1538. b.Property<DateTime>("CreateDate")
  1539. .HasColumnType("datetime2");
  1540. b.Property<string>("CreateUser")
  1541. .IsRequired()
  1542. .HasColumnType("nvarchar(max)");
  1543. b.Property<string>("ErrorCode")
  1544. .IsRequired()
  1545. .HasColumnType("nvarchar(max)");
  1546. b.Property<string>("ErrorDescription")
  1547. .IsRequired()
  1548. .HasColumnType("nvarchar(max)");
  1549. b.Property<string>("InnerException")
  1550. .HasColumnType("nvarchar(max)");
  1551. b.Property<string>("Input")
  1552. .HasColumnType("nvarchar(max)");
  1553. b.Property<string>("Method")
  1554. .IsRequired()
  1555. .HasColumnType("nvarchar(max)");
  1556. b.Property<string>("QueryString")
  1557. .HasColumnType("nvarchar(max)");
  1558. b.Property<string>("ServerIP")
  1559. .HasColumnType("nvarchar(max)");
  1560. b.Property<string>("ServiceResponseTimeInSeconds")
  1561. .IsRequired()
  1562. .HasColumnType("nvarchar(max)");
  1563. b.Property<string>("UserIP")
  1564. .HasColumnType("nvarchar(max)");
  1565. b.Property<string>("userAgent")
  1566. .HasColumnType("nvarchar(max)");
  1567. b.HasKey("Id");
  1568. b.ToTable("MeetingLogs");
  1569. });
  1570. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  1571. {
  1572. b.Property<long>("Id")
  1573. .ValueGeneratedOnAdd()
  1574. .HasColumnType("bigint")
  1575. .HasColumnOrder(0);
  1576. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1577. b.Property<string>("AssignedUserId")
  1578. .IsRequired()
  1579. .HasColumnType("nvarchar(max)");
  1580. b.Property<string>("AssignedUserName")
  1581. .IsRequired()
  1582. .HasColumnType("nvarchar(max)");
  1583. b.Property<DateTime>("CreateDate")
  1584. .HasColumnType("datetime2")
  1585. .HasColumnOrder(3);
  1586. b.Property<string>("CreateUser")
  1587. .HasMaxLength(450)
  1588. .HasColumnType("nvarchar(450)")
  1589. .HasColumnOrder(1);
  1590. b.Property<long>("MeetingId")
  1591. .HasColumnType("bigint");
  1592. b.Property<DateTime?>("UpdateDate")
  1593. .HasColumnType("datetime2")
  1594. .HasColumnOrder(4);
  1595. b.Property<string>("UpdateUser")
  1596. .HasMaxLength(450)
  1597. .HasColumnType("nvarchar(450)")
  1598. .HasColumnOrder(2);
  1599. b.HasKey("Id");
  1600. b.HasIndex("MeetingId");
  1601. b.ToTable("MeetingUser");
  1602. });
  1603. modelBuilder.Entity("MTWorkHR.Core.Entities.Nationality", b =>
  1604. {
  1605. b.Property<long>("Id")
  1606. .ValueGeneratedOnAdd()
  1607. .HasColumnType("bigint")
  1608. .HasColumnOrder(0);
  1609. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1610. b.Property<string>("CountryCode")
  1611. .HasColumnType("nvarchar(max)");
  1612. b.Property<string>("CountryId")
  1613. .HasColumnType("nvarchar(max)");
  1614. b.Property<string>("NameAr")
  1615. .IsRequired()
  1616. .HasMaxLength(250)
  1617. .HasColumnType("nvarchar(250)");
  1618. b.Property<string>("NameEn")
  1619. .IsRequired()
  1620. .HasMaxLength(250)
  1621. .HasColumnType("nvarchar(250)");
  1622. b.HasKey("Id");
  1623. b.ToTable("Nationalities");
  1624. b.HasData(
  1625. new
  1626. {
  1627. Id = 1L,
  1628. CountryCode = "AF",
  1629. NameAr = "أفغاني",
  1630. NameEn = "Afghan"
  1631. },
  1632. new
  1633. {
  1634. Id = 2L,
  1635. CountryCode = "AL",
  1636. NameAr = "ألباني",
  1637. NameEn = "Albanian"
  1638. },
  1639. new
  1640. {
  1641. Id = 3L,
  1642. CountryCode = "DZ",
  1643. NameAr = "جزائري",
  1644. NameEn = "Algerian"
  1645. },
  1646. new
  1647. {
  1648. Id = 4L,
  1649. CountryCode = "AS",
  1650. NameAr = "أمريكي ساموي",
  1651. NameEn = "American Samoan"
  1652. },
  1653. new
  1654. {
  1655. Id = 5L,
  1656. CountryCode = "US",
  1657. NameAr = "أمريكي",
  1658. NameEn = "American"
  1659. },
  1660. new
  1661. {
  1662. Id = 6L,
  1663. CountryCode = "AD",
  1664. NameAr = "أندوري",
  1665. NameEn = "Andorran"
  1666. },
  1667. new
  1668. {
  1669. Id = 7L,
  1670. CountryCode = "AO",
  1671. NameAr = "أنغولي",
  1672. NameEn = "Angolan"
  1673. },
  1674. new
  1675. {
  1676. Id = 8L,
  1677. CountryCode = "AI",
  1678. NameAr = "أنغويلي",
  1679. NameEn = "Anguillian"
  1680. },
  1681. new
  1682. {
  1683. Id = 9L,
  1684. CountryCode = "AG",
  1685. NameAr = "أنتيغي",
  1686. NameEn = "Antiguan"
  1687. },
  1688. new
  1689. {
  1690. Id = 10L,
  1691. CountryCode = "AR",
  1692. NameAr = "أرجنتيني",
  1693. NameEn = "Argentinian"
  1694. },
  1695. new
  1696. {
  1697. Id = 11L,
  1698. CountryCode = "AM",
  1699. NameAr = "أرميني",
  1700. NameEn = "Armenian"
  1701. },
  1702. new
  1703. {
  1704. Id = 12L,
  1705. CountryCode = "AW",
  1706. NameAr = "أروبي",
  1707. NameEn = "Aruban"
  1708. },
  1709. new
  1710. {
  1711. Id = 13L,
  1712. CountryCode = "AU",
  1713. NameAr = "أسترالي",
  1714. NameEn = "Australian"
  1715. },
  1716. new
  1717. {
  1718. Id = 14L,
  1719. CountryCode = "AT",
  1720. NameAr = "نمساوي",
  1721. NameEn = "Austrian"
  1722. },
  1723. new
  1724. {
  1725. Id = 15L,
  1726. CountryCode = "AZ",
  1727. NameAr = "أذربيجاني",
  1728. NameEn = "Azerbaijani"
  1729. },
  1730. new
  1731. {
  1732. Id = 16L,
  1733. CountryCode = "BS",
  1734. NameAr = "باهامي",
  1735. NameEn = "Bahamian"
  1736. },
  1737. new
  1738. {
  1739. Id = 17L,
  1740. CountryCode = "BH",
  1741. NameAr = "بحريني",
  1742. NameEn = "Bahraini"
  1743. },
  1744. new
  1745. {
  1746. Id = 18L,
  1747. CountryCode = "BD",
  1748. NameAr = "بنغلاديشي",
  1749. NameEn = "Bangladeshi"
  1750. },
  1751. new
  1752. {
  1753. Id = 19L,
  1754. CountryCode = "BB",
  1755. NameAr = "باربادوسي",
  1756. NameEn = "Barbadian"
  1757. },
  1758. new
  1759. {
  1760. Id = 20L,
  1761. CountryCode = "BY",
  1762. NameAr = "بيلاروسي",
  1763. NameEn = "Belarusian"
  1764. },
  1765. new
  1766. {
  1767. Id = 21L,
  1768. CountryCode = "BE",
  1769. NameAr = "بلجيكي",
  1770. NameEn = "Belgian"
  1771. },
  1772. new
  1773. {
  1774. Id = 22L,
  1775. CountryCode = "BZ",
  1776. NameAr = "بليزي",
  1777. NameEn = "Belizean"
  1778. },
  1779. new
  1780. {
  1781. Id = 23L,
  1782. CountryCode = "BJ",
  1783. NameAr = "بنيني",
  1784. NameEn = "Beninese"
  1785. },
  1786. new
  1787. {
  1788. Id = 24L,
  1789. CountryCode = "BT",
  1790. NameAr = "بوتاني",
  1791. NameEn = "Bhutanese"
  1792. },
  1793. new
  1794. {
  1795. Id = 25L,
  1796. CountryCode = "BO",
  1797. NameAr = "بوليفي",
  1798. NameEn = "Bolivian"
  1799. },
  1800. new
  1801. {
  1802. Id = 26L,
  1803. CountryCode = "BA",
  1804. NameAr = "بوسني",
  1805. NameEn = "Bosnian"
  1806. },
  1807. new
  1808. {
  1809. Id = 27L,
  1810. CountryCode = "BR",
  1811. NameAr = "برازيلي",
  1812. NameEn = "Brazilian"
  1813. },
  1814. new
  1815. {
  1816. Id = 28L,
  1817. CountryCode = "GB",
  1818. NameAr = "بريطاني",
  1819. NameEn = "British"
  1820. },
  1821. new
  1822. {
  1823. Id = 29L,
  1824. CountryCode = "BN",
  1825. NameAr = "بروني",
  1826. NameEn = "Bruneian"
  1827. },
  1828. new
  1829. {
  1830. Id = 30L,
  1831. CountryCode = "BG",
  1832. NameAr = "بلغاري",
  1833. NameEn = "Bulgarian"
  1834. },
  1835. new
  1836. {
  1837. Id = 31L,
  1838. CountryCode = "BF",
  1839. NameAr = "بوركيني",
  1840. NameEn = "Burkinabe"
  1841. },
  1842. new
  1843. {
  1844. Id = 32L,
  1845. CountryCode = "MM",
  1846. NameAr = "بورمي",
  1847. NameEn = "Burmese"
  1848. },
  1849. new
  1850. {
  1851. Id = 33L,
  1852. CountryCode = "BI",
  1853. NameAr = "بوروندي",
  1854. NameEn = "Burundian"
  1855. },
  1856. new
  1857. {
  1858. Id = 34L,
  1859. CountryCode = "KH",
  1860. NameAr = "كمبودي",
  1861. NameEn = "Cambodian"
  1862. },
  1863. new
  1864. {
  1865. Id = 35L,
  1866. CountryCode = "CM",
  1867. NameAr = "كاميروني",
  1868. NameEn = "Cameroonian"
  1869. },
  1870. new
  1871. {
  1872. Id = 36L,
  1873. CountryCode = "CA",
  1874. NameAr = "كندي",
  1875. NameEn = "Canadian"
  1876. },
  1877. new
  1878. {
  1879. Id = 37L,
  1880. CountryCode = "CV",
  1881. NameAr = "الرأس الأخضر",
  1882. NameEn = "Cape Verdean"
  1883. },
  1884. new
  1885. {
  1886. Id = 38L,
  1887. CountryCode = "CF",
  1888. NameAr = "أفريقي أوسط",
  1889. NameEn = "Central African"
  1890. },
  1891. new
  1892. {
  1893. Id = 39L,
  1894. CountryCode = "TD",
  1895. NameAr = "تشادي",
  1896. NameEn = "Chadian"
  1897. },
  1898. new
  1899. {
  1900. Id = 40L,
  1901. CountryCode = "CL",
  1902. NameAr = "تشيلي",
  1903. NameEn = "Chilean"
  1904. },
  1905. new
  1906. {
  1907. Id = 41L,
  1908. CountryCode = "CN",
  1909. NameAr = "صيني",
  1910. NameEn = "Chinese"
  1911. },
  1912. new
  1913. {
  1914. Id = 42L,
  1915. CountryCode = "CO",
  1916. NameAr = "كولومبي",
  1917. NameEn = "Colombian"
  1918. },
  1919. new
  1920. {
  1921. Id = 43L,
  1922. CountryCode = "KM",
  1923. NameAr = "قُمُري",
  1924. NameEn = "Comorian"
  1925. },
  1926. new
  1927. {
  1928. Id = 44L,
  1929. CountryCode = "CG",
  1930. NameAr = "كونغولي",
  1931. NameEn = "Congolese"
  1932. },
  1933. new
  1934. {
  1935. Id = 45L,
  1936. CountryCode = "CR",
  1937. NameAr = "كوستاريكي",
  1938. NameEn = "Costa Rican"
  1939. },
  1940. new
  1941. {
  1942. Id = 46L,
  1943. CountryCode = "HR",
  1944. NameAr = "كرواتي",
  1945. NameEn = "Croatian"
  1946. },
  1947. new
  1948. {
  1949. Id = 47L,
  1950. CountryCode = "CU",
  1951. NameAr = "كوبي",
  1952. NameEn = "Cuban"
  1953. },
  1954. new
  1955. {
  1956. Id = 48L,
  1957. CountryCode = "CY",
  1958. NameAr = "قبرصي",
  1959. NameEn = "Cypriot"
  1960. },
  1961. new
  1962. {
  1963. Id = 49L,
  1964. CountryCode = "CZ",
  1965. NameAr = "تشيكي",
  1966. NameEn = "Czech"
  1967. },
  1968. new
  1969. {
  1970. Id = 50L,
  1971. CountryCode = "DK",
  1972. NameAr = "دنماركي",
  1973. NameEn = "Danish"
  1974. },
  1975. new
  1976. {
  1977. Id = 51L,
  1978. CountryCode = "DJ",
  1979. NameAr = "جيبوتي",
  1980. NameEn = "Djiboutian"
  1981. },
  1982. new
  1983. {
  1984. Id = 52L,
  1985. CountryCode = "DO",
  1986. NameAr = "دومينيكاني",
  1987. NameEn = "Dominican"
  1988. },
  1989. new
  1990. {
  1991. Id = 53L,
  1992. CountryCode = "NL",
  1993. NameAr = "هولندي",
  1994. NameEn = "Dutch"
  1995. },
  1996. new
  1997. {
  1998. Id = 54L,
  1999. CountryCode = "EC",
  2000. NameAr = "إكوادوري",
  2001. NameEn = "Ecuadorean"
  2002. },
  2003. new
  2004. {
  2005. Id = 55L,
  2006. CountryCode = "EG",
  2007. NameAr = "مصري",
  2008. NameEn = "Egyptian"
  2009. },
  2010. new
  2011. {
  2012. Id = 56L,
  2013. CountryCode = "AE",
  2014. NameAr = "إماراتي",
  2015. NameEn = "Emirati"
  2016. },
  2017. new
  2018. {
  2019. Id = 57L,
  2020. CountryCode = "GQ",
  2021. NameAr = "غيني استوائي",
  2022. NameEn = "Equatorial Guinean"
  2023. },
  2024. new
  2025. {
  2026. Id = 58L,
  2027. CountryCode = "ER",
  2028. NameAr = "إريتيري",
  2029. NameEn = "Eritrean"
  2030. },
  2031. new
  2032. {
  2033. Id = 59L,
  2034. CountryCode = "EE",
  2035. NameAr = "إستوني",
  2036. NameEn = "Estonian"
  2037. },
  2038. new
  2039. {
  2040. Id = 60L,
  2041. CountryCode = "ET",
  2042. NameAr = "أثيوبي",
  2043. NameEn = "Ethiopian"
  2044. },
  2045. new
  2046. {
  2047. Id = 61L,
  2048. CountryCode = "FJ",
  2049. NameAr = "فيجي",
  2050. NameEn = "Fijian"
  2051. },
  2052. new
  2053. {
  2054. Id = 62L,
  2055. CountryCode = "FI",
  2056. NameAr = "فنلندي",
  2057. NameEn = "Finnish"
  2058. },
  2059. new
  2060. {
  2061. Id = 63L,
  2062. CountryCode = "FR",
  2063. NameAr = "فرنسي",
  2064. NameEn = "French"
  2065. },
  2066. new
  2067. {
  2068. Id = 64L,
  2069. CountryCode = "GA",
  2070. NameAr = "غابوني",
  2071. NameEn = "Gabonese"
  2072. },
  2073. new
  2074. {
  2075. Id = 65L,
  2076. CountryCode = "GM",
  2077. NameAr = "غامبي",
  2078. NameEn = "Gambian"
  2079. },
  2080. new
  2081. {
  2082. Id = 66L,
  2083. CountryCode = "GE",
  2084. NameAr = "جورجي",
  2085. NameEn = "Georgian"
  2086. },
  2087. new
  2088. {
  2089. Id = 67L,
  2090. CountryCode = "DE",
  2091. NameAr = "ألماني",
  2092. NameEn = "German"
  2093. },
  2094. new
  2095. {
  2096. Id = 68L,
  2097. CountryCode = "GH",
  2098. NameAr = "غاني",
  2099. NameEn = "Ghanaian"
  2100. },
  2101. new
  2102. {
  2103. Id = 69L,
  2104. CountryCode = "GI",
  2105. NameAr = "جبل طارق",
  2106. NameEn = "Gibraltarian"
  2107. },
  2108. new
  2109. {
  2110. Id = 70L,
  2111. CountryCode = "GR",
  2112. NameAr = "يوناني",
  2113. NameEn = "Greek"
  2114. },
  2115. new
  2116. {
  2117. Id = 71L,
  2118. CountryCode = "GL",
  2119. NameAr = "جرينلندي",
  2120. NameEn = "Greenlandic"
  2121. },
  2122. new
  2123. {
  2124. Id = 72L,
  2125. CountryCode = "GD",
  2126. NameAr = "غرينادي",
  2127. NameEn = "Grenadian"
  2128. },
  2129. new
  2130. {
  2131. Id = 73L,
  2132. CountryCode = "GU",
  2133. NameAr = "غوامي",
  2134. NameEn = "Guamanian"
  2135. },
  2136. new
  2137. {
  2138. Id = 74L,
  2139. CountryCode = "GT",
  2140. NameAr = "غواتيمالي",
  2141. NameEn = "Guatemalan"
  2142. },
  2143. new
  2144. {
  2145. Id = 75L,
  2146. CountryCode = "GN",
  2147. NameAr = "غيني",
  2148. NameEn = "Guinean"
  2149. },
  2150. new
  2151. {
  2152. Id = 76L,
  2153. CountryCode = "GW",
  2154. NameAr = "غيني",
  2155. NameEn = "Guinean"
  2156. },
  2157. new
  2158. {
  2159. Id = 77L,
  2160. CountryCode = "GY",
  2161. NameAr = "غياني",
  2162. NameEn = "Guyanese"
  2163. },
  2164. new
  2165. {
  2166. Id = 78L,
  2167. CountryCode = "HT",
  2168. NameAr = "هايتي",
  2169. NameEn = "Haitian"
  2170. },
  2171. new
  2172. {
  2173. Id = 79L,
  2174. CountryCode = "HN",
  2175. NameAr = "هندوراسي",
  2176. NameEn = "Honduran"
  2177. },
  2178. new
  2179. {
  2180. Id = 80L,
  2181. CountryCode = "HK",
  2182. NameAr = "هونغ كونغي",
  2183. NameEn = "Hong Konger"
  2184. },
  2185. new
  2186. {
  2187. Id = 81L,
  2188. CountryCode = "HU",
  2189. NameAr = "مجري",
  2190. NameEn = "Hungarian"
  2191. },
  2192. new
  2193. {
  2194. Id = 82L,
  2195. CountryCode = "IS",
  2196. NameAr = "آيسلندي",
  2197. NameEn = "Icelander"
  2198. },
  2199. new
  2200. {
  2201. Id = 83L,
  2202. CountryCode = "IN",
  2203. NameAr = "هندي",
  2204. NameEn = "Indian"
  2205. },
  2206. new
  2207. {
  2208. Id = 84L,
  2209. CountryCode = "ID",
  2210. NameAr = "إندونيسي",
  2211. NameEn = "Indonesian"
  2212. },
  2213. new
  2214. {
  2215. Id = 85L,
  2216. CountryCode = "IR",
  2217. NameAr = "إيراني",
  2218. NameEn = "Iranian"
  2219. },
  2220. new
  2221. {
  2222. Id = 86L,
  2223. CountryCode = "IQ",
  2224. NameAr = "عراقي",
  2225. NameEn = "Iraqi"
  2226. },
  2227. new
  2228. {
  2229. Id = 87L,
  2230. CountryCode = "IE",
  2231. NameAr = "إيرلندي",
  2232. NameEn = "Irish"
  2233. },
  2234. new
  2235. {
  2236. Id = 89L,
  2237. CountryCode = "IT",
  2238. NameAr = "إيطالي",
  2239. NameEn = "Italian"
  2240. },
  2241. new
  2242. {
  2243. Id = 90L,
  2244. CountryCode = "JM",
  2245. NameAr = "جامايكي",
  2246. NameEn = "Jamaican"
  2247. },
  2248. new
  2249. {
  2250. Id = 91L,
  2251. CountryCode = "JP",
  2252. NameAr = "ياباني",
  2253. NameEn = "Japanese"
  2254. },
  2255. new
  2256. {
  2257. Id = 92L,
  2258. CountryCode = "JE",
  2259. NameAr = "جيرسي",
  2260. NameEn = "Jersey"
  2261. },
  2262. new
  2263. {
  2264. Id = 93L,
  2265. CountryCode = "JO",
  2266. NameAr = "أردني",
  2267. NameEn = "Jordanian"
  2268. },
  2269. new
  2270. {
  2271. Id = 94L,
  2272. CountryCode = "KZ",
  2273. NameAr = "كازاخي",
  2274. NameEn = "Kazakh"
  2275. },
  2276. new
  2277. {
  2278. Id = 95L,
  2279. CountryCode = "KE",
  2280. NameAr = "كيني",
  2281. NameEn = "Kenyan"
  2282. },
  2283. new
  2284. {
  2285. Id = 96L,
  2286. CountryCode = "KI",
  2287. NameAr = "كيريباتي",
  2288. NameEn = "Kiribati"
  2289. },
  2290. new
  2291. {
  2292. Id = 97L,
  2293. CountryCode = "KP",
  2294. NameAr = "كوري شمالي",
  2295. NameEn = "North Korean"
  2296. },
  2297. new
  2298. {
  2299. Id = 98L,
  2300. CountryCode = "KR",
  2301. NameAr = "كوري جنوبي",
  2302. NameEn = "South Korean"
  2303. },
  2304. new
  2305. {
  2306. Id = 99L,
  2307. CountryCode = "KW",
  2308. NameAr = "كويتي",
  2309. NameEn = "Kuwaiti"
  2310. },
  2311. new
  2312. {
  2313. Id = 100L,
  2314. CountryCode = "KG",
  2315. NameAr = "قرغيزستاني",
  2316. NameEn = "Kyrgyzstani"
  2317. },
  2318. new
  2319. {
  2320. Id = 101L,
  2321. CountryCode = "LA",
  2322. NameAr = "لاوي",
  2323. NameEn = "Lao"
  2324. },
  2325. new
  2326. {
  2327. Id = 102L,
  2328. CountryCode = "LV",
  2329. NameAr = "لاتفي",
  2330. NameEn = "Latvian"
  2331. },
  2332. new
  2333. {
  2334. Id = 103L,
  2335. CountryCode = "LB",
  2336. NameAr = "لبناني",
  2337. NameEn = "Lebanese"
  2338. },
  2339. new
  2340. {
  2341. Id = 104L,
  2342. CountryCode = "LS",
  2343. NameAr = "ليسوتو",
  2344. NameEn = "Lesotho"
  2345. },
  2346. new
  2347. {
  2348. Id = 105L,
  2349. CountryCode = "LR",
  2350. NameAr = "ليبيريي",
  2351. NameEn = "Liberian"
  2352. },
  2353. new
  2354. {
  2355. Id = 106L,
  2356. CountryCode = "LY",
  2357. NameAr = "ليبي",
  2358. NameEn = "Libyan"
  2359. },
  2360. new
  2361. {
  2362. Id = 107L,
  2363. CountryCode = "LI",
  2364. NameAr = "ليختنشتايني",
  2365. NameEn = "Liechtensteiner"
  2366. },
  2367. new
  2368. {
  2369. Id = 108L,
  2370. CountryCode = "LT",
  2371. NameAr = "ليتواني",
  2372. NameEn = "Lithuanian"
  2373. },
  2374. new
  2375. {
  2376. Id = 109L,
  2377. CountryCode = "LU",
  2378. NameAr = "لوكسمبورغي",
  2379. NameEn = "Luxembourgish"
  2380. },
  2381. new
  2382. {
  2383. Id = 110L,
  2384. CountryCode = "MG",
  2385. NameAr = "ملغاشي",
  2386. NameEn = "Malagasy"
  2387. },
  2388. new
  2389. {
  2390. Id = 111L,
  2391. CountryCode = "MW",
  2392. NameAr = "ملووي",
  2393. NameEn = "Malawian"
  2394. },
  2395. new
  2396. {
  2397. Id = 112L,
  2398. CountryCode = "MY",
  2399. NameAr = "ماليزيا",
  2400. NameEn = "Malaysian"
  2401. },
  2402. new
  2403. {
  2404. Id = 113L,
  2405. CountryCode = "MV",
  2406. NameAr = "مالديفي",
  2407. NameEn = "Maldivian"
  2408. },
  2409. new
  2410. {
  2411. Id = 114L,
  2412. CountryCode = "ML",
  2413. NameAr = "مالي",
  2414. NameEn = "Malian"
  2415. },
  2416. new
  2417. {
  2418. Id = 115L,
  2419. CountryCode = "MT",
  2420. NameAr = "مالطي",
  2421. NameEn = "Maltese"
  2422. },
  2423. new
  2424. {
  2425. Id = 116L,
  2426. CountryCode = "MH",
  2427. NameAr = "مارشالي",
  2428. NameEn = "Marshallese"
  2429. },
  2430. new
  2431. {
  2432. Id = 117L,
  2433. CountryCode = "MR",
  2434. NameAr = "موريتاني",
  2435. NameEn = "Mauritanian"
  2436. },
  2437. new
  2438. {
  2439. Id = 118L,
  2440. CountryCode = "MU",
  2441. NameAr = "موريشيوسي",
  2442. NameEn = "Mauritian"
  2443. },
  2444. new
  2445. {
  2446. Id = 119L,
  2447. CountryCode = "MX",
  2448. NameAr = "مكسيكي",
  2449. NameEn = "Mexican"
  2450. },
  2451. new
  2452. {
  2453. Id = 120L,
  2454. CountryCode = "FM",
  2455. NameAr = "ماكروني",
  2456. NameEn = "Micronesian"
  2457. },
  2458. new
  2459. {
  2460. Id = 121L,
  2461. CountryCode = "MD",
  2462. NameAr = "مولدوفي",
  2463. NameEn = "Moldovan"
  2464. },
  2465. new
  2466. {
  2467. Id = 122L,
  2468. CountryCode = "MC",
  2469. NameAr = "موناكي",
  2470. NameEn = "Monacan"
  2471. },
  2472. new
  2473. {
  2474. Id = 123L,
  2475. CountryCode = "MN",
  2476. NameAr = "منغولي",
  2477. NameEn = "Mongolian"
  2478. },
  2479. new
  2480. {
  2481. Id = 124L,
  2482. CountryCode = "ME",
  2483. NameAr = "مونتينيغري",
  2484. NameEn = "Montenegrin"
  2485. },
  2486. new
  2487. {
  2488. Id = 125L,
  2489. CountryCode = "MA",
  2490. NameAr = "مغربي",
  2491. NameEn = "Moroccan"
  2492. },
  2493. new
  2494. {
  2495. Id = 126L,
  2496. CountryCode = "MZ",
  2497. NameAr = "موزمبيقي",
  2498. NameEn = "Mozambican"
  2499. },
  2500. new
  2501. {
  2502. Id = 127L,
  2503. CountryCode = "NA",
  2504. NameAr = "ناميبي",
  2505. NameEn = "Namibian"
  2506. },
  2507. new
  2508. {
  2509. Id = 128L,
  2510. CountryCode = "NR",
  2511. NameAr = "نيواروي",
  2512. NameEn = "Nauruan"
  2513. },
  2514. new
  2515. {
  2516. Id = 129L,
  2517. CountryCode = "NP",
  2518. NameAr = "نيبالي",
  2519. NameEn = "Nepali"
  2520. },
  2521. new
  2522. {
  2523. Id = 130L,
  2524. CountryCode = "NL",
  2525. NameAr = "هولندي",
  2526. NameEn = "Dutch"
  2527. },
  2528. new
  2529. {
  2530. Id = 131L,
  2531. CountryCode = "NZ",
  2532. NameAr = "نيوزيلندي",
  2533. NameEn = "New Zealander"
  2534. },
  2535. new
  2536. {
  2537. Id = 132L,
  2538. CountryCode = "NI",
  2539. NameAr = "نيكاراغوي",
  2540. NameEn = "Nicaraguan"
  2541. },
  2542. new
  2543. {
  2544. Id = 133L,
  2545. CountryCode = "NE",
  2546. NameAr = "نيجيري",
  2547. NameEn = "Nigerien"
  2548. },
  2549. new
  2550. {
  2551. Id = 134L,
  2552. CountryCode = "NG",
  2553. NameAr = "نيجيري",
  2554. NameEn = "Nigerian"
  2555. },
  2556. new
  2557. {
  2558. Id = 135L,
  2559. CountryCode = "MK",
  2560. NameAr = "مقدوني شمالي",
  2561. NameEn = "North Macedonian"
  2562. },
  2563. new
  2564. {
  2565. Id = 136L,
  2566. CountryCode = "NO",
  2567. NameAr = "نرويجي",
  2568. NameEn = "Norwegian"
  2569. },
  2570. new
  2571. {
  2572. Id = 137L,
  2573. CountryCode = "OM",
  2574. NameAr = "عماني",
  2575. NameEn = "Omani"
  2576. },
  2577. new
  2578. {
  2579. Id = 138L,
  2580. CountryCode = "PK",
  2581. NameAr = "باكستاني",
  2582. NameEn = "Pakistani"
  2583. },
  2584. new
  2585. {
  2586. Id = 139L,
  2587. CountryCode = "PW",
  2588. NameAr = "بالاوي",
  2589. NameEn = "Palauan"
  2590. },
  2591. new
  2592. {
  2593. Id = 140L,
  2594. CountryCode = "PA",
  2595. NameAr = "بنمي",
  2596. NameEn = "Panamanian"
  2597. },
  2598. new
  2599. {
  2600. Id = 141L,
  2601. CountryCode = "PG",
  2602. NameAr = "بابوا غينيا الجديدة",
  2603. NameEn = "Papua New Guinean"
  2604. },
  2605. new
  2606. {
  2607. Id = 142L,
  2608. CountryCode = "PY",
  2609. NameAr = "باراغواني",
  2610. NameEn = "Paraguayan"
  2611. },
  2612. new
  2613. {
  2614. Id = 143L,
  2615. CountryCode = "PE",
  2616. NameAr = "بيروفي",
  2617. NameEn = "Peruvian"
  2618. },
  2619. new
  2620. {
  2621. Id = 144L,
  2622. CountryCode = "PH",
  2623. NameAr = "فلبيني",
  2624. NameEn = "Filipino"
  2625. },
  2626. new
  2627. {
  2628. Id = 145L,
  2629. CountryCode = "PL",
  2630. NameAr = "بولندي",
  2631. NameEn = "Polish"
  2632. },
  2633. new
  2634. {
  2635. Id = 146L,
  2636. CountryCode = "PT",
  2637. NameAr = "برتغالي",
  2638. NameEn = "Portuguese"
  2639. },
  2640. new
  2641. {
  2642. Id = 147L,
  2643. CountryCode = "QA",
  2644. NameAr = "قطري",
  2645. NameEn = "Qatari"
  2646. },
  2647. new
  2648. {
  2649. Id = 148L,
  2650. CountryCode = "RE",
  2651. NameAr = "لا ريونيون",
  2652. NameEn = "Réunionese"
  2653. },
  2654. new
  2655. {
  2656. Id = 149L,
  2657. CountryCode = "RO",
  2658. NameAr = "روماني",
  2659. NameEn = "Romanian"
  2660. },
  2661. new
  2662. {
  2663. Id = 150L,
  2664. CountryCode = "RU",
  2665. NameAr = "روسي",
  2666. NameEn = "Russian"
  2667. },
  2668. new
  2669. {
  2670. Id = 151L,
  2671. CountryCode = "RW",
  2672. NameAr = "رواندي",
  2673. NameEn = "Rwandan"
  2674. },
  2675. new
  2676. {
  2677. Id = 152L,
  2678. CountryCode = "BL",
  2679. NameAr = "سانت بارتيليمي",
  2680. NameEn = "Saint Barthélemy"
  2681. },
  2682. new
  2683. {
  2684. Id = 153L,
  2685. CountryCode = "SH",
  2686. NameAr = "سانت هيلاني",
  2687. NameEn = "Saint Helenian"
  2688. },
  2689. new
  2690. {
  2691. Id = 154L,
  2692. CountryCode = "KN",
  2693. NameAr = "سانت كيتس ونيفيس",
  2694. NameEn = "Saint Kitts and Nevis"
  2695. },
  2696. new
  2697. {
  2698. Id = 155L,
  2699. CountryCode = "LC",
  2700. NameAr = "سانت لوسيان",
  2701. NameEn = "Saint Lucian"
  2702. },
  2703. new
  2704. {
  2705. Id = 156L,
  2706. CountryCode = "MF",
  2707. NameAr = "سانت مارتن",
  2708. NameEn = "Saint Martin"
  2709. },
  2710. new
  2711. {
  2712. Id = 157L,
  2713. CountryCode = "SX",
  2714. NameAr = "سانت مارتن",
  2715. NameEn = "Sint Maarten"
  2716. },
  2717. new
  2718. {
  2719. Id = 158L,
  2720. CountryCode = "WS",
  2721. NameAr = "سماوي",
  2722. NameEn = "Samoan"
  2723. },
  2724. new
  2725. {
  2726. Id = 159L,
  2727. CountryCode = "SM",
  2728. NameAr = "سانماريني",
  2729. NameEn = "Sammarinese"
  2730. },
  2731. new
  2732. {
  2733. Id = 160L,
  2734. CountryCode = "ST",
  2735. NameAr = "ساو توماني",
  2736. NameEn = "Sao Tomean"
  2737. },
  2738. new
  2739. {
  2740. Id = 161L,
  2741. CountryCode = "SA",
  2742. NameAr = "سعودي",
  2743. NameEn = "Saudi"
  2744. },
  2745. new
  2746. {
  2747. Id = 162L,
  2748. CountryCode = "SN",
  2749. NameAr = "سنغالي",
  2750. NameEn = "Senegalese"
  2751. },
  2752. new
  2753. {
  2754. Id = 163L,
  2755. CountryCode = "RS",
  2756. NameAr = "صربي",
  2757. NameEn = "Serbian"
  2758. },
  2759. new
  2760. {
  2761. Id = 164L,
  2762. CountryCode = "SC",
  2763. NameAr = "سيشلي",
  2764. NameEn = "Seychellois"
  2765. },
  2766. new
  2767. {
  2768. Id = 165L,
  2769. CountryCode = "SL",
  2770. NameAr = "سيراليوني",
  2771. NameEn = "Sierra Leonean"
  2772. },
  2773. new
  2774. {
  2775. Id = 166L,
  2776. CountryCode = "SG",
  2777. NameAr = "سنغافوري",
  2778. NameEn = "Singaporean"
  2779. },
  2780. new
  2781. {
  2782. Id = 167L,
  2783. CountryCode = "SK",
  2784. NameAr = "سلوفاكي",
  2785. NameEn = "Slovak"
  2786. },
  2787. new
  2788. {
  2789. Id = 168L,
  2790. CountryCode = "SI",
  2791. NameAr = "سلوفيني",
  2792. NameEn = "Slovenian"
  2793. },
  2794. new
  2795. {
  2796. Id = 169L,
  2797. CountryCode = "SB",
  2798. NameAr = "سولوموني",
  2799. NameEn = "Solomon Islander"
  2800. },
  2801. new
  2802. {
  2803. Id = 170L,
  2804. CountryCode = "SO",
  2805. NameAr = "صومالي",
  2806. NameEn = "Somali"
  2807. },
  2808. new
  2809. {
  2810. Id = 171L,
  2811. CountryCode = "ZA",
  2812. NameAr = "جنوب أفريقي",
  2813. NameEn = "South African"
  2814. },
  2815. new
  2816. {
  2817. Id = 172L,
  2818. CountryCode = "SS",
  2819. NameAr = "جنوب سوداني",
  2820. NameEn = "South Sudanese"
  2821. },
  2822. new
  2823. {
  2824. Id = 173L,
  2825. CountryCode = "ES",
  2826. NameAr = "إسباني",
  2827. NameEn = "Spanish"
  2828. },
  2829. new
  2830. {
  2831. Id = 174L,
  2832. CountryCode = "LK",
  2833. NameAr = "سريلانكي",
  2834. NameEn = "Sri Lankan"
  2835. },
  2836. new
  2837. {
  2838. Id = 175L,
  2839. CountryCode = "SD",
  2840. NameAr = "سوداني",
  2841. NameEn = "Sudanese"
  2842. },
  2843. new
  2844. {
  2845. Id = 176L,
  2846. CountryCode = "SR",
  2847. NameAr = "سورينامي",
  2848. NameEn = "Surinamese"
  2849. },
  2850. new
  2851. {
  2852. Id = 177L,
  2853. CountryCode = "SZ",
  2854. NameAr = "سواتي",
  2855. NameEn = "Swazi"
  2856. },
  2857. new
  2858. {
  2859. Id = 178L,
  2860. CountryCode = "SE",
  2861. NameAr = "سويدي",
  2862. NameEn = "Swedish"
  2863. },
  2864. new
  2865. {
  2866. Id = 179L,
  2867. CountryCode = "CH",
  2868. NameAr = "سويسري",
  2869. NameEn = "Swiss"
  2870. },
  2871. new
  2872. {
  2873. Id = 180L,
  2874. CountryCode = "SY",
  2875. NameAr = "سوري",
  2876. NameEn = "Syrian"
  2877. },
  2878. new
  2879. {
  2880. Id = 181L,
  2881. CountryCode = "TW",
  2882. NameAr = "تايواني",
  2883. NameEn = "Taiwanese"
  2884. },
  2885. new
  2886. {
  2887. Id = 182L,
  2888. CountryCode = "TJ",
  2889. NameAr = "طاجيكي",
  2890. NameEn = "Tajik"
  2891. },
  2892. new
  2893. {
  2894. Id = 183L,
  2895. CountryCode = "TZ",
  2896. NameAr = "تنزاني",
  2897. NameEn = "Tanzanian"
  2898. },
  2899. new
  2900. {
  2901. Id = 184L,
  2902. CountryCode = "TH",
  2903. NameAr = "تايلندي",
  2904. NameEn = "Thai"
  2905. },
  2906. new
  2907. {
  2908. Id = 185L,
  2909. CountryCode = "TL",
  2910. NameAr = "تيموري",
  2911. NameEn = "Timorese"
  2912. },
  2913. new
  2914. {
  2915. Id = 186L,
  2916. CountryCode = "TG",
  2917. NameAr = "توغولي",
  2918. NameEn = "Togolese"
  2919. },
  2920. new
  2921. {
  2922. Id = 187L,
  2923. CountryCode = "TK",
  2924. NameAr = "توكلاوي",
  2925. NameEn = "Tokelauan"
  2926. },
  2927. new
  2928. {
  2929. Id = 188L,
  2930. CountryCode = "TO",
  2931. NameAr = "تونغي",
  2932. NameEn = "Tongan"
  2933. },
  2934. new
  2935. {
  2936. Id = 189L,
  2937. CountryCode = "TT",
  2938. NameAr = "ترينيدادي",
  2939. NameEn = "Trinidadian"
  2940. },
  2941. new
  2942. {
  2943. Id = 190L,
  2944. CountryCode = "TN",
  2945. NameAr = "تونسي",
  2946. NameEn = "Tunisian"
  2947. },
  2948. new
  2949. {
  2950. Id = 191L,
  2951. CountryCode = "TR",
  2952. NameAr = "تركي",
  2953. NameEn = "Turkish"
  2954. },
  2955. new
  2956. {
  2957. Id = 192L,
  2958. CountryCode = "TM",
  2959. NameAr = "تركماني",
  2960. NameEn = "Turkmen"
  2961. },
  2962. new
  2963. {
  2964. Id = 193L,
  2965. CountryCode = "TC",
  2966. NameAr = "تركي وكايكوسي",
  2967. NameEn = "Turks and Caicos Islander"
  2968. },
  2969. new
  2970. {
  2971. Id = 194L,
  2972. CountryCode = "TV",
  2973. NameAr = "توفالي",
  2974. NameEn = "Tuvaluan"
  2975. },
  2976. new
  2977. {
  2978. Id = 195L,
  2979. CountryCode = "UG",
  2980. NameAr = "أوغندي",
  2981. NameEn = "Ugandan"
  2982. },
  2983. new
  2984. {
  2985. Id = 196L,
  2986. CountryCode = "UA",
  2987. NameAr = "أوكراني",
  2988. NameEn = "Ukrainian"
  2989. },
  2990. new
  2991. {
  2992. Id = 197L,
  2993. CountryCode = "AE",
  2994. NameAr = "إماراتي",
  2995. NameEn = "Emirati"
  2996. },
  2997. new
  2998. {
  2999. Id = 198L,
  3000. CountryCode = "GB",
  3001. NameAr = "بريطاني",
  3002. NameEn = "British"
  3003. },
  3004. new
  3005. {
  3006. Id = 199L,
  3007. CountryCode = "US",
  3008. NameAr = "أمريكي",
  3009. NameEn = "American"
  3010. },
  3011. new
  3012. {
  3013. Id = 200L,
  3014. CountryCode = "UY",
  3015. NameAr = "أوروغواي",
  3016. NameEn = "Uruguayan"
  3017. },
  3018. new
  3019. {
  3020. Id = 201L,
  3021. CountryCode = "UZ",
  3022. NameAr = "أوزبكي",
  3023. NameEn = "Uzbek"
  3024. },
  3025. new
  3026. {
  3027. Id = 202L,
  3028. CountryCode = "VU",
  3029. NameAr = "فانواتي",
  3030. NameEn = "Vanuatuan"
  3031. },
  3032. new
  3033. {
  3034. Id = 203L,
  3035. CountryCode = "VE",
  3036. NameAr = "فنزويلي",
  3037. NameEn = "Venezuelan"
  3038. },
  3039. new
  3040. {
  3041. Id = 204L,
  3042. CountryCode = "VN",
  3043. NameAr = "فيتنامي",
  3044. NameEn = "Vietnamese"
  3045. },
  3046. new
  3047. {
  3048. Id = 205L,
  3049. CountryCode = "WF",
  3050. NameAr = "واليس وفوتونا",
  3051. NameEn = "Wallis and Futuna"
  3052. },
  3053. new
  3054. {
  3055. Id = 206L,
  3056. CountryCode = "YE",
  3057. NameAr = "يمني",
  3058. NameEn = "Yemeni"
  3059. },
  3060. new
  3061. {
  3062. Id = 207L,
  3063. CountryCode = "ZM",
  3064. NameAr = "زامبي",
  3065. NameEn = "Zambian"
  3066. },
  3067. new
  3068. {
  3069. Id = 208L,
  3070. CountryCode = "ZW",
  3071. NameAr = "زيمبابوي",
  3072. NameEn = "Zimbabwean"
  3073. });
  3074. });
  3075. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderAllocation", b =>
  3076. {
  3077. b.Property<long>("Id")
  3078. .ValueGeneratedOnAdd()
  3079. .HasColumnType("bigint")
  3080. .HasColumnOrder(0);
  3081. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3082. b.Property<long>("CompanyId")
  3083. .HasColumnType("bigint");
  3084. b.Property<long>("ContractId")
  3085. .HasColumnType("bigint");
  3086. b.Property<DateTime>("CreateDate")
  3087. .HasColumnType("datetime2")
  3088. .HasColumnOrder(3);
  3089. b.Property<string>("CreateUser")
  3090. .HasMaxLength(450)
  3091. .HasColumnType("nvarchar(450)")
  3092. .HasColumnOrder(1);
  3093. b.Property<string>("EmployeeId")
  3094. .IsRequired()
  3095. .HasColumnType("nvarchar(max)");
  3096. b.Property<long?>("LeaveTypeId")
  3097. .HasColumnType("bigint");
  3098. b.Property<int>("NumberOfDays")
  3099. .HasColumnType("int");
  3100. b.Property<long>("OrderTypeId")
  3101. .HasColumnType("bigint");
  3102. b.Property<int>("Period")
  3103. .HasColumnType("int");
  3104. b.Property<DateTime?>("UpdateDate")
  3105. .HasColumnType("datetime2")
  3106. .HasColumnOrder(4);
  3107. b.Property<string>("UpdateUser")
  3108. .HasMaxLength(450)
  3109. .HasColumnType("nvarchar(450)")
  3110. .HasColumnOrder(2);
  3111. b.HasKey("Id");
  3112. b.HasIndex("CompanyId");
  3113. b.HasIndex("LeaveTypeId");
  3114. b.HasIndex("OrderTypeId");
  3115. b.ToTable("OrderAllocations");
  3116. });
  3117. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderAttachment", b =>
  3118. {
  3119. b.Property<long>("Id")
  3120. .ValueGeneratedOnAdd()
  3121. .HasColumnType("bigint")
  3122. .HasColumnOrder(0);
  3123. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3124. b.Property<string>("ContentType")
  3125. .HasColumnType("nvarchar(max)");
  3126. b.Property<DateTime>("CreateDate")
  3127. .HasColumnType("datetime2")
  3128. .HasColumnOrder(3);
  3129. b.Property<string>("CreateUser")
  3130. .HasMaxLength(450)
  3131. .HasColumnType("nvarchar(450)")
  3132. .HasColumnOrder(1);
  3133. b.Property<string>("FileName")
  3134. .HasMaxLength(250)
  3135. .HasColumnType("nvarchar(250)");
  3136. b.Property<string>("FilePath")
  3137. .HasColumnType("nvarchar(max)");
  3138. b.Property<long>("OrderRequestId")
  3139. .HasColumnType("bigint");
  3140. b.Property<string>("OriginalName")
  3141. .HasMaxLength(250)
  3142. .HasColumnType("nvarchar(250)");
  3143. b.Property<DateTime?>("UpdateDate")
  3144. .HasColumnType("datetime2")
  3145. .HasColumnOrder(4);
  3146. b.Property<string>("UpdateUser")
  3147. .HasMaxLength(450)
  3148. .HasColumnType("nvarchar(450)")
  3149. .HasColumnOrder(2);
  3150. b.HasKey("Id");
  3151. b.HasIndex("OrderRequestId");
  3152. b.ToTable("OrderAttachment");
  3153. });
  3154. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderType", b =>
  3155. {
  3156. b.Property<long>("Id")
  3157. .ValueGeneratedOnAdd()
  3158. .HasColumnType("bigint")
  3159. .HasColumnOrder(0);
  3160. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3161. b.Property<int>("DefaultDays")
  3162. .HasColumnType("int");
  3163. b.Property<string>("NameAr")
  3164. .IsRequired()
  3165. .HasColumnType("nvarchar(max)");
  3166. b.Property<string>("NameEn")
  3167. .IsRequired()
  3168. .HasColumnType("nvarchar(max)");
  3169. b.HasKey("Id");
  3170. b.ToTable("OrderTypes");
  3171. b.HasData(
  3172. new
  3173. {
  3174. Id = 1L,
  3175. DefaultDays = 2,
  3176. NameAr = "إذن",
  3177. NameEn = "Leave"
  3178. },
  3179. new
  3180. {
  3181. Id = 2L,
  3182. DefaultDays = 20,
  3183. NameAr = "وقت إضافي",
  3184. NameEn = "Overtime"
  3185. },
  3186. new
  3187. {
  3188. Id = 3L,
  3189. DefaultDays = 0,
  3190. NameAr = "رحلة عمل",
  3191. NameEn = "Business trip"
  3192. },
  3193. new
  3194. {
  3195. Id = 4L,
  3196. DefaultDays = 0,
  3197. NameAr = "دورة تدريبية",
  3198. NameEn = "Course"
  3199. },
  3200. new
  3201. {
  3202. Id = 5L,
  3203. DefaultDays = 0,
  3204. NameAr = "خدمة معتمده",
  3205. NameEn = "Service Certificate"
  3206. },
  3207. new
  3208. {
  3209. Id = 6L,
  3210. DefaultDays = 0,
  3211. NameAr = "أخرى",
  3212. NameEn = "Other"
  3213. });
  3214. });
  3215. modelBuilder.Entity("MTWorkHR.Core.Entities.OverTimeDay", b =>
  3216. {
  3217. b.Property<long>("Id")
  3218. .ValueGeneratedOnAdd()
  3219. .HasColumnType("bigint")
  3220. .HasColumnOrder(0);
  3221. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3222. b.Property<string>("EndTime")
  3223. .HasColumnType("nvarchar(max)");
  3224. b.Property<long?>("OrderRequestId")
  3225. .HasColumnType("bigint");
  3226. b.Property<DateTime?>("OverTimeDate")
  3227. .HasColumnType("datetime2");
  3228. b.Property<string>("OverTimeDetail")
  3229. .HasColumnType("nvarchar(max)");
  3230. b.Property<string>("StartTime")
  3231. .HasColumnType("nvarchar(max)");
  3232. b.Property<decimal?>("TotalHours")
  3233. .HasColumnType("decimal(18,2)");
  3234. b.HasKey("Id");
  3235. b.HasIndex("OrderRequestId");
  3236. b.ToTable("OverTimeDay");
  3237. });
  3238. modelBuilder.Entity("MTWorkHR.Core.Entities.OverTimeDayAttachment", b =>
  3239. {
  3240. b.Property<long>("Id")
  3241. .ValueGeneratedOnAdd()
  3242. .HasColumnType("bigint")
  3243. .HasColumnOrder(0);
  3244. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3245. b.Property<string>("ContentType")
  3246. .HasColumnType("nvarchar(max)");
  3247. b.Property<DateTime>("CreateDate")
  3248. .HasColumnType("datetime2")
  3249. .HasColumnOrder(3);
  3250. b.Property<string>("CreateUser")
  3251. .HasMaxLength(450)
  3252. .HasColumnType("nvarchar(450)")
  3253. .HasColumnOrder(1);
  3254. b.Property<string>("FileName")
  3255. .HasMaxLength(250)
  3256. .HasColumnType("nvarchar(250)");
  3257. b.Property<string>("FilePath")
  3258. .HasColumnType("nvarchar(max)");
  3259. b.Property<string>("OriginalName")
  3260. .HasMaxLength(250)
  3261. .HasColumnType("nvarchar(250)");
  3262. b.Property<long>("OverTimeDayId")
  3263. .HasColumnType("bigint");
  3264. b.Property<DateTime?>("UpdateDate")
  3265. .HasColumnType("datetime2")
  3266. .HasColumnOrder(4);
  3267. b.Property<string>("UpdateUser")
  3268. .HasMaxLength(450)
  3269. .HasColumnType("nvarchar(450)")
  3270. .HasColumnOrder(2);
  3271. b.HasKey("Id");
  3272. b.HasIndex("OverTimeDayId")
  3273. .IsUnique();
  3274. b.ToTable("OverTimeDayAttachment");
  3275. });
  3276. modelBuilder.Entity("MTWorkHR.Core.Entities.Permission", b =>
  3277. {
  3278. b.Property<long>("Id")
  3279. .ValueGeneratedOnAdd()
  3280. .HasColumnType("bigint")
  3281. .HasColumnOrder(0);
  3282. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3283. b.Property<string>("CategoryName")
  3284. .IsRequired()
  3285. .HasMaxLength(150)
  3286. .HasColumnType("nvarchar(150)");
  3287. b.Property<string>("Desc")
  3288. .IsRequired()
  3289. .HasMaxLength(250)
  3290. .HasColumnType("nvarchar(250)");
  3291. b.Property<string>("Name")
  3292. .IsRequired()
  3293. .HasMaxLength(250)
  3294. .HasColumnType("nvarchar(250)");
  3295. b.Property<bool>("Show")
  3296. .HasColumnType("bit");
  3297. b.HasKey("Id");
  3298. b.ToTable("Permissions");
  3299. b.HasData(
  3300. new
  3301. {
  3302. Id = 1L,
  3303. CategoryName = "User",
  3304. Desc = "Project",
  3305. Name = "Project",
  3306. Show = true
  3307. },
  3308. new
  3309. {
  3310. Id = 2L,
  3311. CategoryName = "User",
  3312. Desc = "Project.Create",
  3313. Name = "Project.Create",
  3314. Show = false
  3315. },
  3316. new
  3317. {
  3318. Id = 3L,
  3319. CategoryName = "User",
  3320. Desc = "Project.Update",
  3321. Name = "Project.Update",
  3322. Show = false
  3323. },
  3324. new
  3325. {
  3326. Id = 4L,
  3327. CategoryName = "User",
  3328. Desc = "Project.Delete",
  3329. Name = "Project.Delete",
  3330. Show = false
  3331. },
  3332. new
  3333. {
  3334. Id = 5L,
  3335. CategoryName = "User",
  3336. Desc = "Meeting",
  3337. Name = "Meeting",
  3338. Show = true
  3339. },
  3340. new
  3341. {
  3342. Id = 6L,
  3343. CategoryName = "User",
  3344. Desc = "Meeting.Create",
  3345. Name = "Meeting.Create",
  3346. Show = false
  3347. },
  3348. new
  3349. {
  3350. Id = 7L,
  3351. CategoryName = "User",
  3352. Desc = "Meeting.Update",
  3353. Name = "Meeting.Update",
  3354. Show = false
  3355. },
  3356. new
  3357. {
  3358. Id = 8L,
  3359. CategoryName = "User",
  3360. Desc = "Meeting.Delete",
  3361. Name = "Meeting.Delete",
  3362. Show = false
  3363. },
  3364. new
  3365. {
  3366. Id = 9L,
  3367. CategoryName = "User",
  3368. Desc = "Team",
  3369. Name = "Team",
  3370. Show = true
  3371. },
  3372. new
  3373. {
  3374. Id = 10L,
  3375. CategoryName = "User",
  3376. Desc = "Team.Create",
  3377. Name = "Team.Create",
  3378. Show = false
  3379. },
  3380. new
  3381. {
  3382. Id = 11L,
  3383. CategoryName = "User",
  3384. Desc = "Team.Update",
  3385. Name = "Team.Update",
  3386. Show = false
  3387. },
  3388. new
  3389. {
  3390. Id = 12L,
  3391. CategoryName = "User",
  3392. Desc = "Team.Delete",
  3393. Name = "Team.Delete",
  3394. Show = false
  3395. },
  3396. new
  3397. {
  3398. Id = 13L,
  3399. CategoryName = "Sales",
  3400. Desc = "UserTask",
  3401. Name = "UserTask",
  3402. Show = true
  3403. },
  3404. new
  3405. {
  3406. Id = 14L,
  3407. CategoryName = "Sales",
  3408. Desc = "UserTask.Create",
  3409. Name = "UserTask.Create",
  3410. Show = false
  3411. },
  3412. new
  3413. {
  3414. Id = 15L,
  3415. CategoryName = "Sales",
  3416. Desc = "UserTask.Update",
  3417. Name = "UserTask.Update",
  3418. Show = false
  3419. },
  3420. new
  3421. {
  3422. Id = 16L,
  3423. CategoryName = "User",
  3424. Desc = "UserTask.Delete",
  3425. Name = "UserTask.Delete",
  3426. Show = false
  3427. },
  3428. new
  3429. {
  3430. Id = 17L,
  3431. CategoryName = "User",
  3432. Desc = "Company",
  3433. Name = "Company",
  3434. Show = true
  3435. },
  3436. new
  3437. {
  3438. Id = 18L,
  3439. CategoryName = "User",
  3440. Desc = "Company.Create",
  3441. Name = "Company.Create",
  3442. Show = false
  3443. },
  3444. new
  3445. {
  3446. Id = 19L,
  3447. CategoryName = "User",
  3448. Desc = "Company.Update",
  3449. Name = "Company.Update",
  3450. Show = false
  3451. },
  3452. new
  3453. {
  3454. Id = 20L,
  3455. CategoryName = "User",
  3456. Desc = "Company.Delete",
  3457. Name = "Company.Delete",
  3458. Show = false
  3459. },
  3460. new
  3461. {
  3462. Id = 21L,
  3463. CategoryName = "User",
  3464. Desc = "Company.Suspend",
  3465. Name = "Company.Suspend",
  3466. Show = false
  3467. },
  3468. new
  3469. {
  3470. Id = 22L,
  3471. CategoryName = "Adminstration",
  3472. Desc = "User",
  3473. Name = "User",
  3474. Show = true
  3475. },
  3476. new
  3477. {
  3478. Id = 23L,
  3479. CategoryName = "Adminstration",
  3480. Desc = "User.Create",
  3481. Name = "User.Create",
  3482. Show = false
  3483. },
  3484. new
  3485. {
  3486. Id = 24L,
  3487. CategoryName = "Adminstration",
  3488. Desc = "User.Update",
  3489. Name = "User.Update",
  3490. Show = false
  3491. },
  3492. new
  3493. {
  3494. Id = 25L,
  3495. CategoryName = "Adminstration",
  3496. Desc = "User.Delete",
  3497. Name = "User.Delete",
  3498. Show = false
  3499. },
  3500. new
  3501. {
  3502. Id = 26L,
  3503. CategoryName = "Adminstration",
  3504. Desc = "User.Suspend",
  3505. Name = "User.Suspend",
  3506. Show = false
  3507. },
  3508. new
  3509. {
  3510. Id = 27L,
  3511. CategoryName = "Adminstration",
  3512. Desc = "Role",
  3513. Name = "Role",
  3514. Show = true
  3515. },
  3516. new
  3517. {
  3518. Id = 28L,
  3519. CategoryName = "Adminstration",
  3520. Desc = "Role.Create",
  3521. Name = "Role.Create",
  3522. Show = false
  3523. },
  3524. new
  3525. {
  3526. Id = 29L,
  3527. CategoryName = "Adminstration",
  3528. Desc = "Role.Update",
  3529. Name = "Role.Update",
  3530. Show = false
  3531. },
  3532. new
  3533. {
  3534. Id = 30L,
  3535. CategoryName = "Adminstration",
  3536. Desc = "Role.Delete",
  3537. Name = "Role.Delete",
  3538. Show = false
  3539. },
  3540. new
  3541. {
  3542. Id = 31L,
  3543. CategoryName = "Adminstration",
  3544. Desc = "Attendance",
  3545. Name = "Attendance",
  3546. Show = true
  3547. },
  3548. new
  3549. {
  3550. Id = 32L,
  3551. CategoryName = "Adminstration",
  3552. Desc = "Attendance.Create",
  3553. Name = "Attendance.Create",
  3554. Show = false
  3555. },
  3556. new
  3557. {
  3558. Id = 33L,
  3559. CategoryName = "Adminstration",
  3560. Desc = "Attendance.Update",
  3561. Name = "Attendance.Update",
  3562. Show = false
  3563. },
  3564. new
  3565. {
  3566. Id = 34L,
  3567. CategoryName = "Adminstration",
  3568. Desc = "Attendance.Delete",
  3569. Name = "Attendance.Delete",
  3570. Show = false
  3571. },
  3572. new
  3573. {
  3574. Id = 35L,
  3575. CategoryName = "Adminstration",
  3576. Desc = "Contract",
  3577. Name = "Contract",
  3578. Show = true
  3579. },
  3580. new
  3581. {
  3582. Id = 36L,
  3583. CategoryName = "Adminstration",
  3584. Desc = "Contract.Create",
  3585. Name = "Contract.Create",
  3586. Show = false
  3587. },
  3588. new
  3589. {
  3590. Id = 37L,
  3591. CategoryName = "Adminstration",
  3592. Desc = "Contract.Update",
  3593. Name = "Contract.Update",
  3594. Show = false
  3595. },
  3596. new
  3597. {
  3598. Id = 38L,
  3599. CategoryName = "Adminstration",
  3600. Desc = "Contract.Delete",
  3601. Name = "Contract.Delete",
  3602. Show = false
  3603. },
  3604. new
  3605. {
  3606. Id = 39L,
  3607. CategoryName = "Adminstration",
  3608. Desc = "OrderAllocation",
  3609. Name = "OrderAllocation",
  3610. Show = true
  3611. },
  3612. new
  3613. {
  3614. Id = 40L,
  3615. CategoryName = "Adminstration",
  3616. Desc = "OrderAllocation.Create",
  3617. Name = "OrderAllocation.Create",
  3618. Show = false
  3619. },
  3620. new
  3621. {
  3622. Id = 41L,
  3623. CategoryName = "Adminstration",
  3624. Desc = "OrderAllocation.Update",
  3625. Name = "OrderAllocation.Update",
  3626. Show = false
  3627. },
  3628. new
  3629. {
  3630. Id = 42L,
  3631. CategoryName = "Adminstration",
  3632. Desc = "OrderAllocation.Delete",
  3633. Name = "OrderAllocation.Delete",
  3634. Show = false
  3635. },
  3636. new
  3637. {
  3638. Id = 43L,
  3639. CategoryName = "Adminstration",
  3640. Desc = "OrderRequest",
  3641. Name = "OrderRequest",
  3642. Show = true
  3643. },
  3644. new
  3645. {
  3646. Id = 44L,
  3647. CategoryName = "Adminstration",
  3648. Desc = "OrderRequest.Create",
  3649. Name = "OrderRequest.Create",
  3650. Show = false
  3651. },
  3652. new
  3653. {
  3654. Id = 45L,
  3655. CategoryName = "Adminstration",
  3656. Desc = "OrderRequest.Update",
  3657. Name = "OrderRequest.Update",
  3658. Show = false
  3659. },
  3660. new
  3661. {
  3662. Id = 46L,
  3663. CategoryName = "Adminstration",
  3664. Desc = "OrderRequest.Delete",
  3665. Name = "OrderRequest.Delete",
  3666. Show = false
  3667. },
  3668. new
  3669. {
  3670. Id = 47L,
  3671. CategoryName = "Adminstration",
  3672. Desc = "User.ResetPassword",
  3673. Name = "User.ResetPassword",
  3674. Show = false
  3675. });
  3676. });
  3677. modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
  3678. {
  3679. b.Property<long>("Id")
  3680. .ValueGeneratedOnAdd()
  3681. .HasColumnType("bigint")
  3682. .HasColumnOrder(0);
  3683. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3684. b.Property<long>("CompanyId")
  3685. .HasColumnType("bigint");
  3686. b.Property<DateTime>("CreateDate")
  3687. .HasColumnType("datetime2")
  3688. .HasColumnOrder(3);
  3689. b.Property<string>("CreateUser")
  3690. .HasMaxLength(450)
  3691. .HasColumnType("nvarchar(450)")
  3692. .HasColumnOrder(1);
  3693. b.Property<string>("DeleteUserId")
  3694. .HasMaxLength(450)
  3695. .HasColumnType("nvarchar(450)")
  3696. .HasColumnOrder(8);
  3697. b.Property<string>("Desc")
  3698. .IsRequired()
  3699. .HasColumnType("nvarchar(max)");
  3700. b.Property<bool>("IsDeleted")
  3701. .HasColumnType("bit")
  3702. .HasColumnOrder(7);
  3703. b.Property<string>("NameAr")
  3704. .IsRequired()
  3705. .HasMaxLength(250)
  3706. .HasColumnType("nvarchar(250)");
  3707. b.Property<string>("NameEn")
  3708. .IsRequired()
  3709. .HasMaxLength(250)
  3710. .HasColumnType("nvarchar(250)");
  3711. b.Property<DateTime?>("UpdateDate")
  3712. .HasColumnType("datetime2")
  3713. .HasColumnOrder(4);
  3714. b.Property<string>("UpdateUser")
  3715. .HasMaxLength(450)
  3716. .HasColumnType("nvarchar(450)")
  3717. .HasColumnOrder(2);
  3718. b.HasKey("Id");
  3719. b.HasIndex("CompanyId");
  3720. b.ToTable("Projects");
  3721. });
  3722. modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectStage", b =>
  3723. {
  3724. b.Property<long>("Id")
  3725. .ValueGeneratedOnAdd()
  3726. .HasColumnType("bigint")
  3727. .HasColumnOrder(0);
  3728. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3729. b.Property<decimal?>("AmountPercent")
  3730. .HasColumnType("decimal(18,2)");
  3731. b.Property<long>("ContractId")
  3732. .HasColumnType("bigint");
  3733. b.Property<DateTime>("CreateDate")
  3734. .HasColumnType("datetime2")
  3735. .HasColumnOrder(3);
  3736. b.Property<string>("CreateUser")
  3737. .HasMaxLength(450)
  3738. .HasColumnType("nvarchar(450)")
  3739. .HasColumnOrder(1);
  3740. b.Property<DateTime?>("ExpectedEndDate")
  3741. .HasColumnType("datetime2");
  3742. b.Property<string>("ScopeOfWork")
  3743. .HasColumnType("nvarchar(max)");
  3744. b.Property<DateTime?>("StartDate")
  3745. .HasColumnType("datetime2");
  3746. b.Property<string>("Title")
  3747. .IsRequired()
  3748. .HasMaxLength(250)
  3749. .HasColumnType("nvarchar(250)");
  3750. b.Property<DateTime?>("UpdateDate")
  3751. .HasColumnType("datetime2")
  3752. .HasColumnOrder(4);
  3753. b.Property<string>("UpdateUser")
  3754. .HasMaxLength(450)
  3755. .HasColumnType("nvarchar(450)")
  3756. .HasColumnOrder(2);
  3757. b.HasKey("Id");
  3758. b.HasIndex("ContractId");
  3759. b.ToTable("ProjectStage");
  3760. });
  3761. modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectStageAttachment", b =>
  3762. {
  3763. b.Property<long>("Id")
  3764. .ValueGeneratedOnAdd()
  3765. .HasColumnType("bigint")
  3766. .HasColumnOrder(0);
  3767. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3768. b.Property<long?>("AttachmentTypeId")
  3769. .HasColumnType("bigint");
  3770. b.Property<string>("ContentType")
  3771. .HasColumnType("nvarchar(max)");
  3772. b.Property<DateTime>("CreateDate")
  3773. .HasColumnType("datetime2")
  3774. .HasColumnOrder(3);
  3775. b.Property<string>("CreateUser")
  3776. .HasMaxLength(450)
  3777. .HasColumnType("nvarchar(450)")
  3778. .HasColumnOrder(1);
  3779. b.Property<string>("FileName")
  3780. .HasMaxLength(250)
  3781. .HasColumnType("nvarchar(250)");
  3782. b.Property<string>("FilePath")
  3783. .HasColumnType("nvarchar(max)");
  3784. b.Property<string>("OriginalName")
  3785. .HasMaxLength(250)
  3786. .HasColumnType("nvarchar(250)");
  3787. b.Property<long>("ProjectStageId")
  3788. .HasColumnType("bigint");
  3789. b.Property<DateTime?>("UpdateDate")
  3790. .HasColumnType("datetime2")
  3791. .HasColumnOrder(4);
  3792. b.Property<string>("UpdateUser")
  3793. .HasMaxLength(450)
  3794. .HasColumnType("nvarchar(450)")
  3795. .HasColumnOrder(2);
  3796. b.HasKey("Id");
  3797. b.HasIndex("ProjectStageId");
  3798. b.ToTable("ProjectStageAttachment");
  3799. });
  3800. modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectTeam", b =>
  3801. {
  3802. b.Property<long>("Id")
  3803. .ValueGeneratedOnAdd()
  3804. .HasColumnType("bigint")
  3805. .HasColumnOrder(0);
  3806. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3807. b.Property<DateTime>("CreateDate")
  3808. .HasColumnType("datetime2")
  3809. .HasColumnOrder(3);
  3810. b.Property<string>("CreateUser")
  3811. .HasMaxLength(450)
  3812. .HasColumnType("nvarchar(450)")
  3813. .HasColumnOrder(1);
  3814. b.Property<long>("ProjectId")
  3815. .HasColumnType("bigint");
  3816. b.Property<long>("TeamId")
  3817. .HasColumnType("bigint");
  3818. b.Property<string>("TeamName")
  3819. .IsRequired()
  3820. .HasColumnType("nvarchar(max)");
  3821. b.Property<DateTime?>("UpdateDate")
  3822. .HasColumnType("datetime2")
  3823. .HasColumnOrder(4);
  3824. b.Property<string>("UpdateUser")
  3825. .HasMaxLength(450)
  3826. .HasColumnType("nvarchar(450)")
  3827. .HasColumnOrder(2);
  3828. b.HasKey("Id");
  3829. b.HasIndex("ProjectId");
  3830. b.ToTable("ProjectTeam");
  3831. });
  3832. modelBuilder.Entity("MTWorkHR.Core.Entities.Qualification", b =>
  3833. {
  3834. b.Property<long>("Id")
  3835. .ValueGeneratedOnAdd()
  3836. .HasColumnType("bigint")
  3837. .HasColumnOrder(0);
  3838. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3839. b.Property<string>("NameAr")
  3840. .IsRequired()
  3841. .HasMaxLength(250)
  3842. .HasColumnType("nvarchar(250)");
  3843. b.Property<string>("NameEn")
  3844. .IsRequired()
  3845. .HasMaxLength(250)
  3846. .HasColumnType("nvarchar(250)");
  3847. b.HasKey("Id");
  3848. b.ToTable("Qualifications");
  3849. b.HasData(
  3850. new
  3851. {
  3852. Id = 1L,
  3853. NameAr = "بكالوريوس",
  3854. NameEn = "BSC"
  3855. },
  3856. new
  3857. {
  3858. Id = 2L,
  3859. NameAr = "درجة الماجيستير",
  3860. NameEn = "Master"
  3861. },
  3862. new
  3863. {
  3864. Id = 3L,
  3865. NameAr = "درحة الدكتوراه",
  3866. NameEn = "Doctor"
  3867. });
  3868. });
  3869. modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
  3870. {
  3871. b.Property<long>("Id")
  3872. .ValueGeneratedOnAdd()
  3873. .HasColumnType("bigint")
  3874. .HasColumnOrder(0);
  3875. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3876. b.Property<string>("Channel")
  3877. .HasColumnType("nvarchar(max)");
  3878. b.Property<DateTime>("CreateDate")
  3879. .HasColumnType("datetime2");
  3880. b.Property<string>("CreateUser")
  3881. .IsRequired()
  3882. .HasColumnType("nvarchar(max)");
  3883. b.Property<string>("ErrorCode")
  3884. .IsRequired()
  3885. .HasColumnType("nvarchar(max)");
  3886. b.Property<string>("ErrorDescription")
  3887. .IsRequired()
  3888. .HasColumnType("nvarchar(max)");
  3889. b.Property<string>("InnerException")
  3890. .HasColumnType("nvarchar(max)");
  3891. b.Property<string>("Input")
  3892. .HasColumnType("nvarchar(max)");
  3893. b.Property<string>("Method")
  3894. .IsRequired()
  3895. .HasColumnType("nvarchar(max)");
  3896. b.Property<string>("QueryString")
  3897. .HasColumnType("nvarchar(max)");
  3898. b.Property<string>("ServerIP")
  3899. .HasColumnType("nvarchar(max)");
  3900. b.Property<string>("ServiceResponseTimeInSeconds")
  3901. .IsRequired()
  3902. .HasColumnType("nvarchar(max)");
  3903. b.Property<string>("UserIP")
  3904. .HasColumnType("nvarchar(max)");
  3905. b.Property<string>("userAgent")
  3906. .HasColumnType("nvarchar(max)");
  3907. b.HasKey("Id");
  3908. b.ToTable("RoleLogs");
  3909. });
  3910. modelBuilder.Entity("MTWorkHR.Core.Entities.ServiceCertificate", b =>
  3911. {
  3912. b.Property<long>("Id")
  3913. .ValueGeneratedOnAdd()
  3914. .HasColumnType("bigint")
  3915. .HasColumnOrder(0);
  3916. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3917. b.Property<DateTime?>("JoiningDate")
  3918. .HasColumnType("datetime2");
  3919. b.Property<string>("Name")
  3920. .HasColumnType("nvarchar(max)");
  3921. b.Property<long>("OrderRequestId")
  3922. .HasColumnType("bigint");
  3923. b.Property<string>("Position")
  3924. .HasColumnType("nvarchar(max)");
  3925. b.Property<string>("Salary")
  3926. .HasColumnType("nvarchar(max)");
  3927. b.Property<DateTime?>("ToDate")
  3928. .HasColumnType("datetime2");
  3929. b.Property<string>("ToWhom")
  3930. .HasColumnType("nvarchar(max)");
  3931. b.HasKey("Id");
  3932. b.HasIndex("OrderRequestId")
  3933. .IsUnique();
  3934. b.ToTable("ServiceCertificate");
  3935. });
  3936. modelBuilder.Entity("MTWorkHR.Core.Entities.SettingLog", b =>
  3937. {
  3938. b.Property<long>("Id")
  3939. .ValueGeneratedOnAdd()
  3940. .HasColumnType("bigint")
  3941. .HasColumnOrder(0);
  3942. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3943. b.Property<string>("Channel")
  3944. .HasColumnType("nvarchar(max)");
  3945. b.Property<DateTime>("CreateDate")
  3946. .HasColumnType("datetime2");
  3947. b.Property<string>("CreateUser")
  3948. .IsRequired()
  3949. .HasColumnType("nvarchar(max)");
  3950. b.Property<string>("ErrorCode")
  3951. .IsRequired()
  3952. .HasColumnType("nvarchar(max)");
  3953. b.Property<string>("ErrorDescription")
  3954. .IsRequired()
  3955. .HasColumnType("nvarchar(max)");
  3956. b.Property<string>("InnerException")
  3957. .HasColumnType("nvarchar(max)");
  3958. b.Property<string>("Input")
  3959. .HasColumnType("nvarchar(max)");
  3960. b.Property<string>("Method")
  3961. .IsRequired()
  3962. .HasColumnType("nvarchar(max)");
  3963. b.Property<string>("QueryString")
  3964. .HasColumnType("nvarchar(max)");
  3965. b.Property<string>("ServerIP")
  3966. .HasColumnType("nvarchar(max)");
  3967. b.Property<string>("ServiceResponseTimeInSeconds")
  3968. .IsRequired()
  3969. .HasColumnType("nvarchar(max)");
  3970. b.Property<string>("UserIP")
  3971. .HasColumnType("nvarchar(max)");
  3972. b.Property<string>("userAgent")
  3973. .HasColumnType("nvarchar(max)");
  3974. b.HasKey("Id");
  3975. b.ToTable("SettingLogs");
  3976. });
  3977. modelBuilder.Entity("MTWorkHR.Core.Entities.SubscriptionConfiguration", b =>
  3978. {
  3979. b.Property<long>("Id")
  3980. .ValueGeneratedOnAdd()
  3981. .HasColumnType("bigint")
  3982. .HasColumnOrder(0);
  3983. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  3984. b.Property<decimal?>("ContractDocumentationFees")
  3985. .HasColumnType("decimal(18,2)");
  3986. b.Property<DateTime>("CreateDate")
  3987. .HasColumnType("datetime2")
  3988. .HasColumnOrder(3);
  3989. b.Property<string>("CreateUser")
  3990. .HasMaxLength(450)
  3991. .HasColumnType("nvarchar(450)")
  3992. .HasColumnOrder(1);
  3993. b.Property<decimal?>("DeductedFirstSearchAmount")
  3994. .HasColumnType("decimal(18,2)");
  3995. b.Property<string>("DeleteUserId")
  3996. .HasMaxLength(450)
  3997. .HasColumnType("nvarchar(450)")
  3998. .HasColumnOrder(8);
  3999. b.Property<decimal?>("DistinguishedEmployeeCompanyFeesPerc")
  4000. .HasColumnType("decimal(18,2)");
  4001. b.Property<decimal?>("DistinguishedEmployeePerc")
  4002. .HasColumnType("decimal(18,2)");
  4003. b.Property<decimal?>("ExperienceCertificateFees")
  4004. .HasColumnType("decimal(18,2)");
  4005. b.Property<decimal?>("FirstRegisterationCompanyFees")
  4006. .HasColumnType("decimal(18,2)");
  4007. b.Property<bool>("IsDeleted")
  4008. .HasColumnType("bit")
  4009. .HasColumnOrder(7);
  4010. b.Property<decimal?>("MonthlyCompanyFees")
  4011. .HasColumnType("decimal(18,2)");
  4012. b.Property<decimal?>("MonthlyEmployeeServicesCompanyFees")
  4013. .HasColumnType("decimal(18,2)");
  4014. b.Property<decimal?>("OrdinaryEmployeePerc")
  4015. .HasColumnType("decimal(18,2)");
  4016. b.Property<decimal?>("RequestDisputeResolutionFees")
  4017. .HasColumnType("decimal(18,2)");
  4018. b.Property<DateTime?>("UpdateDate")
  4019. .HasColumnType("datetime2")
  4020. .HasColumnOrder(4);
  4021. b.Property<string>("UpdateUser")
  4022. .HasMaxLength(450)
  4023. .HasColumnType("nvarchar(450)")
  4024. .HasColumnOrder(2);
  4025. b.Property<decimal?>("YearlyCompanyFees")
  4026. .HasColumnType("decimal(18,2)");
  4027. b.HasKey("Id");
  4028. b.ToTable("SubscriptionConfiguration");
  4029. b.HasData(
  4030. new
  4031. {
  4032. Id = 1L,
  4033. ContractDocumentationFees = 0m,
  4034. CreateDate = new DateTime(2025, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  4035. CreateUser = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  4036. DeductedFirstSearchAmount = 0m,
  4037. DistinguishedEmployeeCompanyFeesPerc = 0m,
  4038. DistinguishedEmployeePerc = 0m,
  4039. ExperienceCertificateFees = 0m,
  4040. FirstRegisterationCompanyFees = 0m,
  4041. IsDeleted = false,
  4042. MonthlyCompanyFees = 0m,
  4043. MonthlyEmployeeServicesCompanyFees = 0m,
  4044. OrdinaryEmployeePerc = 0m,
  4045. RequestDisputeResolutionFees = 0m,
  4046. YearlyCompanyFees = 0m
  4047. });
  4048. });
  4049. modelBuilder.Entity("MTWorkHR.Core.Entities.TaskUser", b =>
  4050. {
  4051. b.Property<long>("Id")
  4052. .ValueGeneratedOnAdd()
  4053. .HasColumnType("bigint")
  4054. .HasColumnOrder(0);
  4055. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4056. b.Property<string>("AssignedUserId")
  4057. .IsRequired()
  4058. .HasColumnType("nvarchar(max)");
  4059. b.Property<string>("AssignedUserName")
  4060. .HasColumnType("nvarchar(max)");
  4061. b.Property<DateTime>("CreateDate")
  4062. .HasColumnType("datetime2")
  4063. .HasColumnOrder(3);
  4064. b.Property<string>("CreateUser")
  4065. .HasMaxLength(450)
  4066. .HasColumnType("nvarchar(450)")
  4067. .HasColumnOrder(1);
  4068. b.Property<long>("TaskId")
  4069. .HasColumnType("bigint");
  4070. b.Property<DateTime?>("UpdateDate")
  4071. .HasColumnType("datetime2")
  4072. .HasColumnOrder(4);
  4073. b.Property<string>("UpdateUser")
  4074. .HasMaxLength(450)
  4075. .HasColumnType("nvarchar(450)")
  4076. .HasColumnOrder(2);
  4077. b.HasKey("Id");
  4078. b.HasIndex("TaskId");
  4079. b.ToTable("TaskUser");
  4080. });
  4081. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  4082. {
  4083. b.Property<long>("Id")
  4084. .ValueGeneratedOnAdd()
  4085. .HasColumnType("bigint")
  4086. .HasColumnOrder(0);
  4087. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4088. b.Property<long>("CompanyId")
  4089. .HasColumnType("bigint");
  4090. b.Property<DateTime>("CreateDate")
  4091. .HasColumnType("datetime2")
  4092. .HasColumnOrder(3);
  4093. b.Property<string>("CreateUser")
  4094. .HasMaxLength(450)
  4095. .HasColumnType("nvarchar(450)")
  4096. .HasColumnOrder(1);
  4097. b.Property<string>("DeleteUserId")
  4098. .HasMaxLength(450)
  4099. .HasColumnType("nvarchar(450)")
  4100. .HasColumnOrder(8);
  4101. b.Property<bool>("IsDeleted")
  4102. .HasColumnType("bit")
  4103. .HasColumnOrder(7);
  4104. b.Property<string>("NameAr")
  4105. .IsRequired()
  4106. .HasMaxLength(250)
  4107. .HasColumnType("nvarchar(250)");
  4108. b.Property<string>("NameEn")
  4109. .IsRequired()
  4110. .HasMaxLength(250)
  4111. .HasColumnType("nvarchar(250)");
  4112. b.Property<DateTime?>("UpdateDate")
  4113. .HasColumnType("datetime2")
  4114. .HasColumnOrder(4);
  4115. b.Property<string>("UpdateUser")
  4116. .HasMaxLength(450)
  4117. .HasColumnType("nvarchar(450)")
  4118. .HasColumnOrder(2);
  4119. b.HasKey("Id");
  4120. b.HasIndex("CompanyId");
  4121. b.ToTable("Teams");
  4122. });
  4123. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamLog", b =>
  4124. {
  4125. b.Property<long>("Id")
  4126. .ValueGeneratedOnAdd()
  4127. .HasColumnType("bigint")
  4128. .HasColumnOrder(0);
  4129. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4130. b.Property<string>("Channel")
  4131. .HasColumnType("nvarchar(max)");
  4132. b.Property<DateTime>("CreateDate")
  4133. .HasColumnType("datetime2");
  4134. b.Property<string>("CreateUser")
  4135. .IsRequired()
  4136. .HasColumnType("nvarchar(max)");
  4137. b.Property<string>("ErrorCode")
  4138. .IsRequired()
  4139. .HasColumnType("nvarchar(max)");
  4140. b.Property<string>("ErrorDescription")
  4141. .IsRequired()
  4142. .HasColumnType("nvarchar(max)");
  4143. b.Property<string>("InnerException")
  4144. .HasColumnType("nvarchar(max)");
  4145. b.Property<string>("Input")
  4146. .HasColumnType("nvarchar(max)");
  4147. b.Property<string>("Method")
  4148. .IsRequired()
  4149. .HasColumnType("nvarchar(max)");
  4150. b.Property<string>("QueryString")
  4151. .HasColumnType("nvarchar(max)");
  4152. b.Property<string>("ServerIP")
  4153. .HasColumnType("nvarchar(max)");
  4154. b.Property<string>("ServiceResponseTimeInSeconds")
  4155. .IsRequired()
  4156. .HasColumnType("nvarchar(max)");
  4157. b.Property<string>("UserIP")
  4158. .HasColumnType("nvarchar(max)");
  4159. b.Property<string>("userAgent")
  4160. .HasColumnType("nvarchar(max)");
  4161. b.HasKey("Id");
  4162. b.ToTable("TeamLogs");
  4163. });
  4164. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  4165. {
  4166. b.Property<long>("Id")
  4167. .ValueGeneratedOnAdd()
  4168. .HasColumnType("bigint")
  4169. .HasColumnOrder(0);
  4170. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4171. b.Property<string>("AssignedUserId")
  4172. .IsRequired()
  4173. .HasColumnType("nvarchar(max)");
  4174. b.Property<string>("AssignedUserName")
  4175. .IsRequired()
  4176. .HasColumnType("nvarchar(max)");
  4177. b.Property<DateTime>("CreateDate")
  4178. .HasColumnType("datetime2")
  4179. .HasColumnOrder(3);
  4180. b.Property<string>("CreateUser")
  4181. .HasMaxLength(450)
  4182. .HasColumnType("nvarchar(450)")
  4183. .HasColumnOrder(1);
  4184. b.Property<bool>("IsAdmin")
  4185. .HasColumnType("bit");
  4186. b.Property<long>("TeamId")
  4187. .HasColumnType("bigint");
  4188. b.Property<DateTime?>("UpdateDate")
  4189. .HasColumnType("datetime2")
  4190. .HasColumnOrder(4);
  4191. b.Property<string>("UpdateUser")
  4192. .HasMaxLength(450)
  4193. .HasColumnType("nvarchar(450)")
  4194. .HasColumnOrder(2);
  4195. b.HasKey("Id");
  4196. b.HasIndex("TeamId");
  4197. b.ToTable("TeamUser");
  4198. });
  4199. modelBuilder.Entity("MTWorkHR.Core.Entities.University", b =>
  4200. {
  4201. b.Property<long>("Id")
  4202. .ValueGeneratedOnAdd()
  4203. .HasColumnType("bigint")
  4204. .HasColumnOrder(0);
  4205. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4206. b.Property<string>("NameAr")
  4207. .IsRequired()
  4208. .HasMaxLength(250)
  4209. .HasColumnType("nvarchar(250)");
  4210. b.Property<string>("NameEn")
  4211. .IsRequired()
  4212. .HasMaxLength(250)
  4213. .HasColumnType("nvarchar(250)");
  4214. b.HasKey("Id");
  4215. b.ToTable("Universities");
  4216. b.HasData(
  4217. new
  4218. {
  4219. Id = 1L,
  4220. NameAr = "جامعة الملك فهد",
  4221. NameEn = "Fahd Univ"
  4222. },
  4223. new
  4224. {
  4225. Id = 2L,
  4226. NameAr = "جامعة الرياض",
  4227. NameEn = "Riydh Univ"
  4228. },
  4229. new
  4230. {
  4231. Id = 3L,
  4232. NameAr = "جامعة جدة",
  4233. NameEn = "Geda Univ"
  4234. });
  4235. });
  4236. modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
  4237. {
  4238. b.Property<long>("Id")
  4239. .ValueGeneratedOnAdd()
  4240. .HasColumnType("bigint")
  4241. .HasColumnOrder(0);
  4242. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4243. b.Property<long>("CompanyId")
  4244. .HasColumnType("bigint");
  4245. b.Property<long?>("ContractId")
  4246. .HasColumnType("bigint");
  4247. b.Property<decimal?>("CourseCost")
  4248. .HasColumnType("decimal(18,2)");
  4249. b.Property<decimal?>("CourseNumberOfHours")
  4250. .HasColumnType("decimal(18,2)");
  4251. b.Property<DateTime>("CreateDate")
  4252. .HasColumnType("datetime2")
  4253. .HasColumnOrder(3);
  4254. b.Property<string>("CreateUser")
  4255. .HasMaxLength(450)
  4256. .HasColumnType("nvarchar(450)")
  4257. .HasColumnOrder(1);
  4258. b.Property<string>("DeleteUserId")
  4259. .HasMaxLength(450)
  4260. .HasColumnType("nvarchar(450)")
  4261. .HasColumnOrder(8);
  4262. b.Property<DateTime?>("EndDate")
  4263. .HasColumnType("datetime2");
  4264. b.Property<bool>("IsDeleted")
  4265. .HasColumnType("bit")
  4266. .HasColumnOrder(7);
  4267. b.Property<long?>("LeaveTypeId")
  4268. .HasColumnType("bigint");
  4269. b.Property<int?>("OrderStatus")
  4270. .HasColumnType("int");
  4271. b.Property<long>("OrderTypeId")
  4272. .HasColumnType("bigint");
  4273. b.Property<string>("RequestComments")
  4274. .HasColumnType("nvarchar(max)");
  4275. b.Property<string>("RequestTitle")
  4276. .HasColumnType("nvarchar(max)");
  4277. b.Property<string>("RequestingEmployeeId")
  4278. .IsRequired()
  4279. .HasColumnType("nvarchar(max)");
  4280. b.Property<DateTime>("StartDate")
  4281. .HasColumnType("datetime2");
  4282. b.Property<decimal?>("TotalDays")
  4283. .HasColumnType("decimal(18,2)");
  4284. b.Property<DateTime?>("UpdateDate")
  4285. .HasColumnType("datetime2")
  4286. .HasColumnOrder(4);
  4287. b.Property<string>("UpdateUser")
  4288. .HasMaxLength(450)
  4289. .HasColumnType("nvarchar(450)")
  4290. .HasColumnOrder(2);
  4291. b.HasKey("Id");
  4292. b.HasIndex("CompanyId");
  4293. b.HasIndex("LeaveTypeId");
  4294. b.HasIndex("OrderTypeId");
  4295. b.ToTable("OrderRequests");
  4296. });
  4297. modelBuilder.Entity("MTWorkHR.Core.Entities.UserLog", b =>
  4298. {
  4299. b.Property<long>("Id")
  4300. .ValueGeneratedOnAdd()
  4301. .HasColumnType("bigint")
  4302. .HasColumnOrder(0);
  4303. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4304. b.Property<string>("Channel")
  4305. .HasColumnType("nvarchar(max)");
  4306. b.Property<DateTime>("CreateDate")
  4307. .HasColumnType("datetime2");
  4308. b.Property<string>("CreateUser")
  4309. .IsRequired()
  4310. .HasColumnType("nvarchar(max)");
  4311. b.Property<string>("ErrorCode")
  4312. .IsRequired()
  4313. .HasColumnType("nvarchar(max)");
  4314. b.Property<string>("ErrorDescription")
  4315. .IsRequired()
  4316. .HasColumnType("nvarchar(max)");
  4317. b.Property<string>("InnerException")
  4318. .HasColumnType("nvarchar(max)");
  4319. b.Property<string>("Input")
  4320. .HasColumnType("nvarchar(max)");
  4321. b.Property<string>("Method")
  4322. .IsRequired()
  4323. .HasColumnType("nvarchar(max)");
  4324. b.Property<string>("QueryString")
  4325. .HasColumnType("nvarchar(max)");
  4326. b.Property<string>("ServerIP")
  4327. .HasColumnType("nvarchar(max)");
  4328. b.Property<string>("ServiceResponseTimeInSeconds")
  4329. .IsRequired()
  4330. .HasColumnType("nvarchar(max)");
  4331. b.Property<string>("UserIP")
  4332. .HasColumnType("nvarchar(max)");
  4333. b.Property<string>("userAgent")
  4334. .HasColumnType("nvarchar(max)");
  4335. b.HasKey("Id");
  4336. b.ToTable("UserLogs");
  4337. });
  4338. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  4339. {
  4340. b.Property<long>("Id")
  4341. .ValueGeneratedOnAdd()
  4342. .HasColumnType("bigint")
  4343. .HasColumnOrder(0);
  4344. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4345. b.Property<string>("AssignedUserId")
  4346. .IsRequired()
  4347. .HasColumnType("nvarchar(max)");
  4348. b.Property<long>("CompanyId")
  4349. .HasColumnType("bigint");
  4350. b.Property<DateTime>("CreateDate")
  4351. .HasColumnType("datetime2")
  4352. .HasColumnOrder(3);
  4353. b.Property<string>("CreateUser")
  4354. .HasMaxLength(450)
  4355. .HasColumnType("nvarchar(450)")
  4356. .HasColumnOrder(1);
  4357. b.Property<string>("DeleteUserId")
  4358. .HasMaxLength(450)
  4359. .HasColumnType("nvarchar(450)")
  4360. .HasColumnOrder(8);
  4361. b.Property<string>("Description")
  4362. .IsRequired()
  4363. .HasColumnType("nvarchar(max)");
  4364. b.Property<DateTime>("DueDate")
  4365. .HasColumnType("datetime2");
  4366. b.Property<bool>("IsDeleted")
  4367. .HasColumnType("bit")
  4368. .HasColumnOrder(7);
  4369. b.Property<int>("Priority")
  4370. .HasColumnType("int");
  4371. b.Property<long>("ProjectId")
  4372. .HasColumnType("bigint");
  4373. b.Property<long>("StatusId")
  4374. .HasColumnType("bigint");
  4375. b.Property<string>("Title")
  4376. .IsRequired()
  4377. .HasColumnType("nvarchar(max)");
  4378. b.Property<DateTime?>("UpdateDate")
  4379. .HasColumnType("datetime2")
  4380. .HasColumnOrder(4);
  4381. b.Property<string>("UpdateUser")
  4382. .HasMaxLength(450)
  4383. .HasColumnType("nvarchar(450)")
  4384. .HasColumnOrder(2);
  4385. b.HasKey("Id");
  4386. b.HasIndex("CompanyId");
  4387. b.HasIndex("ProjectId");
  4388. b.HasIndex("StatusId");
  4389. b.ToTable("UserTasks");
  4390. });
  4391. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  4392. {
  4393. b.Property<long>("Id")
  4394. .ValueGeneratedOnAdd()
  4395. .HasColumnType("bigint")
  4396. .HasColumnOrder(0);
  4397. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4398. b.Property<long?>("AttachmentTypeId")
  4399. .HasColumnType("bigint");
  4400. b.Property<byte[]>("Content")
  4401. .IsRequired()
  4402. .HasColumnType("varbinary(max)");
  4403. b.Property<string>("ContentType")
  4404. .HasColumnType("nvarchar(max)");
  4405. b.Property<DateTime>("CreateDate")
  4406. .HasColumnType("datetime2")
  4407. .HasColumnOrder(3);
  4408. b.Property<string>("CreateUser")
  4409. .HasMaxLength(450)
  4410. .HasColumnType("nvarchar(450)")
  4411. .HasColumnOrder(1);
  4412. b.Property<string>("FileName")
  4413. .HasMaxLength(250)
  4414. .HasColumnType("nvarchar(250)");
  4415. b.Property<string>("FilePath")
  4416. .HasColumnType("nvarchar(max)");
  4417. b.Property<string>("OriginalName")
  4418. .HasMaxLength(250)
  4419. .HasColumnType("nvarchar(250)");
  4420. b.Property<long>("TaskId")
  4421. .HasColumnType("bigint");
  4422. b.Property<DateTime?>("UpdateDate")
  4423. .HasColumnType("datetime2")
  4424. .HasColumnOrder(4);
  4425. b.Property<string>("UpdateUser")
  4426. .HasMaxLength(450)
  4427. .HasColumnType("nvarchar(450)")
  4428. .HasColumnOrder(2);
  4429. b.HasKey("Id");
  4430. b.HasIndex("AttachmentTypeId");
  4431. b.HasIndex("TaskId");
  4432. b.ToTable("UserTaskAttachments");
  4433. });
  4434. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  4435. {
  4436. b.Property<long>("Id")
  4437. .ValueGeneratedOnAdd()
  4438. .HasColumnType("bigint")
  4439. .HasColumnOrder(0);
  4440. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4441. b.Property<string>("AssignedToUserId")
  4442. .HasColumnType("nvarchar(max)");
  4443. b.Property<string>("Comment")
  4444. .HasMaxLength(500)
  4445. .HasColumnType("nvarchar(500)");
  4446. b.Property<DateTime>("CreateDate")
  4447. .HasColumnType("datetime2")
  4448. .HasColumnOrder(3);
  4449. b.Property<string>("CreateUser")
  4450. .HasMaxLength(450)
  4451. .HasColumnType("nvarchar(450)")
  4452. .HasColumnOrder(1);
  4453. b.Property<long>("CurrentStatusId")
  4454. .HasColumnType("bigint");
  4455. b.Property<bool>("IsDeleted")
  4456. .HasColumnType("bit");
  4457. b.Property<long>("TaskId")
  4458. .HasColumnType("bigint");
  4459. b.Property<DateTime?>("UpdateDate")
  4460. .HasColumnType("datetime2")
  4461. .HasColumnOrder(4);
  4462. b.Property<string>("UpdateUser")
  4463. .HasMaxLength(450)
  4464. .HasColumnType("nvarchar(450)")
  4465. .HasColumnOrder(2);
  4466. b.HasKey("Id");
  4467. b.HasIndex("CurrentStatusId");
  4468. b.HasIndex("TaskId");
  4469. b.ToTable("UserTaskHistories");
  4470. });
  4471. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskLog", b =>
  4472. {
  4473. b.Property<long>("Id")
  4474. .ValueGeneratedOnAdd()
  4475. .HasColumnType("bigint")
  4476. .HasColumnOrder(0);
  4477. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4478. b.Property<string>("Channel")
  4479. .HasColumnType("nvarchar(max)");
  4480. b.Property<DateTime>("CreateDate")
  4481. .HasColumnType("datetime2");
  4482. b.Property<string>("CreateUser")
  4483. .IsRequired()
  4484. .HasColumnType("nvarchar(max)");
  4485. b.Property<string>("ErrorCode")
  4486. .IsRequired()
  4487. .HasColumnType("nvarchar(max)");
  4488. b.Property<string>("ErrorDescription")
  4489. .IsRequired()
  4490. .HasColumnType("nvarchar(max)");
  4491. b.Property<string>("InnerException")
  4492. .HasColumnType("nvarchar(max)");
  4493. b.Property<string>("Input")
  4494. .HasColumnType("nvarchar(max)");
  4495. b.Property<string>("Method")
  4496. .IsRequired()
  4497. .HasColumnType("nvarchar(max)");
  4498. b.Property<string>("QueryString")
  4499. .HasColumnType("nvarchar(max)");
  4500. b.Property<string>("ServerIP")
  4501. .HasColumnType("nvarchar(max)");
  4502. b.Property<string>("ServiceResponseTimeInSeconds")
  4503. .IsRequired()
  4504. .HasColumnType("nvarchar(max)");
  4505. b.Property<string>("UserIP")
  4506. .HasColumnType("nvarchar(max)");
  4507. b.Property<string>("userAgent")
  4508. .HasColumnType("nvarchar(max)");
  4509. b.HasKey("Id");
  4510. b.ToTable("UserTaskLogs");
  4511. });
  4512. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskStatus", b =>
  4513. {
  4514. b.Property<long>("Id")
  4515. .ValueGeneratedOnAdd()
  4516. .HasColumnType("bigint")
  4517. .HasColumnOrder(0);
  4518. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4519. b.Property<string>("NameAr")
  4520. .IsRequired()
  4521. .HasMaxLength(250)
  4522. .HasColumnType("nvarchar(250)");
  4523. b.Property<string>("NameEn")
  4524. .IsRequired()
  4525. .HasMaxLength(250)
  4526. .HasColumnType("nvarchar(250)");
  4527. b.HasKey("Id");
  4528. b.ToTable("UserTaskStatuses");
  4529. b.HasData(
  4530. new
  4531. {
  4532. Id = 1L,
  4533. NameAr = "جديدة",
  4534. NameEn = "To Do"
  4535. },
  4536. new
  4537. {
  4538. Id = 2L,
  4539. NameAr = "قيد العمل",
  4540. NameEn = "In progress"
  4541. },
  4542. new
  4543. {
  4544. Id = 3L,
  4545. NameAr = "تحتاج مراجعة",
  4546. NameEn = "Need Review"
  4547. },
  4548. new
  4549. {
  4550. Id = 4L,
  4551. NameAr = "تمت",
  4552. NameEn = "Done"
  4553. });
  4554. });
  4555. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  4556. {
  4557. b.Property<string>("Id")
  4558. .HasColumnType("nvarchar(450)");
  4559. b.Property<string>("ConcurrencyStamp")
  4560. .IsConcurrencyToken()
  4561. .HasColumnType("nvarchar(max)");
  4562. b.Property<DateTime>("CreateDate")
  4563. .HasColumnType("datetime2");
  4564. b.Property<string>("CreateUser")
  4565. .HasColumnType("nvarchar(max)");
  4566. b.Property<string>("DeleteUserId")
  4567. .HasColumnType("nvarchar(max)");
  4568. b.Property<bool?>("IsAdmin")
  4569. .HasColumnType("bit");
  4570. b.Property<bool>("IsDeleted")
  4571. .HasColumnType("bit");
  4572. b.Property<string>("Name")
  4573. .HasMaxLength(256)
  4574. .HasColumnType("nvarchar(256)");
  4575. b.Property<string>("NormalizedName")
  4576. .HasMaxLength(256)
  4577. .HasColumnType("nvarchar(256)");
  4578. b.Property<DateTime?>("UpdateDate")
  4579. .HasColumnType("datetime2");
  4580. b.Property<string>("UpdateUser")
  4581. .HasColumnType("nvarchar(max)");
  4582. b.HasKey("Id");
  4583. b.HasIndex("NormalizedName")
  4584. .IsUnique()
  4585. .HasDatabaseName("RoleNameIndex")
  4586. .HasFilter("[NormalizedName] IS NOT NULL");
  4587. b.ToTable("AspNetRoles", (string)null);
  4588. b.HasData(
  4589. new
  4590. {
  4591. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  4592. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  4593. IsAdmin = false,
  4594. IsDeleted = false,
  4595. Name = "Admin",
  4596. NormalizedName = "ADMIN"
  4597. },
  4598. new
  4599. {
  4600. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E",
  4601. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  4602. IsAdmin = false,
  4603. IsDeleted = false,
  4604. Name = "Employee",
  4605. NormalizedName = "EMPLOYEE"
  4606. },
  4607. new
  4608. {
  4609. Id = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R",
  4610. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  4611. IsAdmin = false,
  4612. IsDeleted = false,
  4613. Name = "Contractor",
  4614. NormalizedName = "CONTRACTOR"
  4615. },
  4616. new
  4617. {
  4618. Id = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110",
  4619. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  4620. IsAdmin = false,
  4621. IsDeleted = false,
  4622. Name = "Business",
  4623. NormalizedName = "BUSINESS"
  4624. });
  4625. });
  4626. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  4627. {
  4628. b.Property<string>("Id")
  4629. .HasColumnType("nvarchar(450)");
  4630. b.Property<int>("AccessFailedCount")
  4631. .HasColumnType("int");
  4632. b.Property<long?>("CompanyId")
  4633. .HasColumnType("bigint");
  4634. b.Property<string>("CompanyRepresentativeTitle")
  4635. .HasColumnType("nvarchar(max)");
  4636. b.Property<string>("ConcurrencyStamp")
  4637. .IsConcurrencyToken()
  4638. .HasColumnType("nvarchar(max)");
  4639. b.Property<long?>("CountryId")
  4640. .HasColumnType("bigint");
  4641. b.Property<DateTime?>("CreateDate")
  4642. .HasColumnType("datetime2");
  4643. b.Property<string>("CreateUser")
  4644. .HasColumnType("nvarchar(max)");
  4645. b.Property<DateTime>("DateOfBirth")
  4646. .HasColumnType("datetime2");
  4647. b.Property<string>("DeleteUserId")
  4648. .HasColumnType("nvarchar(max)");
  4649. b.Property<string>("Email")
  4650. .HasMaxLength(256)
  4651. .HasColumnType("nvarchar(256)");
  4652. b.Property<bool>("EmailConfirmed")
  4653. .HasColumnType("bit");
  4654. b.Property<string>("FavoriteName")
  4655. .HasColumnType("nvarchar(max)");
  4656. b.Property<string>("FirstName")
  4657. .IsRequired()
  4658. .HasColumnType("nvarchar(max)");
  4659. b.Property<string>("IdNumber")
  4660. .IsRequired()
  4661. .HasColumnType("nvarchar(max)");
  4662. b.Property<decimal?>("IncomeTaxValue")
  4663. .HasColumnType("decimal(18,2)");
  4664. b.Property<long?>("IndustryId")
  4665. .HasColumnType("bigint");
  4666. b.Property<bool>("IsDeleted")
  4667. .HasColumnType("bit");
  4668. b.Property<bool>("IsStopped")
  4669. .HasColumnType("bit");
  4670. b.Property<long?>("JobTitleId")
  4671. .HasColumnType("bigint");
  4672. b.Property<string>("LastName")
  4673. .IsRequired()
  4674. .HasColumnType("nvarchar(max)");
  4675. b.Property<string>("LinkedInLink")
  4676. .HasColumnType("nvarchar(max)");
  4677. b.Property<bool>("LockoutEnabled")
  4678. .HasColumnType("bit");
  4679. b.Property<DateTimeOffset?>("LockoutEnd")
  4680. .HasColumnType("datetimeoffset");
  4681. b.Property<string>("ManagerId")
  4682. .HasColumnType("nvarchar(450)");
  4683. b.Property<long?>("NationalityId")
  4684. .HasColumnType("bigint");
  4685. b.Property<string>("NormalizedEmail")
  4686. .HasMaxLength(256)
  4687. .HasColumnType("nvarchar(256)");
  4688. b.Property<string>("NormalizedUserName")
  4689. .HasMaxLength(256)
  4690. .HasColumnType("nvarchar(256)");
  4691. b.Property<DateTime?>("PassportExpiryDate")
  4692. .HasColumnType("datetime2");
  4693. b.Property<string>("PassportNumber")
  4694. .IsRequired()
  4695. .HasColumnType("nvarchar(max)");
  4696. b.Property<string>("PasswordHash")
  4697. .HasColumnType("nvarchar(max)");
  4698. b.Property<string>("PhoneNumber")
  4699. .HasColumnType("nvarchar(max)");
  4700. b.Property<bool>("PhoneNumberConfirmed")
  4701. .HasColumnType("bit");
  4702. b.Property<string>("Position")
  4703. .HasColumnType("nvarchar(max)");
  4704. b.Property<long?>("QualificationId")
  4705. .HasColumnType("bigint");
  4706. b.Property<string>("SecurityStamp")
  4707. .HasColumnType("nvarchar(max)");
  4708. b.Property<decimal?>("TaxNumber")
  4709. .HasColumnType("decimal(18,2)");
  4710. b.Property<bool>("TwoFactorEnabled")
  4711. .HasColumnType("bit");
  4712. b.Property<long?>("UniversityId")
  4713. .HasColumnType("bigint");
  4714. b.Property<DateTime?>("UpdateDate")
  4715. .HasColumnType("datetime2");
  4716. b.Property<string>("UpdateUser")
  4717. .HasColumnType("nvarchar(max)");
  4718. b.Property<string>("UserName")
  4719. .HasMaxLength(256)
  4720. .HasColumnType("nvarchar(256)");
  4721. b.Property<int>("UserType")
  4722. .HasColumnType("int");
  4723. b.HasKey("Id");
  4724. b.HasIndex("CountryId");
  4725. b.HasIndex("IndustryId");
  4726. b.HasIndex("JobTitleId");
  4727. b.HasIndex("ManagerId");
  4728. b.HasIndex("NationalityId");
  4729. b.HasIndex("NormalizedEmail")
  4730. .HasDatabaseName("EmailIndex");
  4731. b.HasIndex("NormalizedUserName")
  4732. .IsUnique()
  4733. .HasDatabaseName("UserNameIndex")
  4734. .HasFilter("[NormalizedUserName] IS NOT NULL");
  4735. b.HasIndex("QualificationId");
  4736. b.HasIndex("UniversityId");
  4737. b.ToTable("AspNetUsers", (string)null);
  4738. b.HasData(
  4739. new
  4740. {
  4741. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  4742. AccessFailedCount = 0,
  4743. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  4744. DateOfBirth = new DateTime(2000, 2, 10, 0, 0, 0, 0, DateTimeKind.Unspecified),
  4745. Email = "admin@super.com",
  4746. EmailConfirmed = true,
  4747. FirstName = "Super",
  4748. IdNumber = "1234",
  4749. IncomeTaxValue = 1m,
  4750. IsDeleted = false,
  4751. IsStopped = false,
  4752. LastName = "Admin",
  4753. LockoutEnabled = false,
  4754. NormalizedEmail = "ADMIN@SUPER.COM",
  4755. NormalizedUserName = "ADMIN@SUPER.COM",
  4756. PassportNumber = "123456700",
  4757. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  4758. PhoneNumber = "1234567890",
  4759. PhoneNumberConfirmed = true,
  4760. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  4761. TaxNumber = 111334455m,
  4762. TwoFactorEnabled = false,
  4763. UserName = "Admin@super.com",
  4764. UserType = 0
  4765. },
  4766. new
  4767. {
  4768. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  4769. AccessFailedCount = 0,
  4770. CompanyId = 1L,
  4771. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  4772. DateOfBirth = new DateTime(2001, 5, 13, 0, 0, 0, 0, DateTimeKind.Unspecified),
  4773. Email = "ali@b.com",
  4774. EmailConfirmed = true,
  4775. FirstName = "Ali",
  4776. IdNumber = "343434",
  4777. IncomeTaxValue = 100m,
  4778. IsDeleted = false,
  4779. IsStopped = false,
  4780. LastName = "Farok",
  4781. LockoutEnabled = false,
  4782. NormalizedEmail = "ALI@B.COM",
  4783. NormalizedUserName = "ALI@B.COM",
  4784. PassportNumber = "7654321001010",
  4785. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  4786. PhoneNumber = "1234567888",
  4787. PhoneNumberConfirmed = true,
  4788. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  4789. TaxNumber = 222m,
  4790. TwoFactorEnabled = false,
  4791. UserName = "Ali@b.com",
  4792. UserType = 1
  4793. });
  4794. });
  4795. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  4796. {
  4797. b.Property<long>("Id")
  4798. .ValueGeneratedOnAdd()
  4799. .HasColumnType("bigint")
  4800. .HasColumnOrder(0);
  4801. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  4802. b.Property<long>("PermissionId")
  4803. .HasColumnType("bigint");
  4804. b.Property<string>("PermissionName")
  4805. .IsRequired()
  4806. .HasColumnType("nvarchar(max)");
  4807. b.Property<string>("RoleId")
  4808. .IsRequired()
  4809. .HasColumnType("nvarchar(450)");
  4810. b.HasKey("Id");
  4811. b.HasIndex("PermissionId");
  4812. b.HasIndex("RoleId");
  4813. b.ToTable("RolePermissions");
  4814. b.HasData(
  4815. new
  4816. {
  4817. Id = 1L,
  4818. PermissionId = 1L,
  4819. PermissionName = "Project",
  4820. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4821. },
  4822. new
  4823. {
  4824. Id = 2L,
  4825. PermissionId = 2L,
  4826. PermissionName = "Project.Create",
  4827. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4828. },
  4829. new
  4830. {
  4831. Id = 3L,
  4832. PermissionId = 3L,
  4833. PermissionName = "Project.Update",
  4834. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4835. },
  4836. new
  4837. {
  4838. Id = 4L,
  4839. PermissionId = 4L,
  4840. PermissionName = "Project.Delete",
  4841. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4842. },
  4843. new
  4844. {
  4845. Id = 5L,
  4846. PermissionId = 5L,
  4847. PermissionName = "Meeting",
  4848. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4849. },
  4850. new
  4851. {
  4852. Id = 6L,
  4853. PermissionId = 6L,
  4854. PermissionName = "Meeting.Create",
  4855. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4856. },
  4857. new
  4858. {
  4859. Id = 7L,
  4860. PermissionId = 7L,
  4861. PermissionName = "Meeting.Update",
  4862. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4863. },
  4864. new
  4865. {
  4866. Id = 8L,
  4867. PermissionId = 8L,
  4868. PermissionName = "Meeting.Delete",
  4869. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4870. },
  4871. new
  4872. {
  4873. Id = 9L,
  4874. PermissionId = 9L,
  4875. PermissionName = "Team",
  4876. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4877. },
  4878. new
  4879. {
  4880. Id = 10L,
  4881. PermissionId = 10L,
  4882. PermissionName = "Team.Create",
  4883. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4884. },
  4885. new
  4886. {
  4887. Id = 11L,
  4888. PermissionId = 11L,
  4889. PermissionName = "Team.Update",
  4890. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4891. },
  4892. new
  4893. {
  4894. Id = 12L,
  4895. PermissionId = 12L,
  4896. PermissionName = "Team.Delete",
  4897. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4898. },
  4899. new
  4900. {
  4901. Id = 13L,
  4902. PermissionId = 13L,
  4903. PermissionName = "UserTask",
  4904. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4905. },
  4906. new
  4907. {
  4908. Id = 14L,
  4909. PermissionId = 14L,
  4910. PermissionName = "UserTask.Create",
  4911. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4912. },
  4913. new
  4914. {
  4915. Id = 15L,
  4916. PermissionId = 15L,
  4917. PermissionName = "UserTask.Update",
  4918. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4919. },
  4920. new
  4921. {
  4922. Id = 16L,
  4923. PermissionId = 16L,
  4924. PermissionName = "UserTask.Delete",
  4925. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4926. },
  4927. new
  4928. {
  4929. Id = 17L,
  4930. PermissionId = 17L,
  4931. PermissionName = "Company",
  4932. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4933. },
  4934. new
  4935. {
  4936. Id = 20L,
  4937. PermissionId = 22L,
  4938. PermissionName = "User",
  4939. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4940. },
  4941. new
  4942. {
  4943. Id = 22L,
  4944. PermissionId = 24L,
  4945. PermissionName = "User.Update",
  4946. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4947. },
  4948. new
  4949. {
  4950. Id = 23L,
  4951. PermissionId = 27L,
  4952. PermissionName = "Role",
  4953. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4954. },
  4955. new
  4956. {
  4957. Id = 24L,
  4958. PermissionId = 28L,
  4959. PermissionName = "Role.Create",
  4960. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4961. },
  4962. new
  4963. {
  4964. Id = 25L,
  4965. PermissionId = 29L,
  4966. PermissionName = "Role.Update",
  4967. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4968. },
  4969. new
  4970. {
  4971. Id = 26L,
  4972. PermissionId = 30L,
  4973. PermissionName = "Role.Delete",
  4974. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4975. },
  4976. new
  4977. {
  4978. Id = 27L,
  4979. PermissionId = 31L,
  4980. PermissionName = "Attendance",
  4981. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4982. },
  4983. new
  4984. {
  4985. Id = 28L,
  4986. PermissionId = 32L,
  4987. PermissionName = "Attendance.Create",
  4988. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4989. },
  4990. new
  4991. {
  4992. Id = 29L,
  4993. PermissionId = 33L,
  4994. PermissionName = "Attendance.Update",
  4995. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  4996. },
  4997. new
  4998. {
  4999. Id = 30L,
  5000. PermissionId = 34L,
  5001. PermissionName = "Attendance.Delete",
  5002. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5003. },
  5004. new
  5005. {
  5006. Id = 35L,
  5007. PermissionId = 39L,
  5008. PermissionName = "OrderAllocation",
  5009. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5010. },
  5011. new
  5012. {
  5013. Id = 36L,
  5014. PermissionId = 40L,
  5015. PermissionName = "OrderAllocation.Create",
  5016. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5017. },
  5018. new
  5019. {
  5020. Id = 37L,
  5021. PermissionId = 41L,
  5022. PermissionName = "OrderAllocation.Update",
  5023. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5024. },
  5025. new
  5026. {
  5027. Id = 38L,
  5028. PermissionId = 42L,
  5029. PermissionName = "OrderAllocation.Delete",
  5030. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5031. },
  5032. new
  5033. {
  5034. Id = 39L,
  5035. PermissionId = 43L,
  5036. PermissionName = "OrderRequest",
  5037. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5038. },
  5039. new
  5040. {
  5041. Id = 40L,
  5042. PermissionId = 44L,
  5043. PermissionName = "OrderRequest.Create",
  5044. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5045. },
  5046. new
  5047. {
  5048. Id = 41L,
  5049. PermissionId = 45L,
  5050. PermissionName = "OrderRequest.Update",
  5051. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5052. },
  5053. new
  5054. {
  5055. Id = 42L,
  5056. PermissionId = 46L,
  5057. PermissionName = "OrderRequest.Delete",
  5058. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5059. },
  5060. new
  5061. {
  5062. Id = 43L,
  5063. PermissionId = 17L,
  5064. PermissionName = "Company",
  5065. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  5066. },
  5067. new
  5068. {
  5069. Id = 44L,
  5070. PermissionId = 20L,
  5071. PermissionName = "Company.Delete",
  5072. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  5073. },
  5074. new
  5075. {
  5076. Id = 45L,
  5077. PermissionId = 21L,
  5078. PermissionName = "Company.Suspend",
  5079. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  5080. },
  5081. new
  5082. {
  5083. Id = 46L,
  5084. PermissionId = 22L,
  5085. PermissionName = "User",
  5086. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  5087. },
  5088. new
  5089. {
  5090. Id = 47L,
  5091. PermissionId = 25L,
  5092. PermissionName = "User.Delete",
  5093. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  5094. },
  5095. new
  5096. {
  5097. Id = 48L,
  5098. PermissionId = 26L,
  5099. PermissionName = "User.Suspend",
  5100. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  5101. },
  5102. new
  5103. {
  5104. Id = 49L,
  5105. PermissionId = 1L,
  5106. PermissionName = "Project",
  5107. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5108. },
  5109. new
  5110. {
  5111. Id = 50L,
  5112. PermissionId = 2L,
  5113. PermissionName = "Project.Create",
  5114. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5115. },
  5116. new
  5117. {
  5118. Id = 51L,
  5119. PermissionId = 3L,
  5120. PermissionName = "Project.Update",
  5121. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5122. },
  5123. new
  5124. {
  5125. Id = 52L,
  5126. PermissionId = 4L,
  5127. PermissionName = "Project.Delete",
  5128. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5129. },
  5130. new
  5131. {
  5132. Id = 53L,
  5133. PermissionId = 5L,
  5134. PermissionName = "Meeting",
  5135. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5136. },
  5137. new
  5138. {
  5139. Id = 54L,
  5140. PermissionId = 6L,
  5141. PermissionName = "Meeting.Create",
  5142. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5143. },
  5144. new
  5145. {
  5146. Id = 55L,
  5147. PermissionId = 7L,
  5148. PermissionName = "Meeting.Update",
  5149. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5150. },
  5151. new
  5152. {
  5153. Id = 56L,
  5154. PermissionId = 8L,
  5155. PermissionName = "Meeting.Delete",
  5156. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5157. },
  5158. new
  5159. {
  5160. Id = 57L,
  5161. PermissionId = 9L,
  5162. PermissionName = "Team",
  5163. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5164. },
  5165. new
  5166. {
  5167. Id = 58L,
  5168. PermissionId = 10L,
  5169. PermissionName = "Team.Create",
  5170. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5171. },
  5172. new
  5173. {
  5174. Id = 59L,
  5175. PermissionId = 11L,
  5176. PermissionName = "Team.Update",
  5177. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5178. },
  5179. new
  5180. {
  5181. Id = 60L,
  5182. PermissionId = 12L,
  5183. PermissionName = "Team.Delete",
  5184. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5185. },
  5186. new
  5187. {
  5188. Id = 61L,
  5189. PermissionId = 13L,
  5190. PermissionName = "UserTask",
  5191. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5192. },
  5193. new
  5194. {
  5195. Id = 62L,
  5196. PermissionId = 14L,
  5197. PermissionName = "UserTask.Create",
  5198. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5199. },
  5200. new
  5201. {
  5202. Id = 63L,
  5203. PermissionId = 15L,
  5204. PermissionName = "UserTask.Update",
  5205. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5206. },
  5207. new
  5208. {
  5209. Id = 64L,
  5210. PermissionId = 16L,
  5211. PermissionName = "UserTask.Delete",
  5212. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5213. },
  5214. new
  5215. {
  5216. Id = 65L,
  5217. PermissionId = 17L,
  5218. PermissionName = "Company",
  5219. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5220. },
  5221. new
  5222. {
  5223. Id = 68L,
  5224. PermissionId = 22L,
  5225. PermissionName = "User",
  5226. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5227. },
  5228. new
  5229. {
  5230. Id = 69L,
  5231. PermissionId = 23L,
  5232. PermissionName = "User.Create",
  5233. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5234. },
  5235. new
  5236. {
  5237. Id = 70L,
  5238. PermissionId = 24L,
  5239. PermissionName = "User.Update",
  5240. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5241. },
  5242. new
  5243. {
  5244. Id = 71L,
  5245. PermissionId = 27L,
  5246. PermissionName = "Role",
  5247. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5248. },
  5249. new
  5250. {
  5251. Id = 72L,
  5252. PermissionId = 28L,
  5253. PermissionName = "Role.Create",
  5254. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5255. },
  5256. new
  5257. {
  5258. Id = 73L,
  5259. PermissionId = 29L,
  5260. PermissionName = "Role.Update",
  5261. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5262. },
  5263. new
  5264. {
  5265. Id = 74L,
  5266. PermissionId = 30L,
  5267. PermissionName = "Role.Delete",
  5268. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5269. },
  5270. new
  5271. {
  5272. Id = 75L,
  5273. PermissionId = 31L,
  5274. PermissionName = "Attendance",
  5275. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5276. },
  5277. new
  5278. {
  5279. Id = 76L,
  5280. PermissionId = 32L,
  5281. PermissionName = "Attendance.Create",
  5282. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5283. },
  5284. new
  5285. {
  5286. Id = 77L,
  5287. PermissionId = 33L,
  5288. PermissionName = "Attendance.Update",
  5289. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5290. },
  5291. new
  5292. {
  5293. Id = 78L,
  5294. PermissionId = 34L,
  5295. PermissionName = "Attendance.Delete",
  5296. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5297. },
  5298. new
  5299. {
  5300. Id = 79L,
  5301. PermissionId = 35L,
  5302. PermissionName = "Contract",
  5303. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5304. },
  5305. new
  5306. {
  5307. Id = 80L,
  5308. PermissionId = 36L,
  5309. PermissionName = "Contract.Create",
  5310. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5311. },
  5312. new
  5313. {
  5314. Id = 81L,
  5315. PermissionId = 37L,
  5316. PermissionName = "Contract.Update",
  5317. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5318. },
  5319. new
  5320. {
  5321. Id = 82L,
  5322. PermissionId = 38L,
  5323. PermissionName = "Contract.Delete",
  5324. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5325. },
  5326. new
  5327. {
  5328. Id = 83L,
  5329. PermissionId = 39L,
  5330. PermissionName = "OrderAllocation",
  5331. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5332. },
  5333. new
  5334. {
  5335. Id = 84L,
  5336. PermissionId = 40L,
  5337. PermissionName = "OrderAllocation.Create",
  5338. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5339. },
  5340. new
  5341. {
  5342. Id = 85L,
  5343. PermissionId = 41L,
  5344. PermissionName = "OrderAllocation.Update",
  5345. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5346. },
  5347. new
  5348. {
  5349. Id = 86L,
  5350. PermissionId = 42L,
  5351. PermissionName = "OrderAllocation.Delete",
  5352. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5353. },
  5354. new
  5355. {
  5356. Id = 87L,
  5357. PermissionId = 43L,
  5358. PermissionName = "OrderRequest",
  5359. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5360. },
  5361. new
  5362. {
  5363. Id = 88L,
  5364. PermissionId = 44L,
  5365. PermissionName = "OrderRequest.Create",
  5366. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5367. },
  5368. new
  5369. {
  5370. Id = 89L,
  5371. PermissionId = 45L,
  5372. PermissionName = "OrderRequest.Update",
  5373. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5374. },
  5375. new
  5376. {
  5377. Id = 90L,
  5378. PermissionId = 46L,
  5379. PermissionName = "OrderRequest.Delete",
  5380. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5381. },
  5382. new
  5383. {
  5384. Id = 91L,
  5385. PermissionId = 1L,
  5386. PermissionName = "Project",
  5387. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5388. },
  5389. new
  5390. {
  5391. Id = 92L,
  5392. PermissionId = 2L,
  5393. PermissionName = "Project.Create",
  5394. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5395. },
  5396. new
  5397. {
  5398. Id = 93L,
  5399. PermissionId = 3L,
  5400. PermissionName = "Project.Update",
  5401. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5402. },
  5403. new
  5404. {
  5405. Id = 94L,
  5406. PermissionId = 4L,
  5407. PermissionName = "Project.Delete",
  5408. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5409. },
  5410. new
  5411. {
  5412. Id = 95L,
  5413. PermissionId = 5L,
  5414. PermissionName = "Meeting",
  5415. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5416. },
  5417. new
  5418. {
  5419. Id = 96L,
  5420. PermissionId = 6L,
  5421. PermissionName = "Meeting.Create",
  5422. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5423. },
  5424. new
  5425. {
  5426. Id = 97L,
  5427. PermissionId = 7L,
  5428. PermissionName = "Meeting.Update",
  5429. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5430. },
  5431. new
  5432. {
  5433. Id = 98L,
  5434. PermissionId = 8L,
  5435. PermissionName = "Meeting.Delete",
  5436. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5437. },
  5438. new
  5439. {
  5440. Id = 99L,
  5441. PermissionId = 9L,
  5442. PermissionName = "Team",
  5443. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5444. },
  5445. new
  5446. {
  5447. Id = 100L,
  5448. PermissionId = 10L,
  5449. PermissionName = "Team.Create",
  5450. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5451. },
  5452. new
  5453. {
  5454. Id = 101L,
  5455. PermissionId = 11L,
  5456. PermissionName = "Team.Update",
  5457. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5458. },
  5459. new
  5460. {
  5461. Id = 102L,
  5462. PermissionId = 12L,
  5463. PermissionName = "Team.Delete",
  5464. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5465. },
  5466. new
  5467. {
  5468. Id = 103L,
  5469. PermissionId = 13L,
  5470. PermissionName = "UserTask",
  5471. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5472. },
  5473. new
  5474. {
  5475. Id = 104L,
  5476. PermissionId = 14L,
  5477. PermissionName = "UserTask.Create",
  5478. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5479. },
  5480. new
  5481. {
  5482. Id = 105L,
  5483. PermissionId = 15L,
  5484. PermissionName = "UserTask.Update",
  5485. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5486. },
  5487. new
  5488. {
  5489. Id = 106L,
  5490. PermissionId = 16L,
  5491. PermissionName = "UserTask.Delete",
  5492. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5493. },
  5494. new
  5495. {
  5496. Id = 107L,
  5497. PermissionId = 17L,
  5498. PermissionName = "Company",
  5499. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5500. },
  5501. new
  5502. {
  5503. Id = 108L,
  5504. PermissionId = 18L,
  5505. PermissionName = "Company.Create",
  5506. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5507. },
  5508. new
  5509. {
  5510. Id = 109L,
  5511. PermissionId = 19L,
  5512. PermissionName = "Company.Update",
  5513. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5514. },
  5515. new
  5516. {
  5517. Id = 110L,
  5518. PermissionId = 22L,
  5519. PermissionName = "User",
  5520. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5521. },
  5522. new
  5523. {
  5524. Id = 111L,
  5525. PermissionId = 23L,
  5526. PermissionName = "User.Create",
  5527. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5528. },
  5529. new
  5530. {
  5531. Id = 112L,
  5532. PermissionId = 24L,
  5533. PermissionName = "User.Update",
  5534. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5535. },
  5536. new
  5537. {
  5538. Id = 113L,
  5539. PermissionId = 27L,
  5540. PermissionName = "Role",
  5541. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5542. },
  5543. new
  5544. {
  5545. Id = 114L,
  5546. PermissionId = 28L,
  5547. PermissionName = "Role.Create",
  5548. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5549. },
  5550. new
  5551. {
  5552. Id = 115L,
  5553. PermissionId = 29L,
  5554. PermissionName = "Role.Update",
  5555. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5556. },
  5557. new
  5558. {
  5559. Id = 116L,
  5560. PermissionId = 30L,
  5561. PermissionName = "Role.Delete",
  5562. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5563. },
  5564. new
  5565. {
  5566. Id = 117L,
  5567. PermissionId = 31L,
  5568. PermissionName = "Attendance",
  5569. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5570. },
  5571. new
  5572. {
  5573. Id = 118L,
  5574. PermissionId = 32L,
  5575. PermissionName = "Attendance.Create",
  5576. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5577. },
  5578. new
  5579. {
  5580. Id = 119L,
  5581. PermissionId = 33L,
  5582. PermissionName = "Attendance.Update",
  5583. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5584. },
  5585. new
  5586. {
  5587. Id = 120L,
  5588. PermissionId = 34L,
  5589. PermissionName = "Attendance.Delete",
  5590. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5591. },
  5592. new
  5593. {
  5594. Id = 121L,
  5595. PermissionId = 35L,
  5596. PermissionName = "Contract",
  5597. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5598. },
  5599. new
  5600. {
  5601. Id = 122L,
  5602. PermissionId = 36L,
  5603. PermissionName = "Contract.Create",
  5604. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5605. },
  5606. new
  5607. {
  5608. Id = 123L,
  5609. PermissionId = 37L,
  5610. PermissionName = "Contract.Update",
  5611. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5612. },
  5613. new
  5614. {
  5615. Id = 124L,
  5616. PermissionId = 38L,
  5617. PermissionName = "Contract.Delete",
  5618. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5619. },
  5620. new
  5621. {
  5622. Id = 125L,
  5623. PermissionId = 39L,
  5624. PermissionName = "OrderAllocation",
  5625. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5626. },
  5627. new
  5628. {
  5629. Id = 126L,
  5630. PermissionId = 40L,
  5631. PermissionName = "OrderAllocation.Create",
  5632. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5633. },
  5634. new
  5635. {
  5636. Id = 127L,
  5637. PermissionId = 41L,
  5638. PermissionName = "OrderAllocation.Update",
  5639. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5640. },
  5641. new
  5642. {
  5643. Id = 128L,
  5644. PermissionId = 42L,
  5645. PermissionName = "OrderAllocation.Delete",
  5646. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5647. },
  5648. new
  5649. {
  5650. Id = 129L,
  5651. PermissionId = 43L,
  5652. PermissionName = "OrderRequest",
  5653. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5654. },
  5655. new
  5656. {
  5657. Id = 130L,
  5658. PermissionId = 44L,
  5659. PermissionName = "OrderRequest.Create",
  5660. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5661. },
  5662. new
  5663. {
  5664. Id = 131L,
  5665. PermissionId = 45L,
  5666. PermissionName = "OrderRequest.Update",
  5667. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5668. },
  5669. new
  5670. {
  5671. Id = 132L,
  5672. PermissionId = 46L,
  5673. PermissionName = "OrderRequest.Delete",
  5674. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5675. },
  5676. new
  5677. {
  5678. Id = 133L,
  5679. PermissionId = 47L,
  5680. PermissionName = "User.ResetPassword",
  5681. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5682. },
  5683. new
  5684. {
  5685. Id = 134L,
  5686. PermissionId = 47L,
  5687. PermissionName = "User.ResetPassword",
  5688. RoleId = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R"
  5689. },
  5690. new
  5691. {
  5692. Id = 135L,
  5693. PermissionId = 47L,
  5694. PermissionName = "User.ResetPassword",
  5695. RoleId = "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110"
  5696. });
  5697. });
  5698. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  5699. {
  5700. b.Property<long>("Id")
  5701. .ValueGeneratedOnAdd()
  5702. .HasColumnType("bigint")
  5703. .HasColumnOrder(0);
  5704. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  5705. b.Property<string>("AddressDesc")
  5706. .HasColumnType("nvarchar(max)");
  5707. b.Property<long?>("CityId")
  5708. .HasColumnType("bigint");
  5709. b.Property<long?>("CountryId")
  5710. .HasColumnType("bigint");
  5711. b.Property<DateTime>("CreateDate")
  5712. .HasColumnType("datetime2")
  5713. .HasColumnOrder(3);
  5714. b.Property<string>("CreateUser")
  5715. .HasMaxLength(450)
  5716. .HasColumnType("nvarchar(450)")
  5717. .HasColumnOrder(1);
  5718. b.Property<string>("PostalCode")
  5719. .HasColumnType("nvarchar(max)");
  5720. b.Property<DateTime?>("UpdateDate")
  5721. .HasColumnType("datetime2")
  5722. .HasColumnOrder(4);
  5723. b.Property<string>("UpdateUser")
  5724. .HasMaxLength(450)
  5725. .HasColumnType("nvarchar(450)")
  5726. .HasColumnOrder(2);
  5727. b.Property<string>("UserId")
  5728. .IsRequired()
  5729. .HasColumnType("nvarchar(450)");
  5730. b.HasKey("Id");
  5731. b.HasIndex("CityId");
  5732. b.HasIndex("CountryId");
  5733. b.HasIndex("UserId")
  5734. .IsUnique();
  5735. b.ToTable("UserAddress");
  5736. });
  5737. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  5738. {
  5739. b.Property<long>("Id")
  5740. .ValueGeneratedOnAdd()
  5741. .HasColumnType("bigint")
  5742. .HasColumnOrder(0);
  5743. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  5744. b.Property<long>("AttachmentTypeId")
  5745. .HasColumnType("bigint");
  5746. b.Property<byte[]>("Content")
  5747. .IsRequired()
  5748. .HasColumnType("varbinary(max)");
  5749. b.Property<string>("ContentType")
  5750. .HasColumnType("nvarchar(max)");
  5751. b.Property<DateTime>("CreateDate")
  5752. .HasColumnType("datetime2")
  5753. .HasColumnOrder(3);
  5754. b.Property<string>("CreateUser")
  5755. .HasMaxLength(450)
  5756. .HasColumnType("nvarchar(450)")
  5757. .HasColumnOrder(1);
  5758. b.Property<string>("FileName")
  5759. .IsRequired()
  5760. .HasMaxLength(250)
  5761. .HasColumnType("nvarchar(250)");
  5762. b.Property<string>("FilePath")
  5763. .HasColumnType("nvarchar(max)");
  5764. b.Property<string>("OriginalName")
  5765. .IsRequired()
  5766. .HasMaxLength(250)
  5767. .HasColumnType("nvarchar(250)");
  5768. b.Property<DateTime?>("UpdateDate")
  5769. .HasColumnType("datetime2")
  5770. .HasColumnOrder(4);
  5771. b.Property<string>("UpdateUser")
  5772. .HasMaxLength(450)
  5773. .HasColumnType("nvarchar(450)")
  5774. .HasColumnOrder(2);
  5775. b.Property<string>("UserId")
  5776. .IsRequired()
  5777. .HasColumnType("nvarchar(450)");
  5778. b.HasKey("Id");
  5779. b.HasIndex("AttachmentTypeId");
  5780. b.HasIndex("UserId");
  5781. b.ToTable("UserAttachments");
  5782. });
  5783. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  5784. {
  5785. b.Property<int>("Id")
  5786. .ValueGeneratedOnAdd()
  5787. .HasColumnType("int");
  5788. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  5789. b.Property<string>("ClaimType")
  5790. .HasColumnType("nvarchar(max)");
  5791. b.Property<string>("ClaimValue")
  5792. .HasColumnType("nvarchar(max)");
  5793. b.Property<string>("RoleId")
  5794. .IsRequired()
  5795. .HasColumnType("nvarchar(450)");
  5796. b.HasKey("Id");
  5797. b.HasIndex("RoleId");
  5798. b.ToTable("AspNetRoleClaims", (string)null);
  5799. });
  5800. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  5801. {
  5802. b.Property<int>("Id")
  5803. .ValueGeneratedOnAdd()
  5804. .HasColumnType("int");
  5805. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  5806. b.Property<string>("ClaimType")
  5807. .HasColumnType("nvarchar(max)");
  5808. b.Property<string>("ClaimValue")
  5809. .HasColumnType("nvarchar(max)");
  5810. b.Property<string>("UserId")
  5811. .IsRequired()
  5812. .HasColumnType("nvarchar(450)");
  5813. b.HasKey("Id");
  5814. b.HasIndex("UserId");
  5815. b.ToTable("AspNetUserClaims", (string)null);
  5816. });
  5817. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  5818. {
  5819. b.Property<string>("LoginProvider")
  5820. .HasColumnType("nvarchar(450)");
  5821. b.Property<string>("ProviderKey")
  5822. .HasColumnType("nvarchar(450)");
  5823. b.Property<string>("ProviderDisplayName")
  5824. .HasColumnType("nvarchar(max)");
  5825. b.Property<string>("UserId")
  5826. .IsRequired()
  5827. .HasColumnType("nvarchar(450)");
  5828. b.HasKey("LoginProvider", "ProviderKey");
  5829. b.HasIndex("UserId");
  5830. b.ToTable("AspNetUserLogins", (string)null);
  5831. });
  5832. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  5833. {
  5834. b.Property<string>("UserId")
  5835. .HasColumnType("nvarchar(450)");
  5836. b.Property<string>("RoleId")
  5837. .HasColumnType("nvarchar(450)");
  5838. b.HasKey("UserId", "RoleId");
  5839. b.HasIndex("RoleId");
  5840. b.ToTable("AspNetUserRoles", (string)null);
  5841. b.HasData(
  5842. new
  5843. {
  5844. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  5845. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  5846. },
  5847. new
  5848. {
  5849. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  5850. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  5851. });
  5852. });
  5853. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  5854. {
  5855. b.Property<string>("UserId")
  5856. .HasColumnType("nvarchar(450)");
  5857. b.Property<string>("LoginProvider")
  5858. .HasColumnType("nvarchar(450)");
  5859. b.Property<string>("Name")
  5860. .HasColumnType("nvarchar(450)");
  5861. b.Property<string>("Value")
  5862. .HasColumnType("nvarchar(max)");
  5863. b.HasKey("UserId", "LoginProvider", "Name");
  5864. b.ToTable("AspNetUserTokens", (string)null);
  5865. });
  5866. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  5867. {
  5868. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  5869. .WithMany()
  5870. .HasForeignKey("UserRolesId")
  5871. .OnDelete(DeleteBehavior.Cascade)
  5872. .IsRequired();
  5873. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  5874. .WithMany()
  5875. .HasForeignKey("UsersId")
  5876. .OnDelete(DeleteBehavior.Cascade)
  5877. .IsRequired();
  5878. });
  5879. modelBuilder.Entity("MTWorkHR.Core.Entities.BusinessTripAttachment", b =>
  5880. {
  5881. b.HasOne("MTWorkHR.Core.Entities.BusinessTripExpenses", "BusinessTripExpenses")
  5882. .WithMany("Attachments")
  5883. .HasForeignKey("BusinessTripExpensesId")
  5884. .OnDelete(DeleteBehavior.Cascade)
  5885. .IsRequired();
  5886. b.Navigation("BusinessTripExpenses");
  5887. });
  5888. modelBuilder.Entity("MTWorkHR.Core.Entities.BusinessTripExpenses", b =>
  5889. {
  5890. b.HasOne("MTWorkHR.Core.Entities.User.OrderRequest", "OrderRequest")
  5891. .WithOne("BusinessTripExpenses")
  5892. .HasForeignKey("MTWorkHR.Core.Entities.BusinessTripExpenses", "OrderRequestId");
  5893. b.Navigation("OrderRequest");
  5894. });
  5895. modelBuilder.Entity("MTWorkHR.Core.Entities.ChatAttachment", b =>
  5896. {
  5897. b.HasOne("MTWorkHR.Core.Entities.ChatMessage", "ChatMessage")
  5898. .WithMany("ChatAttachments")
  5899. .HasForeignKey("ChatMessageId")
  5900. .OnDelete(DeleteBehavior.Cascade)
  5901. .IsRequired();
  5902. b.Navigation("ChatMessage");
  5903. });
  5904. modelBuilder.Entity("MTWorkHR.Core.Entities.City", b =>
  5905. {
  5906. b.HasOne("MTWorkHR.Core.Entities.CountryLookup", "Country")
  5907. .WithMany()
  5908. .HasForeignKey("CountryId")
  5909. .OnDelete(DeleteBehavior.Cascade)
  5910. .IsRequired();
  5911. b.Navigation("Country");
  5912. });
  5913. modelBuilder.Entity("MTWorkHR.Core.Entities.Company", b =>
  5914. {
  5915. b.HasOne("MTWorkHR.Core.Entities.City", "City")
  5916. .WithMany()
  5917. .HasForeignKey("CityId");
  5918. b.HasOne("MTWorkHR.Core.Entities.CountryLookup", "Country")
  5919. .WithMany()
  5920. .HasForeignKey("CountryId");
  5921. b.Navigation("City");
  5922. b.Navigation("Country");
  5923. });
  5924. modelBuilder.Entity("MTWorkHR.Core.Entities.ContractAllowance", b =>
  5925. {
  5926. b.HasOne("MTWorkHR.Core.Entities.Contract", "Contract")
  5927. .WithMany("FixedAllowances")
  5928. .HasForeignKey("ContractId")
  5929. .OnDelete(DeleteBehavior.Cascade)
  5930. .IsRequired();
  5931. b.Navigation("Contract");
  5932. });
  5933. modelBuilder.Entity("MTWorkHR.Core.Entities.ContractTask", b =>
  5934. {
  5935. b.HasOne("MTWorkHR.Core.Entities.Contract", "Contract")
  5936. .WithMany("ContractTasks")
  5937. .HasForeignKey("ContractId")
  5938. .OnDelete(DeleteBehavior.Cascade)
  5939. .IsRequired();
  5940. b.Navigation("Contract");
  5941. });
  5942. modelBuilder.Entity("MTWorkHR.Core.Entities.ContractTaskAttachment", b =>
  5943. {
  5944. b.HasOne("MTWorkHR.Core.Entities.ContractTask", "ContractTask")
  5945. .WithMany("TaskAttachments")
  5946. .HasForeignKey("ContractTaskId")
  5947. .OnDelete(DeleteBehavior.Cascade)
  5948. .IsRequired();
  5949. b.Navigation("ContractTask");
  5950. });
  5951. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  5952. {
  5953. b.HasOne("MTWorkHR.Core.Entities.Meeting", "Meeting")
  5954. .WithMany("MeetingUsers")
  5955. .HasForeignKey("MeetingId")
  5956. .OnDelete(DeleteBehavior.Cascade)
  5957. .IsRequired();
  5958. b.Navigation("Meeting");
  5959. });
  5960. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderAllocation", b =>
  5961. {
  5962. b.HasOne("MTWorkHR.Core.Entities.LeaveType", "LeaveType")
  5963. .WithMany()
  5964. .HasForeignKey("LeaveTypeId");
  5965. b.HasOne("MTWorkHR.Core.Entities.OrderType", "OrderType")
  5966. .WithMany()
  5967. .HasForeignKey("OrderTypeId")
  5968. .OnDelete(DeleteBehavior.Cascade)
  5969. .IsRequired();
  5970. b.Navigation("LeaveType");
  5971. b.Navigation("OrderType");
  5972. });
  5973. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderAttachment", b =>
  5974. {
  5975. b.HasOne("MTWorkHR.Core.Entities.User.OrderRequest", "OrderRequest")
  5976. .WithMany("OrderAttachments")
  5977. .HasForeignKey("OrderRequestId")
  5978. .OnDelete(DeleteBehavior.Cascade)
  5979. .IsRequired();
  5980. b.Navigation("OrderRequest");
  5981. });
  5982. modelBuilder.Entity("MTWorkHR.Core.Entities.OverTimeDay", b =>
  5983. {
  5984. b.HasOne("MTWorkHR.Core.Entities.User.OrderRequest", "OrderRequest")
  5985. .WithMany("OverTimeDays")
  5986. .HasForeignKey("OrderRequestId");
  5987. b.Navigation("OrderRequest");
  5988. });
  5989. modelBuilder.Entity("MTWorkHR.Core.Entities.OverTimeDayAttachment", b =>
  5990. {
  5991. b.HasOne("MTWorkHR.Core.Entities.OverTimeDay", "OverTimeDay")
  5992. .WithOne("OverTimeAttachment")
  5993. .HasForeignKey("MTWorkHR.Core.Entities.OverTimeDayAttachment", "OverTimeDayId")
  5994. .OnDelete(DeleteBehavior.Cascade)
  5995. .IsRequired();
  5996. b.Navigation("OverTimeDay");
  5997. });
  5998. modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectStage", b =>
  5999. {
  6000. b.HasOne("MTWorkHR.Core.Entities.Contract", "Contract")
  6001. .WithMany("ProjectStages")
  6002. .HasForeignKey("ContractId")
  6003. .OnDelete(DeleteBehavior.Cascade)
  6004. .IsRequired();
  6005. b.Navigation("Contract");
  6006. });
  6007. modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectStageAttachment", b =>
  6008. {
  6009. b.HasOne("MTWorkHR.Core.Entities.ProjectStage", "ProjectStage")
  6010. .WithMany("StageAttachments")
  6011. .HasForeignKey("ProjectStageId")
  6012. .OnDelete(DeleteBehavior.Cascade)
  6013. .IsRequired();
  6014. b.Navigation("ProjectStage");
  6015. });
  6016. modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectTeam", b =>
  6017. {
  6018. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  6019. .WithMany("ProjectTeams")
  6020. .HasForeignKey("ProjectId")
  6021. .OnDelete(DeleteBehavior.Cascade)
  6022. .IsRequired();
  6023. b.Navigation("Project");
  6024. });
  6025. modelBuilder.Entity("MTWorkHR.Core.Entities.ServiceCertificate", b =>
  6026. {
  6027. b.HasOne("MTWorkHR.Core.Entities.User.OrderRequest", "OrderRequest")
  6028. .WithOne("ServiceCertificate")
  6029. .HasForeignKey("MTWorkHR.Core.Entities.ServiceCertificate", "OrderRequestId")
  6030. .OnDelete(DeleteBehavior.Cascade)
  6031. .IsRequired();
  6032. b.Navigation("OrderRequest");
  6033. });
  6034. modelBuilder.Entity("MTWorkHR.Core.Entities.TaskUser", b =>
  6035. {
  6036. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  6037. .WithMany("TaskUsers")
  6038. .HasForeignKey("TaskId")
  6039. .OnDelete(DeleteBehavior.Cascade)
  6040. .IsRequired();
  6041. b.Navigation("UserTask");
  6042. });
  6043. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  6044. {
  6045. b.HasOne("MTWorkHR.Core.Entities.Team", "Team")
  6046. .WithMany("TeamUsers")
  6047. .HasForeignKey("TeamId")
  6048. .OnDelete(DeleteBehavior.Cascade)
  6049. .IsRequired();
  6050. b.Navigation("Team");
  6051. });
  6052. modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
  6053. {
  6054. b.HasOne("MTWorkHR.Core.Entities.LeaveType", "LeaveType")
  6055. .WithMany()
  6056. .HasForeignKey("LeaveTypeId");
  6057. b.HasOne("MTWorkHR.Core.Entities.OrderType", "OrderType")
  6058. .WithMany()
  6059. .HasForeignKey("OrderTypeId")
  6060. .OnDelete(DeleteBehavior.Cascade)
  6061. .IsRequired();
  6062. b.Navigation("LeaveType");
  6063. b.Navigation("OrderType");
  6064. });
  6065. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  6066. {
  6067. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  6068. .WithMany()
  6069. .HasForeignKey("ProjectId")
  6070. .OnDelete(DeleteBehavior.Cascade)
  6071. .IsRequired();
  6072. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  6073. .WithMany()
  6074. .HasForeignKey("StatusId")
  6075. .OnDelete(DeleteBehavior.Cascade)
  6076. .IsRequired();
  6077. b.Navigation("Project");
  6078. b.Navigation("TaskStatus");
  6079. });
  6080. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  6081. {
  6082. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  6083. .WithMany()
  6084. .HasForeignKey("AttachmentTypeId");
  6085. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  6086. .WithMany("TaskAttachments")
  6087. .HasForeignKey("TaskId")
  6088. .OnDelete(DeleteBehavior.Cascade)
  6089. .IsRequired();
  6090. b.Navigation("AttachmentType");
  6091. b.Navigation("UserTask");
  6092. });
  6093. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  6094. {
  6095. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  6096. .WithMany()
  6097. .HasForeignKey("CurrentStatusId")
  6098. .OnDelete(DeleteBehavior.Cascade)
  6099. .IsRequired();
  6100. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  6101. .WithMany("TaskHistories")
  6102. .HasForeignKey("TaskId")
  6103. .OnDelete(DeleteBehavior.Cascade)
  6104. .IsRequired();
  6105. b.Navigation("TaskStatus");
  6106. b.Navigation("UserTask");
  6107. });
  6108. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  6109. {
  6110. b.HasOne("MTWorkHR.Core.Entities.CountryLookup", "Country")
  6111. .WithMany()
  6112. .HasForeignKey("CountryId");
  6113. b.HasOne("MTWorkHR.Core.Entities.Industry", "Industry")
  6114. .WithMany()
  6115. .HasForeignKey("IndustryId");
  6116. b.HasOne("MTWorkHR.Core.Entities.JobTitle", "JobTitle")
  6117. .WithMany()
  6118. .HasForeignKey("JobTitleId");
  6119. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
  6120. .WithMany()
  6121. .HasForeignKey("ManagerId");
  6122. b.HasOne("MTWorkHR.Core.Entities.Nationality", "Nationality")
  6123. .WithMany()
  6124. .HasForeignKey("NationalityId");
  6125. b.HasOne("MTWorkHR.Core.Entities.Qualification", "Qualification")
  6126. .WithMany()
  6127. .HasForeignKey("QualificationId");
  6128. b.HasOne("MTWorkHR.Core.Entities.University", "University")
  6129. .WithMany()
  6130. .HasForeignKey("UniversityId");
  6131. b.Navigation("Country");
  6132. b.Navigation("Industry");
  6133. b.Navigation("JobTitle");
  6134. b.Navigation("Manager");
  6135. b.Navigation("Nationality");
  6136. b.Navigation("Qualification");
  6137. b.Navigation("University");
  6138. });
  6139. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  6140. {
  6141. b.HasOne("MTWorkHR.Core.Entities.Permission", "Permission")
  6142. .WithMany()
  6143. .HasForeignKey("PermissionId")
  6144. .OnDelete(DeleteBehavior.Cascade)
  6145. .IsRequired();
  6146. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", "Role")
  6147. .WithMany("RolePermissions")
  6148. .HasForeignKey("RoleId")
  6149. .OnDelete(DeleteBehavior.Cascade)
  6150. .IsRequired();
  6151. b.Navigation("Permission");
  6152. b.Navigation("Role");
  6153. });
  6154. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  6155. {
  6156. b.HasOne("MTWorkHR.Core.Entities.City", "City")
  6157. .WithMany()
  6158. .HasForeignKey("CityId");
  6159. b.HasOne("MTWorkHR.Core.Entities.CountryLookup", "Country")
  6160. .WithMany()
  6161. .HasForeignKey("CountryId");
  6162. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  6163. .WithOne("UserAddress")
  6164. .HasForeignKey("MTWorkHR.Infrastructure.Entities.UserAddress", "UserId")
  6165. .OnDelete(DeleteBehavior.Cascade)
  6166. .IsRequired();
  6167. b.Navigation("City");
  6168. b.Navigation("Country");
  6169. b.Navigation("User");
  6170. });
  6171. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  6172. {
  6173. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  6174. .WithMany()
  6175. .HasForeignKey("AttachmentTypeId")
  6176. .OnDelete(DeleteBehavior.Cascade)
  6177. .IsRequired();
  6178. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  6179. .WithMany("UserAttachments")
  6180. .HasForeignKey("UserId")
  6181. .OnDelete(DeleteBehavior.Cascade)
  6182. .IsRequired();
  6183. b.Navigation("AttachmentType");
  6184. b.Navigation("User");
  6185. });
  6186. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  6187. {
  6188. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  6189. .WithMany()
  6190. .HasForeignKey("RoleId")
  6191. .OnDelete(DeleteBehavior.Cascade)
  6192. .IsRequired();
  6193. });
  6194. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  6195. {
  6196. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  6197. .WithMany()
  6198. .HasForeignKey("UserId")
  6199. .OnDelete(DeleteBehavior.Cascade)
  6200. .IsRequired();
  6201. });
  6202. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  6203. {
  6204. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  6205. .WithMany()
  6206. .HasForeignKey("UserId")
  6207. .OnDelete(DeleteBehavior.Cascade)
  6208. .IsRequired();
  6209. });
  6210. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  6211. {
  6212. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  6213. .WithMany()
  6214. .HasForeignKey("RoleId")
  6215. .OnDelete(DeleteBehavior.Cascade)
  6216. .IsRequired();
  6217. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  6218. .WithMany()
  6219. .HasForeignKey("UserId")
  6220. .OnDelete(DeleteBehavior.Cascade)
  6221. .IsRequired();
  6222. });
  6223. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  6224. {
  6225. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  6226. .WithMany()
  6227. .HasForeignKey("UserId")
  6228. .OnDelete(DeleteBehavior.Cascade)
  6229. .IsRequired();
  6230. });
  6231. modelBuilder.Entity("MTWorkHR.Core.Entities.BusinessTripExpenses", b =>
  6232. {
  6233. b.Navigation("Attachments");
  6234. });
  6235. modelBuilder.Entity("MTWorkHR.Core.Entities.ChatMessage", b =>
  6236. {
  6237. b.Navigation("ChatAttachments");
  6238. });
  6239. modelBuilder.Entity("MTWorkHR.Core.Entities.Contract", b =>
  6240. {
  6241. b.Navigation("ContractTasks");
  6242. b.Navigation("FixedAllowances");
  6243. b.Navigation("ProjectStages");
  6244. });
  6245. modelBuilder.Entity("MTWorkHR.Core.Entities.ContractTask", b =>
  6246. {
  6247. b.Navigation("TaskAttachments");
  6248. });
  6249. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  6250. {
  6251. b.Navigation("MeetingUsers");
  6252. });
  6253. modelBuilder.Entity("MTWorkHR.Core.Entities.OverTimeDay", b =>
  6254. {
  6255. b.Navigation("OverTimeAttachment");
  6256. });
  6257. modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
  6258. {
  6259. b.Navigation("ProjectTeams");
  6260. });
  6261. modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectStage", b =>
  6262. {
  6263. b.Navigation("StageAttachments");
  6264. });
  6265. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  6266. {
  6267. b.Navigation("TeamUsers");
  6268. });
  6269. modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
  6270. {
  6271. b.Navigation("BusinessTripExpenses");
  6272. b.Navigation("OrderAttachments");
  6273. b.Navigation("OverTimeDays");
  6274. b.Navigation("ServiceCertificate");
  6275. });
  6276. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  6277. {
  6278. b.Navigation("TaskAttachments");
  6279. b.Navigation("TaskHistories");
  6280. b.Navigation("TaskUsers");
  6281. });
  6282. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  6283. {
  6284. b.Navigation("RolePermissions");
  6285. });
  6286. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  6287. {
  6288. b.Navigation("UserAddress")
  6289. .IsRequired();
  6290. b.Navigation("UserAttachments");
  6291. });
  6292. #pragma warning restore 612, 618
  6293. }
  6294. }
  6295. }