20241029101807_altrUserCompany_addNationality.Designer.cs 208 KB

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