





















const db = require('../models');
const Users = db.users;






const Pages = db.pages;

const CtaButtons = db.cta_buttons;

const FeatureHighlights = db.feature_highlights;

const Galleries = db.galleries;

const GalleryItems = db.gallery_items;

const CoffeeRegions = db.coffee_regions;

const CoffeeLots = db.coffee_lots;

const QualityProcesses = db.quality_processes;

const ProcessSteps = db.process_steps;

const QualityMetrics = db.quality_metrics;

const ExportServiceItems = db.export_service_items;

const SustainabilityInitiatives = db.sustainability_initiatives;

const Testimonials = db.testimonials;

const NewsletterSubscribers = db.newsletter_subscribers;

const Inquiries = db.inquiries;

const ContactLocations = db.contact_locations;

const SiteSettings = db.site_settings;







const PagesData = [
    
    {
    
        
        
            
                "page_key": "contact",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "meta_title": "Alan Turing",
            
        
    
        
        
            
                "meta_description": "Alan Turing",
            
        
    
        
        
            
                "meta_keywords": "Grace Hopper",
            
        
    
        
        
            
                "hero_heading": "Grace Hopper",
            
        
    
        
        
            
                "hero_subheading": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "page_key": "home",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "meta_title": "Grace Hopper",
            
        
    
        
        
            
                "meta_description": "Ada Lovelace",
            
        
    
        
        
            
                "meta_keywords": "Grace Hopper",
            
        
    
        
        
            
                "hero_heading": "Marie Curie",
            
        
    
        
        
            
                "hero_subheading": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "page_key": "coffee_philosophy",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "meta_title": "Ada Lovelace",
            
        
    
        
        
            
                "meta_description": "Alan Turing",
            
        
    
        
        
            
                "meta_keywords": "Alan Turing",
            
        
    
        
        
            
                "hero_heading": "Marie Curie",
            
        
    
        
        
            
                "hero_subheading": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "page_key": "quality_control",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "meta_title": "Marie Curie",
            
        
    
        
        
            
                "meta_description": "Ada Lovelace",
            
        
    
        
        
            
                "meta_keywords": "Alan Turing",
            
        
    
        
        
            
                "hero_heading": "Grace Hopper",
            
        
    
        
        
            
                "hero_subheading": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CtaButtonsData = [
    
    {
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "cta_type": "partner_with_us",
            
        
    
        
        
            
                "url": "Grace Hopper",
            
        
    
        
        
            
                "style_variant": "outline",
            
        
    
        
        
            
                "open_in_new_tab": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
    },
    
    {
    
        
        
            
                "label": "Alan Turing",
            
        
    
        
        
            
                "cta_type": "partner_with_us",
            
        
    
        
        
            
                "url": "Ada Lovelace",
            
        
    
        
        
            
                "style_variant": "outline",
            
        
    
        
        
            
                "open_in_new_tab": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
    },
    
    {
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "cta_type": "contact_us",
            
        
    
        
        
            
                "url": "Alan Turing",
            
        
    
        
        
            
                "style_variant": "outline",
            
        
    
        
        
            
                "open_in_new_tab": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 5,
            
        
    
    },
    
    {
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "cta_type": "get_a_quote",
            
        
    
        
        
            
                "url": "Ada Lovelace",
            
        
    
        
        
            
                "style_variant": "secondary",
            
        
    
        
        
            
                "open_in_new_tab": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
    },
    
];



const FeatureHighlightsData = [
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                "icon_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "summary": "Grace Hopper",
            
        
    
        
        
            
                "icon_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "icon_name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "icon_name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 5,
            
        
    
    },
    
];



const GalleriesData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "category": "heritage",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "category": "farms",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "category": "export_logistics",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "category": "cupping_sessions",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GalleryItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "caption": "Alan Turing",
            
        
    
        
        
            
                "alt_text": "Grace Hopper",
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                "is_featured": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "caption": "Ada Lovelace",
            
        
    
        
        
            
                "alt_text": "Alan Turing",
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                "is_featured": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "caption": "Ada Lovelace",
            
        
    
        
        
            
                "alt_text": "Grace Hopper",
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                "is_featured": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "caption": "Ada Lovelace",
            
        
    
        
        
            
                "alt_text": "Alan Turing",
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
        
        
            
                "is_featured": false,
            
        
    
    },
    
];



const CoffeeRegionsData = [
    
    {
    
        
        
            
                "region_name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "flavor_profile": "Alan Turing",
            
        
    
        
        
            
                "altitude_min_masl": 5,
            
        
    
        
        
            
                "altitude_max_masl": 5,
            
        
    
        
        
            
                "rainfall_note": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "story": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
    },
    
    {
    
        
        
            
                "region_name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "flavor_profile": "Marie Curie",
            
        
    
        
        
            
                "altitude_min_masl": 2,
            
        
    
        
        
            
                "altitude_max_masl": 2,
            
        
    
        
        
            
                "rainfall_note": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "story": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
    },
    
    {
    
        
        
            
                "region_name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "flavor_profile": "Marie Curie",
            
        
    
        
        
            
                "altitude_min_masl": 8,
            
        
    
        
        
            
                "altitude_max_masl": 1,
            
        
    
        
        
            
                "rainfall_note": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "story": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
    },
    
    {
    
        
        
            
                "region_name": "Marie Curie",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "flavor_profile": "Marie Curie",
            
        
    
        
        
            
                "altitude_min_masl": 2,
            
        
    
        
        
            
                "altitude_max_masl": 5,
            
        
    
        
        
            
                "rainfall_note": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "story": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 5,
            
        
    
    },
    
];



const CoffeeLotsData = [
    
    {
    
        
        
            
                "lot_code": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "process_type": "honey",
            
        
    
        
        
            
                "grade": "commercial",
            
        
    
        
        
            
                "crop_year": 8,
            
        
    
        
        
            
                "moisture_percent": 3.14,
            
        
    
        
        
            
                "tasting_notes": "Ada Lovelace",
            
        
    
        
        
            
                "scaa_score": 3.56,
            
        
    
        
        
            
                "certifications": "Grace Hopper",
            
        
    
        
        
            
                "available_quantity_kg": 1.19,
            
        
    
        
        
            
                "is_available": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "lot_code": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "process_type": "natural",
            
        
    
        
        
            
                "grade": "grade_3",
            
        
    
        
        
            
                "crop_year": 5,
            
        
    
        
        
            
                "moisture_percent": 6.72,
            
        
    
        
        
            
                "tasting_notes": "Ada Lovelace",
            
        
    
        
        
            
                "scaa_score": 1.44,
            
        
    
        
        
            
                "certifications": "Marie Curie",
            
        
    
        
        
            
                "available_quantity_kg": 1.73,
            
        
    
        
        
            
                "is_available": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "lot_code": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "process_type": "natural",
            
        
    
        
        
            
                "grade": "grade_1",
            
        
    
        
        
            
                "crop_year": 4,
            
        
    
        
        
            
                "moisture_percent": 6.65,
            
        
    
        
        
            
                "tasting_notes": "Marie Curie",
            
        
    
        
        
            
                "scaa_score": 0.38,
            
        
    
        
        
            
                "certifications": "Alan Turing",
            
        
    
        
        
            
                "available_quantity_kg": 0.53,
            
        
    
        
        
            
                "is_available": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "lot_code": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "process_type": "honey",
            
        
    
        
        
            
                "grade": "grade_4",
            
        
    
        
        
            
                "crop_year": 4,
            
        
    
        
        
            
                "moisture_percent": 5.26,
            
        
    
        
        
            
                "tasting_notes": "Ada Lovelace",
            
        
    
        
        
            
                "scaa_score": 0.35,
            
        
    
        
        
            
                "certifications": "Marie Curie",
            
        
    
        
        
            
                "available_quantity_kg": 5.4,
            
        
    
        
        
            
                "is_available": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const QualityProcessesData = [
    
    {
    
        
        
            
                "process_type": "washed",
            
        
    
        
        
            
                "headline": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "profile_highlight": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "process_type": "natural",
            
        
    
        
        
            
                "headline": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "profile_highlight": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "process_type": "washed",
            
        
    
        
        
            
                "headline": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "profile_highlight": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "process_type": "natural",
            
        
    
        
        
            
                "headline": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "profile_highlight": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const ProcessStepsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_number": 6,
            
        
    
        
        
            
                "step_title": "Grace Hopper",
            
        
    
        
        
            
                "step_description": "Ada Lovelace",
            
        
    
        
        
            
                "icon_name": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_number": 3,
            
        
    
        
        
            
                "step_title": "Grace Hopper",
            
        
    
        
        
            
                "step_description": "Alan Turing",
            
        
    
        
        
            
                "icon_name": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_number": 2,
            
        
    
        
        
            
                "step_title": "Grace Hopper",
            
        
    
        
        
            
                "step_description": "Ada Lovelace",
            
        
    
        
        
            
                "icon_name": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_number": 2,
            
        
    
        
        
            
                "step_title": "Ada Lovelace",
            
        
    
        
        
            
                "step_description": "Ada Lovelace",
            
        
    
        
        
            
                "icon_name": "Grace Hopper",
            
        
    
    },
    
];



const QualityMetricsData = [
    
    {
    
        
        
            
                "metric_name": "Grace Hopper",
            
        
    
        
        
            
                "target_range": "Grace Hopper",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "category": "moisture_control",
            
        
    
        
        
            
                "sort_order": 5,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "metric_name": "Ada Lovelace",
            
        
    
        
        
            
                "target_range": "Alan Turing",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "category": "storage_handling",
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "metric_name": "Alan Turing",
            
        
    
        
        
            
                "target_range": "Ada Lovelace",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "category": "storage_handling",
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "metric_name": "Marie Curie",
            
        
    
        
        
            
                "target_range": "Marie Curie",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "category": "export_readiness",
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const ExportServiceItemsData = [
    
    {
    
        
        
            
                "service_title": "Marie Curie",
            
        
    
        
        
            
                "service_description": "Marie Curie",
            
        
    
        
        
            
                "icon_name": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
    },
    
    {
    
        
        
            
                "service_title": "Marie Curie",
            
        
    
        
        
            
                "service_description": "Alan Turing",
            
        
    
        
        
            
                "icon_name": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
    },
    
    {
    
        
        
            
                "service_title": "Alan Turing",
            
        
    
        
        
            
                "service_description": "Ada Lovelace",
            
        
    
        
        
            
                "icon_name": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
    },
    
    {
    
        
        
            
                "service_title": "Marie Curie",
            
        
    
        
        
            
                "service_description": "Marie Curie",
            
        
    
        
        
            
                "icon_name": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
    },
    
];



const SustainabilityInitiativesData = [
    
    {
    
        
        
            
                "initiative_title": "Grace Hopper",
            
        
    
        
        
            
                "initiative_type": "environmental_protection",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
    },
    
    {
    
        
        
            
                "initiative_title": "Ada Lovelace",
            
        
    
        
        
            
                "initiative_type": "ethical_sourcing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
    },
    
    {
    
        
        
            
                "initiative_title": "Grace Hopper",
            
        
    
        
        
            
                "initiative_type": "environmental_protection",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
    },
    
    {
    
        
        
            
                "initiative_title": "Marie Curie",
            
        
    
        
        
            
                "initiative_type": "environmental_protection",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
    },
    
];



const TestimonialsData = [
    
    {
    
        
        
            
                "client_name": "Ada Lovelace",
            
        
    
        
        
            
                "company_name": "Marie Curie",
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "quote": "Ada Lovelace",
            
        
    
        
        
            
                "rating": 2.69,
            
        
    
        
        
            
                "is_featured": true,
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "client_name": "Marie Curie",
            
        
    
        
        
            
                "company_name": "Marie Curie",
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "quote": "Ada Lovelace",
            
        
    
        
        
            
                "rating": 0.66,
            
        
    
        
        
            
                "is_featured": false,
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "client_name": "Grace Hopper",
            
        
    
        
        
            
                "company_name": "Ada Lovelace",
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "quote": "Grace Hopper",
            
        
    
        
        
            
                "rating": 3.31,
            
        
    
        
        
            
                "is_featured": true,
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "client_name": "Grace Hopper",
            
        
    
        
        
            
                "company_name": "Alan Turing",
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "quote": "Ada Lovelace",
            
        
    
        
        
            
                "rating": 8.6,
            
        
    
        
        
            
                "is_featured": false,
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const NewsletterSubscribersData = [
    
    {
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "full_name": "Marie Curie",
            
        
    
        
        
            
                "company_name": "Grace Hopper",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "source": "home_footer",
            
        
    
        
        
            
                "is_confirmed": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "full_name": "Marie Curie",
            
        
    
        
        
            
                "company_name": "Grace Hopper",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "source": "popup",
            
        
    
        
        
            
                "is_confirmed": true,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "full_name": "Grace Hopper",
            
        
    
        
        
            
                "company_name": "Grace Hopper",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "source": "contact_page",
            
        
    
        
        
            
                "is_confirmed": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "full_name": "Alan Turing",
            
        
    
        
        
            
                "company_name": "Alan Turing",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "source": "home_cta",
            
        
    
        
        
            
                "is_confirmed": true,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
    },
    
];



const InquiriesData = [
    
    {
    
        
        
            
                "inquiry_type": "get_a_quote",
            
        
    
        
        
            
                "status": "new",
            
        
    
        
        
            
                "full_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "company_name": "Alan Turing",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "buyer_type": "specialty_buyer",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_volume_kg": 2.77,
            
        
    
        
        
            
                "incoterm": "cif",
            
        
    
        
        
            
                "preferred_contact_method": "email",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "inquiry_type": "request_samples",
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "full_name": "Marie Curie",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "company_name": "Grace Hopper",
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "buyer_type": "wholesaler",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_volume_kg": 8.63,
            
        
    
        
        
            
                "incoterm": "other",
            
        
    
        
        
            
                "preferred_contact_method": "whatsapp",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "inquiry_type": "request_samples",
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "full_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "company_name": "Alan Turing",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "buyer_type": "wholesaler",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_volume_kg": 5.23,
            
        
    
        
        
            
                "incoterm": "exw",
            
        
    
        
        
            
                "preferred_contact_method": "email",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "inquiry_type": "partner_with_us",
            
        
    
        
        
            
                "status": "qualified",
            
        
    
        
        
            
                "full_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "company_name": "Alan Turing",
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "buyer_type": "other",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_volume_kg": 2.11,
            
        
    
        
        
            
                "incoterm": "cif",
            
        
    
        
        
            
                "preferred_contact_method": "email",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContactLocationsData = [
    
    {
    
        
        
            
                "location_name": "Alan Turing",
            
        
    
        
        
            
                "address": "Alan Turing",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "region": "Alan Turing",
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "latitude": 7.44,
            
        
    
        
        
            
                "longitude": 8.3,
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone_primary": "Marie Curie",
            
        
    
        
        
            
                "phone_secondary": "Marie Curie",
            
        
    
        
        
            
                "is_primary": true,
            
        
    
    },
    
    {
    
        
        
            
                "location_name": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "region": "Alan Turing",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "latitude": 3.82,
            
        
    
        
        
            
                "longitude": 5.37,
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone_primary": "Grace Hopper",
            
        
    
        
        
            
                "phone_secondary": "Alan Turing",
            
        
    
        
        
            
                "is_primary": false,
            
        
    
    },
    
    {
    
        
        
            
                "location_name": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "region": "Ada Lovelace",
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "latitude": 8.81,
            
        
    
        
        
            
                "longitude": 4.35,
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone_primary": "Marie Curie",
            
        
    
        
        
            
                "phone_secondary": "Alan Turing",
            
        
    
        
        
            
                "is_primary": true,
            
        
    
    },
    
    {
    
        
        
            
                "location_name": "Alan Turing",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "region": "Marie Curie",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "latitude": 3.3,
            
        
    
        
        
            
                "longitude": 0.68,
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone_primary": "Grace Hopper",
            
        
    
        
        
            
                "phone_secondary": "Marie Curie",
            
        
    
        
        
            
                "is_primary": false,
            
        
    
    },
    
];



const SiteSettingsData = [
    
    {
    
        
        
            
                "brand_name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_tagline": "Ada Lovelace",
            
        
    
        
        
            
                "primary_color_hex": "Grace Hopper",
            
        
    
        
        
            
                "secondary_color_hex": "Alan Turing",
            
        
    
        
        
            
                "accent_color_hex": "Grace Hopper",
            
        
    
        
        
            
                "default_meta_title": "Ada Lovelace",
            
        
    
        
        
            
                "default_meta_description": "Marie Curie",
            
        
    
        
        
            
                "default_meta_keywords": "Grace Hopper",
            
        
    
        
        
            
                "maintenance_mode": true,
            
        
    
    },
    
    {
    
        
        
            
                "brand_name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_tagline": "Grace Hopper",
            
        
    
        
        
            
                "primary_color_hex": "Ada Lovelace",
            
        
    
        
        
            
                "secondary_color_hex": "Ada Lovelace",
            
        
    
        
        
            
                "accent_color_hex": "Marie Curie",
            
        
    
        
        
            
                "default_meta_title": "Grace Hopper",
            
        
    
        
        
            
                "default_meta_description": "Alan Turing",
            
        
    
        
        
            
                "default_meta_keywords": "Ada Lovelace",
            
        
    
        
        
            
                "maintenance_mode": true,
            
        
    
    },
    
    {
    
        
        
            
                "brand_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_tagline": "Grace Hopper",
            
        
    
        
        
            
                "primary_color_hex": "Alan Turing",
            
        
    
        
        
            
                "secondary_color_hex": "Marie Curie",
            
        
    
        
        
            
                "accent_color_hex": "Marie Curie",
            
        
    
        
        
            
                "default_meta_title": "Marie Curie",
            
        
    
        
        
            
                "default_meta_description": "Marie Curie",
            
        
    
        
        
            
                "default_meta_keywords": "Grace Hopper",
            
        
    
        
        
            
                "maintenance_mode": true,
            
        
    
    },
    
    {
    
        
        
            
                "brand_name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_tagline": "Alan Turing",
            
        
    
        
        
            
                "primary_color_hex": "Grace Hopper",
            
        
    
        
        
            
                "secondary_color_hex": "Alan Turing",
            
        
    
        
        
            
                "accent_color_hex": "Grace Hopper",
            
        
    
        
        
            
                "default_meta_title": "Ada Lovelace",
            
        
    
        
        
            
                "default_meta_description": "Grace Hopper",
            
        
    
        
        
            
                "default_meta_keywords": "Grace Hopper",
            
        
    
        
        
            
                "maintenance_mode": false,
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePageWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Page0 = await Pages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Page0?.setAuthor)
                {
                    await
                    Page0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Page1 = await Pages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Page1?.setAuthor)
                {
                    await
                    Page1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Page2 = await Pages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Page2?.setAuthor)
                {
                    await
                    Page2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Page3 = await Pages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Page3?.setAuthor)
                {
                    await
                    Page3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCtaButtonWithPage() {
            
                const relatedPage0 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const CtaButton0 = await CtaButtons.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CtaButton0?.setPage)
                {
                    await
                    CtaButton0.
                    setPage(relatedPage0);
                }
            
                const relatedPage1 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const CtaButton1 = await CtaButtons.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CtaButton1?.setPage)
                {
                    await
                    CtaButton1.
                    setPage(relatedPage1);
                }
            
                const relatedPage2 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const CtaButton2 = await CtaButtons.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CtaButton2?.setPage)
                {
                    await
                    CtaButton2.
                    setPage(relatedPage2);
                }
            
                const relatedPage3 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const CtaButton3 = await CtaButtons.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CtaButton3?.setPage)
                {
                    await
                    CtaButton3.
                    setPage(relatedPage3);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFeatureHighlightWithPage() {
            
                const relatedPage0 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const FeatureHighlight0 = await FeatureHighlights.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FeatureHighlight0?.setPage)
                {
                    await
                    FeatureHighlight0.
                    setPage(relatedPage0);
                }
            
                const relatedPage1 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const FeatureHighlight1 = await FeatureHighlights.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FeatureHighlight1?.setPage)
                {
                    await
                    FeatureHighlight1.
                    setPage(relatedPage1);
                }
            
                const relatedPage2 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const FeatureHighlight2 = await FeatureHighlights.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FeatureHighlight2?.setPage)
                {
                    await
                    FeatureHighlight2.
                    setPage(relatedPage2);
                }
            
                const relatedPage3 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const FeatureHighlight3 = await FeatureHighlights.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FeatureHighlight3?.setPage)
                {
                    await
                    FeatureHighlight3.
                    setPage(relatedPage3);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateGalleryWithPage() {
            
                const relatedPage0 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const Gallery0 = await Galleries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Gallery0?.setPage)
                {
                    await
                    Gallery0.
                    setPage(relatedPage0);
                }
            
                const relatedPage1 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const Gallery1 = await Galleries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Gallery1?.setPage)
                {
                    await
                    Gallery1.
                    setPage(relatedPage1);
                }
            
                const relatedPage2 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const Gallery2 = await Galleries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Gallery2?.setPage)
                {
                    await
                    Gallery2.
                    setPage(relatedPage2);
                }
            
                const relatedPage3 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const Gallery3 = await Galleries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Gallery3?.setPage)
                {
                    await
                    Gallery3.
                    setPage(relatedPage3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateGalleryItemWithGallery() {
            
                const relatedGallery0 = await Galleries.findOne({
                    offset: Math.floor(Math.random() * (await Galleries.count())),
                });
                const GalleryItem0 = await GalleryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GalleryItem0?.setGallery)
                {
                    await
                    GalleryItem0.
                    setGallery(relatedGallery0);
                }
            
                const relatedGallery1 = await Galleries.findOne({
                    offset: Math.floor(Math.random() * (await Galleries.count())),
                });
                const GalleryItem1 = await GalleryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GalleryItem1?.setGallery)
                {
                    await
                    GalleryItem1.
                    setGallery(relatedGallery1);
                }
            
                const relatedGallery2 = await Galleries.findOne({
                    offset: Math.floor(Math.random() * (await Galleries.count())),
                });
                const GalleryItem2 = await GalleryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GalleryItem2?.setGallery)
                {
                    await
                    GalleryItem2.
                    setGallery(relatedGallery2);
                }
            
                const relatedGallery3 = await Galleries.findOne({
                    offset: Math.floor(Math.random() * (await Galleries.count())),
                });
                const GalleryItem3 = await GalleryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GalleryItem3?.setGallery)
                {
                    await
                    GalleryItem3.
                    setGallery(relatedGallery3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateCoffeeLotWithRegion() {
            
                const relatedRegion0 = await CoffeeRegions.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeRegions.count())),
                });
                const CoffeeLot0 = await CoffeeLots.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoffeeLot0?.setRegion)
                {
                    await
                    CoffeeLot0.
                    setRegion(relatedRegion0);
                }
            
                const relatedRegion1 = await CoffeeRegions.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeRegions.count())),
                });
                const CoffeeLot1 = await CoffeeLots.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoffeeLot1?.setRegion)
                {
                    await
                    CoffeeLot1.
                    setRegion(relatedRegion1);
                }
            
                const relatedRegion2 = await CoffeeRegions.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeRegions.count())),
                });
                const CoffeeLot2 = await CoffeeLots.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoffeeLot2?.setRegion)
                {
                    await
                    CoffeeLot2.
                    setRegion(relatedRegion2);
                }
            
                const relatedRegion3 = await CoffeeRegions.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeRegions.count())),
                });
                const CoffeeLot3 = await CoffeeLots.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoffeeLot3?.setRegion)
                {
                    await
                    CoffeeLot3.
                    setRegion(relatedRegion3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateProcessStepWithQuality_proces() {
            
                const relatedQuality_proces0 = await QualityProcesses.findOne({
                    offset: Math.floor(Math.random() * (await QualityProcesses.count())),
                });
                const ProcessStep0 = await ProcessSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProcessStep0?.setQuality_proces)
                {
                    await
                    ProcessStep0.
                    setQuality_proces(relatedQuality_proces0);
                }
            
                const relatedQuality_proces1 = await QualityProcesses.findOne({
                    offset: Math.floor(Math.random() * (await QualityProcesses.count())),
                });
                const ProcessStep1 = await ProcessSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProcessStep1?.setQuality_proces)
                {
                    await
                    ProcessStep1.
                    setQuality_proces(relatedQuality_proces1);
                }
            
                const relatedQuality_proces2 = await QualityProcesses.findOne({
                    offset: Math.floor(Math.random() * (await QualityProcesses.count())),
                });
                const ProcessStep2 = await ProcessSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProcessStep2?.setQuality_proces)
                {
                    await
                    ProcessStep2.
                    setQuality_proces(relatedQuality_proces2);
                }
            
                const relatedQuality_proces3 = await QualityProcesses.findOne({
                    offset: Math.floor(Math.random() * (await QualityProcesses.count())),
                });
                const ProcessStep3 = await ProcessSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProcessStep3?.setQuality_proces)
                {
                    await
                    ProcessStep3.
                    setQuality_proces(relatedQuality_proces3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTestimonialWithPage() {
            
                const relatedPage0 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const Testimonial0 = await Testimonials.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Testimonial0?.setPage)
                {
                    await
                    Testimonial0.
                    setPage(relatedPage0);
                }
            
                const relatedPage1 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const Testimonial1 = await Testimonials.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Testimonial1?.setPage)
                {
                    await
                    Testimonial1.
                    setPage(relatedPage1);
                }
            
                const relatedPage2 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const Testimonial2 = await Testimonials.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Testimonial2?.setPage)
                {
                    await
                    Testimonial2.
                    setPage(relatedPage2);
                }
            
                const relatedPage3 = await Pages.findOne({
                    offset: Math.floor(Math.random() * (await Pages.count())),
                });
                const Testimonial3 = await Testimonials.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Testimonial3?.setPage)
                {
                    await
                    Testimonial3.
                    setPage(relatedPage3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateInquiryWithRequested_region() {
            
                const relatedRequested_region0 = await CoffeeRegions.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeRegions.count())),
                });
                const Inquiry0 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Inquiry0?.setRequested_region)
                {
                    await
                    Inquiry0.
                    setRequested_region(relatedRequested_region0);
                }
            
                const relatedRequested_region1 = await CoffeeRegions.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeRegions.count())),
                });
                const Inquiry1 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Inquiry1?.setRequested_region)
                {
                    await
                    Inquiry1.
                    setRequested_region(relatedRequested_region1);
                }
            
                const relatedRequested_region2 = await CoffeeRegions.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeRegions.count())),
                });
                const Inquiry2 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Inquiry2?.setRequested_region)
                {
                    await
                    Inquiry2.
                    setRequested_region(relatedRequested_region2);
                }
            
                const relatedRequested_region3 = await CoffeeRegions.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeRegions.count())),
                });
                const Inquiry3 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Inquiry3?.setRequested_region)
                {
                    await
                    Inquiry3.
                    setRequested_region(relatedRequested_region3);
                }
            
        }
        
    
        
            
            async function associateInquiryWithRequested_lot() {
            
                const relatedRequested_lot0 = await CoffeeLots.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeLots.count())),
                });
                const Inquiry0 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Inquiry0?.setRequested_lot)
                {
                    await
                    Inquiry0.
                    setRequested_lot(relatedRequested_lot0);
                }
            
                const relatedRequested_lot1 = await CoffeeLots.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeLots.count())),
                });
                const Inquiry1 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Inquiry1?.setRequested_lot)
                {
                    await
                    Inquiry1.
                    setRequested_lot(relatedRequested_lot1);
                }
            
                const relatedRequested_lot2 = await CoffeeLots.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeLots.count())),
                });
                const Inquiry2 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Inquiry2?.setRequested_lot)
                {
                    await
                    Inquiry2.
                    setRequested_lot(relatedRequested_lot2);
                }
            
                const relatedRequested_lot3 = await CoffeeLots.findOne({
                    offset: Math.floor(Math.random() * (await CoffeeLots.count())),
                });
                const Inquiry3 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Inquiry3?.setRequested_lot)
                {
                    await
                    Inquiry3.
                    setRequested_lot(relatedRequested_lot3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateInquiryWithAssigned_to() {
            
                const relatedAssigned_to0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Inquiry0 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Inquiry0?.setAssigned_to)
                {
                    await
                    Inquiry0.
                    setAssigned_to(relatedAssigned_to0);
                }
            
                const relatedAssigned_to1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Inquiry1 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Inquiry1?.setAssigned_to)
                {
                    await
                    Inquiry1.
                    setAssigned_to(relatedAssigned_to1);
                }
            
                const relatedAssigned_to2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Inquiry2 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Inquiry2?.setAssigned_to)
                {
                    await
                    Inquiry2.
                    setAssigned_to(relatedAssigned_to2);
                }
            
                const relatedAssigned_to3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Inquiry3 = await Inquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Inquiry3?.setAssigned_to)
                {
                    await
                    Inquiry3.
                    setAssigned_to(relatedAssigned_to3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Pages.bulkCreate(PagesData);
                
            
            
                
                await CtaButtons.bulkCreate(CtaButtonsData);
                
            
            
                
                await FeatureHighlights.bulkCreate(FeatureHighlightsData);
                
            
            
                
                await Galleries.bulkCreate(GalleriesData);
                
            
            
                
                await GalleryItems.bulkCreate(GalleryItemsData);
                
            
            
                
                await CoffeeRegions.bulkCreate(CoffeeRegionsData);
                
            
            
                
                await CoffeeLots.bulkCreate(CoffeeLotsData);
                
            
            
                
                await QualityProcesses.bulkCreate(QualityProcessesData);
                
            
            
                
                await ProcessSteps.bulkCreate(ProcessStepsData);
                
            
            
                
                await QualityMetrics.bulkCreate(QualityMetricsData);
                
            
            
                
                await ExportServiceItems.bulkCreate(ExportServiceItemsData);
                
            
            
                
                await SustainabilityInitiatives.bulkCreate(SustainabilityInitiativesData);
                
            
            
                
                await Testimonials.bulkCreate(TestimonialsData);
                
            
            
                
                await NewsletterSubscribers.bulkCreate(NewsletterSubscribersData);
                
            
            
                
                await Inquiries.bulkCreate(InquiriesData);
                
            
            
                
                await ContactLocations.bulkCreate(ContactLocationsData);
                
            
            
                
                await SiteSettings.bulkCreate(SiteSettingsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePageWithAuthor(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCtaButtonWithPage(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFeatureHighlightWithPage(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateGalleryWithPage(),
                    
                
            
                
                
                    
                        
                        await associateGalleryItemWithGallery(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateCoffeeLotWithRegion(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProcessStepWithQuality_proces(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTestimonialWithPage(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateInquiryWithRequested_region(),
                    
                
                    
                        
                        await associateInquiryWithRequested_lot(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateInquiryWithAssigned_to(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('pages', null, {});
            
            
            await queryInterface.bulkDelete('cta_buttons', null, {});
            
            
            await queryInterface.bulkDelete('feature_highlights', null, {});
            
            
            await queryInterface.bulkDelete('galleries', null, {});
            
            
            await queryInterface.bulkDelete('gallery_items', null, {});
            
            
            await queryInterface.bulkDelete('coffee_regions', null, {});
            
            
            await queryInterface.bulkDelete('coffee_lots', null, {});
            
            
            await queryInterface.bulkDelete('quality_processes', null, {});
            
            
            await queryInterface.bulkDelete('process_steps', null, {});
            
            
            await queryInterface.bulkDelete('quality_metrics', null, {});
            
            
            await queryInterface.bulkDelete('export_service_items', null, {});
            
            
            await queryInterface.bulkDelete('sustainability_initiatives', null, {});
            
            
            await queryInterface.bulkDelete('testimonials', null, {});
            
            
            await queryInterface.bulkDelete('newsletter_subscribers', null, {});
            
            
            await queryInterface.bulkDelete('inquiries', null, {});
            
            
            await queryInterface.bulkDelete('contact_locations', null, {});
            
            
            await queryInterface.bulkDelete('site_settings', null, {});
            
        
    },
};