HRDataContextModelSnapshot.cs 256 KB

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