20241110132939_altrUserRoles.Designer.cs 210 KB

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