HRDataContextModelSnapshot.cs 208 KB

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