From 4664eae896ab22c2391af6183ce2c497f30c308e Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Wed, 19 Nov 2025 11:34:12 +0530 Subject: [PATCH 1/5] made prepolulate api in serverless --- serverless.yml | 16 ++++++++++++++++ .../prepopulate/services/prepopulate.service.ts | 2 ++ 2 files changed, 18 insertions(+) diff --git a/serverless.yml b/serverless.yml index ba226cc..eb693a9 100644 --- a/serverless.yml +++ b/serverless.yml @@ -354,6 +354,22 @@ functions: method: get + getAllBankAndCurrencyDetails: + handler: src/modules/prepopulate/handlers/getAllBankDetails.handler + package: + patterns: + - "src/modules/minglaradmin/**" + - "common/**" + - "src/common/**" + - "node_modules/@prisma/client/**" + - "node_modules/.prisma/**" + + events: + - httpApi: + path: /prepopulate/get-all-bank-currency-details + method: get + + assignAMToHost: handler: src/modules/minglaradmin/handlers/assignAM.handler package: diff --git a/src/modules/prepopulate/services/prepopulate.service.ts b/src/modules/prepopulate/services/prepopulate.service.ts index b22053b..4918e70 100644 --- a/src/modules/prepopulate/services/prepopulate.service.ts +++ b/src/modules/prepopulate/services/prepopulate.service.ts @@ -16,6 +16,8 @@ export class PrePopulateService { BankBranches: { select: { id: true, + branchAddress: true, + ifscCode: true } } } From 5fac8b01564537c741e6fefd174cca64b4b081c7 Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Wed, 19 Nov 2025 12:26:34 +0530 Subject: [PATCH 2/5] migration --- prisma/migrations/20251119065454_updatedbymayank/migration.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 prisma/migrations/20251119065454_updatedbymayank/migration.sql diff --git a/prisma/migrations/20251119065454_updatedbymayank/migration.sql b/prisma/migrations/20251119065454_updatedbymayank/migration.sql new file mode 100644 index 0000000..5a0ba33 --- /dev/null +++ b/prisma/migrations/20251119065454_updatedbymayank/migration.sql @@ -0,0 +1,3 @@ +-- BASELINE MIGRATION +-- This migration marks the current database schema as the starting point. +-- No SQL is executed. From c544c2ac06093eae7d3c70b1ac6d12fdd4e9a7ec Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Wed, 19 Nov 2025 13:01:00 +0530 Subject: [PATCH 3/5] added more data in seeder --- prisma/schema.prisma | 2 +- prisma/seed.ts | 563 ++++++++++++++++++++++++++++--------------- 2 files changed, 363 insertions(+), 202 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 773b275..1ad27fb 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -510,7 +510,7 @@ model PQQQuestions { id Int @id @default(autoincrement()) pqqSubCategoryXid Int @map("pqq_sub_category_xid") pqqSubCategories PQQSubCategories @relation(fields: [pqqSubCategoryXid], references: [id], onDelete: Cascade) - questionName String @unique @map("question_name") + questionName String @map("question_name") maxPoints Int @map("max_points") displayOrder Int @map("display_order") isActive Boolean @default(true) @map("is_active") diff --git a/prisma/seed.ts b/prisma/seed.ts index dba0d0b..8415542 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -241,206 +241,6 @@ async function main() { }); // ✅ PQQ Categories + Questions + Answers - - // const PQQCategories = await prisma.pQQCategories.upsert({ - // where: { categoryName: "Sustainability" }, - // update: {}, - // create: { - // categoryName: "Sustainability", - // displayOrder: 1, - // isActive: true, - - // pqqsubCategories: { - // create: [ - // // ----------------------------------------------------- - // // SUBCATEGORY 1: Environmental Practices - // // ----------------------------------------------------- - // { - // subCategoryName: "Environmental Practices", - // displayOrder: 1, - // isActive: true, - - // questions: { - // create: [ - // // QUESTION 1 - // { - // questionName: 'What waste management practices do you have in place to minimize environmental impact? Examples: Recycling bins, composting organic waste, reducing single-use plastics.', - // maxPoints: 10, - // displayOrder: 1, - // PQQAnswers: { - // create: [ - // { answerName: 'We do not have specific waste management practices.', answerPoints: 0, displayOrder: 1 }, - // { answerName: 'We separate waste and recycle basic items like paper and plastic.', answerPoints: 5, displayOrder: 2 }, - // { answerName: 'We have a comprehensive recycling program including composting organic waste.', answerPoints: 8, displayOrder: 3 }, - // { answerName: 'We actively reduce waste at the source and partner with local recycling organizations.', answerPoints: 10, displayOrder: 4 }, - // ], - // }, - // }, - - // // QUESTION 2 - // { - // questionName: 'Can you provide examples of energy-efficient appliances or renewable energy sources you use? Examples: Solar panels, energy-efficient lighting, renewable energy certificates.', - // maxPoints: 10, - // displayOrder: 2, - // PQQAnswers: { - // create: [ - // { answerName: 'We do not use energy-efficient appliances or renewable energy sources.', answerPoints: 0, displayOrder: 1 }, - // { answerName: 'We use energy-efficient light bulbs and appliances.', answerPoints: 5, displayOrder: 2 }, - // { answerName: 'We have solar panels and energy-efficient heating/cooling systems.', answerPoints: 8, displayOrder: 3 }, - // { answerName: 'We utilize a combination of renewable energy sources and advanced energy-saving technologies.', answerPoints: 10, displayOrder: 4 }, - // ], - // }, - // }, - // { - // questionName: 'What measures do you take to conserve water? Examples: Low-flow fixtures, rainwater harvesting, greywater recycling.', - // maxPoints: 10, - // displayOrder: 3, - // PQQAnswers: { - // create: [ - // { answerName: 'We do not have specific water conservation measures.', answerPoints: 0, displayOrder: 1 }, - // { answerName: 'We encourage guests to limit water use.', answerPoints: 5, displayOrder: 2 }, - // { answerName: 'We have low-flow fixtures and water-saving appliances installed.', answerPoints: 8, displayOrder: 3 }, - // { answerName: 'We implement rainwater harvesting and greywater recycling systems.', answerPoints: 10, displayOrder: 4 }, - // ], - // }, - // }, - // { - // questionName: 'How do you monitor and reduce your carbon footprint? Examples: Carbon audits, offsetting emissions, energy-saving initiatives.', - // maxPoints: 10, - // displayOrder: 4, - // PQQAnswers: { - // create: [ - // { answerName: 'We do not monitor or take steps to reduce our carbon footprint.', answerPoints: 0, displayOrder: 1 }, - // { answerName: 'We track our energy usage and try to minimize it.', answerPoints: 5, displayOrder: 2 }, - // { answerName: 'We have set carbon reduction targets and regularly monitor our progress.', answerPoints: 8, displayOrder: 3 }, - // { answerName: 'We offset our carbon emissions through verified programs and continually improve our sustainability practices.', answerPoints: 10, displayOrder: 4 }, - // ], - // }, - // }, - // { - // questionName: 'Do you source products and materials sustainably? Can you provide examples? Examples: Local, organic, fair-trade products.', - // maxPoints: 10, - // displayOrder: 5, - // PQQAnswers: { - // create: [ - // { answerName: 'We do not prioritize sustainable sourcing.', answerPoints: 0, displayOrder: 1 }, - // { answerName: 'We source some products locally and sustainably.', answerPoints: 5, displayOrder: 2 }, - // { answerName: 'We prioritize local, organic, and fair-trade products.', answerPoints: 8, displayOrder: 3 }, - // { answerName: 'We have strict sourcing policies that ensure all products are sustainable and ethically produced.', answerPoints: 10, displayOrder: 4 }, - // ], - // }, - // }, - // ] - // } - // }, - - // // ----------------------------------------------------- - // // SUBCATEGORY 2: Community Impact - // // ----------------------------------------------------- - // { - // subCategoryName: "Community Impact", - // displayOrder: 2, - // isActive: true, - - // questions: { - // create: [ - // // QUESTION 1 - // { - // questionName: - // "How do you support local employment and engage with the community? Examples: Hiring local staff, partnering with community organizations, participating in local events.", - // maxPoints: 10, - // displayOrder: 1, - - // PQQAnswers: { - // create: [ - // { answerName: "We do not have specific practices to support local employment or community engagement.", answerPoints: 0, displayOrder: 1 }, - // { answerName: "We hire local staff but do not have formal community engagement programs.", answerPoints: 5, displayOrder: 2 }, - // { answerName: "We actively employ local residents and participate in community events.", answerPoints: 8, displayOrder: 3 }, - // { answerName: "We have partnerships with local organizations and invest in community development projects.", answerPoints: 10, displayOrder: 4 } - // ] - // } - // }, - // // QUESTION 2 - // { - // questionName: - // "Are you involved in any community projects or cultural preservation activities? Examples: Supporting local artisans, sponsoring cultural festivals, contributing to community development.", - // maxPoints: 10, - // displayOrder: 2, - - // PQQAnswers: { - // create: [ - // { answerName: "We are not involved in any community or cultural preservation projects.", answerPoints: 0, displayOrder: 1 }, - // { answerName: "We support community projects through donations.", answerPoints: 5, displayOrder: 2 }, - // { answerName: "We participate in and organize community events and cultural preservation activities.", answerPoints: 8, displayOrder: 3 }, - // { answerName: "We lead major community development initiatives and cultural preservation projects.", answerPoints: 10, displayOrder: 4 } - // ] - // } - // }, - // // QUESTION 3 - // { - // questionName: - // "Can you provide examples of how your business benefits the local community? Examples: Providing jobs, sourcing local products, investing in local infrastructure.", - // maxPoints: 10, - // displayOrder: 3, - - // PQQAnswers: { - // create: [ - // { answerName: "We do not have specific examples.", answerPoints: 0, displayOrder: 1 }, - // { answerName: "We provide employment opportunities for local residents.", answerPoints: 5, displayOrder: 2 }, - // { answerName: "We support local businesses by sourcing products and services locally.", answerPoints: 8, displayOrder: 3 }, - // { answerName: "We invest in local infrastructure and educational programs.", answerPoints: 10, displayOrder: 4 } - // ] - // } - // }, - // ] - // } - // }, - // // ----------------------------------------------------- - // //SUBCATEGORY 3 : Sustainable Tourism Certification - // // ----------------------------------------------------- - // { - // subCategoryName: "Sustainable Tourism Certification", - // displayOrder: 2, - // isActive: true, - - // questions: { - // create: [ - // // QUESTION 1 - // { - // questionName: - // "Do you have any recognized sustainable tourism certifications (e.g., Green Globe, EarthCheck, Travelife)? Please provide details. Examples: Certification names and details, certificates.", - // maxPoints: 10, - // displayOrder: 1, - - // PQQAnswers: { - // create: [ - // { answerName: "We do not have any sustainable tourism certifications.", answerPoints: 0, displayOrder: 1 }, - // { answerName: "We are in the process of obtaining a certification.", answerPoints: 5, displayOrder: 2 }, - // { answerName: "We have one recognized sustainable tourism certification.", answerPoints: 8, displayOrder: 3 }, - // { answerName: "We hold multiple recognized sustainable tourism certifications and regularly audit our practices.", answerPoints: 10, displayOrder: 4 } - // { answerName: "Not applicable", answerPoints: 0, displayOrder: 5 } - // ] - // } - // } - // ] - // } - // }, - // ] - // } - // }, - - // include: { - // pqqsubCategories: { - // include: { - // questions: { - // include: { - // PQQAnswers: true - // } - // } - // } - // } - // } - // }); const categoriesData = [ { categoryName: "Sustainability", @@ -786,10 +586,371 @@ async function main() { ] }, ] - } + }, + //---------------------------- + // Gen Z-Specific Parameters + //---------------------------- + { + categoryName: "Gen Z-Specific Parameters", + displayOrder: 3, + subCategories: [ + { + subCategoryName: "Digital Engagement", + displayOrder: 1, + questions: [ + { + questionName: "How do you engage with customers on social media? Examples: Regular posts, responding to comments, social media campaigns.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not actively engage with customers on social media.", points: 0 }, + { name: "We post updates occasionally but do not interact much with customers.", points: 5 }, + { name: "We regularly post updates and respond to customer inquiries.", points: 8 }, + { name: "We have a proactive social media strategy with regular updates, customer interaction, and engagement campaigns.", points: 10 } + ] + }, + { + questionName: "Can you provide examples of user-generated content or collaborations with digital influencers? Examples: Hashtag campaigns, influencer takeovers, user reviews.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not have user-generated content or influencer collaborations.", points: 0 }, + { name: "We occasionally feature user-generated content.", points: 5 }, + { name: "We actively encourage user-generated content and collaborate with influencers.", points: 8 }, + { name: "We have established partnerships with influencers and regularly feature user-generated content.", points: 10 } + ] + } + ] + }, + { + subCategoryName: "Social Responsibility", + displayOrder: 2, + questions: [ + { + questionName: "What ethical business practices do you follow? Examples: Fair trade, ethical sourcing, transparency in pricing.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not have specific ethical business practices.", points: 0 }, + { name: "We follow basic ethical guidelines.", points: 5 }, + { name: "We have a formal code of ethics and conduct regular training.", points: 8 }, + { name: "We are recognized for our ethical practices and have won awards or certifications.", points: 10 }, + { name: "Not applicable.", points: 0 } + ] + }, + { + questionName: "Are you involved in any social causes? Can you provide examples? Examples: Charity partnerships, community service, environmental initiatives.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We are not involved in any social causes.", points: 0 }, + { name: "We occasionally support social causes through donations.", points: 5 }, + { name: "We actively participate in and support various social causes.", points: 8 }, + { name: "We lead initiatives and projects that contribute to significant social change.", points: 10 }] + }, + { + questionName: "How do you ensure transparency in your operations? Examples: Regular reports, open communication channels, financial disclosures.", + maxPoints: 10, + displayOrder: 3, + answers: [ + { name: "We do not have specific transparency practices.", points: 0 }, + { name: "We provide basic transparency through occasional reports.", points: 5 }, + { name: "We regularly publish detailed reports on our operations and practices.", points: 8 }, + { name: "We have an open-door policy and publish comprehensive transparency reports regularly.", points: 10 }] + }, + ] + }, + ] + }, + { + categoryName: "Quality", + displayOrder: 4, + subCategories: [ + { + subCategoryName: "Service Excellence", + displayOrder: 1, + questions: [ + { + questionName: "How do you ensure high standards of customer service? Examples: Customer service training programs, performance reviews, guest feedback mechanisms.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not have specific customer service standards.", points: 0 }, + { name: "We provide basic customer service training to our staff.", points: 5 }, + { name: "We have a comprehensive customer service training program and regular performance reviews.", points: 8 }, + { name: "We have a rigorous customer service program with ongoing training and feedback mechanisms.", points: 10 } + ] + }, + { + questionName: "Can you provide examples of how you handle customer feedback and complaints? Examples: Feedback forms, complaint resolution processes, guest satisfaction surveys.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not have a formal process for handling feedback and complaints.", points: 0 }, + { name: "We address complaints as they arise but do not track them systematically.", points: 5 }, + { name: "We have a formal process for handling and resolving complaints.", points: 8 }, + { name: "We use customer feedback to continually improve our services and have a dedicated team for managing complaints.", points: 10 } + ] + }, + { + questionName: "How do you train your staff to maintain professionalism and responsiveness? Examples: Training sessions, workshops, role-playing exercises.", + maxPoints: 10, + displayOrder: 3, + answers: [ + { name: "We do not provide specific training for professionalism and responsiveness.", points: 0 }, + { name: "We offer basic training during onboarding.", points: 5 }, + { name: "We provide regular training sessions and workshops on professionalism and customer interaction.", points: 8 }, + { name: "We have an extensive training program with continuous development and performance monitoring.", points: 10 }, + { name: "Not applicable.", points: 0 } + ] + } + ] + }, + { + subCategoryName: "Unique and Authentic Experiences", + displayOrder: 2, + questions: [ + { + questionName: "What unique and culturally immersive experiences do you offer? Examples: Traditional cooking classes, local craft workshops, cultural tours.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We offer standard tourist activities.", points: 0 }, + { name: "We provide some unique experiences with limited cultural relevance.", points: 5 }, + { name: "We offer a variety of culturally immersive activities.", points: 8 }, + { name: "We provide highly unique and authentic experiences deeply rooted in local culture.", points: 10 }, + { name: "Not applicable.", points: 0 } + ] + }, + { + questionName: "How do you ensure these experiences are authentic and reflective of local culture? Examples: Collaborating with local communities, employing local guides, using local materials.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not have specific measures to ensure authenticity.", points: 0 }, + { name: "We occasionally collaborate with local experts.", points: 5 }, + { name: "We work closely with local communities to design our experiences.", points: 8 }, + { name: "We ensure all experiences are co-created with local residents and cultural experts.", points: 10 }] + } + ] + }, + ] + }, + //-------------------------- + // Accessibility for PWD + //-------------------------- + { + categoryName: "Accessibility for PWD", + displayOrder: 5, + subCategories: [ + { + subCategoryName: "Physical Accessibility", + displayOrder: 1, + questions: [ + { + questionName: "What facilities do you have in place to ensure accessibility for people with disabilities? Examples: Wheelchair ramps, elevators, accessible restrooms.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not have specific accessibility features.", points: 0 }, + { name: "We have basic accessibility features like ramps.", points: 5 }, + { name: "We have multiple accessibility features, including ramps and accessible restrooms.", points: 8 }, + { name: "We have comprehensive accessibility facilities, including ramps, elevators, and accessible restrooms.", points: 10 } + ] + }, + { + questionName: "How do you ensure all areas of your property are accessible? Examples: Accessibility audits, staff training, guest feedback.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not have specific measures to ensure accessibility.", points: 0 }, + { name: "We provide basic accessibility in some areas.", points: 5 }, + { name: "We have an accessibility plan and ensure most areas are accessible.", points: 8 }, + { name: "We regularly audit and update our facilities to ensure complete accessibility.", points: 10 } + ] + } + ] + }, + { + subCategoryName: "Support Services", + displayOrder: 2, + questions: [ + { + questionName: "Do you have staff trained to assist people with disabilities? What kind of training do they receive? Examples: Training in disability awareness, assistance techniques, sign language.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not have trained staff.", points: 0 }, + { name: "Some staff have basic training in assisting people with disabilities.", points: 5 }, + { name: "We provide regular training for staff on assisting people with disabilities.", points: 8 }, + { name: "All staff receive comprehensive and ongoing training to assist people with disabilities.", points: 10 }, + ] + }, + { + questionName: "Do you provide information in accessible formats? Can you provide examples? Examples: Braille menus, large print guides, audio descriptions.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not provide information in accessible formats.", points: 0 }, + { name: "We provide some information in accessible formats upon request.", points: 5 }, + { name: "We have a range of information available in accessible formats.", points: 8 }, + { name: "We ensure all critical information is available in multiple accessible formats.", points: 10 }] + } + ] + }, + { + subCategoryName: "Staff Training", + displayOrder: 2, + questions: [ + { + questionName: "How often do you conduct safety training and drills? Examples: Annual training sessions, quarterly drills, surprise inspections.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not conduct regular safety training or drills.", points: 0 }, + { name: "We conduct safety training and drills occasionally.", points: 5 }, + { name: "We conduct safety training and drills annually.", points: 8 }, + { name: "We conduct safety training and drills multiple times a year.", points: 10 }, + { name: "Not applicable.", points: 0 }, + ] + } + ] + }, + ] + }, + //-------------------- + // Cultural Sensitivity and Inclus + //-------------------- + { + categoryName: "Cultural Sensitivity and Inclus", + displayOrder: 6, + subCategories: [ + { + subCategoryName: "Cultural Sensitivity", + displayOrder: 1, + questions: [ + { + questionName: "How do you ensure your experiences are culturally sensitive and respectful? Examples: Consulting with local communities, training staff on cultural etiquette.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not have specific measures for cultural sensitivity.", points: 0 }, + { name: "We occasionally review our activities for cultural sensitivity.", points: 5 }, + { name: "We consult with local communities to ensure our activities are culturally respectful.", points: 8 }, + { name: "We have a dedicated cultural sensitivity program and collaborate closely with cultural experts and local communities.", points: 10 } + ] + }, + { + questionName: "What measures do you take to ensure your experiences are inclusive for all guests, regardless of background? Examples: Diverse representation in marketing, inclusive language, accommodating dietary restrictions.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not have specific measures for inclusivity.", points: 0 }, + { name: "We strive to be inclusive but do not have formal measures.", points: 5 }, + { name: "We have policies to ensure inclusivity and regularly review them.", points: 8 }, + { name: "We actively promote inclusivity through dedicated programs and partnerships with relevant organizations.", points: 10 } + ] + } + ] + }, + { + subCategoryName: "Acceptance of Diversity", + displayOrder: 2, + questions: [ + { + questionName: "Do you accept, accommodate and welcome travelers from different races, religions, and nationalities without restrictions?", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "No, travelers from diverse backgrounds are not accepted or welcomed.", points: 0 }, + { name: "Some travelers from diverse backgrounds are accepted, but there are limited accommodations or considerations.", points: 5 }, + { name: "Travelers from diverse backgrounds are welcomed and accommodated with some specific considerations in place.", points: 8 }, + { name: "Travelers from all diverse racial, religious, and national backgrounds are actively welcomed and fully accommodated without any restrictions.", points: 10 }, + ] + }, + ] + }, + ] + }, + //------------------------ + // Health and Hygiene Standards + //------------------------ + { + categoryName: "Health and Hygiene Standards", + displayOrder: 7, + subCategories: [ + { + subCategoryName: "Hygiene Practices", + displayOrder: 1, + questions: [ + { + questionName: "What hygiene practices do you follow to ensure the safety of your guests? Examples: Regular cleaning schedules, sanitation stations, health checks.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not have specific hygiene practices.", points: 0 }, + { name: "We follow basic hygiene practices such as regular cleaning.", points: 5 }, + { name: "We have comprehensive hygiene protocols and conduct regular audits.", points: 8 }, + { name: "We follow strict hygiene standards and have obtained relevant certifications such as ISO 22000 or similar.", points: 10 } + ] + }, + { + questionName: "How do you handle health emergencies and ensure the well-being of your guests? Examples: On-site medical kits, partnerships with local healthcare providers, emergency response training.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not have specific health emergency procedures.", points: 0 }, + { name: "We have basic first aid kits and contact information for local healthcare providers.", points: 5 }, + { name: "We have trained staff and partnerships with healthcare providers for emergencies.", points: 8 }, + { name: "We have comprehensive health emergency plans, including on-site medical staff and regular training.", points: 10 } + ] + } + ] + }, + { + subCategoryName: "Availability of First Aid Kits", + displayOrder: 2, + questions: [ + { + questionName: "Do you provide readily accessible and fully stocked first aid kits at your establishment? Examples: First aid kits placed in reception areas, near activity zones, or in guest rooms.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "No first aid kits are available on-site.", points: 0 }, + { name: "First aid kits are available but may not be fully stocked or easily accessible.", points: 5 }, + { name: "Fully stocked first aid kits are available in key locations but are not regularly checked.", points: 8 }, + { name: "Fully stocked and regularly inspected first aid kits are readily available in all necessary areas.", points: 10 }, + ] + }, + ] + }, + { + subCategoryName: "Emergency Response Equipment", + displayOrder: 3, + questions: [ + { + questionName: "Do you have emergency response equipment such as a trolley, stretcher, or cart to carry an injured person in case of an emergency? Examples: A stretcher stored near the pool area or a cart available in event spaces.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "No emergency response equipment is available.", points: 0 }, + { name: "Basic emergency response equipment is available but may not include a trolley, stretcher, or cart.", points: 5 }, + { name: "Emergency response equipment, including a trolley, stretcher, or cart, is available but not always maintained or easily accessible.", points: 8 }, + { name: "Comprehensive emergency response equipment, including a well-maintained trolley, stretcher, or cart, is available and easily accessible.", points: 10 }, + ] + }, + ] + }, + ] + }, ]; + await prisma.pQQAnswers.deleteMany(); + await prisma.pQQQuestions.deleteMany(); + await prisma.pQQSubCategories.deleteMany(); + await prisma.pQQCategories.deleteMany(); + for (const category of categoriesData) { await prisma.pQQCategories.upsert({ where: { categoryName: category.categoryName }, From 4ea9aa8afa35a4f36e56a9716098edd5436f696e Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Wed, 19 Nov 2025 13:25:47 +0530 Subject: [PATCH 4/5] made full excel data seeder for pqq --- prisma/seed.ts | 211 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 211 insertions(+) diff --git a/prisma/seed.ts b/prisma/seed.ts index 8415542..4d763d8 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -941,6 +941,217 @@ async function main() { }, ] }, + { + subCategoryName: "Staff Training in First Aid and Emergency Response", + displayOrder: 4, + questions: [ + { + questionName: "Are your staff trained in first aid and emergency response procedures, including the use of equipment like stretchers or carts? Examples: Staff trained to use a stretcher during an evacuation or first aid training that includes the use of a defibrillator.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "No staff members are trained in first aid or emergency response.", points: 0 }, + { name: "Some staff members have basic first aid training, but not all are trained in emergency response.", points: 5 }, + { name: "Most staff members are trained in first aid and basic emergency response, including how to use stretchers or carts.", points: 8 }, + { name: "All staff members are thoroughly trained in first aid and emergency response, with regular drills and training on using all emergency equipment, including stretchers or carts.", points: 10 }, + ] + }, + ] + }, + { + subCategoryName: "Emergency Medical Contacts", + displayOrder: 5, + questions: [ + { + questionName: "Do you have established contacts with local emergency medical services, and are these details readily available to staff and guests? Exammples: Emergency numbers posted at reception or in guest information booklets.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "No emergency medical contacts are available.", points: 0 }, + { name: "Emergency medical contacts are available but not readily accessible to all staff and guests.", points: 5 }, + { name: "Emergency medical contacts are available and accessible, but staff may not be fully aware of how to use them.", points: 8 }, + { name: "Comprehensive emergency medical contacts are readily available to all staff and guests, with staff fully trained on how to use them.", points: 10 }, + ] + }, + ] + }, + { + subCategoryName: "Staff Training", + displayOrder: 5, + questions: [ + { + questionName: "What health safety training do your staff receive? Examples: First aid certification, CPR training, safety drills.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "Our staff do not receive formal safety training.", points: 0 }, + { name: "Some staff have basic first aid training.", points: 5 }, + { name: "Most staff are trained in first aid and CPR.", points: 8 }, + { name: "All staff are thoroughly trained in first aid, CPR, and other relevant safety protocols.", points: 10 }, + { name: "Not applicable.", points: 0 }, + ] + }, + ] + }, + ] + }, + //------------------- + //Language Proficiency + //------------------- + { + categoryName: "Language Proficiency", + displayOrder: 8, + subCategories: [ + { + subCategoryName: "English Language Proficiency", + displayOrder: 1, + questions: [ + { + questionName: "What level of English language proficiency do your staff members have? Examples: Basic conversation, fluent communication, professional proficiency.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "Most staff do not speak English.", points: 0 }, + { name: "Some staff have basic English skills.", points: 5 }, + { name: "Most staff are fluent in English and can communicate effectively with guests.", points: 8 }, + { name: "All staff are highly proficient in English, with some having professional training in English communication.", points: 10 } + ] + }, + { + questionName: "Do you provide English language training for your staff? Examples: Regular English classes, language improvement programs, online courses.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not provide English language training.", points: 0 }, + { name: "We offer occasional English language training sessions.", points: 5 }, + { name: "We provide regular and structured English language training programs.", points: 8 }, + { name: "We have a comprehensive English language training program, including professional development courses.", points: 10 }, + { name: "Not applicable.", points: 0 } + ] + } + ] + }, + ] + }, + //-------------------- + //Hospitality Training + //-------------------- + { + categoryName: "Health and Hygiene Standards", + displayOrder: 9, + subCategories: [ + { + subCategoryName: "Staff Training", + displayOrder: 1, + questions: [ + { + questionName: "What hospitality training do your staff receive? Examples: Customer service training, hospitality management courses, on-the-job training.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "Our staff do not receive formal hospitality training.", points: 0 }, + { name: "We provide basic hospitality training during onboarding.", points: 5 }, + { name: "We offer regular and advanced hospitality training programs for our staff.", points: 8 }, + { name: "Our staff undergo extensive and ongoing hospitality training, including certification courses.", points: 10 }, + { name: "Not applicable.", points: 0 } + ] + }, + { + questionName: "Can you provide examples of how you ensure continuous improvement in hospitality skills for your staff? Examples: Workshops, seminars, performance evaluations, feedback sessions.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not have specific measures for continuous improvement in hospitality skills.", points: 0 }, + { name: "We occasionally conduct workshops and feedback sessions.", points: 5 }, + { name: "We have a structured program for continuous improvement, including regular workshops and evaluations.", points: 8 }, + { name: "We have a comprehensive system for continuous improvement, with frequent training sessions, performance evaluations, and feedback integration.", points: 10 }, + { name: "Not applicable.", points: 0 } + ] + } + ] + }, + ] + }, + //---------------------- + //Other Critical Parameters + //---------------------- + { + categoryName: "Other Critical Parameters", + displayOrder: 10, + subCategories: [ + { + subCategoryName: "Legal Compliance", + displayOrder: 1, + questions: [ + { + questionName: "Are you compliant with all applicable local, national, and international laws and regulations? Can you provide documentation to support this? Examples: Business licenses, health and safety certifications, regulatory audits.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not have specific measures for compliance.", points: 0 }, + { name: "We ensure basic compliance with local laws.", points: 5 }, + { name: "We are compliant with local and national laws and have documentation.", points: 8 }, + { name: "We are fully compliant with all relevant laws and regulations and can provide extensive documentation.", points: 10 }, + ] + } + ] + }, + { + subCategoryName: "Customer Support and Communication", + displayOrder: 2, + questions: [ + { + questionName: "How do you ensure high-quality customer support before, during, and after the experience? Examples: 24/7 support lines, dedicated customer service teams, follow-up surveys.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We do not have a formal customer support system.", points: 0 }, + { name: "We provide basic customer support during the experience.", points: 5 }, + { name: "We offer comprehensive support before, during, and after the experience.", points: 8 }, + { name: "We have a dedicated customer support team available 24/7 across multiple channels.", points: 10 }, + ] + }, + { + questionName: "Can you provide examples of how you handle customer inquiries and issues? Examples: Ticketing system, feedback forms, resolution timelines.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not have a specific process for handling inquiries and issues.", points: 0 }, + { name: "We handle inquiries and issues as they arise but do not track them systematically.", points: 5 }, + { name: "We have a formal process for managing customer inquiries and issues.", points: 8 }, + { name: "We have a dedicated system for tracking, managing, and resolving customer inquiries and issues efficiently.", points: 10 }, + ] + }, + ] + }, + { + subCategoryName: "Innovative Offerings", + displayOrder: 3, + questions: [ + { + questionName: "What innovative or trending activities have you introduced recently? Examples: VR experiences, eco-tours, wellness retreats.", + maxPoints: 10, + displayOrder: 1, + answers: [ + { name: "We have not introduced any new activities recently.", points: 0 }, + { name: "We occasionally introduce new activities.", points: 5 }, + { name: "We regularly introduce innovative and trending activities.", points: 8 }, + { name: "We are known for pioneering new trends and constantly updating our offerings.", points: 10 }, + ] + }, + { + questionName: "How do you stay updated with the latest trends and customer preferences? Examples: Trend analysis, customer surveys, industry conferences.", + maxPoints: 10, + displayOrder: 2, + answers: [ + { name: "We do not actively monitor trends.", points: 0 }, + { name: "We occasionally review trends and customer feedback.", points: 5 }, + { name: "We have a process for regularly reviewing trends and customer preferences.", points: 8 }, + { name: "We have a dedicated team for trend analysis and customer insights, ensuring our offerings are always up-to-date.", points: 10 }, + ] + }, + ] + }, ] }, From 58053e061d9f219f4dd6bf62bb800dff1fdcfc4c Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Wed, 19 Nov 2025 13:32:57 +0530 Subject: [PATCH 5/5] fixed the category name in seeder --- prisma/seed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/seed.ts b/prisma/seed.ts index 4d763d8..f28d148 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -1037,7 +1037,7 @@ async function main() { //Hospitality Training //-------------------- { - categoryName: "Health and Hygiene Standards", + categoryName: "Hospitality Training", displayOrder: 9, subCategories: [ {