added more data in seeder

This commit is contained in:
2025-11-19 13:01:00 +05:30
parent 5fac8b0156
commit c544c2ac06
2 changed files with 363 additions and 202 deletions

View File

@@ -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")

View File

@@ -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 },