HRDataContextModelSnapshot.cs 208 KB

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