20250120121744_altrAdminRole.Designer.cs 261 KB

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