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