20241216201032_altrContractWorkingDay.Designer.cs 212 KB

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