20241030125620_altrCompanyTbl.Designer.cs 208 KB

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