HRDataContextModelSnapshot.cs 212 KB

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