20241210094124_alteContractfixedPay.Designer.cs 211 KB

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