20241224101338_altrContracyAttachs.Designer.cs 212 KB

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