216 lines
4.2 KiB
JavaScript
216 lines
4.2 KiB
JavaScript
const db = require('../models');
|
|
const Users = db.users;
|
|
|
|
const Clinics = db.clinics;
|
|
|
|
const GalleryImages = db.gallery_images;
|
|
|
|
const Services = db.services;
|
|
|
|
const Testimonials = db.testimonials;
|
|
|
|
const ClinicsData = [
|
|
{
|
|
name: 'Dr. S. Chattarjee Dental Clinic',
|
|
|
|
address: 'Jalan Medi Mart, Hill Cart Rd, Siliguri, WB 734001',
|
|
|
|
phone_number: '+919457948362',
|
|
|
|
whatsapp_contact: 'https://wa.me/919457948362',
|
|
|
|
google_map_link: 'https://maps.app.goo.gl/9h4hK5Y8c29YyQxN9',
|
|
|
|
// type code here for "relation_many" field
|
|
|
|
// type code here for "relation_many" field
|
|
|
|
// type code here for "relation_many" field
|
|
},
|
|
|
|
{
|
|
name: 'Smile Bright Dental Care',
|
|
|
|
address: '123 Main St, Siliguri, WB 734002',
|
|
|
|
phone_number: '+919876543210',
|
|
|
|
whatsapp_contact: 'https://wa.me/919876543210',
|
|
|
|
google_map_link: 'https://maps.app.goo.gl/1234567890',
|
|
|
|
// type code here for "relation_many" field
|
|
|
|
// type code here for "relation_many" field
|
|
|
|
// type code here for "relation_many" field
|
|
},
|
|
|
|
{
|
|
name: 'Pearl Dental Studio',
|
|
|
|
address: '456 Elm St, Siliguri, WB 734003',
|
|
|
|
phone_number: '+919123456789',
|
|
|
|
whatsapp_contact: 'https://wa.me/919123456789',
|
|
|
|
google_map_link: 'https://maps.app.goo.gl/0987654321',
|
|
|
|
// type code here for "relation_many" field
|
|
|
|
// type code here for "relation_many" field
|
|
|
|
// type code here for "relation_many" field
|
|
},
|
|
|
|
{
|
|
name: 'Happy Teeth Clinic',
|
|
|
|
address: '789 Oak St, Siliguri, WB 734004',
|
|
|
|
phone_number: '+919112233445',
|
|
|
|
whatsapp_contact: 'https://wa.me/919112233445',
|
|
|
|
google_map_link: 'https://maps.app.goo.gl/1122334455',
|
|
|
|
// type code here for "relation_many" field
|
|
|
|
// type code here for "relation_many" field
|
|
|
|
// type code here for "relation_many" field
|
|
},
|
|
];
|
|
|
|
const GalleryImagesData = [
|
|
{
|
|
// type code here for "images" field
|
|
|
|
description: 'Clinic interior and exterior views.',
|
|
},
|
|
|
|
{
|
|
// type code here for "images" field
|
|
|
|
description: 'Before and after treatment results.',
|
|
},
|
|
|
|
{
|
|
// type code here for "images" field
|
|
|
|
description: 'Dental equipment and facilities.',
|
|
},
|
|
|
|
{
|
|
// type code here for "images" field
|
|
|
|
description: 'Patient testimonials and feedback.',
|
|
},
|
|
];
|
|
|
|
const ServicesData = [
|
|
{
|
|
service_name: 'Root Canal Treatment',
|
|
|
|
description: 'A procedure to save a decayed tooth.',
|
|
|
|
category: 'GeneralDentistry',
|
|
},
|
|
|
|
{
|
|
service_name: 'Teeth Whitening',
|
|
|
|
description: 'A cosmetic procedure to whiten teeth.',
|
|
|
|
category: 'GeneralDentistry',
|
|
},
|
|
|
|
{
|
|
service_name: 'Dental Implants',
|
|
|
|
description: 'Replacement of missing teeth with implants.',
|
|
|
|
category: 'TeethWhitening',
|
|
},
|
|
|
|
{
|
|
service_name: 'Braces & Invisalign',
|
|
|
|
description: 'Orthodontic treatment for teeth alignment.',
|
|
|
|
category: 'TeethWhitening',
|
|
},
|
|
];
|
|
|
|
const TestimonialsData = [
|
|
{
|
|
patient_name: 'John Doe',
|
|
|
|
content: 'Excellent service and friendly staff.',
|
|
|
|
rating: 5,
|
|
},
|
|
|
|
{
|
|
patient_name: 'Jane Smith',
|
|
|
|
content: 'Highly recommend for root canal treatments.',
|
|
|
|
rating: 4,
|
|
},
|
|
|
|
{
|
|
patient_name: 'Emily Johnson',
|
|
|
|
content: 'Great experience with teeth whitening.',
|
|
|
|
rating: 5,
|
|
},
|
|
|
|
{
|
|
patient_name: 'Michael Brown',
|
|
|
|
content: 'Professional and caring dentist.',
|
|
|
|
rating: 4,
|
|
},
|
|
];
|
|
|
|
// Similar logic for "relation_many"
|
|
|
|
// Similar logic for "relation_many"
|
|
|
|
// Similar logic for "relation_many"
|
|
|
|
// Similar logic for "relation_many"
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
await Clinics.bulkCreate(ClinicsData);
|
|
|
|
await GalleryImages.bulkCreate(GalleryImagesData);
|
|
|
|
await Services.bulkCreate(ServicesData);
|
|
|
|
await Testimonials.bulkCreate(TestimonialsData);
|
|
|
|
await Promise.all([
|
|
// Similar logic for "relation_many"
|
|
// Similar logic for "relation_many"
|
|
// Similar logic for "relation_many"
|
|
// Similar logic for "relation_many"
|
|
]);
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
await queryInterface.bulkDelete('clinics', null, {});
|
|
|
|
await queryInterface.bulkDelete('gallery_images', null, {});
|
|
|
|
await queryInterface.bulkDelete('services', null, {});
|
|
|
|
await queryInterface.bulkDelete('testimonials', null, {});
|
|
},
|
|
};
|