





















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






const Organizations = db.organizations;

const RolePermissions = db.role_permissions;

const RoleAssignments = db.role_assignments;

const Teams = db.teams;

const TeamMemberships = db.team_memberships;

const Programs = db.programs;

const LearningPaths = db.learning_paths;

const Missions = db.missions;

const Checklists = db.checklists;

const ChecklistItems = db.checklist_items;

const Enrollments = db.enrollments;

const MissionAttempts = db.mission_attempts;

const Quizzes = db.quizzes;

const QuizQuestions = db.quiz_questions;

const QuizChoices = db.quiz_choices;

const QuizSubmissions = db.quiz_submissions;

const QuizAnswers = db.quiz_answers;

const Simulations = db.simulations;

const SimulationSteps = db.simulation_steps;

const ContentAssets = db.content_assets;

const AiContentRequests = db.ai_content_requests;

const KnowledgeGapAssessments = db.knowledge_gap_assessments;

const Badges = db.badges;

const UserBadges = db.user_badges;

const PointLedgerEntries = db.point_ledger_entries;

const Challenges = db.challenges;

const ChallengeParticipants = db.challenge_participants;

const RewardCatalogItems = db.reward_catalog_items;

const RewardRedemptions = db.reward_redemptions;

const RecognitionPosts = db.recognition_posts;

const CoachingSessions = db.coaching_sessions;

const KpiDefinitions = db.kpi_definitions;

const KpiMeasurements = db.kpi_measurements;

const QaEvaluations = db.qa_evaluations;

const QaScorecards = db.qa_scorecards;

const Surveys = db.surveys;

const SurveyQuestions = db.survey_questions;

const SurveyResponses = db.survey_responses;

const SurveyResponseItems = db.survey_response_items;

const Reports = db.reports;

const AuditEvents = db.audit_events;







const OrganizationsData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
    },
    
];



const RolePermissionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_allowed": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_allowed": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_allowed": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_allowed": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RoleAssignmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
    },
    
];



const TeamsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "team_name": "Ada Lovelace",
            
        
    
        
        
            
                "team_code": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "team_name": "Grace Hopper",
            
        
    
        
        
            
                "team_code": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "team_name": "Marie Curie",
            
        
    
        
        
            
                "team_code": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "team_name": "Marie Curie",
            
        
    
        
        
            
                "team_code": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
];



const TeamMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "membership_role": "lead",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_primary_team": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "membership_role": "member",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_primary_team": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "membership_role": "lead",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_primary_team": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "membership_role": "lead",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_primary_team": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProgramsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "program_name": "Ada Lovelace",
            
        
    
        
        
            
                "program_type": "preboarding",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "program_name": "Ada Lovelace",
            
        
    
        
        
            
                "program_type": "onboarding",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "program_name": "Marie Curie",
            
        
    
        
        
            
                "program_type": "continuous",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "program_name": "Marie Curie",
            
        
    
        
        
            
                "program_type": "continuous",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const LearningPathsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "path_name": "Alan Turing",
            
        
    
        
        
            
                "audience": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "path_name": "Marie Curie",
            
        
    
        
        
            
                "audience": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "path_name": "Grace Hopper",
            
        
    
        
        
            
                "audience": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "path_name": "Marie Curie",
            
        
    
        
        
            
                "audience": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MissionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mission_title": "Grace Hopper",
            
        
    
        
        
            
                "mission_code": "Ada Lovelace",
            
        
    
        
        
            
                "mission_type": "task",
            
        
    
        
        
            
                "sequence_order": 3,
            
        
    
        
        
            
                "estimated_minutes": 7,
            
        
    
        
        
            
                "instructions": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "video_url": "Marie Curie",
            
        
    
        
        
            
                "is_required": false,
            
        
    
        
        
            
                "points_awarded": 8.98,
            
        
    
        
        
            
                "coins_awarded": 8.99,
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mission_title": "Alan Turing",
            
        
    
        
        
            
                "mission_code": "Grace Hopper",
            
        
    
        
        
            
                "mission_type": "quiz",
            
        
    
        
        
            
                "sequence_order": 3,
            
        
    
        
        
            
                "estimated_minutes": 3,
            
        
    
        
        
            
                "instructions": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "video_url": "Marie Curie",
            
        
    
        
        
            
                "is_required": true,
            
        
    
        
        
            
                "points_awarded": 4.47,
            
        
    
        
        
            
                "coins_awarded": 4.19,
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mission_title": "Marie Curie",
            
        
    
        
        
            
                "mission_code": "Ada Lovelace",
            
        
    
        
        
            
                "mission_type": "task",
            
        
    
        
        
            
                "sequence_order": 4,
            
        
    
        
        
            
                "estimated_minutes": 5,
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "video_url": "Grace Hopper",
            
        
    
        
        
            
                "is_required": true,
            
        
    
        
        
            
                "points_awarded": 0.43,
            
        
    
        
        
            
                "coins_awarded": 2.62,
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mission_title": "Marie Curie",
            
        
    
        
        
            
                "mission_code": "Alan Turing",
            
        
    
        
        
            
                "mission_type": "checklist_item",
            
        
    
        
        
            
                "sequence_order": 2,
            
        
    
        
        
            
                "estimated_minutes": 1,
            
        
    
        
        
            
                "instructions": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "video_url": "Marie Curie",
            
        
    
        
        
            
                "is_required": false,
            
        
    
        
        
            
                "points_awarded": 8.95,
            
        
    
        
        
            
                "coins_awarded": 1.11,
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ChecklistsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "checklist_name": "Ada Lovelace",
            
        
    
        
        
            
                "checklist_stage": "preboarding",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "checklist_name": "Alan Turing",
            
        
    
        
        
            
                "checklist_stage": "first_90_days",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "checklist_name": "Marie Curie",
            
        
    
        
        
            
                "checklist_stage": "day_one",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "checklist_name": "Ada Lovelace",
            
        
    
        
        
            
                "checklist_stage": "first_30_days",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ChecklistItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_title": "Grace Hopper",
            
        
    
        
        
            
                "sequence_order": 6,
            
        
    
        
        
            
                "item_type": "paperwork",
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "link_url": "Ada Lovelace",
            
        
    
        
        
            
                "is_required": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_title": "Ada Lovelace",
            
        
    
        
        
            
                "sequence_order": 4,
            
        
    
        
        
            
                "item_type": "acknowledgement",
            
        
    
        
        
            
                "instructions": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "link_url": "Marie Curie",
            
        
    
        
        
            
                "is_required": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_title": "Marie Curie",
            
        
    
        
        
            
                "sequence_order": 3,
            
        
    
        
        
            
                "item_type": "video",
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "link_url": "Grace Hopper",
            
        
    
        
        
            
                "is_required": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_title": "Ada Lovelace",
            
        
    
        
        
            
                "sequence_order": 4,
            
        
    
        
        
            
                "item_type": "form",
            
        
    
        
        
            
                "instructions": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "link_url": "Grace Hopper",
            
        
    
        
        
            
                "is_required": true,
            
        
    
        
        
            
                // type code here for "relation_one" 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
            
        
    
        
        
            
                "enrollment_status": "cancelled",
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "enrollment_status": "cancelled",
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "enrollment_status": "cancelled",
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "enrollment_status": "assigned",
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
    },
    
];



const MissionAttemptsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attempt_status": "in_progress",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "score": 4.83,
            
        
    
        
        
            
                "points_earned": 9.42,
            
        
    
        
        
            
                "coins_earned": 9.31,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "attempt_status": "in_progress",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "score": 7.8,
            
        
    
        
        
            
                "points_earned": 7.66,
            
        
    
        
        
            
                "coins_earned": 8.94,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "attempt_status": "in_progress",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "score": 7.05,
            
        
    
        
        
            
                "points_earned": 7.57,
            
        
    
        
        
            
                "coins_earned": 9.27,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "attempt_status": "in_progress",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "score": 2.12,
            
        
    
        
        
            
                "points_earned": 2.78,
            
        
    
        
        
            
                "coins_earned": 1.41,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QuizzesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quiz_title": "Grace Hopper",
            
        
    
        
        
            
                "grading_method": "manual",
            
        
    
        
        
            
                "passing_score": 9.0,
            
        
    
        
        
            
                "shuffle_questions": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quiz_title": "Ada Lovelace",
            
        
    
        
        
            
                "grading_method": "manual",
            
        
    
        
        
            
                "passing_score": 3.75,
            
        
    
        
        
            
                "shuffle_questions": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quiz_title": "Alan Turing",
            
        
    
        
        
            
                "grading_method": "auto",
            
        
    
        
        
            
                "passing_score": 4.13,
            
        
    
        
        
            
                "shuffle_questions": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quiz_title": "Alan Turing",
            
        
    
        
        
            
                "grading_method": "auto",
            
        
    
        
        
            
                "passing_score": 7.54,
            
        
    
        
        
            
                "shuffle_questions": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QuizQuestionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_type": "true_false",
            
        
    
        
        
            
                "prompt": "Alan Turing",
            
        
    
        
        
            
                "sequence_order": 5,
            
        
    
        
        
            
                "points": 1.43,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_type": "multi_select",
            
        
    
        
        
            
                "prompt": "Grace Hopper",
            
        
    
        
        
            
                "sequence_order": 2,
            
        
    
        
        
            
                "points": 3.09,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_type": "short_answer",
            
        
    
        
        
            
                "prompt": "Alan Turing",
            
        
    
        
        
            
                "sequence_order": 7,
            
        
    
        
        
            
                "points": 7.94,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_type": "short_answer",
            
        
    
        
        
            
                "prompt": "Marie Curie",
            
        
    
        
        
            
                "sequence_order": 1,
            
        
    
        
        
            
                "points": 3.24,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QuizChoicesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "choice_text": "Alan Turing",
            
        
    
        
        
            
                "is_correct": true,
            
        
    
        
        
            
                "sequence_order": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "choice_text": "Marie Curie",
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "sequence_order": 7,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "choice_text": "Grace Hopper",
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "sequence_order": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "choice_text": "Marie Curie",
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "sequence_order": 8,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QuizSubmissionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "score": 0.43,
            
        
    
        
        
            
                "is_passed": false,
            
        
    
        
        
            
                // 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_at": new Date(Date.now()),
            
        
    
        
        
            
                "score": 4.86,
            
        
    
        
        
            
                "is_passed": true,
            
        
    
        
        
            
                // 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_at": new Date(Date.now()),
            
        
    
        
        
            
                "score": 9.22,
            
        
    
        
        
            
                "is_passed": false,
            
        
    
        
        
            
                // 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_at": new Date(Date.now()),
            
        
    
        
        
            
                "score": 3.68,
            
        
    
        
        
            
                "is_passed": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QuizAnswersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_text": "Grace Hopper",
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "points_earned": 5.16,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_text": "Ada Lovelace",
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "points_earned": 8.74,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_text": "Marie Curie",
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "points_earned": 4.11,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_text": "Ada Lovelace",
            
        
    
        
        
            
                "is_correct": true,
            
        
    
        
        
            
                "points_earned": 2.24,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SimulationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "simulation_title": "Alan Turing",
            
        
    
        
        
            
                "simulation_type": "scenario",
            
        
    
        
        
            
                "scenario_context": "Alan Turing",
            
        
    
        
        
            
                "success_criteria": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "simulation_title": "Grace Hopper",
            
        
    
        
        
            
                "simulation_type": "call_flow",
            
        
    
        
        
            
                "scenario_context": "Alan Turing",
            
        
    
        
        
            
                "success_criteria": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "simulation_title": "Alan Turing",
            
        
    
        
        
            
                "simulation_type": "call_flow",
            
        
    
        
        
            
                "scenario_context": "Ada Lovelace",
            
        
    
        
        
            
                "success_criteria": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "simulation_title": "Alan Turing",
            
        
    
        
        
            
                "simulation_type": "scenario",
            
        
    
        
        
            
                "scenario_context": "Marie Curie",
            
        
    
        
        
            
                "success_criteria": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SimulationStepsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sequence_order": 2,
            
        
    
        
        
            
                "speaker": "coach",
            
        
    
        
        
            
                "step_text": "Grace Hopper",
            
        
    
        
        
            
                "expected_response_hint": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sequence_order": 5,
            
        
    
        
        
            
                "speaker": "agent",
            
        
    
        
        
            
                "step_text": "Ada Lovelace",
            
        
    
        
        
            
                "expected_response_hint": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sequence_order": 3,
            
        
    
        
        
            
                "speaker": "agent",
            
        
    
        
        
            
                "step_text": "Grace Hopper",
            
        
    
        
        
            
                "expected_response_hint": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sequence_order": 3,
            
        
    
        
        
            
                "speaker": "agent",
            
        
    
        
        
            
                "step_text": "Alan Turing",
            
        
    
        
        
            
                "expected_response_hint": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContentAssetsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "asset_title": "Alan Turing",
            
        
    
        
        
            
                "asset_type": "video",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "asset_url": "Ada Lovelace",
            
        
    
        
        
            
                "status": "published",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "asset_title": "Grace Hopper",
            
        
    
        
        
            
                "asset_type": "video",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "asset_url": "Marie Curie",
            
        
    
        
        
            
                "status": "published",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "asset_title": "Alan Turing",
            
        
    
        
        
            
                "asset_type": "image",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "asset_url": "Marie Curie",
            
        
    
        
        
            
                "status": "published",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "asset_title": "Ada Lovelace",
            
        
    
        
        
            
                "asset_type": "link",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "asset_url": "Alan Turing",
            
        
    
        
        
            
                "status": "published",
            
        
    
    },
    
];



const AiContentRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "mission_outline",
            
        
    
        
        
            
                "prompt_text": "Grace Hopper",
            
        
    
        
        
            
                "status": "running",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "output_text": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "mission_outline",
            
        
    
        
        
            
                "prompt_text": "Marie Curie",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "output_text": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "simulation_script",
            
        
    
        
        
            
                "prompt_text": "Grace Hopper",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "output_text": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "knowledge_refresher",
            
        
    
        
        
            
                "prompt_text": "Ada Lovelace",
            
        
    
        
        
            
                "status": "running",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "output_text": "Alan Turing",
            
        
    
    },
    
];



const KnowledgeGapAssessmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assessment_type": "refresher",
            
        
    
        
        
            
                "assessed_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_score": 7.84,
            
        
    
        
        
            
                "insights_summary": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assessment_type": "diagnostic",
            
        
    
        
        
            
                "assessed_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_score": 7.57,
            
        
    
        
        
            
                "insights_summary": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assessment_type": "diagnostic",
            
        
    
        
        
            
                "assessed_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_score": 9.26,
            
        
    
        
        
            
                "insights_summary": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assessment_type": "refresher",
            
        
    
        
        
            
                "assessed_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_score": 4.91,
            
        
    
        
        
            
                "insights_summary": "Grace Hopper",
            
        
    
    },
    
];



const BadgesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_name": "Grace Hopper",
            
        
    
        
        
            
                "badge_description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "award_rule_type": "mission_completion",
            
        
    
        
        
            
                "threshold_value": 5.18,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_name": "Alan Turing",
            
        
    
        
        
            
                "badge_description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "award_rule_type": "manual",
            
        
    
        
        
            
                "threshold_value": 2.33,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_name": "Marie Curie",
            
        
    
        
        
            
                "badge_description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "award_rule_type": "level_reached",
            
        
    
        
        
            
                "threshold_value": 2.68,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_name": "Grace Hopper",
            
        
    
        
        
            
                "badge_description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "award_rule_type": "level_reached",
            
        
    
        
        
            
                "threshold_value": 8.3,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const UserBadgesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_note": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_note": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_note": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_note": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PointLedgerEntriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "recognition",
            
        
    
        
        
            
                "points_delta": 2.97,
            
        
    
        
        
            
                "coins_delta": 2.03,
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "redemption",
            
        
    
        
        
            
                "points_delta": 2.94,
            
        
    
        
        
            
                "coins_delta": 7.2,
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "mission",
            
        
    
        
        
            
                "points_delta": 9.04,
            
        
    
        
        
            
                "coins_delta": 9.12,
            
        
    
        
        
            
                "reason": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "challenge",
            
        
    
        
        
            
                "points_delta": 8.76,
            
        
    
        
        
            
                "coins_delta": 4.42,
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
];



const ChallengesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "challenge_name": "Alan Turing",
            
        
    
        
        
            
                "challenge_type": "individual",
            
        
    
        
        
            
                "metric_type": "kpi_value",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "target_value": 3.06,
            
        
    
        
        
            
                "reward_points": 6.58,
            
        
    
        
        
            
                "reward_coins": 6.31,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "challenge_name": "Alan Turing",
            
        
    
        
        
            
                "challenge_type": "individual",
            
        
    
        
        
            
                "metric_type": "points",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "target_value": 6.68,
            
        
    
        
        
            
                "reward_points": 2.46,
            
        
    
        
        
            
                "reward_coins": 9.23,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "scheduled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "challenge_name": "Grace Hopper",
            
        
    
        
        
            
                "challenge_type": "individual",
            
        
    
        
        
            
                "metric_type": "mission_completions",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "target_value": 6.58,
            
        
    
        
        
            
                "reward_points": 7.91,
            
        
    
        
        
            
                "reward_coins": 0.65,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "challenge_name": "Grace Hopper",
            
        
    
        
        
            
                "challenge_type": "individual",
            
        
    
        
        
            
                "metric_type": "points",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "target_value": 9.04,
            
        
    
        
        
            
                "reward_points": 8.55,
            
        
    
        
        
            
                "reward_coins": 6.04,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ChallengeParticipantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "participant_type": "team",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_value": 9.42,
            
        
    
        
        
            
                "status": "disqualified",
            
        
    
        
        
            
                "rank_position": 7,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "participant_type": "user",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_value": 4.62,
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "rank_position": 5,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "participant_type": "team",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_value": 9.54,
            
        
    
        
        
            
                "status": "disqualified",
            
        
    
        
        
            
                "rank_position": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "participant_type": "user",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_value": 1.93,
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "rank_position": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RewardCatalogItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_name": "Marie Curie",
            
        
    
        
        
            
                "item_type": "perk",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "cost_coins": 9.24,
            
        
    
        
        
            
                "inventory_quantity": 1,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_name": "Marie Curie",
            
        
    
        
        
            
                "item_type": "perk",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "cost_coins": 3.86,
            
        
    
        
        
            
                "inventory_quantity": 9,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_name": "Ada Lovelace",
            
        
    
        
        
            
                "item_type": "gift_card",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "cost_coins": 0.12,
            
        
    
        
        
            
                "inventory_quantity": 7,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_name": "Ada Lovelace",
            
        
    
        
        
            
                "item_type": "swag",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "cost_coins": 1.5,
            
        
    
        
        
            
                "inventory_quantity": 3,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const RewardRedemptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 9,
            
        
    
        
        
            
                "coins_spent": 7.03,
            
        
    
        
        
            
                "fulfillment_status": "rejected",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfilled_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfillment_note": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "coins_spent": 7.19,
            
        
    
        
        
            
                "fulfillment_status": "cancelled",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfilled_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfillment_note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 2,
            
        
    
        
        
            
                "coins_spent": 5.77,
            
        
    
        
        
            
                "fulfillment_status": "approved",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfilled_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfillment_note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 6,
            
        
    
        
        
            
                "coins_spent": 7.19,
            
        
    
        
        
            
                "fulfillment_status": "approved",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfilled_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfillment_note": "Ada Lovelace",
            
        
    
    },
    
];



const RecognitionPostsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recognition_type": "kudos",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "points_awarded": 0.98,
            
        
    
        
        
            
                "coins_awarded": 4.32,
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_public": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recognition_type": "values",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "points_awarded": 3.84,
            
        
    
        
        
            
                "coins_awarded": 0.58,
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_public": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recognition_type": "kudos",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "points_awarded": 3.55,
            
        
    
        
        
            
                "coins_awarded": 1.53,
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_public": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recognition_type": "coaching_win",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "points_awarded": 0.05,
            
        
    
        
        
            
                "coins_awarded": 0.19,
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_public": false,
            
        
    
    },
    
];



const CoachingSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_type": "one_on_one",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "agenda": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "action_items": "Grace Hopper",
            
        
    
        
        
            
                "follow_up_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_type": "training_followup",
            
        
    
        
        
            
                "status": "scheduled",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "agenda": "Alan Turing",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "action_items": "Marie Curie",
            
        
    
        
        
            
                "follow_up_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_type": "one_on_one",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "agenda": "Marie Curie",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "action_items": "Ada Lovelace",
            
        
    
        
        
            
                "follow_up_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_type": "training_followup",
            
        
    
        
        
            
                "status": "scheduled",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "agenda": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "action_items": "Alan Turing",
            
        
    
        
        
            
                "follow_up_at": new Date(Date.now()),
            
        
    
    },
    
];



const KpiDefinitionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kpi_name": "Marie Curie",
            
        
    
        
        
            
                "kpi_key": "Grace Hopper",
            
        
    
        
        
            
                "unit": "seconds",
            
        
    
        
        
            
                "direction": "higher_is_better",
            
        
    
        
        
            
                "target_value": 6.03,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kpi_name": "Ada Lovelace",
            
        
    
        
        
            
                "kpi_key": "Ada Lovelace",
            
        
    
        
        
            
                "unit": "minutes",
            
        
    
        
        
            
                "direction": "lower_is_better",
            
        
    
        
        
            
                "target_value": 7.92,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kpi_name": "Alan Turing",
            
        
    
        
        
            
                "kpi_key": "Ada Lovelace",
            
        
    
        
        
            
                "unit": "minutes",
            
        
    
        
        
            
                "direction": "higher_is_better",
            
        
    
        
        
            
                "target_value": 6.12,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kpi_name": "Grace Hopper",
            
        
    
        
        
            
                "kpi_key": "Alan Turing",
            
        
    
        
        
            
                "unit": "minutes",
            
        
    
        
        
            
                "direction": "lower_is_better",
            
        
    
        
        
            
                "target_value": 7.73,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const KpiMeasurementsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "measured_at": new Date(Date.now()),
            
        
    
        
        
            
                "value": 5.38,
            
        
    
        
        
            
                "source": "integration",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "measured_at": new Date(Date.now()),
            
        
    
        
        
            
                "value": 3.26,
            
        
    
        
        
            
                "source": "manual",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "measured_at": new Date(Date.now()),
            
        
    
        
        
            
                "value": 8.05,
            
        
    
        
        
            
                "source": "import",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "measured_at": new Date(Date.now()),
            
        
    
        
        
            
                "value": 6.08,
            
        
    
        
        
            
                "source": "import",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
];



const QaEvaluationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "in_person",
            
        
    
        
        
            
                "interaction_reference": "Alan Turing",
            
        
    
        
        
            
                "interaction_at": new Date(Date.now()),
            
        
    
        
        
            
                "evaluated_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_score": 3.19,
            
        
    
        
        
            
                "result": "fail",
            
        
    
        
        
            
                "summary_notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "in_person",
            
        
    
        
        
            
                "interaction_reference": "Alan Turing",
            
        
    
        
        
            
                "interaction_at": new Date(Date.now()),
            
        
    
        
        
            
                "evaluated_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_score": 0.87,
            
        
    
        
        
            
                "result": "needs_improvement",
            
        
    
        
        
            
                "summary_notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "chat",
            
        
    
        
        
            
                "interaction_reference": "Grace Hopper",
            
        
    
        
        
            
                "interaction_at": new Date(Date.now()),
            
        
    
        
        
            
                "evaluated_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_score": 0.14,
            
        
    
        
        
            
                "result": "fail",
            
        
    
        
        
            
                "summary_notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "call",
            
        
    
        
        
            
                "interaction_reference": "Ada Lovelace",
            
        
    
        
        
            
                "interaction_at": new Date(Date.now()),
            
        
    
        
        
            
                "evaluated_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_score": 1.74,
            
        
    
        
        
            
                "result": "fail",
            
        
    
        
        
            
                "summary_notes": "Alan Turing",
            
        
    
    },
    
];



const QaScorecardsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category_name": "Ada Lovelace",
            
        
    
        
        
            
                "category_score": 2.22,
            
        
    
        
        
            
                "max_score": 4.9,
            
        
    
        
        
            
                "comments": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category_name": "Marie Curie",
            
        
    
        
        
            
                "category_score": 5.98,
            
        
    
        
        
            
                "max_score": 6.75,
            
        
    
        
        
            
                "comments": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category_name": "Alan Turing",
            
        
    
        
        
            
                "category_score": 4.55,
            
        
    
        
        
            
                "max_score": 4.09,
            
        
    
        
        
            
                "comments": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category_name": "Grace Hopper",
            
        
    
        
        
            
                "category_score": 7.41,
            
        
    
        
        
            
                "max_score": 8.18,
            
        
    
        
        
            
                "comments": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SurveysData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "survey_name": "Grace Hopper",
            
        
    
        
        
            
                "survey_type": "exit_intent",
            
        
    
        
        
            
                "introduction_text": "Marie Curie",
            
        
    
        
        
            
                "is_anonymous": false,
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "opens_at": new Date(Date.now()),
            
        
    
        
        
            
                "closes_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "survey_name": "Grace Hopper",
            
        
    
        
        
            
                "survey_type": "exit_intent",
            
        
    
        
        
            
                "introduction_text": "Ada Lovelace",
            
        
    
        
        
            
                "is_anonymous": false,
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "opens_at": new Date(Date.now()),
            
        
    
        
        
            
                "closes_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "survey_name": "Marie Curie",
            
        
    
        
        
            
                "survey_type": "training_feedback",
            
        
    
        
        
            
                "introduction_text": "Grace Hopper",
            
        
    
        
        
            
                "is_anonymous": false,
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "opens_at": new Date(Date.now()),
            
        
    
        
        
            
                "closes_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "survey_name": "Alan Turing",
            
        
    
        
        
            
                "survey_type": "exit_intent",
            
        
    
        
        
            
                "introduction_text": "Alan Turing",
            
        
    
        
        
            
                "is_anonymous": false,
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "opens_at": new Date(Date.now()),
            
        
    
        
        
            
                "closes_at": new Date(Date.now()),
            
        
    
    },
    
];



const SurveyQuestionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_type": "yes_no",
            
        
    
        
        
            
                "prompt": "Grace Hopper",
            
        
    
        
        
            
                "sequence_order": 8,
            
        
    
        
        
            
                "is_required": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_type": "free_text",
            
        
    
        
        
            
                "prompt": "Marie Curie",
            
        
    
        
        
            
                "sequence_order": 8,
            
        
    
        
        
            
                "is_required": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_type": "single_select",
            
        
    
        
        
            
                "prompt": "Ada Lovelace",
            
        
    
        
        
            
                "sequence_order": 2,
            
        
    
        
        
            
                "is_required": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_type": "multi_select",
            
        
    
        
        
            
                "prompt": "Ada Lovelace",
            
        
    
        
        
            
                "sequence_order": 5,
            
        
    
        
        
            
                "is_required": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SurveyResponsesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_comment": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_comment": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_comment": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "overall_comment": "Ada Lovelace",
            
        
    
    },
    
];



const SurveyResponseItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_value": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_value": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_value": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_value": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "report_name": "Marie Curie",
            
        
    
        
        
            
                "report_type": "challenge_outcomes",
            
        
    
        
        
            
                "period_type": "daily",
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "filters_json": "Alan Turing",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "report_name": "Ada Lovelace",
            
        
    
        
        
            
                "report_type": "attrition",
            
        
    
        
        
            
                "period_type": "weekly",
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "filters_json": "Ada Lovelace",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "report_name": "Grace Hopper",
            
        
    
        
        
            
                "report_type": "survey_insights",
            
        
    
        
        
            
                "period_type": "quarterly",
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "filters_json": "Grace Hopper",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "report_name": "Alan Turing",
            
        
    
        
        
            
                "report_type": "kpi_trends",
            
        
    
        
        
            
                "period_type": "quarterly",
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "filters_json": "Grace Hopper",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const AuditEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "Grace Hopper",
            
        
    
        
        
            
                "entity_name": "Grace Hopper",
            
        
    
        
        
            
                "entity_reference": "Marie Curie",
            
        
    
        
        
            
                "event_payload_json": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Grace Hopper",
            
        
    
        
        
            
                "user_agent": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "Ada Lovelace",
            
        
    
        
        
            
                "entity_name": "Alan Turing",
            
        
    
        
        
            
                "entity_reference": "Alan Turing",
            
        
    
        
        
            
                "event_payload_json": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "Ada Lovelace",
            
        
    
        
        
            
                "entity_name": "Grace Hopper",
            
        
    
        
        
            
                "entity_reference": "Grace Hopper",
            
        
    
        
        
            
                "event_payload_json": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "Marie Curie",
            
        
    
        
        
            
                "entity_name": "Ada Lovelace",
            
        
    
        
        
            
                "entity_reference": "Alan Turing",
            
        
    
        
        
            
                "event_payload_json": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            
            async function associateUserWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User0 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (User0?.setOrganization)
                {
                    await
                    User0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User1 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (User1?.setOrganization)
                {
                    await
                    User1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User2 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (User2?.setOrganization)
                {
                    await
                    User2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User3 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (User3?.setOrganization)
                {
                    await
                    User3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
    
    
        
    

    
    
    
        
    
        
            
            async function associateRolePermissionWithPermission() {
            
                const relatedPermission0 = await Permissions.findOne({
                    offset: Math.floor(Math.random() * (await Permissions.count())),
                });
                const RolePermission0 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RolePermission0?.setPermission)
                {
                    await
                    RolePermission0.
                    setPermission(relatedPermission0);
                }
            
                const relatedPermission1 = await Permissions.findOne({
                    offset: Math.floor(Math.random() * (await Permissions.count())),
                });
                const RolePermission1 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RolePermission1?.setPermission)
                {
                    await
                    RolePermission1.
                    setPermission(relatedPermission1);
                }
            
                const relatedPermission2 = await Permissions.findOne({
                    offset: Math.floor(Math.random() * (await Permissions.count())),
                });
                const RolePermission2 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RolePermission2?.setPermission)
                {
                    await
                    RolePermission2.
                    setPermission(relatedPermission2);
                }
            
                const relatedPermission3 = await Permissions.findOne({
                    offset: Math.floor(Math.random() * (await Permissions.count())),
                });
                const RolePermission3 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RolePermission3?.setPermission)
                {
                    await
                    RolePermission3.
                    setPermission(relatedPermission3);
                }
            
        }
        
    
        
    
        
            
            async function associateRolePermissionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RolePermission0 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RolePermission0?.setOrganization)
                {
                    await
                    RolePermission0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RolePermission1 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RolePermission1?.setOrganization)
                {
                    await
                    RolePermission1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RolePermission2 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RolePermission2?.setOrganization)
                {
                    await
                    RolePermission2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RolePermission3 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RolePermission3?.setOrganization)
                {
                    await
                    RolePermission3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRoleAssignmentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoleAssignment0 = await RoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoleAssignment0?.setOrganization)
                {
                    await
                    RoleAssignment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoleAssignment1 = await RoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoleAssignment1?.setOrganization)
                {
                    await
                    RoleAssignment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoleAssignment2 = await RoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoleAssignment2?.setOrganization)
                {
                    await
                    RoleAssignment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoleAssignment3 = await RoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RoleAssignment3?.setOrganization)
                {
                    await
                    RoleAssignment3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateRoleAssignmentWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoleAssignment0 = await RoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoleAssignment0?.setUser)
                {
                    await
                    RoleAssignment0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoleAssignment1 = await RoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoleAssignment1?.setUser)
                {
                    await
                    RoleAssignment1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoleAssignment2 = await RoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoleAssignment2?.setUser)
                {
                    await
                    RoleAssignment2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoleAssignment3 = await RoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RoleAssignment3?.setUser)
                {
                    await
                    RoleAssignment3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateTeamWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team0 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Team0?.setOrganization)
                {
                    await
                    Team0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team1 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Team1?.setOrganization)
                {
                    await
                    Team1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team2 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Team2?.setOrganization)
                {
                    await
                    Team2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team3 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Team3?.setOrganization)
                {
                    await
                    Team3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateTeamWithManager() {
            
                const relatedManager0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Team0 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Team0?.setManager)
                {
                    await
                    Team0.
                    setManager(relatedManager0);
                }
            
                const relatedManager1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Team1 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Team1?.setManager)
                {
                    await
                    Team1.
                    setManager(relatedManager1);
                }
            
                const relatedManager2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Team2 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Team2?.setManager)
                {
                    await
                    Team2.
                    setManager(relatedManager2);
                }
            
                const relatedManager3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Team3 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Team3?.setManager)
                {
                    await
                    Team3.
                    setManager(relatedManager3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateTeamMembershipWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const TeamMembership0 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TeamMembership0?.setTeam)
                {
                    await
                    TeamMembership0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const TeamMembership1 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TeamMembership1?.setTeam)
                {
                    await
                    TeamMembership1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const TeamMembership2 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TeamMembership2?.setTeam)
                {
                    await
                    TeamMembership2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const TeamMembership3 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TeamMembership3?.setTeam)
                {
                    await
                    TeamMembership3.
                    setTeam(relatedTeam3);
                }
            
        }
        
    
        
            
            async function associateTeamMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TeamMembership0 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TeamMembership0?.setUser)
                {
                    await
                    TeamMembership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TeamMembership1 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TeamMembership1?.setUser)
                {
                    await
                    TeamMembership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TeamMembership2 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TeamMembership2?.setUser)
                {
                    await
                    TeamMembership2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TeamMembership3 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TeamMembership3?.setUser)
                {
                    await
                    TeamMembership3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTeamMembershipWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TeamMembership0 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TeamMembership0?.setOrganization)
                {
                    await
                    TeamMembership0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TeamMembership1 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TeamMembership1?.setOrganization)
                {
                    await
                    TeamMembership1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TeamMembership2 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TeamMembership2?.setOrganization)
                {
                    await
                    TeamMembership2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TeamMembership3 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TeamMembership3?.setOrganization)
                {
                    await
                    TeamMembership3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateProgramWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Program0 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Program0?.setOrganization)
                {
                    await
                    Program0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Program1 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Program1?.setOrganization)
                {
                    await
                    Program1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Program2 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Program2?.setOrganization)
                {
                    await
                    Program2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Program3 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Program3?.setOrganization)
                {
                    await
                    Program3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLearningPathWithProgram() {
            
                const relatedProgram0 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const LearningPath0 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LearningPath0?.setProgram)
                {
                    await
                    LearningPath0.
                    setProgram(relatedProgram0);
                }
            
                const relatedProgram1 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const LearningPath1 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LearningPath1?.setProgram)
                {
                    await
                    LearningPath1.
                    setProgram(relatedProgram1);
                }
            
                const relatedProgram2 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const LearningPath2 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LearningPath2?.setProgram)
                {
                    await
                    LearningPath2.
                    setProgram(relatedProgram2);
                }
            
                const relatedProgram3 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const LearningPath3 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LearningPath3?.setProgram)
                {
                    await
                    LearningPath3.
                    setProgram(relatedProgram3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateLearningPathWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LearningPath0 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LearningPath0?.setOrganization)
                {
                    await
                    LearningPath0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LearningPath1 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LearningPath1?.setOrganization)
                {
                    await
                    LearningPath1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LearningPath2 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LearningPath2?.setOrganization)
                {
                    await
                    LearningPath2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LearningPath3 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LearningPath3?.setOrganization)
                {
                    await
                    LearningPath3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMissionWithLearning_path() {
            
                const relatedLearning_path0 = await LearningPaths.findOne({
                    offset: Math.floor(Math.random() * (await LearningPaths.count())),
                });
                const Mission0 = await Missions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Mission0?.setLearning_path)
                {
                    await
                    Mission0.
                    setLearning_path(relatedLearning_path0);
                }
            
                const relatedLearning_path1 = await LearningPaths.findOne({
                    offset: Math.floor(Math.random() * (await LearningPaths.count())),
                });
                const Mission1 = await Missions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Mission1?.setLearning_path)
                {
                    await
                    Mission1.
                    setLearning_path(relatedLearning_path1);
                }
            
                const relatedLearning_path2 = await LearningPaths.findOne({
                    offset: Math.floor(Math.random() * (await LearningPaths.count())),
                });
                const Mission2 = await Missions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Mission2?.setLearning_path)
                {
                    await
                    Mission2.
                    setLearning_path(relatedLearning_path2);
                }
            
                const relatedLearning_path3 = await LearningPaths.findOne({
                    offset: Math.floor(Math.random() * (await LearningPaths.count())),
                });
                const Mission3 = await Missions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Mission3?.setLearning_path)
                {
                    await
                    Mission3.
                    setLearning_path(relatedLearning_path3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMissionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Mission0 = await Missions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Mission0?.setOrganization)
                {
                    await
                    Mission0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Mission1 = await Missions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Mission1?.setOrganization)
                {
                    await
                    Mission1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Mission2 = await Missions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Mission2?.setOrganization)
                {
                    await
                    Mission2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Mission3 = await Missions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Mission3?.setOrganization)
                {
                    await
                    Mission3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateChecklistWithProgram() {
            
                const relatedProgram0 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Checklist0 = await Checklists.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Checklist0?.setProgram)
                {
                    await
                    Checklist0.
                    setProgram(relatedProgram0);
                }
            
                const relatedProgram1 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Checklist1 = await Checklists.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Checklist1?.setProgram)
                {
                    await
                    Checklist1.
                    setProgram(relatedProgram1);
                }
            
                const relatedProgram2 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Checklist2 = await Checklists.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Checklist2?.setProgram)
                {
                    await
                    Checklist2.
                    setProgram(relatedProgram2);
                }
            
                const relatedProgram3 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Checklist3 = await Checklists.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Checklist3?.setProgram)
                {
                    await
                    Checklist3.
                    setProgram(relatedProgram3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateChecklistWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Checklist0 = await Checklists.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Checklist0?.setOrganization)
                {
                    await
                    Checklist0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Checklist1 = await Checklists.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Checklist1?.setOrganization)
                {
                    await
                    Checklist1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Checklist2 = await Checklists.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Checklist2?.setOrganization)
                {
                    await
                    Checklist2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Checklist3 = await Checklists.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Checklist3?.setOrganization)
                {
                    await
                    Checklist3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateChecklistItemWithChecklist() {
            
                const relatedChecklist0 = await Checklists.findOne({
                    offset: Math.floor(Math.random() * (await Checklists.count())),
                });
                const ChecklistItem0 = await ChecklistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChecklistItem0?.setChecklist)
                {
                    await
                    ChecklistItem0.
                    setChecklist(relatedChecklist0);
                }
            
                const relatedChecklist1 = await Checklists.findOne({
                    offset: Math.floor(Math.random() * (await Checklists.count())),
                });
                const ChecklistItem1 = await ChecklistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChecklistItem1?.setChecklist)
                {
                    await
                    ChecklistItem1.
                    setChecklist(relatedChecklist1);
                }
            
                const relatedChecklist2 = await Checklists.findOne({
                    offset: Math.floor(Math.random() * (await Checklists.count())),
                });
                const ChecklistItem2 = await ChecklistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChecklistItem2?.setChecklist)
                {
                    await
                    ChecklistItem2.
                    setChecklist(relatedChecklist2);
                }
            
                const relatedChecklist3 = await Checklists.findOne({
                    offset: Math.floor(Math.random() * (await Checklists.count())),
                });
                const ChecklistItem3 = await ChecklistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChecklistItem3?.setChecklist)
                {
                    await
                    ChecklistItem3.
                    setChecklist(relatedChecklist3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateChecklistItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChecklistItem0 = await ChecklistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChecklistItem0?.setOrganization)
                {
                    await
                    ChecklistItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChecklistItem1 = await ChecklistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChecklistItem1?.setOrganization)
                {
                    await
                    ChecklistItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChecklistItem2 = await ChecklistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChecklistItem2?.setOrganization)
                {
                    await
                    ChecklistItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChecklistItem3 = await ChecklistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChecklistItem3?.setOrganization)
                {
                    await
                    ChecklistItem3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateEnrollmentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setOrganization)
                {
                    await
                    Enrollment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setOrganization)
                {
                    await
                    Enrollment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setOrganization)
                {
                    await
                    Enrollment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setOrganization)
                {
                    await
                    Enrollment3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateEnrollmentWithProgram() {
            
                const relatedProgram0 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setProgram)
                {
                    await
                    Enrollment0.
                    setProgram(relatedProgram0);
                }
            
                const relatedProgram1 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setProgram)
                {
                    await
                    Enrollment1.
                    setProgram(relatedProgram1);
                }
            
                const relatedProgram2 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setProgram)
                {
                    await
                    Enrollment2.
                    setProgram(relatedProgram2);
                }
            
                const relatedProgram3 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setProgram)
                {
                    await
                    Enrollment3.
                    setProgram(relatedProgram3);
                }
            
        }
        
    
        
            
            async function associateEnrollmentWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setUser)
                {
                    await
                    Enrollment0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setUser)
                {
                    await
                    Enrollment1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setUser)
                {
                    await
                    Enrollment2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setUser)
                {
                    await
                    Enrollment3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateEnrollmentWithAssigned_by() {
            
                const relatedAssigned_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setAssigned_by)
                {
                    await
                    Enrollment0.
                    setAssigned_by(relatedAssigned_by0);
                }
            
                const relatedAssigned_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setAssigned_by)
                {
                    await
                    Enrollment1.
                    setAssigned_by(relatedAssigned_by1);
                }
            
                const relatedAssigned_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setAssigned_by)
                {
                    await
                    Enrollment2.
                    setAssigned_by(relatedAssigned_by2);
                }
            
                const relatedAssigned_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setAssigned_by)
                {
                    await
                    Enrollment3.
                    setAssigned_by(relatedAssigned_by3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMissionAttemptWithMission() {
            
                const relatedMission0 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const MissionAttempt0 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MissionAttempt0?.setMission)
                {
                    await
                    MissionAttempt0.
                    setMission(relatedMission0);
                }
            
                const relatedMission1 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const MissionAttempt1 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MissionAttempt1?.setMission)
                {
                    await
                    MissionAttempt1.
                    setMission(relatedMission1);
                }
            
                const relatedMission2 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const MissionAttempt2 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MissionAttempt2?.setMission)
                {
                    await
                    MissionAttempt2.
                    setMission(relatedMission2);
                }
            
                const relatedMission3 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const MissionAttempt3 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MissionAttempt3?.setMission)
                {
                    await
                    MissionAttempt3.
                    setMission(relatedMission3);
                }
            
        }
        
    
        
            
            async function associateMissionAttemptWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MissionAttempt0 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MissionAttempt0?.setUser)
                {
                    await
                    MissionAttempt0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MissionAttempt1 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MissionAttempt1?.setUser)
                {
                    await
                    MissionAttempt1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MissionAttempt2 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MissionAttempt2?.setUser)
                {
                    await
                    MissionAttempt2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MissionAttempt3 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MissionAttempt3?.setUser)
                {
                    await
                    MissionAttempt3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateMissionAttemptWithEnrollment() {
            
                const relatedEnrollment0 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const MissionAttempt0 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MissionAttempt0?.setEnrollment)
                {
                    await
                    MissionAttempt0.
                    setEnrollment(relatedEnrollment0);
                }
            
                const relatedEnrollment1 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const MissionAttempt1 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MissionAttempt1?.setEnrollment)
                {
                    await
                    MissionAttempt1.
                    setEnrollment(relatedEnrollment1);
                }
            
                const relatedEnrollment2 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const MissionAttempt2 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MissionAttempt2?.setEnrollment)
                {
                    await
                    MissionAttempt2.
                    setEnrollment(relatedEnrollment2);
                }
            
                const relatedEnrollment3 = await Enrollments.findOne({
                    offset: Math.floor(Math.random() * (await Enrollments.count())),
                });
                const MissionAttempt3 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MissionAttempt3?.setEnrollment)
                {
                    await
                    MissionAttempt3.
                    setEnrollment(relatedEnrollment3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMissionAttemptWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MissionAttempt0 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MissionAttempt0?.setOrganization)
                {
                    await
                    MissionAttempt0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MissionAttempt1 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MissionAttempt1?.setOrganization)
                {
                    await
                    MissionAttempt1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MissionAttempt2 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MissionAttempt2?.setOrganization)
                {
                    await
                    MissionAttempt2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MissionAttempt3 = await MissionAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MissionAttempt3?.setOrganization)
                {
                    await
                    MissionAttempt3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQuizzeWithMission() {
            
                const relatedMission0 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const Quizze0 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Quizze0?.setMission)
                {
                    await
                    Quizze0.
                    setMission(relatedMission0);
                }
            
                const relatedMission1 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const Quizze1 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Quizze1?.setMission)
                {
                    await
                    Quizze1.
                    setMission(relatedMission1);
                }
            
                const relatedMission2 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const Quizze2 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Quizze2?.setMission)
                {
                    await
                    Quizze2.
                    setMission(relatedMission2);
                }
            
                const relatedMission3 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const Quizze3 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Quizze3?.setMission)
                {
                    await
                    Quizze3.
                    setMission(relatedMission3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateQuizzeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Quizze0 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Quizze0?.setOrganization)
                {
                    await
                    Quizze0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Quizze1 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Quizze1?.setOrganization)
                {
                    await
                    Quizze1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Quizze2 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Quizze2?.setOrganization)
                {
                    await
                    Quizze2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Quizze3 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Quizze3?.setOrganization)
                {
                    await
                    Quizze3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQuizQuestionWithQuiz() {
            
                const relatedQuiz0 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizQuestion0 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizQuestion0?.setQuiz)
                {
                    await
                    QuizQuestion0.
                    setQuiz(relatedQuiz0);
                }
            
                const relatedQuiz1 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizQuestion1 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizQuestion1?.setQuiz)
                {
                    await
                    QuizQuestion1.
                    setQuiz(relatedQuiz1);
                }
            
                const relatedQuiz2 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizQuestion2 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizQuestion2?.setQuiz)
                {
                    await
                    QuizQuestion2.
                    setQuiz(relatedQuiz2);
                }
            
                const relatedQuiz3 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizQuestion3 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizQuestion3?.setQuiz)
                {
                    await
                    QuizQuestion3.
                    setQuiz(relatedQuiz3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateQuizQuestionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizQuestion0 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizQuestion0?.setOrganization)
                {
                    await
                    QuizQuestion0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizQuestion1 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizQuestion1?.setOrganization)
                {
                    await
                    QuizQuestion1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizQuestion2 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizQuestion2?.setOrganization)
                {
                    await
                    QuizQuestion2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizQuestion3 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizQuestion3?.setOrganization)
                {
                    await
                    QuizQuestion3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQuizChoiceWithQuiz_question() {
            
                const relatedQuiz_question0 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizChoice0 = await QuizChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizChoice0?.setQuiz_question)
                {
                    await
                    QuizChoice0.
                    setQuiz_question(relatedQuiz_question0);
                }
            
                const relatedQuiz_question1 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizChoice1 = await QuizChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizChoice1?.setQuiz_question)
                {
                    await
                    QuizChoice1.
                    setQuiz_question(relatedQuiz_question1);
                }
            
                const relatedQuiz_question2 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizChoice2 = await QuizChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizChoice2?.setQuiz_question)
                {
                    await
                    QuizChoice2.
                    setQuiz_question(relatedQuiz_question2);
                }
            
                const relatedQuiz_question3 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizChoice3 = await QuizChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizChoice3?.setQuiz_question)
                {
                    await
                    QuizChoice3.
                    setQuiz_question(relatedQuiz_question3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateQuizChoiceWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizChoice0 = await QuizChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizChoice0?.setOrganization)
                {
                    await
                    QuizChoice0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizChoice1 = await QuizChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizChoice1?.setOrganization)
                {
                    await
                    QuizChoice1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizChoice2 = await QuizChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizChoice2?.setOrganization)
                {
                    await
                    QuizChoice2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizChoice3 = await QuizChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizChoice3?.setOrganization)
                {
                    await
                    QuizChoice3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQuizSubmissionWithQuiz() {
            
                const relatedQuiz0 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizSubmission0 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizSubmission0?.setQuiz)
                {
                    await
                    QuizSubmission0.
                    setQuiz(relatedQuiz0);
                }
            
                const relatedQuiz1 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizSubmission1 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizSubmission1?.setQuiz)
                {
                    await
                    QuizSubmission1.
                    setQuiz(relatedQuiz1);
                }
            
                const relatedQuiz2 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizSubmission2 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizSubmission2?.setQuiz)
                {
                    await
                    QuizSubmission2.
                    setQuiz(relatedQuiz2);
                }
            
                const relatedQuiz3 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizSubmission3 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizSubmission3?.setQuiz)
                {
                    await
                    QuizSubmission3.
                    setQuiz(relatedQuiz3);
                }
            
        }
        
    
        
            
            async function associateQuizSubmissionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizSubmission0 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizSubmission0?.setUser)
                {
                    await
                    QuizSubmission0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizSubmission1 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizSubmission1?.setUser)
                {
                    await
                    QuizSubmission1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizSubmission2 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizSubmission2?.setUser)
                {
                    await
                    QuizSubmission2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizSubmission3 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizSubmission3?.setUser)
                {
                    await
                    QuizSubmission3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateQuizSubmissionWithMission_attempt() {
            
                const relatedMission_attempt0 = await MissionAttempts.findOne({
                    offset: Math.floor(Math.random() * (await MissionAttempts.count())),
                });
                const QuizSubmission0 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizSubmission0?.setMission_attempt)
                {
                    await
                    QuizSubmission0.
                    setMission_attempt(relatedMission_attempt0);
                }
            
                const relatedMission_attempt1 = await MissionAttempts.findOne({
                    offset: Math.floor(Math.random() * (await MissionAttempts.count())),
                });
                const QuizSubmission1 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizSubmission1?.setMission_attempt)
                {
                    await
                    QuizSubmission1.
                    setMission_attempt(relatedMission_attempt1);
                }
            
                const relatedMission_attempt2 = await MissionAttempts.findOne({
                    offset: Math.floor(Math.random() * (await MissionAttempts.count())),
                });
                const QuizSubmission2 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizSubmission2?.setMission_attempt)
                {
                    await
                    QuizSubmission2.
                    setMission_attempt(relatedMission_attempt2);
                }
            
                const relatedMission_attempt3 = await MissionAttempts.findOne({
                    offset: Math.floor(Math.random() * (await MissionAttempts.count())),
                });
                const QuizSubmission3 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizSubmission3?.setMission_attempt)
                {
                    await
                    QuizSubmission3.
                    setMission_attempt(relatedMission_attempt3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateQuizSubmissionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizSubmission0 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizSubmission0?.setOrganization)
                {
                    await
                    QuizSubmission0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizSubmission1 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizSubmission1?.setOrganization)
                {
                    await
                    QuizSubmission1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizSubmission2 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizSubmission2?.setOrganization)
                {
                    await
                    QuizSubmission2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizSubmission3 = await QuizSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizSubmission3?.setOrganization)
                {
                    await
                    QuizSubmission3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQuizAnswerWithQuiz_submission() {
            
                const relatedQuiz_submission0 = await QuizSubmissions.findOne({
                    offset: Math.floor(Math.random() * (await QuizSubmissions.count())),
                });
                const QuizAnswer0 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizAnswer0?.setQuiz_submission)
                {
                    await
                    QuizAnswer0.
                    setQuiz_submission(relatedQuiz_submission0);
                }
            
                const relatedQuiz_submission1 = await QuizSubmissions.findOne({
                    offset: Math.floor(Math.random() * (await QuizSubmissions.count())),
                });
                const QuizAnswer1 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizAnswer1?.setQuiz_submission)
                {
                    await
                    QuizAnswer1.
                    setQuiz_submission(relatedQuiz_submission1);
                }
            
                const relatedQuiz_submission2 = await QuizSubmissions.findOne({
                    offset: Math.floor(Math.random() * (await QuizSubmissions.count())),
                });
                const QuizAnswer2 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizAnswer2?.setQuiz_submission)
                {
                    await
                    QuizAnswer2.
                    setQuiz_submission(relatedQuiz_submission2);
                }
            
                const relatedQuiz_submission3 = await QuizSubmissions.findOne({
                    offset: Math.floor(Math.random() * (await QuizSubmissions.count())),
                });
                const QuizAnswer3 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizAnswer3?.setQuiz_submission)
                {
                    await
                    QuizAnswer3.
                    setQuiz_submission(relatedQuiz_submission3);
                }
            
        }
        
    
        
            
            async function associateQuizAnswerWithQuiz_question() {
            
                const relatedQuiz_question0 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizAnswer0 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizAnswer0?.setQuiz_question)
                {
                    await
                    QuizAnswer0.
                    setQuiz_question(relatedQuiz_question0);
                }
            
                const relatedQuiz_question1 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizAnswer1 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizAnswer1?.setQuiz_question)
                {
                    await
                    QuizAnswer1.
                    setQuiz_question(relatedQuiz_question1);
                }
            
                const relatedQuiz_question2 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizAnswer2 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizAnswer2?.setQuiz_question)
                {
                    await
                    QuizAnswer2.
                    setQuiz_question(relatedQuiz_question2);
                }
            
                const relatedQuiz_question3 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizAnswer3 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizAnswer3?.setQuiz_question)
                {
                    await
                    QuizAnswer3.
                    setQuiz_question(relatedQuiz_question3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateQuizAnswerWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizAnswer0 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizAnswer0?.setOrganization)
                {
                    await
                    QuizAnswer0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizAnswer1 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizAnswer1?.setOrganization)
                {
                    await
                    QuizAnswer1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizAnswer2 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizAnswer2?.setOrganization)
                {
                    await
                    QuizAnswer2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizAnswer3 = await QuizAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizAnswer3?.setOrganization)
                {
                    await
                    QuizAnswer3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSimulationWithMission() {
            
                const relatedMission0 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const Simulation0 = await Simulations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Simulation0?.setMission)
                {
                    await
                    Simulation0.
                    setMission(relatedMission0);
                }
            
                const relatedMission1 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const Simulation1 = await Simulations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Simulation1?.setMission)
                {
                    await
                    Simulation1.
                    setMission(relatedMission1);
                }
            
                const relatedMission2 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const Simulation2 = await Simulations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Simulation2?.setMission)
                {
                    await
                    Simulation2.
                    setMission(relatedMission2);
                }
            
                const relatedMission3 = await Missions.findOne({
                    offset: Math.floor(Math.random() * (await Missions.count())),
                });
                const Simulation3 = await Simulations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Simulation3?.setMission)
                {
                    await
                    Simulation3.
                    setMission(relatedMission3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSimulationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Simulation0 = await Simulations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Simulation0?.setOrganization)
                {
                    await
                    Simulation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Simulation1 = await Simulations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Simulation1?.setOrganization)
                {
                    await
                    Simulation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Simulation2 = await Simulations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Simulation2?.setOrganization)
                {
                    await
                    Simulation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Simulation3 = await Simulations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Simulation3?.setOrganization)
                {
                    await
                    Simulation3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSimulationStepWithSimulation() {
            
                const relatedSimulation0 = await Simulations.findOne({
                    offset: Math.floor(Math.random() * (await Simulations.count())),
                });
                const SimulationStep0 = await SimulationSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SimulationStep0?.setSimulation)
                {
                    await
                    SimulationStep0.
                    setSimulation(relatedSimulation0);
                }
            
                const relatedSimulation1 = await Simulations.findOne({
                    offset: Math.floor(Math.random() * (await Simulations.count())),
                });
                const SimulationStep1 = await SimulationSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SimulationStep1?.setSimulation)
                {
                    await
                    SimulationStep1.
                    setSimulation(relatedSimulation1);
                }
            
                const relatedSimulation2 = await Simulations.findOne({
                    offset: Math.floor(Math.random() * (await Simulations.count())),
                });
                const SimulationStep2 = await SimulationSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SimulationStep2?.setSimulation)
                {
                    await
                    SimulationStep2.
                    setSimulation(relatedSimulation2);
                }
            
                const relatedSimulation3 = await Simulations.findOne({
                    offset: Math.floor(Math.random() * (await Simulations.count())),
                });
                const SimulationStep3 = await SimulationSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SimulationStep3?.setSimulation)
                {
                    await
                    SimulationStep3.
                    setSimulation(relatedSimulation3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSimulationStepWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SimulationStep0 = await SimulationSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SimulationStep0?.setOrganization)
                {
                    await
                    SimulationStep0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SimulationStep1 = await SimulationSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SimulationStep1?.setOrganization)
                {
                    await
                    SimulationStep1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SimulationStep2 = await SimulationSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SimulationStep2?.setOrganization)
                {
                    await
                    SimulationStep2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SimulationStep3 = await SimulationSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SimulationStep3?.setOrganization)
                {
                    await
                    SimulationStep3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateContentAssetWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContentAsset0 = await ContentAssets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentAsset0?.setOrganization)
                {
                    await
                    ContentAsset0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContentAsset1 = await ContentAssets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentAsset1?.setOrganization)
                {
                    await
                    ContentAsset1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContentAsset2 = await ContentAssets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentAsset2?.setOrganization)
                {
                    await
                    ContentAsset2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContentAsset3 = await ContentAssets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContentAsset3?.setOrganization)
                {
                    await
                    ContentAsset3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAiContentRequestWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiContentRequest0 = await AiContentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiContentRequest0?.setOrganization)
                {
                    await
                    AiContentRequest0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiContentRequest1 = await AiContentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiContentRequest1?.setOrganization)
                {
                    await
                    AiContentRequest1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiContentRequest2 = await AiContentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiContentRequest2?.setOrganization)
                {
                    await
                    AiContentRequest2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiContentRequest3 = await AiContentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiContentRequest3?.setOrganization)
                {
                    await
                    AiContentRequest3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateAiContentRequestWithRequested_by() {
            
                const relatedRequested_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiContentRequest0 = await AiContentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiContentRequest0?.setRequested_by)
                {
                    await
                    AiContentRequest0.
                    setRequested_by(relatedRequested_by0);
                }
            
                const relatedRequested_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiContentRequest1 = await AiContentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiContentRequest1?.setRequested_by)
                {
                    await
                    AiContentRequest1.
                    setRequested_by(relatedRequested_by1);
                }
            
                const relatedRequested_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiContentRequest2 = await AiContentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiContentRequest2?.setRequested_by)
                {
                    await
                    AiContentRequest2.
                    setRequested_by(relatedRequested_by2);
                }
            
                const relatedRequested_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiContentRequest3 = await AiContentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiContentRequest3?.setRequested_by)
                {
                    await
                    AiContentRequest3.
                    setRequested_by(relatedRequested_by3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateKnowledgeGapAssessmentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KnowledgeGapAssessment0 = await KnowledgeGapAssessments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KnowledgeGapAssessment0?.setOrganization)
                {
                    await
                    KnowledgeGapAssessment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KnowledgeGapAssessment1 = await KnowledgeGapAssessments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KnowledgeGapAssessment1?.setOrganization)
                {
                    await
                    KnowledgeGapAssessment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KnowledgeGapAssessment2 = await KnowledgeGapAssessments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KnowledgeGapAssessment2?.setOrganization)
                {
                    await
                    KnowledgeGapAssessment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KnowledgeGapAssessment3 = await KnowledgeGapAssessments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (KnowledgeGapAssessment3?.setOrganization)
                {
                    await
                    KnowledgeGapAssessment3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateKnowledgeGapAssessmentWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KnowledgeGapAssessment0 = await KnowledgeGapAssessments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KnowledgeGapAssessment0?.setUser)
                {
                    await
                    KnowledgeGapAssessment0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KnowledgeGapAssessment1 = await KnowledgeGapAssessments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KnowledgeGapAssessment1?.setUser)
                {
                    await
                    KnowledgeGapAssessment1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KnowledgeGapAssessment2 = await KnowledgeGapAssessments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KnowledgeGapAssessment2?.setUser)
                {
                    await
                    KnowledgeGapAssessment2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KnowledgeGapAssessment3 = await KnowledgeGapAssessments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (KnowledgeGapAssessment3?.setUser)
                {
                    await
                    KnowledgeGapAssessment3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBadgeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Badge0 = await Badges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Badge0?.setOrganization)
                {
                    await
                    Badge0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Badge1 = await Badges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Badge1?.setOrganization)
                {
                    await
                    Badge1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Badge2 = await Badges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Badge2?.setOrganization)
                {
                    await
                    Badge2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Badge3 = await Badges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Badge3?.setOrganization)
                {
                    await
                    Badge3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserBadgeWithBadge() {
            
                const relatedBadge0 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const UserBadge0 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserBadge0?.setBadge)
                {
                    await
                    UserBadge0.
                    setBadge(relatedBadge0);
                }
            
                const relatedBadge1 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const UserBadge1 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserBadge1?.setBadge)
                {
                    await
                    UserBadge1.
                    setBadge(relatedBadge1);
                }
            
                const relatedBadge2 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const UserBadge2 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserBadge2?.setBadge)
                {
                    await
                    UserBadge2.
                    setBadge(relatedBadge2);
                }
            
                const relatedBadge3 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const UserBadge3 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserBadge3?.setBadge)
                {
                    await
                    UserBadge3.
                    setBadge(relatedBadge3);
                }
            
        }
        
    
        
            
            async function associateUserBadgeWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge0 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserBadge0?.setUser)
                {
                    await
                    UserBadge0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge1 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserBadge1?.setUser)
                {
                    await
                    UserBadge1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge2 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserBadge2?.setUser)
                {
                    await
                    UserBadge2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge3 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserBadge3?.setUser)
                {
                    await
                    UserBadge3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
            
            async function associateUserBadgeWithAwarded_by() {
            
                const relatedAwarded_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge0 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserBadge0?.setAwarded_by)
                {
                    await
                    UserBadge0.
                    setAwarded_by(relatedAwarded_by0);
                }
            
                const relatedAwarded_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge1 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserBadge1?.setAwarded_by)
                {
                    await
                    UserBadge1.
                    setAwarded_by(relatedAwarded_by1);
                }
            
                const relatedAwarded_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge2 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserBadge2?.setAwarded_by)
                {
                    await
                    UserBadge2.
                    setAwarded_by(relatedAwarded_by2);
                }
            
                const relatedAwarded_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge3 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserBadge3?.setAwarded_by)
                {
                    await
                    UserBadge3.
                    setAwarded_by(relatedAwarded_by3);
                }
            
        }
        
    
        
    
        
            
            async function associateUserBadgeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserBadge0 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserBadge0?.setOrganization)
                {
                    await
                    UserBadge0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserBadge1 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserBadge1?.setOrganization)
                {
                    await
                    UserBadge1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserBadge2 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserBadge2?.setOrganization)
                {
                    await
                    UserBadge2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserBadge3 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserBadge3?.setOrganization)
                {
                    await
                    UserBadge3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePointLedgerEntryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PointLedgerEntry0 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PointLedgerEntry0?.setOrganization)
                {
                    await
                    PointLedgerEntry0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PointLedgerEntry1 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PointLedgerEntry1?.setOrganization)
                {
                    await
                    PointLedgerEntry1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PointLedgerEntry2 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PointLedgerEntry2?.setOrganization)
                {
                    await
                    PointLedgerEntry2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PointLedgerEntry3 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PointLedgerEntry3?.setOrganization)
                {
                    await
                    PointLedgerEntry3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associatePointLedgerEntryWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PointLedgerEntry0 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PointLedgerEntry0?.setUser)
                {
                    await
                    PointLedgerEntry0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PointLedgerEntry1 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PointLedgerEntry1?.setUser)
                {
                    await
                    PointLedgerEntry1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PointLedgerEntry2 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PointLedgerEntry2?.setUser)
                {
                    await
                    PointLedgerEntry2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PointLedgerEntry3 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PointLedgerEntry3?.setUser)
                {
                    await
                    PointLedgerEntry3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateChallengeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Challenge0 = await Challenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Challenge0?.setOrganization)
                {
                    await
                    Challenge0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Challenge1 = await Challenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Challenge1?.setOrganization)
                {
                    await
                    Challenge1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Challenge2 = await Challenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Challenge2?.setOrganization)
                {
                    await
                    Challenge2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Challenge3 = await Challenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Challenge3?.setOrganization)
                {
                    await
                    Challenge3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateChallengeWithCreated_by() {
            
                const relatedCreated_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Challenge0 = await Challenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Challenge0?.setCreated_by)
                {
                    await
                    Challenge0.
                    setCreated_by(relatedCreated_by0);
                }
            
                const relatedCreated_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Challenge1 = await Challenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Challenge1?.setCreated_by)
                {
                    await
                    Challenge1.
                    setCreated_by(relatedCreated_by1);
                }
            
                const relatedCreated_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Challenge2 = await Challenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Challenge2?.setCreated_by)
                {
                    await
                    Challenge2.
                    setCreated_by(relatedCreated_by2);
                }
            
                const relatedCreated_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Challenge3 = await Challenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Challenge3?.setCreated_by)
                {
                    await
                    Challenge3.
                    setCreated_by(relatedCreated_by3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateChallengeParticipantWithChallenge() {
            
                const relatedChallenge0 = await Challenges.findOne({
                    offset: Math.floor(Math.random() * (await Challenges.count())),
                });
                const ChallengeParticipant0 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChallengeParticipant0?.setChallenge)
                {
                    await
                    ChallengeParticipant0.
                    setChallenge(relatedChallenge0);
                }
            
                const relatedChallenge1 = await Challenges.findOne({
                    offset: Math.floor(Math.random() * (await Challenges.count())),
                });
                const ChallengeParticipant1 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChallengeParticipant1?.setChallenge)
                {
                    await
                    ChallengeParticipant1.
                    setChallenge(relatedChallenge1);
                }
            
                const relatedChallenge2 = await Challenges.findOne({
                    offset: Math.floor(Math.random() * (await Challenges.count())),
                });
                const ChallengeParticipant2 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChallengeParticipant2?.setChallenge)
                {
                    await
                    ChallengeParticipant2.
                    setChallenge(relatedChallenge2);
                }
            
                const relatedChallenge3 = await Challenges.findOne({
                    offset: Math.floor(Math.random() * (await Challenges.count())),
                });
                const ChallengeParticipant3 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChallengeParticipant3?.setChallenge)
                {
                    await
                    ChallengeParticipant3.
                    setChallenge(relatedChallenge3);
                }
            
        }
        
    
        
    
        
            
            async function associateChallengeParticipantWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChallengeParticipant0 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChallengeParticipant0?.setUser)
                {
                    await
                    ChallengeParticipant0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChallengeParticipant1 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChallengeParticipant1?.setUser)
                {
                    await
                    ChallengeParticipant1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChallengeParticipant2 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChallengeParticipant2?.setUser)
                {
                    await
                    ChallengeParticipant2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChallengeParticipant3 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChallengeParticipant3?.setUser)
                {
                    await
                    ChallengeParticipant3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateChallengeParticipantWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ChallengeParticipant0 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChallengeParticipant0?.setTeam)
                {
                    await
                    ChallengeParticipant0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ChallengeParticipant1 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChallengeParticipant1?.setTeam)
                {
                    await
                    ChallengeParticipant1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ChallengeParticipant2 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChallengeParticipant2?.setTeam)
                {
                    await
                    ChallengeParticipant2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ChallengeParticipant3 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChallengeParticipant3?.setTeam)
                {
                    await
                    ChallengeParticipant3.
                    setTeam(relatedTeam3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateChallengeParticipantWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChallengeParticipant0 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChallengeParticipant0?.setOrganization)
                {
                    await
                    ChallengeParticipant0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChallengeParticipant1 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChallengeParticipant1?.setOrganization)
                {
                    await
                    ChallengeParticipant1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChallengeParticipant2 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChallengeParticipant2?.setOrganization)
                {
                    await
                    ChallengeParticipant2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChallengeParticipant3 = await ChallengeParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChallengeParticipant3?.setOrganization)
                {
                    await
                    ChallengeParticipant3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRewardCatalogItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RewardCatalogItem0 = await RewardCatalogItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RewardCatalogItem0?.setOrganization)
                {
                    await
                    RewardCatalogItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RewardCatalogItem1 = await RewardCatalogItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RewardCatalogItem1?.setOrganization)
                {
                    await
                    RewardCatalogItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RewardCatalogItem2 = await RewardCatalogItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RewardCatalogItem2?.setOrganization)
                {
                    await
                    RewardCatalogItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RewardCatalogItem3 = await RewardCatalogItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RewardCatalogItem3?.setOrganization)
                {
                    await
                    RewardCatalogItem3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateRewardRedemptionWithReward_catalog_item() {
            
                const relatedReward_catalog_item0 = await RewardCatalogItems.findOne({
                    offset: Math.floor(Math.random() * (await RewardCatalogItems.count())),
                });
                const RewardRedemption0 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RewardRedemption0?.setReward_catalog_item)
                {
                    await
                    RewardRedemption0.
                    setReward_catalog_item(relatedReward_catalog_item0);
                }
            
                const relatedReward_catalog_item1 = await RewardCatalogItems.findOne({
                    offset: Math.floor(Math.random() * (await RewardCatalogItems.count())),
                });
                const RewardRedemption1 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RewardRedemption1?.setReward_catalog_item)
                {
                    await
                    RewardRedemption1.
                    setReward_catalog_item(relatedReward_catalog_item1);
                }
            
                const relatedReward_catalog_item2 = await RewardCatalogItems.findOne({
                    offset: Math.floor(Math.random() * (await RewardCatalogItems.count())),
                });
                const RewardRedemption2 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RewardRedemption2?.setReward_catalog_item)
                {
                    await
                    RewardRedemption2.
                    setReward_catalog_item(relatedReward_catalog_item2);
                }
            
                const relatedReward_catalog_item3 = await RewardCatalogItems.findOne({
                    offset: Math.floor(Math.random() * (await RewardCatalogItems.count())),
                });
                const RewardRedemption3 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RewardRedemption3?.setReward_catalog_item)
                {
                    await
                    RewardRedemption3.
                    setReward_catalog_item(relatedReward_catalog_item3);
                }
            
        }
        
    
        
            
            async function associateRewardRedemptionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RewardRedemption0 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RewardRedemption0?.setOrganization)
                {
                    await
                    RewardRedemption0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RewardRedemption1 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RewardRedemption1?.setOrganization)
                {
                    await
                    RewardRedemption1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RewardRedemption2 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RewardRedemption2?.setOrganization)
                {
                    await
                    RewardRedemption2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RewardRedemption3 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RewardRedemption3?.setOrganization)
                {
                    await
                    RewardRedemption3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateRewardRedemptionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RewardRedemption0 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RewardRedemption0?.setUser)
                {
                    await
                    RewardRedemption0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RewardRedemption1 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RewardRedemption1?.setUser)
                {
                    await
                    RewardRedemption1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RewardRedemption2 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RewardRedemption2?.setUser)
                {
                    await
                    RewardRedemption2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RewardRedemption3 = await RewardRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RewardRedemption3?.setUser)
                {
                    await
                    RewardRedemption3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateRecognitionPostWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RecognitionPost0 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecognitionPost0?.setOrganization)
                {
                    await
                    RecognitionPost0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RecognitionPost1 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecognitionPost1?.setOrganization)
                {
                    await
                    RecognitionPost1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RecognitionPost2 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecognitionPost2?.setOrganization)
                {
                    await
                    RecognitionPost2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RecognitionPost3 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecognitionPost3?.setOrganization)
                {
                    await
                    RecognitionPost3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateRecognitionPostWithFrom_user() {
            
                const relatedFrom_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecognitionPost0 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecognitionPost0?.setFrom_user)
                {
                    await
                    RecognitionPost0.
                    setFrom_user(relatedFrom_user0);
                }
            
                const relatedFrom_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecognitionPost1 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecognitionPost1?.setFrom_user)
                {
                    await
                    RecognitionPost1.
                    setFrom_user(relatedFrom_user1);
                }
            
                const relatedFrom_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecognitionPost2 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecognitionPost2?.setFrom_user)
                {
                    await
                    RecognitionPost2.
                    setFrom_user(relatedFrom_user2);
                }
            
                const relatedFrom_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecognitionPost3 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecognitionPost3?.setFrom_user)
                {
                    await
                    RecognitionPost3.
                    setFrom_user(relatedFrom_user3);
                }
            
        }
        
    
        
            
            async function associateRecognitionPostWithTo_user() {
            
                const relatedTo_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecognitionPost0 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecognitionPost0?.setTo_user)
                {
                    await
                    RecognitionPost0.
                    setTo_user(relatedTo_user0);
                }
            
                const relatedTo_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecognitionPost1 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecognitionPost1?.setTo_user)
                {
                    await
                    RecognitionPost1.
                    setTo_user(relatedTo_user1);
                }
            
                const relatedTo_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecognitionPost2 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecognitionPost2?.setTo_user)
                {
                    await
                    RecognitionPost2.
                    setTo_user(relatedTo_user2);
                }
            
                const relatedTo_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecognitionPost3 = await RecognitionPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecognitionPost3?.setTo_user)
                {
                    await
                    RecognitionPost3.
                    setTo_user(relatedTo_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCoachingSessionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoachingSession0 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoachingSession0?.setOrganization)
                {
                    await
                    CoachingSession0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoachingSession1 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoachingSession1?.setOrganization)
                {
                    await
                    CoachingSession1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoachingSession2 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoachingSession2?.setOrganization)
                {
                    await
                    CoachingSession2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoachingSession3 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoachingSession3?.setOrganization)
                {
                    await
                    CoachingSession3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateCoachingSessionWithCoach() {
            
                const relatedCoach0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession0 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoachingSession0?.setCoach)
                {
                    await
                    CoachingSession0.
                    setCoach(relatedCoach0);
                }
            
                const relatedCoach1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession1 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoachingSession1?.setCoach)
                {
                    await
                    CoachingSession1.
                    setCoach(relatedCoach1);
                }
            
                const relatedCoach2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession2 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoachingSession2?.setCoach)
                {
                    await
                    CoachingSession2.
                    setCoach(relatedCoach2);
                }
            
                const relatedCoach3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession3 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoachingSession3?.setCoach)
                {
                    await
                    CoachingSession3.
                    setCoach(relatedCoach3);
                }
            
        }
        
    
        
            
            async function associateCoachingSessionWithCoachee() {
            
                const relatedCoachee0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession0 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoachingSession0?.setCoachee)
                {
                    await
                    CoachingSession0.
                    setCoachee(relatedCoachee0);
                }
            
                const relatedCoachee1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession1 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoachingSession1?.setCoachee)
                {
                    await
                    CoachingSession1.
                    setCoachee(relatedCoachee1);
                }
            
                const relatedCoachee2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession2 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoachingSession2?.setCoachee)
                {
                    await
                    CoachingSession2.
                    setCoachee(relatedCoachee2);
                }
            
                const relatedCoachee3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession3 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoachingSession3?.setCoachee)
                {
                    await
                    CoachingSession3.
                    setCoachee(relatedCoachee3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateKpiDefinitionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KpiDefinition0 = await KpiDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KpiDefinition0?.setOrganization)
                {
                    await
                    KpiDefinition0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KpiDefinition1 = await KpiDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KpiDefinition1?.setOrganization)
                {
                    await
                    KpiDefinition1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KpiDefinition2 = await KpiDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KpiDefinition2?.setOrganization)
                {
                    await
                    KpiDefinition2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KpiDefinition3 = await KpiDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (KpiDefinition3?.setOrganization)
                {
                    await
                    KpiDefinition3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateKpiMeasurementWithKpi_definition() {
            
                const relatedKpi_definition0 = await KpiDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await KpiDefinitions.count())),
                });
                const KpiMeasurement0 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KpiMeasurement0?.setKpi_definition)
                {
                    await
                    KpiMeasurement0.
                    setKpi_definition(relatedKpi_definition0);
                }
            
                const relatedKpi_definition1 = await KpiDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await KpiDefinitions.count())),
                });
                const KpiMeasurement1 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KpiMeasurement1?.setKpi_definition)
                {
                    await
                    KpiMeasurement1.
                    setKpi_definition(relatedKpi_definition1);
                }
            
                const relatedKpi_definition2 = await KpiDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await KpiDefinitions.count())),
                });
                const KpiMeasurement2 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KpiMeasurement2?.setKpi_definition)
                {
                    await
                    KpiMeasurement2.
                    setKpi_definition(relatedKpi_definition2);
                }
            
                const relatedKpi_definition3 = await KpiDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await KpiDefinitions.count())),
                });
                const KpiMeasurement3 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (KpiMeasurement3?.setKpi_definition)
                {
                    await
                    KpiMeasurement3.
                    setKpi_definition(relatedKpi_definition3);
                }
            
        }
        
    
        
            
            async function associateKpiMeasurementWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KpiMeasurement0 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KpiMeasurement0?.setOrganization)
                {
                    await
                    KpiMeasurement0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KpiMeasurement1 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KpiMeasurement1?.setOrganization)
                {
                    await
                    KpiMeasurement1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KpiMeasurement2 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KpiMeasurement2?.setOrganization)
                {
                    await
                    KpiMeasurement2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KpiMeasurement3 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (KpiMeasurement3?.setOrganization)
                {
                    await
                    KpiMeasurement3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateKpiMeasurementWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KpiMeasurement0 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KpiMeasurement0?.setUser)
                {
                    await
                    KpiMeasurement0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KpiMeasurement1 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KpiMeasurement1?.setUser)
                {
                    await
                    KpiMeasurement1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KpiMeasurement2 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KpiMeasurement2?.setUser)
                {
                    await
                    KpiMeasurement2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KpiMeasurement3 = await KpiMeasurements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (KpiMeasurement3?.setUser)
                {
                    await
                    KpiMeasurement3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateQaEvaluationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QaEvaluation0 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QaEvaluation0?.setOrganization)
                {
                    await
                    QaEvaluation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QaEvaluation1 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QaEvaluation1?.setOrganization)
                {
                    await
                    QaEvaluation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QaEvaluation2 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QaEvaluation2?.setOrganization)
                {
                    await
                    QaEvaluation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QaEvaluation3 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QaEvaluation3?.setOrganization)
                {
                    await
                    QaEvaluation3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateQaEvaluationWithEvaluator() {
            
                const relatedEvaluator0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QaEvaluation0 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QaEvaluation0?.setEvaluator)
                {
                    await
                    QaEvaluation0.
                    setEvaluator(relatedEvaluator0);
                }
            
                const relatedEvaluator1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QaEvaluation1 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QaEvaluation1?.setEvaluator)
                {
                    await
                    QaEvaluation1.
                    setEvaluator(relatedEvaluator1);
                }
            
                const relatedEvaluator2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QaEvaluation2 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QaEvaluation2?.setEvaluator)
                {
                    await
                    QaEvaluation2.
                    setEvaluator(relatedEvaluator2);
                }
            
                const relatedEvaluator3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QaEvaluation3 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QaEvaluation3?.setEvaluator)
                {
                    await
                    QaEvaluation3.
                    setEvaluator(relatedEvaluator3);
                }
            
        }
        
    
        
            
            async function associateQaEvaluationWithAgent() {
            
                const relatedAgent0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QaEvaluation0 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QaEvaluation0?.setAgent)
                {
                    await
                    QaEvaluation0.
                    setAgent(relatedAgent0);
                }
            
                const relatedAgent1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QaEvaluation1 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QaEvaluation1?.setAgent)
                {
                    await
                    QaEvaluation1.
                    setAgent(relatedAgent1);
                }
            
                const relatedAgent2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QaEvaluation2 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QaEvaluation2?.setAgent)
                {
                    await
                    QaEvaluation2.
                    setAgent(relatedAgent2);
                }
            
                const relatedAgent3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QaEvaluation3 = await QaEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QaEvaluation3?.setAgent)
                {
                    await
                    QaEvaluation3.
                    setAgent(relatedAgent3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateQaScorecardWithQa_evaluation() {
            
                const relatedQa_evaluation0 = await QaEvaluations.findOne({
                    offset: Math.floor(Math.random() * (await QaEvaluations.count())),
                });
                const QaScorecard0 = await QaScorecards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QaScorecard0?.setQa_evaluation)
                {
                    await
                    QaScorecard0.
                    setQa_evaluation(relatedQa_evaluation0);
                }
            
                const relatedQa_evaluation1 = await QaEvaluations.findOne({
                    offset: Math.floor(Math.random() * (await QaEvaluations.count())),
                });
                const QaScorecard1 = await QaScorecards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QaScorecard1?.setQa_evaluation)
                {
                    await
                    QaScorecard1.
                    setQa_evaluation(relatedQa_evaluation1);
                }
            
                const relatedQa_evaluation2 = await QaEvaluations.findOne({
                    offset: Math.floor(Math.random() * (await QaEvaluations.count())),
                });
                const QaScorecard2 = await QaScorecards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QaScorecard2?.setQa_evaluation)
                {
                    await
                    QaScorecard2.
                    setQa_evaluation(relatedQa_evaluation2);
                }
            
                const relatedQa_evaluation3 = await QaEvaluations.findOne({
                    offset: Math.floor(Math.random() * (await QaEvaluations.count())),
                });
                const QaScorecard3 = await QaScorecards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QaScorecard3?.setQa_evaluation)
                {
                    await
                    QaScorecard3.
                    setQa_evaluation(relatedQa_evaluation3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateQaScorecardWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QaScorecard0 = await QaScorecards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QaScorecard0?.setOrganization)
                {
                    await
                    QaScorecard0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QaScorecard1 = await QaScorecards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QaScorecard1?.setOrganization)
                {
                    await
                    QaScorecard1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QaScorecard2 = await QaScorecards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QaScorecard2?.setOrganization)
                {
                    await
                    QaScorecard2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QaScorecard3 = await QaScorecards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QaScorecard3?.setOrganization)
                {
                    await
                    QaScorecard3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSurveyWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Survey0 = await Surveys.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Survey0?.setOrganization)
                {
                    await
                    Survey0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Survey1 = await Surveys.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Survey1?.setOrganization)
                {
                    await
                    Survey1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Survey2 = await Surveys.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Survey2?.setOrganization)
                {
                    await
                    Survey2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Survey3 = await Surveys.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Survey3?.setOrganization)
                {
                    await
                    Survey3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateSurveyQuestionWithSurvey() {
            
                const relatedSurvey0 = await Surveys.findOne({
                    offset: Math.floor(Math.random() * (await Surveys.count())),
                });
                const SurveyQuestion0 = await SurveyQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SurveyQuestion0?.setSurvey)
                {
                    await
                    SurveyQuestion0.
                    setSurvey(relatedSurvey0);
                }
            
                const relatedSurvey1 = await Surveys.findOne({
                    offset: Math.floor(Math.random() * (await Surveys.count())),
                });
                const SurveyQuestion1 = await SurveyQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SurveyQuestion1?.setSurvey)
                {
                    await
                    SurveyQuestion1.
                    setSurvey(relatedSurvey1);
                }
            
                const relatedSurvey2 = await Surveys.findOne({
                    offset: Math.floor(Math.random() * (await Surveys.count())),
                });
                const SurveyQuestion2 = await SurveyQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SurveyQuestion2?.setSurvey)
                {
                    await
                    SurveyQuestion2.
                    setSurvey(relatedSurvey2);
                }
            
                const relatedSurvey3 = await Surveys.findOne({
                    offset: Math.floor(Math.random() * (await Surveys.count())),
                });
                const SurveyQuestion3 = await SurveyQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SurveyQuestion3?.setSurvey)
                {
                    await
                    SurveyQuestion3.
                    setSurvey(relatedSurvey3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSurveyQuestionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyQuestion0 = await SurveyQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SurveyQuestion0?.setOrganization)
                {
                    await
                    SurveyQuestion0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyQuestion1 = await SurveyQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SurveyQuestion1?.setOrganization)
                {
                    await
                    SurveyQuestion1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyQuestion2 = await SurveyQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SurveyQuestion2?.setOrganization)
                {
                    await
                    SurveyQuestion2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyQuestion3 = await SurveyQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SurveyQuestion3?.setOrganization)
                {
                    await
                    SurveyQuestion3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSurveyResponsWithSurvey() {
            
                const relatedSurvey0 = await Surveys.findOne({
                    offset: Math.floor(Math.random() * (await Surveys.count())),
                });
                const SurveyRespons0 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SurveyRespons0?.setSurvey)
                {
                    await
                    SurveyRespons0.
                    setSurvey(relatedSurvey0);
                }
            
                const relatedSurvey1 = await Surveys.findOne({
                    offset: Math.floor(Math.random() * (await Surveys.count())),
                });
                const SurveyRespons1 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SurveyRespons1?.setSurvey)
                {
                    await
                    SurveyRespons1.
                    setSurvey(relatedSurvey1);
                }
            
                const relatedSurvey2 = await Surveys.findOne({
                    offset: Math.floor(Math.random() * (await Surveys.count())),
                });
                const SurveyRespons2 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SurveyRespons2?.setSurvey)
                {
                    await
                    SurveyRespons2.
                    setSurvey(relatedSurvey2);
                }
            
                const relatedSurvey3 = await Surveys.findOne({
                    offset: Math.floor(Math.random() * (await Surveys.count())),
                });
                const SurveyRespons3 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SurveyRespons3?.setSurvey)
                {
                    await
                    SurveyRespons3.
                    setSurvey(relatedSurvey3);
                }
            
        }
        
    
        
            
            async function associateSurveyResponsWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyRespons0 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SurveyRespons0?.setOrganization)
                {
                    await
                    SurveyRespons0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyRespons1 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SurveyRespons1?.setOrganization)
                {
                    await
                    SurveyRespons1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyRespons2 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SurveyRespons2?.setOrganization)
                {
                    await
                    SurveyRespons2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyRespons3 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SurveyRespons3?.setOrganization)
                {
                    await
                    SurveyRespons3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateSurveyResponsWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SurveyRespons0 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SurveyRespons0?.setUser)
                {
                    await
                    SurveyRespons0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SurveyRespons1 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SurveyRespons1?.setUser)
                {
                    await
                    SurveyRespons1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SurveyRespons2 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SurveyRespons2?.setUser)
                {
                    await
                    SurveyRespons2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SurveyRespons3 = await SurveyResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SurveyRespons3?.setUser)
                {
                    await
                    SurveyRespons3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateSurveyResponseItemWithSurvey_response() {
            
                const relatedSurvey_response0 = await SurveyResponses.findOne({
                    offset: Math.floor(Math.random() * (await SurveyResponses.count())),
                });
                const SurveyResponseItem0 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SurveyResponseItem0?.setSurvey_response)
                {
                    await
                    SurveyResponseItem0.
                    setSurvey_response(relatedSurvey_response0);
                }
            
                const relatedSurvey_response1 = await SurveyResponses.findOne({
                    offset: Math.floor(Math.random() * (await SurveyResponses.count())),
                });
                const SurveyResponseItem1 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SurveyResponseItem1?.setSurvey_response)
                {
                    await
                    SurveyResponseItem1.
                    setSurvey_response(relatedSurvey_response1);
                }
            
                const relatedSurvey_response2 = await SurveyResponses.findOne({
                    offset: Math.floor(Math.random() * (await SurveyResponses.count())),
                });
                const SurveyResponseItem2 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SurveyResponseItem2?.setSurvey_response)
                {
                    await
                    SurveyResponseItem2.
                    setSurvey_response(relatedSurvey_response2);
                }
            
                const relatedSurvey_response3 = await SurveyResponses.findOne({
                    offset: Math.floor(Math.random() * (await SurveyResponses.count())),
                });
                const SurveyResponseItem3 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SurveyResponseItem3?.setSurvey_response)
                {
                    await
                    SurveyResponseItem3.
                    setSurvey_response(relatedSurvey_response3);
                }
            
        }
        
    
        
            
            async function associateSurveyResponseItemWithSurvey_question() {
            
                const relatedSurvey_question0 = await SurveyQuestions.findOne({
                    offset: Math.floor(Math.random() * (await SurveyQuestions.count())),
                });
                const SurveyResponseItem0 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SurveyResponseItem0?.setSurvey_question)
                {
                    await
                    SurveyResponseItem0.
                    setSurvey_question(relatedSurvey_question0);
                }
            
                const relatedSurvey_question1 = await SurveyQuestions.findOne({
                    offset: Math.floor(Math.random() * (await SurveyQuestions.count())),
                });
                const SurveyResponseItem1 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SurveyResponseItem1?.setSurvey_question)
                {
                    await
                    SurveyResponseItem1.
                    setSurvey_question(relatedSurvey_question1);
                }
            
                const relatedSurvey_question2 = await SurveyQuestions.findOne({
                    offset: Math.floor(Math.random() * (await SurveyQuestions.count())),
                });
                const SurveyResponseItem2 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SurveyResponseItem2?.setSurvey_question)
                {
                    await
                    SurveyResponseItem2.
                    setSurvey_question(relatedSurvey_question2);
                }
            
                const relatedSurvey_question3 = await SurveyQuestions.findOne({
                    offset: Math.floor(Math.random() * (await SurveyQuestions.count())),
                });
                const SurveyResponseItem3 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SurveyResponseItem3?.setSurvey_question)
                {
                    await
                    SurveyResponseItem3.
                    setSurvey_question(relatedSurvey_question3);
                }
            
        }
        
    
        
    
        
            
            async function associateSurveyResponseItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyResponseItem0 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SurveyResponseItem0?.setOrganization)
                {
                    await
                    SurveyResponseItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyResponseItem1 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SurveyResponseItem1?.setOrganization)
                {
                    await
                    SurveyResponseItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyResponseItem2 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SurveyResponseItem2?.setOrganization)
                {
                    await
                    SurveyResponseItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SurveyResponseItem3 = await SurveyResponseItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SurveyResponseItem3?.setOrganization)
                {
                    await
                    SurveyResponseItem3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateReportWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Report0 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Report0?.setOrganization)
                {
                    await
                    Report0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Report1 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Report1?.setOrganization)
                {
                    await
                    Report1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Report2 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Report2?.setOrganization)
                {
                    await
                    Report2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Report3 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Report3?.setOrganization)
                {
                    await
                    Report3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAuditEventWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setOrganization)
                {
                    await
                    AuditEvent0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setOrganization)
                {
                    await
                    AuditEvent1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setOrganization)
                {
                    await
                    AuditEvent2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent3 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditEvent3?.setOrganization)
                {
                    await
                    AuditEvent3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateAuditEventWithActor() {
            
                const relatedActor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setActor)
                {
                    await
                    AuditEvent0.
                    setActor(relatedActor0);
                }
            
                const relatedActor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setActor)
                {
                    await
                    AuditEvent1.
                    setActor(relatedActor1);
                }
            
                const relatedActor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setActor)
                {
                    await
                    AuditEvent2.
                    setActor(relatedActor2);
                }
            
                const relatedActor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent3 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditEvent3?.setActor)
                {
                    await
                    AuditEvent3.
                    setActor(relatedActor3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await RolePermissions.bulkCreate(RolePermissionsData);
                
            
            
                
                await RoleAssignments.bulkCreate(RoleAssignmentsData);
                
            
            
                
                await Teams.bulkCreate(TeamsData);
                
            
            
                
                await TeamMemberships.bulkCreate(TeamMembershipsData);
                
            
            
                
                await Programs.bulkCreate(ProgramsData);
                
            
            
                
                await LearningPaths.bulkCreate(LearningPathsData);
                
            
            
                
                await Missions.bulkCreate(MissionsData);
                
            
            
                
                await Checklists.bulkCreate(ChecklistsData);
                
            
            
                
                await ChecklistItems.bulkCreate(ChecklistItemsData);
                
            
            
                
                await Enrollments.bulkCreate(EnrollmentsData);
                
            
            
                
                await MissionAttempts.bulkCreate(MissionAttemptsData);
                
            
            
                
                await Quizzes.bulkCreate(QuizzesData);
                
            
            
                
                await QuizQuestions.bulkCreate(QuizQuestionsData);
                
            
            
                
                await QuizChoices.bulkCreate(QuizChoicesData);
                
            
            
                
                await QuizSubmissions.bulkCreate(QuizSubmissionsData);
                
            
            
                
                await QuizAnswers.bulkCreate(QuizAnswersData);
                
            
            
                
                await Simulations.bulkCreate(SimulationsData);
                
            
            
                
                await SimulationSteps.bulkCreate(SimulationStepsData);
                
            
            
                
                await ContentAssets.bulkCreate(ContentAssetsData);
                
            
            
                
                await AiContentRequests.bulkCreate(AiContentRequestsData);
                
            
            
                
                await KnowledgeGapAssessments.bulkCreate(KnowledgeGapAssessmentsData);
                
            
            
                
                await Badges.bulkCreate(BadgesData);
                
            
            
                
                await UserBadges.bulkCreate(UserBadgesData);
                
            
            
                
                await PointLedgerEntries.bulkCreate(PointLedgerEntriesData);
                
            
            
                
                await Challenges.bulkCreate(ChallengesData);
                
            
            
                
                await ChallengeParticipants.bulkCreate(ChallengeParticipantsData);
                
            
            
                
                await RewardCatalogItems.bulkCreate(RewardCatalogItemsData);
                
            
            
                
                await RewardRedemptions.bulkCreate(RewardRedemptionsData);
                
            
            
                
                await RecognitionPosts.bulkCreate(RecognitionPostsData);
                
            
            
                
                await CoachingSessions.bulkCreate(CoachingSessionsData);
                
            
            
                
                await KpiDefinitions.bulkCreate(KpiDefinitionsData);
                
            
            
                
                await KpiMeasurements.bulkCreate(KpiMeasurementsData);
                
            
            
                
                await QaEvaluations.bulkCreate(QaEvaluationsData);
                
            
            
                
                await QaScorecards.bulkCreate(QaScorecardsData);
                
            
            
                
                await Surveys.bulkCreate(SurveysData);
                
            
            
                
                await SurveyQuestions.bulkCreate(SurveyQuestionsData);
                
            
            
                
                await SurveyResponses.bulkCreate(SurveyResponsesData);
                
            
            
                
                await SurveyResponseItems.bulkCreate(SurveyResponseItemsData);
                
            
            
                
                await Reports.bulkCreate(ReportsData);
                
            
            
                
                await AuditEvents.bulkCreate(AuditEventsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateRolePermissionWithPermission(),
                    
                
                    
                
                    
                        
                        await associateRolePermissionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRoleAssignmentWithOrganization(),
                    
                
                    
                        
                        await associateRoleAssignmentWithUser(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTeamWithOrganization(),
                    
                
                    
                
                    
                
                    
                        
                        await associateTeamWithManager(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateTeamMembershipWithTeam(),
                    
                
                    
                        
                        await associateTeamMembershipWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTeamMembershipWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateProgramWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLearningPathWithProgram(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLearningPathWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMissionWithLearning_path(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMissionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateChecklistWithProgram(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateChecklistWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateChecklistItemWithChecklist(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateChecklistItemWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateEnrollmentWithOrganization(),
                    
                
                    
                        
                        await associateEnrollmentWithProgram(),
                    
                
                    
                        
                        await associateEnrollmentWithUser(),
                    
                
                    
                        
                        await associateEnrollmentWithAssigned_by(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMissionAttemptWithMission(),
                    
                
                    
                        
                        await associateMissionAttemptWithUser(),
                    
                
                    
                        
                        await associateMissionAttemptWithEnrollment(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMissionAttemptWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQuizzeWithMission(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizzeWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQuizQuestionWithQuiz(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizQuestionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQuizChoiceWithQuiz_question(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizChoiceWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQuizSubmissionWithQuiz(),
                    
                
                    
                        
                        await associateQuizSubmissionWithUser(),
                    
                
                    
                        
                        await associateQuizSubmissionWithMission_attempt(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizSubmissionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQuizAnswerWithQuiz_submission(),
                    
                
                    
                        
                        await associateQuizAnswerWithQuiz_question(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizAnswerWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSimulationWithMission(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSimulationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSimulationStepWithSimulation(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSimulationStepWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateContentAssetWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAiContentRequestWithOrganization(),
                    
                
                    
                        
                        await associateAiContentRequestWithRequested_by(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateKnowledgeGapAssessmentWithOrganization(),
                    
                
                    
                        
                        await associateKnowledgeGapAssessmentWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBadgeWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserBadgeWithBadge(),
                    
                
                    
                        
                        await associateUserBadgeWithUser(),
                    
                
                    
                
                    
                        
                        await associateUserBadgeWithAwarded_by(),
                    
                
                    
                
                    
                        
                        await associateUserBadgeWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePointLedgerEntryWithOrganization(),
                    
                
                    
                        
                        await associatePointLedgerEntryWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateChallengeWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateChallengeWithCreated_by(),
                    
                
            
                
                
                    
                        
                        await associateChallengeParticipantWithChallenge(),
                    
                
                    
                
                    
                        
                        await associateChallengeParticipantWithUser(),
                    
                
                    
                        
                        await associateChallengeParticipantWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateChallengeParticipantWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRewardCatalogItemWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateRewardRedemptionWithReward_catalog_item(),
                    
                
                    
                        
                        await associateRewardRedemptionWithOrganization(),
                    
                
                    
                        
                        await associateRewardRedemptionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateRecognitionPostWithOrganization(),
                    
                
                    
                        
                        await associateRecognitionPostWithFrom_user(),
                    
                
                    
                        
                        await associateRecognitionPostWithTo_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCoachingSessionWithOrganization(),
                    
                
                    
                        
                        await associateCoachingSessionWithCoach(),
                    
                
                    
                        
                        await associateCoachingSessionWithCoachee(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateKpiDefinitionWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateKpiMeasurementWithKpi_definition(),
                    
                
                    
                        
                        await associateKpiMeasurementWithOrganization(),
                    
                
                    
                        
                        await associateKpiMeasurementWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQaEvaluationWithOrganization(),
                    
                
                    
                        
                        await associateQaEvaluationWithEvaluator(),
                    
                
                    
                        
                        await associateQaEvaluationWithAgent(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQaScorecardWithQa_evaluation(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQaScorecardWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSurveyWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSurveyQuestionWithSurvey(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSurveyQuestionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSurveyResponsWithSurvey(),
                    
                
                    
                        
                        await associateSurveyResponsWithOrganization(),
                    
                
                    
                        
                        await associateSurveyResponsWithUser(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSurveyResponseItemWithSurvey_response(),
                    
                
                    
                        
                        await associateSurveyResponseItemWithSurvey_question(),
                    
                
                    
                
                    
                        
                        await associateSurveyResponseItemWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateReportWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAuditEventWithOrganization(),
                    
                
                    
                        
                        await associateAuditEventWithActor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('role_permissions', null, {});
            
            
            await queryInterface.bulkDelete('role_assignments', null, {});
            
            
            await queryInterface.bulkDelete('teams', null, {});
            
            
            await queryInterface.bulkDelete('team_memberships', null, {});
            
            
            await queryInterface.bulkDelete('programs', null, {});
            
            
            await queryInterface.bulkDelete('learning_paths', null, {});
            
            
            await queryInterface.bulkDelete('missions', null, {});
            
            
            await queryInterface.bulkDelete('checklists', null, {});
            
            
            await queryInterface.bulkDelete('checklist_items', null, {});
            
            
            await queryInterface.bulkDelete('enrollments', null, {});
            
            
            await queryInterface.bulkDelete('mission_attempts', null, {});
            
            
            await queryInterface.bulkDelete('quizzes', null, {});
            
            
            await queryInterface.bulkDelete('quiz_questions', null, {});
            
            
            await queryInterface.bulkDelete('quiz_choices', null, {});
            
            
            await queryInterface.bulkDelete('quiz_submissions', null, {});
            
            
            await queryInterface.bulkDelete('quiz_answers', null, {});
            
            
            await queryInterface.bulkDelete('simulations', null, {});
            
            
            await queryInterface.bulkDelete('simulation_steps', null, {});
            
            
            await queryInterface.bulkDelete('content_assets', null, {});
            
            
            await queryInterface.bulkDelete('ai_content_requests', null, {});
            
            
            await queryInterface.bulkDelete('knowledge_gap_assessments', null, {});
            
            
            await queryInterface.bulkDelete('badges', null, {});
            
            
            await queryInterface.bulkDelete('user_badges', null, {});
            
            
            await queryInterface.bulkDelete('point_ledger_entries', null, {});
            
            
            await queryInterface.bulkDelete('challenges', null, {});
            
            
            await queryInterface.bulkDelete('challenge_participants', null, {});
            
            
            await queryInterface.bulkDelete('reward_catalog_items', null, {});
            
            
            await queryInterface.bulkDelete('reward_redemptions', null, {});
            
            
            await queryInterface.bulkDelete('recognition_posts', null, {});
            
            
            await queryInterface.bulkDelete('coaching_sessions', null, {});
            
            
            await queryInterface.bulkDelete('kpi_definitions', null, {});
            
            
            await queryInterface.bulkDelete('kpi_measurements', null, {});
            
            
            await queryInterface.bulkDelete('qa_evaluations', null, {});
            
            
            await queryInterface.bulkDelete('qa_scorecards', null, {});
            
            
            await queryInterface.bulkDelete('surveys', null, {});
            
            
            await queryInterface.bulkDelete('survey_questions', null, {});
            
            
            await queryInterface.bulkDelete('survey_responses', null, {});
            
            
            await queryInterface.bulkDelete('survey_response_items', null, {});
            
            
            await queryInterface.bulkDelete('reports', null, {});
            
            
            await queryInterface.bulkDelete('audit_events', null, {});
            
        
    },
};