HRDataContextModelSnapshot.cs 212 KB

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