HRDataContextModelSnapshot.cs 215 KB

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