20241112095808_altrContractDura.Designer.cs 210 KB

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