20241218150942_altrContractAttach.Designer.cs 213 KB

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