HRDataContextModelSnapshot.cs 210 KB

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