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