





















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






const Campuses = db.campuses;

const CampSessions = db.camp_sessions;

const AgeGroups = db.age_groups;

const WeeklyThemes = db.weekly_themes;

const PricingPlans = db.pricing_plans;

const FeeRules = db.fee_rules;

const Guardians = db.guardians;

const Campers = db.campers;

const Enrollments = db.enrollments;

const Payments = db.payments;

const WaiverDocuments = db.waiver_documents;

const DocumentSignatures = db.document_signatures;

const FieldTripCatalog = db.field_trip_catalog;

const FieldTripEvents = db.field_trip_events;

const TripRegistrations = db.trip_registrations;

const SpecialTrips = db.special_trips;

const EndOfSummerTripOptions = db.end_of_summer_trip_options;

const EndOfSummerTripSelections = db.end_of_summer_trip_selections;

const ActivityBlocks = db.activity_blocks;

const CurriculumSubjects = db.curriculum_subjects;

const StaffAssignments = db.staff_assignments;

const Announcements = db.announcements;







const CampusesData = [
    
    {
    
        
        
            
                "name": "New Bethel COGIC Charlotte",
            
        
    
        
        
            
                "address_line1": "1520 Little Rock Road",
            
        
    
        
        
            
                "city": "Charlotte",
            
        
    
        
        
            
                "state": "NC",
            
        
    
        
        
            
                "postal_code": "28214",
            
        
    
    },
    
    {
    
        
        
            
                "name": "New Bethel Annex",
            
        
    
        
        
            
                "address_line1": "1510 Little Rock Road",
            
        
    
        
        
            
                "city": "Charlotte",
            
        
    
        
        
            
                "state": "NC",
            
        
    
        
        
            
                "postal_code": "28214",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Westside Activity Center",
            
        
    
        
        
            
                "address_line1": "2101 Freedom Drive",
            
        
    
        
        
            
                "city": "Charlotte",
            
        
    
        
        
            
                "state": "NC",
            
        
    
        
        
            
                "postal_code": "28208",
            
        
    
    },
    
    {
    
        
        
            
                "name": "North Learning Hub",
            
        
    
        
        
            
                "address_line1": "9200 University City Blvd",
            
        
    
        
        
            
                "city": "Charlotte",
            
        
    
        
        
            
                "state": "NC",
            
        
    
        
        
            
                "postal_code": "28213",
            
        
    
    },
    
];



const CampSessionsData = [
    
    {
    
        
        
            
                "name": "Relentless Generation Summer Camp 2025",
            
        
    
        
        
            
                "theme_title": "Built for This: Growing in God, Growing in Purpose",
            
        
    
        
        
            
                "theme_summary": "A summer program focused on spiritual growth, academics, and creative enrichment for K-12 students.",
            
        
    
        
        
            
                "theme_scripture_reference": "Jeremiah 29:11 KJV",
            
        
    
        
        
            
                "theme_scripture_text": "For I know the thoughts that I think toward you... to give you an expected end.",
            
        
    
        
        
            
                "start_datetime": new Date('2025-06-08T08:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2025-08-14T17:00:00Z'),
            
        
    
        
        
            
                "day_camp_hours": "8:00 AM - 5:00 PM",
            
        
    
        
        
            
                "third_shift_hours": "5:30 PM - 10:00 PM",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Relentless Generation Summer Camp 2026",
            
        
    
        
        
            
                "theme_title": "Built for This: Growing in God, Growing in Purpose",
            
        
    
        
        
            
                "theme_summary": "Continuation session with expanded trips and leadership tracks.",
            
        
    
        
        
            
                "theme_scripture_reference": "Jeremiah 29:11 KJV",
            
        
    
        
        
            
                "theme_scripture_text": "For I know the thoughts that I think toward you... to give you an expected end.",
            
        
    
        
        
            
                "start_datetime": new Date('2026-06-08T08:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2026-08-14T17:00:00Z'),
            
        
    
        
        
            
                "day_camp_hours": "8:00 AM - 5:00 PM",
            
        
    
        
        
            
                "third_shift_hours": "5:30 PM - 10:00 PM",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Leadership Lab Mini Session",
            
        
    
        
        
            
                "theme_title": "Leadership and Purpose",
            
        
    
        
        
            
                "theme_summary": "Short leadership-focused program for middle and high school students.",
            
        
    
        
        
            
                "theme_scripture_reference": "1 Timothy 4:12 KJV",
            
        
    
        
        
            
                "theme_scripture_text": "Let no man despise thy youth; but be thou an example.",
            
        
    
        
        
            
                "start_datetime": new Date('2025-07-14T09:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2025-07-18T17:00:00Z'),
            
        
    
        
        
            
                "day_camp_hours": "9:00 AM - 5:00 PM",
            
        
    
        
        
            
                "third_shift_hours": "5:30 PM - 9:00 PM",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "STEM and Creation Week Intensive",
            
        
    
        
        
            
                "theme_title": "STEM and Creation Week",
            
        
    
        
        
            
                "theme_summary": "Hands-on building and STEM projects with faith-based lessons.",
            
        
    
        
        
            
                "theme_scripture_reference": "Psalm 139:14 KJV",
            
        
    
        
        
            
                "theme_scripture_text": "I am fearfully and wonderfully made.",
            
        
    
        
        
            
                "start_datetime": new Date('2025-07-21T09:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2025-07-25T17:00:00Z'),
            
        
    
        
        
            
                "day_camp_hours": "9:00 AM - 5:00 PM",
            
        
    
        
        
            
                "third_shift_hours": "5:30 PM - 9:30 PM",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
];



const AgeGroupsData = [
    
    {
    
        
        
            
                "name": "K-2 Lower Elementary",
            
        
    
        
        
            
                "min_grade": 0,
            
        
    
        
        
            
                "max_grade": 2,
            
        
    
        
        
            
                "theme_scripture_reference": "Matthew 5:16 KJV",
            
        
    
        
        
            
                "theme_scripture_text": "Let your light so shine before men.",
            
        
    
        
        
            
                "focus_summary": "Kindness, shining Gods light, and learning to make good choices.",
            
        
    
    },
    
    {
    
        
        
            
                "name": "3-5 Upper Elementary",
            
        
    
        
        
            
                "min_grade": 3,
            
        
    
        
        
            
                "max_grade": 5,
            
        
    
        
        
            
                "theme_scripture_reference": "Psalm 139:14 KJV",
            
        
    
        
        
            
                "theme_scripture_text": "I am fearfully and wonderfully made.",
            
        
    
        
        
            
                "focus_summary": "Identity, confidence, and knowing God made you with purpose.",
            
        
    
    },
    
    {
    
        
        
            
                "name": "6-8 Middle School",
            
        
    
        
        
            
                "min_grade": 6,
            
        
    
        
        
            
                "max_grade": 8,
            
        
    
        
        
            
                "theme_scripture_reference": "1 Timothy 4:12 KJV",
            
        
    
        
        
            
                "theme_scripture_text": "Be thou an example of the believers.",
            
        
    
        
        
            
                "focus_summary": "Leadership, godly behavior, and resisting peer pressure.",
            
        
    
    },
    
    {
    
        
        
            
                "name": "9-12 High School",
            
        
    
        
        
            
                "min_grade": 9,
            
        
    
        
        
            
                "max_grade": 12,
            
        
    
        
        
            
                "theme_scripture_reference": "Ephesians 2:10 KJV",
            
        
    
        
        
            
                "theme_scripture_text": "For we are his workmanship, created for good works.",
            
        
    
        
        
            
                "focus_summary": "Calling, destiny, and preparing for adulthood in Christ.",
            
        
    
    },
    
];



const WeeklyThemesData = [
    
    {
    
        
        
            
                "week_number": 1,
            
        
    
        
        
            
                "title": "Identity Week",
            
        
    
        
        
            
                "tagline": "Who God Says I Am",
            
        
    
        
        
            
                "start_datetime": new Date('2025-06-09T00:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2025-06-13T23:59:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "week_number": 2,
            
        
    
        
        
            
                "title": "Faith Builders Week",
            
        
    
        
        
            
                "tagline": "Building Strong Faith Daily",
            
        
    
        
        
            
                "start_datetime": new Date('2025-06-16T00:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2025-06-20T23:59:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "week_number": 3,
            
        
    
        
        
            
                "title": "Bible Heroes Week",
            
        
    
        
        
            
                "tagline": "Learning from Examples",
            
        
    
        
        
            
                "start_datetime": new Date('2025-06-23T00:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2025-06-27T23:59:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "week_number": 4,
            
        
    
        
        
            
                "title": "Purpose Week",
            
        
    
        
        
            
                "tagline": "Built for This",
            
        
    
        
        
            
                "start_datetime": new Date('2025-06-30T00:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2025-07-04T23:59:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PricingPlansData = [
    
    {
    
        
        
            
                "name": "Standard Day Camp",
            
        
    
        
        
            
                "plan_type": "late_shift_only",
            
        
    
        
        
            
                "monthly_tuition": 100,
            
        
    
        
        
            
                "included_summary": "Full day program with breakfast and lunch included.",
            
        
    
        
        
            
                "includes_dinner": true,
            
        
    
        
        
            
                "includes_pickup": false,
            
        
    
        
        
            
                "includes_dropoff": true,
            
        
    
        
        
            
                "includes_third_shift": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Pick-Up and Drop-Off Only",
            
        
    
        
        
            
                "plan_type": "pickup_dropoff_only",
            
        
    
        
        
            
                "monthly_tuition": 110,
            
        
    
        
        
            
                "included_summary": "Transportation support for working parents. Replaces standard rate.",
            
        
    
        
        
            
                "includes_dinner": true,
            
        
    
        
        
            
                "includes_pickup": true,
            
        
    
        
        
            
                "includes_dropoff": true,
            
        
    
        
        
            
                "includes_third_shift": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Late Shift Only",
            
        
    
        
        
            
                "plan_type": "combined_package",
            
        
    
        
        
            
                "monthly_tuition": 130,
            
        
    
        
        
            
                "included_summary": "Evening care with dinner and enrichment. Replaces standard rate.",
            
        
    
        
        
            
                "includes_dinner": true,
            
        
    
        
        
            
                "includes_pickup": true,
            
        
    
        
        
            
                "includes_dropoff": true,
            
        
    
        
        
            
                "includes_third_shift": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Combined Package",
            
        
    
        
        
            
                "plan_type": "late_shift_only",
            
        
    
        
        
            
                "monthly_tuition": 150,
            
        
    
        
        
            
                "included_summary": "Pickup, drop-off, dinner, full day, and third shift care. Replaces standard rate.",
            
        
    
        
        
            
                "includes_dinner": true,
            
        
    
        
        
            
                "includes_pickup": true,
            
        
    
        
        
            
                "includes_dropoff": true,
            
        
    
        
        
            
                "includes_third_shift": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const FeeRulesData = [
    
    {
    
        
        
            
                "name": "Application Fee",
            
        
    
        
        
            
                "fee_kind": "application_fee",
            
        
    
        
        
            
                "amount": 50,
            
        
    
        
        
            
                "waiver_first_n": 15,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Application Fee 2026",
            
        
    
        
        
            
                "fee_kind": "application_fee",
            
        
    
        
        
            
                "amount": 50,
            
        
    
        
        
            
                "waiver_first_n": 15,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Application Fee Mini Session",
            
        
    
        
        
            
                "fee_kind": "application_fee",
            
        
    
        
        
            
                "amount": 25,
            
        
    
        
        
            
                "waiver_first_n": 10,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Application Fee STEM Intensive",
            
        
    
        
        
            
                "fee_kind": "application_fee",
            
        
    
        
        
            
                "amount": 25,
            
        
    
        
        
            
                "waiver_first_n": 10,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const GuardiansData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "primary_phone": "7045550188",
            
        
    
        
        
            
                "secondary_phone": "7045550189",
            
        
    
        
        
            
                "address_line1": "4821 Park South Station Blvd",
            
        
    
        
        
            
                "city": "Charlotte",
            
        
    
        
        
            
                "state": "NC",
            
        
    
        
        
            
                "postal_code": "28210",
            
        
    
        
        
            
                "emergency_contact_name": "Monique Johnson",
            
        
    
        
        
            
                "emergency_contact_phone": "7045550190",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "primary_phone": "7045550101",
            
        
    
        
        
            
                "secondary_phone": "7045550191",
            
        
    
        
        
            
                "address_line1": "2100 Freedom Dr",
            
        
    
        
        
            
                "city": "Charlotte",
            
        
    
        
        
            
                "state": "NC",
            
        
    
        
        
            
                "postal_code": "28208",
            
        
    
        
        
            
                "emergency_contact_name": "Kevin Henderson",
            
        
    
        
        
            
                "emergency_contact_phone": "7045550192",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "primary_phone": "7045550102",
            
        
    
        
        
            
                "secondary_phone": "7045550193",
            
        
    
        
        
            
                "address_line1": "901 N Tryon St",
            
        
    
        
        
            
                "city": "Charlotte",
            
        
    
        
        
            
                "state": "NC",
            
        
    
        
        
            
                "postal_code": "28206",
            
        
    
        
        
            
                "emergency_contact_name": "Renee Reed",
            
        
    
        
        
            
                "emergency_contact_phone": "7045550194",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "primary_phone": "7045550103",
            
        
    
        
        
            
                "secondary_phone": "7045550195",
            
        
    
        
        
            
                "address_line1": "3300 Wilkinson Blvd",
            
        
    
        
        
            
                "city": "Charlotte",
            
        
    
        
        
            
                "state": "NC",
            
        
    
        
        
            
                "postal_code": "28208",
            
        
    
        
        
            
                "emergency_contact_name": "Sharon Brooks",
            
        
    
        
        
            
                "emergency_contact_phone": "7045550196",
            
        
    
    },
    
];



const CampersData = [
    
    {
    
        
        
            
                "first_name": "Jordan",
            
        
    
        
        
            
                "last_name": "Johnson",
            
        
    
        
        
            
                "date_of_birth": new Date('2016-03-12T00:00:00Z'),
            
        
    
        
        
            
                "grade_level": 3,
            
        
    
        
        
            
                "gender": "female",
            
        
    
        
        
            
                "allergies": "Peanuts",
            
        
    
        
        
            
                "medical_notes": "Carries epinephrine auto-injector",
            
        
    
        
        
            
                "special_needs_notes": "None",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "first_name": "Mia",
            
        
    
        
        
            
                "last_name": "Johnson",
            
        
    
        
        
            
                "date_of_birth": new Date('2019-09-28T00:00:00Z'),
            
        
    
        
        
            
                "grade_level": 0,
            
        
    
        
        
            
                "gender": "male",
            
        
    
        
        
            
                "allergies": "None",
            
        
    
        
        
            
                "medical_notes": "None",
            
        
    
        
        
            
                "special_needs_notes": "Needs reminders for restroom breaks",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "first_name": "Caleb",
            
        
    
        
        
            
                "last_name": "Henderson",
            
        
    
        
        
            
                "date_of_birth": new Date('2013-05-05T00:00:00Z'),
            
        
    
        
        
            
                "grade_level": 6,
            
        
    
        
        
            
                "gender": "female",
            
        
    
        
        
            
                "allergies": "Dairy sensitivity",
            
        
    
        
        
            
                "medical_notes": "Lactose intolerance",
            
        
    
        
        
            
                "special_needs_notes": "None",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "first_name": "Ava",
            
        
    
        
        
            
                "last_name": "Reed",
            
        
    
        
        
            
                "date_of_birth": new Date('2010-11-17T00:00:00Z'),
            
        
    
        
        
            
                "grade_level": 9,
            
        
    
        
        
            
                "gender": "female",
            
        
    
        
        
            
                "allergies": "None",
            
        
    
        
        
            
                "medical_notes": "Uses inhaler as needed",
            
        
    
        
        
            
                "special_needs_notes": "Asthma action plan on file",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const EnrollmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_datetime": new Date('2025-05-10T14:30:00Z'),
            
        
    
        
        
            
                "status": "waitlisted",
            
        
    
        
        
            
                "application_fee_waived": true,
            
        
    
        
        
            
                "notes": "Interested in STEM rotation",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_datetime": new Date('2025-05-12T16:10:00Z'),
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "application_fee_waived": false,
            
        
    
        
        
            
                "notes": "Needs early pickup coordination",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_datetime": new Date('2025-05-15T13:05:00Z'),
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "application_fee_waived": true,
            
        
    
        
        
            
                "notes": "Will attend third shift most days",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_datetime": new Date('2025-05-18T18:45:00Z'),
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "application_fee_waived": false,
            
        
    
        
        
            
                "notes": "Prefers leadership lab activities",
            
        
    
    },
    
];



const PaymentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_kind": "end_of_summer_trip",
            
        
    
        
        
            
                "amount": 0,
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "method": "online",
            
        
    
        
        
            
                "reference_code": "APP-2025-0001",
            
        
    
        
        
            
                "due_datetime": new Date('2025-05-10T23:59:00Z'),
            
        
    
        
        
            
                "paid_datetime": new Date('2025-05-10T14:35:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_kind": "special_trip",
            
        
    
        
        
            
                "amount": 50,
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "method": "cash",
            
        
    
        
        
            
                "reference_code": "APP-2025-0002",
            
        
    
        
        
            
                "due_datetime": new Date('2025-05-12T23:59:00Z'),
            
        
    
        
        
            
                "paid_datetime": new Date('2025-05-12T16:12:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_kind": "end_of_summer_trip",
            
        
    
        
        
            
                "amount": 150,
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "method": "cash",
            
        
    
        
        
            
                "reference_code": "TUITION-2025-0002-06",
            
        
    
        
        
            
                "due_datetime": new Date('2025-06-01T00:00:00Z'),
            
        
    
        
        
            
                "paid_datetime": new Date('2025-06-01T12:00:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_kind": "field_trip",
            
        
    
        
        
            
                "amount": 130,
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "method": "card",
            
        
    
        
        
            
                "reference_code": "TUITION-2025-0003-06",
            
        
    
        
        
            
                "due_datetime": new Date('2025-06-01T00:00:00Z'),
            
        
    
        
        
            
                "paid_datetime": new Date('2025-06-02T00:00:00Z'),
            
        
    
    },
    
];



const WaiverDocumentsData = [
    
    {
    
        
        
            
                "title": "General Liability Waiver",
            
        
    
        
        
            
                "document_type": "media_release",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_required": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Media Release Form",
            
        
    
        
        
            
                "document_type": "medical_consent",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_required": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Medical Consent Form",
            
        
    
        
        
            
                "document_type": "behavior_agreement",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_required": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Behavior Agreement",
            
        
    
        
        
            
                "document_type": "media_release",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_required": true,
            
        
    
    },
    
];



const DocumentSignaturesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "required",
            
        
    
        
        
            
                "signed_datetime": new Date('2025-05-10T14:40:00Z'),
            
        
    
        
        
            
                "signature_name": "Alicia Johnson",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "declined",
            
        
    
        
        
            
                "signed_datetime": new Date('2025-05-10T14:41:00Z'),
            
        
    
        
        
            
                "signature_name": "Alicia Johnson",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "required",
            
        
    
        
        
            
                "signed_datetime": new Date('2025-05-12T16:20:00Z'),
            
        
    
        
        
            
                "signature_name": "Alicia Johnson",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "signed",
            
        
    
        
        
            
                "signed_datetime": new Date('2025-05-15T00:00:00Z'),
            
        
    
        
        
            
                "signature_name": "Danielle Henderson",
            
        
    
    },
    
];



const FieldTripCatalogData = [
    
    {
    
        
        
            
                "name": "Anne Springs Close Greenway",
            
        
    
        
        
            
                "category": "educational_environmental",
            
        
    
        
        
            
                "location_name": "Fort Mill SC",
            
        
    
        
        
            
                "grade_range": "K-12",
            
        
    
        
        
            
                "typical_min_rate": 0,
            
        
    
        
        
            
                "typical_max_rate": 6,
            
        
    
        
        
            
                "separate_payment_required": false,
            
        
    
        
        
            
                "notes": "Nature trails and environmental education options",
            
        
    
    },
    
    {
    
        
        
            
                "name": "McDowell Nature Preserve",
            
        
    
        
        
            
                "category": "educational_environmental",
            
        
    
        
        
            
                "location_name": "Charlotte NC",
            
        
    
        
        
            
                "grade_range": "K-12",
            
        
    
        
        
            
                "typical_min_rate": 0,
            
        
    
        
        
            
                "typical_max_rate": 0,
            
        
    
        
        
            
                "separate_payment_required": true,
            
        
    
        
        
            
                "notes": "Free outdoor learning and recreation",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Discovery Place Nature",
            
        
    
        
        
            
                "category": "zoo",
            
        
    
        
        
            
                "location_name": "Charlotte NC",
            
        
    
        
        
            
                "grade_range": "K-8",
            
        
    
        
        
            
                "typical_min_rate": 12,
            
        
    
        
        
            
                "typical_max_rate": 18,
            
        
    
        
        
            
                "separate_payment_required": true,
            
        
    
        
        
            
                "notes": "Hands-on exhibits and animal encounters",
            
        
    
    },
    
    {
    
        
        
            
                "name": "North Carolina Zoo",
            
        
    
        
        
            
                "category": "stem_learning",
            
        
    
        
        
            
                "location_name": "Greensboro NC",
            
        
    
        
        
            
                "grade_range": "K-12",
            
        
    
        
        
            
                "typical_min_rate": 10,
            
        
    
        
        
            
                "typical_max_rate": 15,
            
        
    
        
        
            
                "separate_payment_required": true,
            
        
    
        
        
            
                "notes": "Group rates available with advance booking",
            
        
    
    },
    
];



const FieldTripEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "depart_datetime": new Date('2025-06-10T13:00:00Z'),
            
        
    
        
        
            
                "return_datetime": new Date('2025-06-10T16:30:00Z'),
            
        
    
        
        
            
                "price_per_student": 0,
            
        
    
        
        
            
                "capacity": 40,
            
        
    
        
        
            
                "status": "open",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "depart_datetime": new Date('2025-06-12T13:00:00Z'),
            
        
    
        
        
            
                "return_datetime": new Date('2025-06-12T17:00:00Z'),
            
        
    
        
        
            
                "price_per_student": 5,
            
        
    
        
        
            
                "capacity": 45,
            
        
    
        
        
            
                "status": "full",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "depart_datetime": new Date('2025-06-17T13:15:00Z'),
            
        
    
        
        
            
                "return_datetime": new Date('2025-06-17T16:45:00Z'),
            
        
    
        
        
            
                "price_per_student": 15,
            
        
    
        
        
            
                "capacity": 35,
            
        
    
        
        
            
                "status": "full",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "depart_datetime": new Date('2025-06-18T09:00:00Z'),
            
        
    
        
        
            
                "return_datetime": new Date('2025-06-18T18:00:00Z'),
            
        
    
        
        
            
                "price_per_student": 12,
            
        
    
        
        
            
                "capacity": 50,
            
        
    
        
        
            
                "status": "planned",
            
        
    
    },
    
];



const TripRegistrationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "permission_granted": true,
            
        
    
        
        
            
                "registered_datetime": new Date('2025-06-01T10:00:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "permission_granted": true,
            
        
    
        
        
            
                "registered_datetime": new Date('2025-06-01T10:05:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "permission_granted": true,
            
        
    
        
        
            
                "registered_datetime": new Date('2025-06-05T15:30:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "permission_granted": true,
            
        
    
        
        
            
                "registered_datetime": new Date('2025-06-07T12:20:00Z'),
            
        
    
    },
    
];



const SpecialTripsData = [
    
    {
    
        
        
            
                "name": "State AIM Trip",
            
        
    
        
        
            
                "trip_type": "national_aim",
            
        
    
        
        
            
                "destination": "Wendell NC",
            
        
    
        
        
            
                "start_datetime": new Date('2025-07-24T08:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2025-07-26T20:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "package_notes": "Package details to be shared with families once finalized.",
            
        
    
        
        
            
                "separate_payment_required": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "National AIM Trip",
            
        
    
        
        
            
                "trip_type": "state_aim",
            
        
    
        
        
            
                "destination": "Baltimore MD",
            
        
    
        
        
            
                "start_datetime": new Date('2026-07-06T08:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2026-07-10T20:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "package_notes": "Travel package will include lodging, meals, and transportation details.",
            
        
    
        
        
            
                "separate_payment_required": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "State AIM Planning Meeting",
            
        
    
        
        
            
                "trip_type": "state_aim",
            
        
    
        
        
            
                "destination": "Charlotte NC",
            
        
    
        
        
            
                "start_datetime": new Date('2025-06-28T14:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2025-06-28T15:30:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "package_notes": "Family meeting to review expectations and paperwork.",
            
        
    
        
        
            
                "separate_payment_required": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "National AIM Interest List",
            
        
    
        
        
            
                "trip_type": "state_aim",
            
        
    
        
        
            
                "destination": "Baltimore MD",
            
        
    
        
        
            
                "start_datetime": new Date('2026-03-01T00:00:00Z'),
            
        
    
        
        
            
                "end_datetime": new Date('2026-03-31T23:59:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "package_notes": "Sign up to receive updates and package pricing.",
            
        
    
        
        
            
                "separate_payment_required": true,
            
        
    
    },
    
];



const EndOfSummerTripOptionsData = [
    
    {
    
        
        
            
                "name": "Charleston Beach Day Trip",
            
        
    
        
        
            
                "option_type": "day_trip",
            
        
    
        
        
            
                "destination": "Charleston SC",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "estimated_price": 60,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Wilmington Beach Day Trip",
            
        
    
        
        
            
                "option_type": "day_trip",
            
        
    
        
        
            
                "destination": "Wilmington NC",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "estimated_price": 55,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Washington DC Day Trip",
            
        
    
        
        
            
                "option_type": "overnight",
            
        
    
        
        
            
                "destination": "Washington DC",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "estimated_price": 75,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Washington DC Overnight",
            
        
    
        
        
            
                "option_type": "overnight",
            
        
    
        
        
            
                "destination": "Washington DC",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "estimated_price": 150,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const EndOfSummerTripSelectionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "selected_datetime": new Date('2025-06-15T12:00:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "selected_datetime": new Date('2025-06-16T15:10:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "selected",
            
        
    
        
        
            
                "selected_datetime": new Date('2025-06-20T09:00:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "selected_datetime": new Date('2025-06-22T18:30:00Z'),
            
        
    
    },
    
];



const ActivityBlocksData = [
    
    {
    
        
        
            
                "name": "Morning Devotion",
            
        
    
        
        
            
                "program_shift": "third_shift",
            
        
    
        
        
            
                "block_start_datetime": new Date('2025-06-09T12:30:00Z'),
            
        
    
        
        
            
                "block_end_datetime": new Date('2025-06-09T13:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "block_type": "pickup_dropoff",
            
        
    
        
        
            
                "details": "Worship, prayer, scripture reading, short lesson",
            
        
    
    },
    
    {
    
        
        
            
                "name": "K-2 Math",
            
        
    
        
        
            
                "program_shift": "day_camp",
            
        
    
        
        
            
                "block_start_datetime": new Date('2025-06-09T13:00:00Z'),
            
        
    
        
        
            
                "block_end_datetime": new Date('2025-06-09T13:45:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "block_type": "meal",
            
        
    
        
        
            
                "details": "Foundations and number sense",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Arts and Skills Rotation",
            
        
    
        
        
            
                "program_shift": "day_camp",
            
        
    
        
        
            
                "block_start_datetime": new Date('2025-06-09T17:00:00Z'),
            
        
    
        
        
            
                "block_end_datetime": new Date('2025-06-09T18:30:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "block_type": "bible_study",
            
        
    
        
        
            
                "details": "Painting, cooking, STEM building, drama, choir",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Third Shift Dinner",
            
        
    
        
        
            
                "program_shift": "third_shift",
            
        
    
        
        
            
                "block_start_datetime": new Date('2025-06-09T21:30:00Z'),
            
        
    
        
        
            
                "block_end_datetime": new Date('2025-06-09T22:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "block_type": "pickup_dropoff",
            
        
    
        
        
            
                "details": "Dinner served for third shift students",
            
        
    
    },
    
];



const CurriculumSubjectsData = [
    
    {
    
        
        
            
                "name": "Mathematics",
            
        
    
        
        
            
                "subject_type": "music",
            
        
    
        
        
            
                "description": "Core math instruction aligned to grade-level skills.",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "English Language Arts",
            
        
    
        
        
            
                "subject_type": "arts",
            
        
    
        
        
            
                "description": "Reading, writing, comprehension, and vocabulary development.",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Spanish",
            
        
    
        
        
            
                "subject_type": "choir",
            
        
    
        
        
            
                "description": "Introductory Spanish with conversational practice.",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Building and STEM",
            
        
    
        
        
            
                "subject_type": "ela",
            
        
    
        
        
            
                "description": "Hands-on building projects and STEM challenges.",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const StaffAssignmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assignment_role": "counselor",
            
        
    
        
        
            
                "notes": "Math lead for grades 3-5",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assignment_role": "teacher",
            
        
    
        
        
            
                "notes": "Support for devotion and classroom transitions",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assignment_role": "driver",
            
        
    
        
        
            
                "notes": "Spanish sessions for middle school",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assignment_role": "volunteer",
            
        
    
        
        
            
                "notes": "Coordinates daily devotion and announcements",
            
        
    
    },
    
];



const AnnouncementsData = [
    
    {
    
        
        
            
                "title": "Welcome to Relentless Generation Camp",
            
        
    
        
        
            
                "message": "We are excited to serve families this summer. Please complete registration, payments, and required forms.",
            
        
    
        
        
            
                "audience": "grades_3_5",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "publish_datetime": new Date('2025-05-01T12:00:00Z'),
            
        
    
        
        
            
                "expire_datetime": new Date('2025-06-30T23:59:00Z'),
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Field Trip Permission Reminder",
            
        
    
        
        
            
                "message": "Please sign the field trip permission slip in your parent portal before the first trip.",
            
        
    
        
        
            
                "audience": "grades_6_12",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "publish_datetime": new Date('2025-06-01T12:00:00Z'),
            
        
    
        
        
            
                "expire_datetime": new Date('2025-06-12T23:59:00Z'),
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Tuition Due Date",
            
        
    
        
        
            
                "message": "Monthly tuition is due by the first of each month. Contact finance for assistance if needed.",
            
        
    
        
        
            
                "audience": "grades_6_12",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "publish_datetime": new Date('2025-05-25T12:00:00Z'),
            
        
    
        
        
            
                "expire_datetime": new Date('2025-08-01T00:00:00Z'),
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Staff Meeting Schedule",
            
        
    
        
        
            
                "message": "Weekly staff meeting every Monday at 7:15 AM in the main hall.",
            
        
    
        
        
            
                "audience": "all",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "publish_datetime": new Date('2025-06-03T12:00:00Z'),
            
        
    
        
        
            
                "expire_datetime": new Date('2025-08-14T23:59:00Z'),
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCampSessionWithCampu() {
            
                const relatedCampu0 = await Campuses.findOne({
                    offset: Math.floor(Math.random() * (await Campuses.count())),
                });
                const CampSession0 = await CampSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CampSession0?.setCampu)
                {
                    await
                    CampSession0.
                    setCampu(relatedCampu0);
                }
            
                const relatedCampu1 = await Campuses.findOne({
                    offset: Math.floor(Math.random() * (await Campuses.count())),
                });
                const CampSession1 = await CampSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CampSession1?.setCampu)
                {
                    await
                    CampSession1.
                    setCampu(relatedCampu1);
                }
            
                const relatedCampu2 = await Campuses.findOne({
                    offset: Math.floor(Math.random() * (await Campuses.count())),
                });
                const CampSession2 = await CampSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CampSession2?.setCampu)
                {
                    await
                    CampSession2.
                    setCampu(relatedCampu2);
                }
            
                const relatedCampu3 = await Campuses.findOne({
                    offset: Math.floor(Math.random() * (await Campuses.count())),
                });
                const CampSession3 = await CampSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CampSession3?.setCampu)
                {
                    await
                    CampSession3.
                    setCampu(relatedCampu3);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateWeeklyThemeWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const WeeklyTheme0 = await WeeklyThemes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WeeklyTheme0?.setCamp_session)
                {
                    await
                    WeeklyTheme0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const WeeklyTheme1 = await WeeklyThemes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WeeklyTheme1?.setCamp_session)
                {
                    await
                    WeeklyTheme1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const WeeklyTheme2 = await WeeklyThemes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WeeklyTheme2?.setCamp_session)
                {
                    await
                    WeeklyTheme2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const WeeklyTheme3 = await WeeklyThemes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WeeklyTheme3?.setCamp_session)
                {
                    await
                    WeeklyTheme3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePricingPlanWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const PricingPlan0 = await PricingPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PricingPlan0?.setCamp_session)
                {
                    await
                    PricingPlan0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const PricingPlan1 = await PricingPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PricingPlan1?.setCamp_session)
                {
                    await
                    PricingPlan1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const PricingPlan2 = await PricingPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PricingPlan2?.setCamp_session)
                {
                    await
                    PricingPlan2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const PricingPlan3 = await PricingPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PricingPlan3?.setCamp_session)
                {
                    await
                    PricingPlan3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateFeeRuleWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const FeeRule0 = await FeeRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FeeRule0?.setCamp_session)
                {
                    await
                    FeeRule0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const FeeRule1 = await FeeRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FeeRule1?.setCamp_session)
                {
                    await
                    FeeRule1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const FeeRule2 = await FeeRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FeeRule2?.setCamp_session)
                {
                    await
                    FeeRule2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const FeeRule3 = await FeeRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FeeRule3?.setCamp_session)
                {
                    await
                    FeeRule3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateGuardianWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Guardian0 = await Guardians.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Guardian0?.setUser)
                {
                    await
                    Guardian0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Guardian1 = await Guardians.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Guardian1?.setUser)
                {
                    await
                    Guardian1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Guardian2 = await Guardians.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Guardian2?.setUser)
                {
                    await
                    Guardian2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Guardian3 = await Guardians.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Guardian3?.setUser)
                {
                    await
                    Guardian3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCamperWithPrimary_guardian() {
            
                const relatedPrimary_guardian0 = await Guardians.findOne({
                    offset: Math.floor(Math.random() * (await Guardians.count())),
                });
                const Camper0 = await Campers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Camper0?.setPrimary_guardian)
                {
                    await
                    Camper0.
                    setPrimary_guardian(relatedPrimary_guardian0);
                }
            
                const relatedPrimary_guardian1 = await Guardians.findOne({
                    offset: Math.floor(Math.random() * (await Guardians.count())),
                });
                const Camper1 = await Campers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Camper1?.setPrimary_guardian)
                {
                    await
                    Camper1.
                    setPrimary_guardian(relatedPrimary_guardian1);
                }
            
                const relatedPrimary_guardian2 = await Guardians.findOne({
                    offset: Math.floor(Math.random() * (await Guardians.count())),
                });
                const Camper2 = await Campers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Camper2?.setPrimary_guardian)
                {
                    await
                    Camper2.
                    setPrimary_guardian(relatedPrimary_guardian2);
                }
            
                const relatedPrimary_guardian3 = await Guardians.findOne({
                    offset: Math.floor(Math.random() * (await Guardians.count())),
                });
                const Camper3 = await Campers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Camper3?.setPrimary_guardian)
                {
                    await
                    Camper3.
                    setPrimary_guardian(relatedPrimary_guardian3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateEnrollmentWithCamper() {
            
                const relatedCamper0 = await Campers.findOne({
                    offset: Math.floor(Math.random() * (await Campers.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setCamper)
                {
                    await
                    Enrollment0.
                    setCamper(relatedCamper0);
                }
            
                const relatedCamper1 = await Campers.findOne({
                    offset: Math.floor(Math.random() * (await Campers.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setCamper)
                {
                    await
                    Enrollment1.
                    setCamper(relatedCamper1);
                }
            
                const relatedCamper2 = await Campers.findOne({
                    offset: Math.floor(Math.random() * (await Campers.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setCamper)
                {
                    await
                    Enrollment2.
                    setCamper(relatedCamper2);
                }
            
                const relatedCamper3 = await Campers.findOne({
                    offset: Math.floor(Math.random() * (await Campers.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setCamper)
                {
                    await
                    Enrollment3.
                    setCamper(relatedCamper3);
                }
            
        }
        
    
        
            
            async function associateEnrollmentWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setCamp_session)
                {
                    await
                    Enrollment0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setCamp_session)
                {
                    await
                    Enrollment1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setCamp_session)
                {
                    await
                    Enrollment2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setCamp_session)
                {
                    await
                    Enrollment3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
            
            async function associateEnrollmentWithPricing_plan() {
            
                const relatedPricing_plan0 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setPricing_plan)
                {
                    await
                    Enrollment0.
                    setPricing_plan(relatedPricing_plan0);
                }
            
                const relatedPricing_plan1 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setPricing_plan)
                {
                    await
                    Enrollment1.
                    setPricing_plan(relatedPricing_plan1);
                }
            
                const relatedPricing_plan2 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setPricing_plan)
                {
                    await
                    Enrollment2.
                    setPricing_plan(relatedPricing_plan2);
                }
            
                const relatedPricing_plan3 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setPricing_plan)
                {
                    await
                    Enrollment3.
                    setPricing_plan(relatedPricing_plan3);
                }
            
        }
        
    
        
            
            async function associateEnrollmentWithAge_group() {
            
                const relatedAge_group0 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setAge_group)
                {
                    await
                    Enrollment0.
                    setAge_group(relatedAge_group0);
                }
            
                const relatedAge_group1 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setAge_group)
                {
                    await
                    Enrollment1.
                    setAge_group(relatedAge_group1);
                }
            
                const relatedAge_group2 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setAge_group)
                {
                    await
                    Enrollment2.
                    setAge_group(relatedAge_group2);
                }
            
                const relatedAge_group3 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setAge_group)
                {
                    await
                    Enrollment3.
                    setAge_group(relatedAge_group3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePaymentWithEnrollment() {
            
                const relatedEnrollment0 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setEnrollment)
                {
                    await
                    Payment0.
                    setEnrollment(relatedEnrollment0);
                }
            
                const relatedEnrollment1 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setEnrollment)
                {
                    await
                    Payment1.
                    setEnrollment(relatedEnrollment1);
                }
            
                const relatedEnrollment2 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setEnrollment)
                {
                    await
                    Payment2.
                    setEnrollment(relatedEnrollment2);
                }
            
                const relatedEnrollment3 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setEnrollment)
                {
                    await
                    Payment3.
                    setEnrollment(relatedEnrollment3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateWaiverDocumentWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const WaiverDocument0 = await WaiverDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WaiverDocument0?.setCamp_session)
                {
                    await
                    WaiverDocument0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const WaiverDocument1 = await WaiverDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WaiverDocument1?.setCamp_session)
                {
                    await
                    WaiverDocument1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const WaiverDocument2 = await WaiverDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WaiverDocument2?.setCamp_session)
                {
                    await
                    WaiverDocument2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const WaiverDocument3 = await WaiverDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WaiverDocument3?.setCamp_session)
                {
                    await
                    WaiverDocument3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateDocumentSignatureWithWaiver_document() {
            
                const relatedWaiver_document0 = await WaiverDocuments.findOne({
                    offset: Math.floor(Math.random() * (await WaiverDocuments.count())),
                });
                const DocumentSignature0 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentSignature0?.setWaiver_document)
                {
                    await
                    DocumentSignature0.
                    setWaiver_document(relatedWaiver_document0);
                }
            
                const relatedWaiver_document1 = await WaiverDocuments.findOne({
                    offset: Math.floor(Math.random() * (await WaiverDocuments.count())),
                });
                const DocumentSignature1 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentSignature1?.setWaiver_document)
                {
                    await
                    DocumentSignature1.
                    setWaiver_document(relatedWaiver_document1);
                }
            
                const relatedWaiver_document2 = await WaiverDocuments.findOne({
                    offset: Math.floor(Math.random() * (await WaiverDocuments.count())),
                });
                const DocumentSignature2 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentSignature2?.setWaiver_document)
                {
                    await
                    DocumentSignature2.
                    setWaiver_document(relatedWaiver_document2);
                }
            
                const relatedWaiver_document3 = await WaiverDocuments.findOne({
                    offset: Math.floor(Math.random() * (await WaiverDocuments.count())),
                });
                const DocumentSignature3 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentSignature3?.setWaiver_document)
                {
                    await
                    DocumentSignature3.
                    setWaiver_document(relatedWaiver_document3);
                }
            
        }
        
    
        
            
            async function associateDocumentSignatureWithEnrollment() {
            
                const relatedEnrollment0 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const DocumentSignature0 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentSignature0?.setEnrollment)
                {
                    await
                    DocumentSignature0.
                    setEnrollment(relatedEnrollment0);
                }
            
                const relatedEnrollment1 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const DocumentSignature1 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentSignature1?.setEnrollment)
                {
                    await
                    DocumentSignature1.
                    setEnrollment(relatedEnrollment1);
                }
            
                const relatedEnrollment2 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const DocumentSignature2 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentSignature2?.setEnrollment)
                {
                    await
                    DocumentSignature2.
                    setEnrollment(relatedEnrollment2);
                }
            
                const relatedEnrollment3 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const DocumentSignature3 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentSignature3?.setEnrollment)
                {
                    await
                    DocumentSignature3.
                    setEnrollment(relatedEnrollment3);
                }
            
        }
        
    
        
            
            async function associateDocumentSignatureWithGuardian() {
            
                const relatedGuardian0 = await Guardians.findOne({
                    offset: Math.floor(Math.random() * (await Guardians.count())),
                });
                const DocumentSignature0 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentSignature0?.setGuardian)
                {
                    await
                    DocumentSignature0.
                    setGuardian(relatedGuardian0);
                }
            
                const relatedGuardian1 = await Guardians.findOne({
                    offset: Math.floor(Math.random() * (await Guardians.count())),
                });
                const DocumentSignature1 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentSignature1?.setGuardian)
                {
                    await
                    DocumentSignature1.
                    setGuardian(relatedGuardian1);
                }
            
                const relatedGuardian2 = await Guardians.findOne({
                    offset: Math.floor(Math.random() * (await Guardians.count())),
                });
                const DocumentSignature2 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentSignature2?.setGuardian)
                {
                    await
                    DocumentSignature2.
                    setGuardian(relatedGuardian2);
                }
            
                const relatedGuardian3 = await Guardians.findOne({
                    offset: Math.floor(Math.random() * (await Guardians.count())),
                });
                const DocumentSignature3 = await DocumentSignatures.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentSignature3?.setGuardian)
                {
                    await
                    DocumentSignature3.
                    setGuardian(relatedGuardian3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFieldTripEventWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const FieldTripEvent0 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FieldTripEvent0?.setCamp_session)
                {
                    await
                    FieldTripEvent0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const FieldTripEvent1 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FieldTripEvent1?.setCamp_session)
                {
                    await
                    FieldTripEvent1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const FieldTripEvent2 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FieldTripEvent2?.setCamp_session)
                {
                    await
                    FieldTripEvent2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const FieldTripEvent3 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FieldTripEvent3?.setCamp_session)
                {
                    await
                    FieldTripEvent3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
            
            async function associateFieldTripEventWithField_trip() {
            
                const relatedField_trip0 = await FieldTripCatalog.findOne({
                    offset: Math.floor(Math.random() * (await FieldTripCatalog.count())),
                });
                const FieldTripEvent0 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FieldTripEvent0?.setField_trip)
                {
                    await
                    FieldTripEvent0.
                    setField_trip(relatedField_trip0);
                }
            
                const relatedField_trip1 = await FieldTripCatalog.findOne({
                    offset: Math.floor(Math.random() * (await FieldTripCatalog.count())),
                });
                const FieldTripEvent1 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FieldTripEvent1?.setField_trip)
                {
                    await
                    FieldTripEvent1.
                    setField_trip(relatedField_trip1);
                }
            
                const relatedField_trip2 = await FieldTripCatalog.findOne({
                    offset: Math.floor(Math.random() * (await FieldTripCatalog.count())),
                });
                const FieldTripEvent2 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FieldTripEvent2?.setField_trip)
                {
                    await
                    FieldTripEvent2.
                    setField_trip(relatedField_trip2);
                }
            
                const relatedField_trip3 = await FieldTripCatalog.findOne({
                    offset: Math.floor(Math.random() * (await FieldTripCatalog.count())),
                });
                const FieldTripEvent3 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FieldTripEvent3?.setField_trip)
                {
                    await
                    FieldTripEvent3.
                    setField_trip(relatedField_trip3);
                }
            
        }
        
    
        
            
            async function associateFieldTripEventWithAge_group() {
            
                const relatedAge_group0 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const FieldTripEvent0 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FieldTripEvent0?.setAge_group)
                {
                    await
                    FieldTripEvent0.
                    setAge_group(relatedAge_group0);
                }
            
                const relatedAge_group1 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const FieldTripEvent1 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FieldTripEvent1?.setAge_group)
                {
                    await
                    FieldTripEvent1.
                    setAge_group(relatedAge_group1);
                }
            
                const relatedAge_group2 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const FieldTripEvent2 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FieldTripEvent2?.setAge_group)
                {
                    await
                    FieldTripEvent2.
                    setAge_group(relatedAge_group2);
                }
            
                const relatedAge_group3 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const FieldTripEvent3 = await FieldTripEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FieldTripEvent3?.setAge_group)
                {
                    await
                    FieldTripEvent3.
                    setAge_group(relatedAge_group3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTripRegistrationWithField_trip_event() {
            
                const relatedField_trip_event0 = await FieldTripEvents.findOne({
                    offset: Math.floor(Math.random() * (await FieldTripEvents.count())),
                });
                const TripRegistration0 = await TripRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TripRegistration0?.setField_trip_event)
                {
                    await
                    TripRegistration0.
                    setField_trip_event(relatedField_trip_event0);
                }
            
                const relatedField_trip_event1 = await FieldTripEvents.findOne({
                    offset: Math.floor(Math.random() * (await FieldTripEvents.count())),
                });
                const TripRegistration1 = await TripRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TripRegistration1?.setField_trip_event)
                {
                    await
                    TripRegistration1.
                    setField_trip_event(relatedField_trip_event1);
                }
            
                const relatedField_trip_event2 = await FieldTripEvents.findOne({
                    offset: Math.floor(Math.random() * (await FieldTripEvents.count())),
                });
                const TripRegistration2 = await TripRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TripRegistration2?.setField_trip_event)
                {
                    await
                    TripRegistration2.
                    setField_trip_event(relatedField_trip_event2);
                }
            
                const relatedField_trip_event3 = await FieldTripEvents.findOne({
                    offset: Math.floor(Math.random() * (await FieldTripEvents.count())),
                });
                const TripRegistration3 = await TripRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TripRegistration3?.setField_trip_event)
                {
                    await
                    TripRegistration3.
                    setField_trip_event(relatedField_trip_event3);
                }
            
        }
        
    
        
            
            async function associateTripRegistrationWithEnrollment() {
            
                const relatedEnrollment0 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const TripRegistration0 = await TripRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TripRegistration0?.setEnrollment)
                {
                    await
                    TripRegistration0.
                    setEnrollment(relatedEnrollment0);
                }
            
                const relatedEnrollment1 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const TripRegistration1 = await TripRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TripRegistration1?.setEnrollment)
                {
                    await
                    TripRegistration1.
                    setEnrollment(relatedEnrollment1);
                }
            
                const relatedEnrollment2 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const TripRegistration2 = await TripRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TripRegistration2?.setEnrollment)
                {
                    await
                    TripRegistration2.
                    setEnrollment(relatedEnrollment2);
                }
            
                const relatedEnrollment3 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const TripRegistration3 = await TripRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TripRegistration3?.setEnrollment)
                {
                    await
                    TripRegistration3.
                    setEnrollment(relatedEnrollment3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSpecialTripWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const SpecialTrip0 = await SpecialTrips.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SpecialTrip0?.setCamp_session)
                {
                    await
                    SpecialTrip0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const SpecialTrip1 = await SpecialTrips.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SpecialTrip1?.setCamp_session)
                {
                    await
                    SpecialTrip1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const SpecialTrip2 = await SpecialTrips.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SpecialTrip2?.setCamp_session)
                {
                    await
                    SpecialTrip2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const SpecialTrip3 = await SpecialTrips.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SpecialTrip3?.setCamp_session)
                {
                    await
                    SpecialTrip3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateEndOfSummerTripOptionWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const EndOfSummerTripOption0 = await EndOfSummerTripOptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EndOfSummerTripOption0?.setCamp_session)
                {
                    await
                    EndOfSummerTripOption0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const EndOfSummerTripOption1 = await EndOfSummerTripOptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EndOfSummerTripOption1?.setCamp_session)
                {
                    await
                    EndOfSummerTripOption1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const EndOfSummerTripOption2 = await EndOfSummerTripOptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EndOfSummerTripOption2?.setCamp_session)
                {
                    await
                    EndOfSummerTripOption2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const EndOfSummerTripOption3 = await EndOfSummerTripOptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EndOfSummerTripOption3?.setCamp_session)
                {
                    await
                    EndOfSummerTripOption3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateEndOfSummerTripSelectionWithEnrollment() {
            
                const relatedEnrollment0 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const EndOfSummerTripSelection0 = await EndOfSummerTripSelections.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EndOfSummerTripSelection0?.setEnrollment)
                {
                    await
                    EndOfSummerTripSelection0.
                    setEnrollment(relatedEnrollment0);
                }
            
                const relatedEnrollment1 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const EndOfSummerTripSelection1 = await EndOfSummerTripSelections.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EndOfSummerTripSelection1?.setEnrollment)
                {
                    await
                    EndOfSummerTripSelection1.
                    setEnrollment(relatedEnrollment1);
                }
            
                const relatedEnrollment2 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const EndOfSummerTripSelection2 = await EndOfSummerTripSelections.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EndOfSummerTripSelection2?.setEnrollment)
                {
                    await
                    EndOfSummerTripSelection2.
                    setEnrollment(relatedEnrollment2);
                }
            
                const relatedEnrollment3 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const EndOfSummerTripSelection3 = await EndOfSummerTripSelections.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EndOfSummerTripSelection3?.setEnrollment)
                {
                    await
                    EndOfSummerTripSelection3.
                    setEnrollment(relatedEnrollment3);
                }
            
        }
        
    
        
            
            async function associateEndOfSummerTripSelectionWithTrip_option() {
            
                const relatedTrip_option0 = await EndOfSummerTripOptions.findOne({
                    offset: Math.floor(Math.random() * (await EndOfSummerTripOptions.count())),
                });
                const EndOfSummerTripSelection0 = await EndOfSummerTripSelections.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EndOfSummerTripSelection0?.setTrip_option)
                {
                    await
                    EndOfSummerTripSelection0.
                    setTrip_option(relatedTrip_option0);
                }
            
                const relatedTrip_option1 = await EndOfSummerTripOptions.findOne({
                    offset: Math.floor(Math.random() * (await EndOfSummerTripOptions.count())),
                });
                const EndOfSummerTripSelection1 = await EndOfSummerTripSelections.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EndOfSummerTripSelection1?.setTrip_option)
                {
                    await
                    EndOfSummerTripSelection1.
                    setTrip_option(relatedTrip_option1);
                }
            
                const relatedTrip_option2 = await EndOfSummerTripOptions.findOne({
                    offset: Math.floor(Math.random() * (await EndOfSummerTripOptions.count())),
                });
                const EndOfSummerTripSelection2 = await EndOfSummerTripSelections.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EndOfSummerTripSelection2?.setTrip_option)
                {
                    await
                    EndOfSummerTripSelection2.
                    setTrip_option(relatedTrip_option2);
                }
            
                const relatedTrip_option3 = await EndOfSummerTripOptions.findOne({
                    offset: Math.floor(Math.random() * (await EndOfSummerTripOptions.count())),
                });
                const EndOfSummerTripSelection3 = await EndOfSummerTripSelections.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EndOfSummerTripSelection3?.setTrip_option)
                {
                    await
                    EndOfSummerTripSelection3.
                    setTrip_option(relatedTrip_option3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateActivityBlockWithAge_group() {
            
                const relatedAge_group0 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const ActivityBlock0 = await ActivityBlocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ActivityBlock0?.setAge_group)
                {
                    await
                    ActivityBlock0.
                    setAge_group(relatedAge_group0);
                }
            
                const relatedAge_group1 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const ActivityBlock1 = await ActivityBlocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ActivityBlock1?.setAge_group)
                {
                    await
                    ActivityBlock1.
                    setAge_group(relatedAge_group1);
                }
            
                const relatedAge_group2 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const ActivityBlock2 = await ActivityBlocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ActivityBlock2?.setAge_group)
                {
                    await
                    ActivityBlock2.
                    setAge_group(relatedAge_group2);
                }
            
                const relatedAge_group3 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const ActivityBlock3 = await ActivityBlocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ActivityBlock3?.setAge_group)
                {
                    await
                    ActivityBlock3.
                    setAge_group(relatedAge_group3);
                }
            
        }
        
    
        
            
            async function associateActivityBlockWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const ActivityBlock0 = await ActivityBlocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ActivityBlock0?.setCamp_session)
                {
                    await
                    ActivityBlock0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const ActivityBlock1 = await ActivityBlocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ActivityBlock1?.setCamp_session)
                {
                    await
                    ActivityBlock1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const ActivityBlock2 = await ActivityBlocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ActivityBlock2?.setCamp_session)
                {
                    await
                    ActivityBlock2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const ActivityBlock3 = await ActivityBlocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ActivityBlock3?.setCamp_session)
                {
                    await
                    ActivityBlock3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateStaffAssignmentWithStaff_user() {
            
                const relatedStaff_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StaffAssignment0 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StaffAssignment0?.setStaff_user)
                {
                    await
                    StaffAssignment0.
                    setStaff_user(relatedStaff_user0);
                }
            
                const relatedStaff_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StaffAssignment1 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StaffAssignment1?.setStaff_user)
                {
                    await
                    StaffAssignment1.
                    setStaff_user(relatedStaff_user1);
                }
            
                const relatedStaff_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StaffAssignment2 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StaffAssignment2?.setStaff_user)
                {
                    await
                    StaffAssignment2.
                    setStaff_user(relatedStaff_user2);
                }
            
                const relatedStaff_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StaffAssignment3 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StaffAssignment3?.setStaff_user)
                {
                    await
                    StaffAssignment3.
                    setStaff_user(relatedStaff_user3);
                }
            
        }
        
    
        
            
            async function associateStaffAssignmentWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const StaffAssignment0 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StaffAssignment0?.setCamp_session)
                {
                    await
                    StaffAssignment0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const StaffAssignment1 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StaffAssignment1?.setCamp_session)
                {
                    await
                    StaffAssignment1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const StaffAssignment2 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StaffAssignment2?.setCamp_session)
                {
                    await
                    StaffAssignment2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const StaffAssignment3 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StaffAssignment3?.setCamp_session)
                {
                    await
                    StaffAssignment3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
            
            async function associateStaffAssignmentWithAge_group() {
            
                const relatedAge_group0 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const StaffAssignment0 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StaffAssignment0?.setAge_group)
                {
                    await
                    StaffAssignment0.
                    setAge_group(relatedAge_group0);
                }
            
                const relatedAge_group1 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const StaffAssignment1 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StaffAssignment1?.setAge_group)
                {
                    await
                    StaffAssignment1.
                    setAge_group(relatedAge_group1);
                }
            
                const relatedAge_group2 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const StaffAssignment2 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StaffAssignment2?.setAge_group)
                {
                    await
                    StaffAssignment2.
                    setAge_group(relatedAge_group2);
                }
            
                const relatedAge_group3 = await AgeGroups.findOne({
                    offset: Math.floor(Math.random() * (await AgeGroups.count())),
                });
                const StaffAssignment3 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StaffAssignment3?.setAge_group)
                {
                    await
                    StaffAssignment3.
                    setAge_group(relatedAge_group3);
                }
            
        }
        
    
        
            
            async function associateStaffAssignmentWithSubject() {
            
                const relatedSubject0 = await CurriculumSubjects.findOne({
                    offset: Math.floor(Math.random() * (await CurriculumSubjects.count())),
                });
                const StaffAssignment0 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StaffAssignment0?.setSubject)
                {
                    await
                    StaffAssignment0.
                    setSubject(relatedSubject0);
                }
            
                const relatedSubject1 = await CurriculumSubjects.findOne({
                    offset: Math.floor(Math.random() * (await CurriculumSubjects.count())),
                });
                const StaffAssignment1 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StaffAssignment1?.setSubject)
                {
                    await
                    StaffAssignment1.
                    setSubject(relatedSubject1);
                }
            
                const relatedSubject2 = await CurriculumSubjects.findOne({
                    offset: Math.floor(Math.random() * (await CurriculumSubjects.count())),
                });
                const StaffAssignment2 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StaffAssignment2?.setSubject)
                {
                    await
                    StaffAssignment2.
                    setSubject(relatedSubject2);
                }
            
                const relatedSubject3 = await CurriculumSubjects.findOne({
                    offset: Math.floor(Math.random() * (await CurriculumSubjects.count())),
                });
                const StaffAssignment3 = await StaffAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StaffAssignment3?.setSubject)
                {
                    await
                    StaffAssignment3.
                    setSubject(relatedSubject3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateAnnouncementWithCamp_session() {
            
                const relatedCamp_session0 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const Announcement0 = await Announcements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Announcement0?.setCamp_session)
                {
                    await
                    Announcement0.
                    setCamp_session(relatedCamp_session0);
                }
            
                const relatedCamp_session1 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const Announcement1 = await Announcements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Announcement1?.setCamp_session)
                {
                    await
                    Announcement1.
                    setCamp_session(relatedCamp_session1);
                }
            
                const relatedCamp_session2 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const Announcement2 = await Announcements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Announcement2?.setCamp_session)
                {
                    await
                    Announcement2.
                    setCamp_session(relatedCamp_session2);
                }
            
                const relatedCamp_session3 = await CampSessions.findOne({
                    offset: Math.floor(Math.random() * (await CampSessions.count())),
                });
                const Announcement3 = await Announcements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Announcement3?.setCamp_session)
                {
                    await
                    Announcement3.
                    setCamp_session(relatedCamp_session3);
                }
            
        }
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Campuses.bulkCreate(CampusesData);
                
            
            
                
                await CampSessions.bulkCreate(CampSessionsData);
                
            
            
                
                await AgeGroups.bulkCreate(AgeGroupsData);
                
            
            
                
                await WeeklyThemes.bulkCreate(WeeklyThemesData);
                
            
            
                
                await PricingPlans.bulkCreate(PricingPlansData);
                
            
            
                
                await FeeRules.bulkCreate(FeeRulesData);
                
            
            
                
                await Guardians.bulkCreate(GuardiansData);
                
            
            
                
                await Campers.bulkCreate(CampersData);
                
            
            
                
                await Enrollments.bulkCreate(EnrollmentsData);
                
            
            
                
                await Payments.bulkCreate(PaymentsData);
                
            
            
                
                await WaiverDocuments.bulkCreate(WaiverDocumentsData);
                
            
            
                
                await DocumentSignatures.bulkCreate(DocumentSignaturesData);
                
            
            
                
                await FieldTripCatalog.bulkCreate(FieldTripCatalogData);
                
            
            
                
                await FieldTripEvents.bulkCreate(FieldTripEventsData);
                
            
            
                
                await TripRegistrations.bulkCreate(TripRegistrationsData);
                
            
            
                
                await SpecialTrips.bulkCreate(SpecialTripsData);
                
            
            
                
                await EndOfSummerTripOptions.bulkCreate(EndOfSummerTripOptionsData);
                
            
            
                
                await EndOfSummerTripSelections.bulkCreate(EndOfSummerTripSelectionsData);
                
            
            
                
                await ActivityBlocks.bulkCreate(ActivityBlocksData);
                
            
            
                
                await CurriculumSubjects.bulkCreate(CurriculumSubjectsData);
                
            
            
                
                await StaffAssignments.bulkCreate(StaffAssignmentsData);
                
            
            
                
                await Announcements.bulkCreate(AnnouncementsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCampSessionWithCampu(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWeeklyThemeWithCamp_session(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePricingPlanWithCamp_session(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFeeRuleWithCamp_session(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateGuardianWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCamperWithPrimary_guardian(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateEnrollmentWithCamper(),
                    
                
                    
                        
                        await associateEnrollmentWithCamp_session(),
                    
                
                    
                        
                        await associateEnrollmentWithPricing_plan(),
                    
                
                    
                        
                        await associateEnrollmentWithAge_group(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePaymentWithEnrollment(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWaiverDocumentWithCamp_session(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateDocumentSignatureWithWaiver_document(),
                    
                
                    
                        
                        await associateDocumentSignatureWithEnrollment(),
                    
                
                    
                        
                        await associateDocumentSignatureWithGuardian(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFieldTripEventWithCamp_session(),
                    
                
                    
                        
                        await associateFieldTripEventWithField_trip(),
                    
                
                    
                        
                        await associateFieldTripEventWithAge_group(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTripRegistrationWithField_trip_event(),
                    
                
                    
                        
                        await associateTripRegistrationWithEnrollment(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSpecialTripWithCamp_session(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateEndOfSummerTripOptionWithCamp_session(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateEndOfSummerTripSelectionWithEnrollment(),
                    
                
                    
                        
                        await associateEndOfSummerTripSelectionWithTrip_option(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateActivityBlockWithAge_group(),
                    
                
                    
                        
                        await associateActivityBlockWithCamp_session(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateStaffAssignmentWithStaff_user(),
                    
                
                    
                        
                        await associateStaffAssignmentWithCamp_session(),
                    
                
                    
                        
                        await associateStaffAssignmentWithAge_group(),
                    
                
                    
                        
                        await associateStaffAssignmentWithSubject(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAnnouncementWithCamp_session(),
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('campuses', null, {});
            
            
            await queryInterface.bulkDelete('camp_sessions', null, {});
            
            
            await queryInterface.bulkDelete('age_groups', null, {});
            
            
            await queryInterface.bulkDelete('weekly_themes', null, {});
            
            
            await queryInterface.bulkDelete('pricing_plans', null, {});
            
            
            await queryInterface.bulkDelete('fee_rules', null, {});
            
            
            await queryInterface.bulkDelete('guardians', null, {});
            
            
            await queryInterface.bulkDelete('campers', null, {});
            
            
            await queryInterface.bulkDelete('enrollments', null, {});
            
            
            await queryInterface.bulkDelete('payments', null, {});
            
            
            await queryInterface.bulkDelete('waiver_documents', null, {});
            
            
            await queryInterface.bulkDelete('document_signatures', null, {});
            
            
            await queryInterface.bulkDelete('field_trip_catalog', null, {});
            
            
            await queryInterface.bulkDelete('field_trip_events', null, {});
            
            
            await queryInterface.bulkDelete('trip_registrations', null, {});
            
            
            await queryInterface.bulkDelete('special_trips', null, {});
            
            
            await queryInterface.bulkDelete('end_of_summer_trip_options', null, {});
            
            
            await queryInterface.bulkDelete('end_of_summer_trip_selections', null, {});
            
            
            await queryInterface.bulkDelete('activity_blocks', null, {});
            
            
            await queryInterface.bulkDelete('curriculum_subjects', null, {});
            
            
            await queryInterface.bulkDelete('staff_assignments', null, {});
            
            
            await queryInterface.bulkDelete('announcements', null, {});
            
        
    },
};