





















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






const Organizations = db.organizations;

const OnboardingResponses = db.onboarding_responses;

const ExternalAccounts = db.external_accounts;

const SkillNodes = db.skill_nodes;

const UserSkillNodeAwards = db.user_skill_node_awards;

const Projects = db.projects;

const ExternalSignals = db.external_signals;

const Courses = db.courses;

const CoursePhases = db.course_phases;

const Lessons = db.lessons;

const LessonVariants = db.lesson_variants;

const QuizQuestions = db.quiz_questions;

const BuildTasks = db.build_tasks;

const Enrollments = db.enrollments;

const LessonProgress = db.lesson_progress;

const QuizAttempts = db.quiz_attempts;

const TaskSubmissions = db.task_submissions;

const AiChatSessions = db.ai_chat_sessions;

const AiChatMessages = db.ai_chat_messages;

const CareerCoachReports = db.career_coach_reports;

const UsageLimits = db.usage_limits;

const PricingPlans = db.pricing_plans;

const Subscriptions = db.subscriptions;

const Payments = db.payments;

const Cohorts = db.cohorts;

const OrganizationMemberships = db.organization_memberships;

const TalentInquiries = db.talent_inquiries;







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



const OnboardingResponsesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_name": "complete",
            
        
    
        
        
            
                "learning_goals_text": "Marie Curie",
            
        
    
        
        
            
                "learning_goal_primary": "career_change",
            
        
    
        
        
            
                "linkedin_connected": false,
            
        
    
        
        
            
                "github_connected": false,
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_name": "learning_goals",
            
        
    
        
        
            
                "learning_goals_text": "Alan Turing",
            
        
    
        
        
            
                "learning_goal_primary": "apply_ai_at_work",
            
        
    
        
        
            
                "linkedin_connected": false,
            
        
    
        
        
            
                "github_connected": true,
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_name": "learning_goals",
            
        
    
        
        
            
                "learning_goals_text": "Alan Turing",
            
        
    
        
        
            
                "learning_goal_primary": "build_ai_projects",
            
        
    
        
        
            
                "linkedin_connected": true,
            
        
    
        
        
            
                "github_connected": false,
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_name": "connect_accounts",
            
        
    
        
        
            
                "learning_goals_text": "Alan Turing",
            
        
    
        
        
            
                "learning_goal_primary": "leadership",
            
        
    
        
        
            
                "linkedin_connected": true,
            
        
    
        
        
            
                "github_connected": true,
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ExternalAccountsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "github",
            
        
    
        
        
            
                "handle": "Grace Hopper",
            
        
    
        
        
            
                "profile_url": "Marie Curie",
            
        
    
        
        
            
                "access_token_hint": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                "last_synced_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "linkedin",
            
        
    
        
        
            
                "handle": "Ada Lovelace",
            
        
    
        
        
            
                "profile_url": "Marie Curie",
            
        
    
        
        
            
                "access_token_hint": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                "last_synced_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "github",
            
        
    
        
        
            
                "handle": "Grace Hopper",
            
        
    
        
        
            
                "profile_url": "Ada Lovelace",
            
        
    
        
        
            
                "access_token_hint": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                "last_synced_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "linkedin",
            
        
    
        
        
            
                "handle": "Ada Lovelace",
            
        
    
        
        
            
                "profile_url": "Marie Curie",
            
        
    
        
        
            
                "access_token_hint": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                "last_synced_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SkillNodesData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "category": "external",
            
        
    
        
        
            
                "node_index": 2,
            
        
    
        
        
            
                "is_required_for_certification": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "category": "external",
            
        
    
        
        
            
                "node_index": 2,
            
        
    
        
        
            
                "is_required_for_certification": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "category": "external",
            
        
    
        
        
            
                "node_index": 1,
            
        
    
        
        
            
                "is_required_for_certification": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "category": "core",
            
        
    
        
        
            
                "node_index": 7,
            
        
    
        
        
            
                "is_required_for_certification": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const UserSkillNodeAwardsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source_type": "manual",
            
        
    
        
        
            
                "source_label": "Alan Turing",
            
        
    
        
        
            
                "evidence_url": "Grace Hopper",
            
        
    
        
        
            
                "confidence_score": 8.33,
            
        
    
        
        
            
                "awarded_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
            
        
    
        
        
            
                "source_type": "github",
            
        
    
        
        
            
                "source_label": "Marie Curie",
            
        
    
        
        
            
                "evidence_url": "Ada Lovelace",
            
        
    
        
        
            
                "confidence_score": 1.46,
            
        
    
        
        
            
                "awarded_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
            
        
    
        
        
            
                "source_type": "manual",
            
        
    
        
        
            
                "source_label": "Ada Lovelace",
            
        
    
        
        
            
                "evidence_url": "Marie Curie",
            
        
    
        
        
            
                "confidence_score": 7.38,
            
        
    
        
        
            
                "awarded_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
            
        
    
        
        
            
                "source_type": "lesson_task",
            
        
    
        
        
            
                "source_label": "Marie Curie",
            
        
    
        
        
            
                "evidence_url": "Alan Turing",
            
        
    
        
        
            
                "confidence_score": 9.25,
            
        
    
        
        
            
                "awarded_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProjectsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "project_url": "Ada Lovelace",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "ai_tools_used": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "project_url": "Marie Curie",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "ai_tools_used": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "project_url": "Alan Turing",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "ai_tools_used": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "project_url": "Marie Curie",
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "ai_tools_used": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ExternalSignalsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "github",
            
        
    
        
        
            
                "signal_type": "Grace Hopper",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "summary": "Ada Lovelace",
            
        
    
        
        
            
                "source_url": "Marie Curie",
            
        
    
        
        
            
                "signal_score": 2.04,
            
        
    
        
        
            
                "signal_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_verified": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "reddit",
            
        
    
        
        
            
                "signal_type": "Alan Turing",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                "source_url": "Alan Turing",
            
        
    
        
        
            
                "signal_score": 9.42,
            
        
    
        
        
            
                "signal_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_verified": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "reddit",
            
        
    
        
        
            
                "signal_type": "Grace Hopper",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "source_url": "Alan Turing",
            
        
    
        
        
            
                "signal_score": 7.42,
            
        
    
        
        
            
                "signal_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_verified": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "reddit",
            
        
    
        
        
            
                "signal_type": "Grace Hopper",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "source_url": "Alan Turing",
            
        
    
        
        
            
                "signal_score": 0.09,
            
        
    
        
        
            
                "signal_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_verified": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CoursesData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "tagline": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "hero_image_url": "Alan Turing",
            
        
    
        
        
            
                "estimated_total_minutes": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "tagline": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "hero_image_url": "Grace Hopper",
            
        
    
        
        
            
                "estimated_total_minutes": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "tagline": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "hero_image_url": "Grace Hopper",
            
        
    
        
        
            
                "estimated_total_minutes": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "tagline": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "hero_image_url": "Alan Turing",
            
        
    
        
        
            
                "estimated_total_minutes": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CoursePhasesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "phase_number": 4,
            
        
    
        
        
            
                "estimated_minutes": 2,
            
        
    
        
        
            
                "unlock_rule": "after_previous_phase_complete",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "phase_number": 5,
            
        
    
        
        
            
                "estimated_minutes": 7,
            
        
    
        
        
            
                "unlock_rule": "after_previous_phase_complete",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "summary": "Grace Hopper",
            
        
    
        
        
            
                "phase_number": 1,
            
        
    
        
        
            
                "estimated_minutes": 2,
            
        
    
        
        
            
                "unlock_rule": "after_previous_phase_complete",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "phase_number": 2,
            
        
    
        
        
            
                "estimated_minutes": 3,
            
        
    
        
        
            
                "unlock_rule": "immediate",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LessonsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "summary": "Ada Lovelace",
            
        
    
        
        
            
                "lesson_number": 2,
            
        
    
        
        
            
                "estimated_minutes": 7,
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "base_content": "Ada Lovelace",
            
        
    
        
        
            
                "has_quiz": false,
            
        
    
        
        
            
                "has_build_task": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                "lesson_number": 3,
            
        
    
        
        
            
                "estimated_minutes": 2,
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "base_content": "Marie Curie",
            
        
    
        
        
            
                "has_quiz": true,
            
        
    
        
        
            
                "has_build_task": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "lesson_number": 1,
            
        
    
        
        
            
                "estimated_minutes": 8,
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "base_content": "Ada Lovelace",
            
        
    
        
        
            
                "has_quiz": false,
            
        
    
        
        
            
                "has_build_task": false,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "lesson_number": 9,
            
        
    
        
        
            
                "estimated_minutes": 5,
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "base_content": "Ada Lovelace",
            
        
    
        
        
            
                "has_quiz": true,
            
        
    
        
        
            
                "has_build_task": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LessonVariantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "functional_role": "operations",
            
        
    
        
        
            
                "adapted_content": "Alan Turing",
            
        
    
        
        
            
                "adaptation_notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "functional_role": "sales",
            
        
    
        
        
            
                "adapted_content": "Marie Curie",
            
        
    
        
        
            
                "adaptation_notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "functional_role": "sales",
            
        
    
        
        
            
                "adapted_content": "Ada Lovelace",
            
        
    
        
        
            
                "adaptation_notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "functional_role": "other",
            
        
    
        
        
            
                "adapted_content": "Ada Lovelace",
            
        
    
        
        
            
                "adaptation_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QuizQuestionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Ada Lovelace",
            
        
    
        
        
            
                "question_type": "multiple_choice",
            
        
    
        
        
            
                "choices_json": "Ada Lovelace",
            
        
    
        
        
            
                "correct_answer": "Ada Lovelace",
            
        
    
        
        
            
                "explanation": "Ada Lovelace",
            
        
    
        
        
            
                "order_index": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Grace Hopper",
            
        
    
        
        
            
                "question_type": "multiple_choice",
            
        
    
        
        
            
                "choices_json": "Marie Curie",
            
        
    
        
        
            
                "correct_answer": "Marie Curie",
            
        
    
        
        
            
                "explanation": "Grace Hopper",
            
        
    
        
        
            
                "order_index": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Grace Hopper",
            
        
    
        
        
            
                "question_type": "multiple_choice",
            
        
    
        
        
            
                "choices_json": "Grace Hopper",
            
        
    
        
        
            
                "correct_answer": "Grace Hopper",
            
        
    
        
        
            
                "explanation": "Ada Lovelace",
            
        
    
        
        
            
                "order_index": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Alan Turing",
            
        
    
        
        
            
                "question_type": "multiple_choice",
            
        
    
        
        
            
                "choices_json": "Grace Hopper",
            
        
    
        
        
            
                "correct_answer": "Grace Hopper",
            
        
    
        
        
            
                "explanation": "Grace Hopper",
            
        
    
        
        
            
                "order_index": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BuildTasksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "instructions": "Grace Hopper",
            
        
    
        
        
            
                "submission_type": "mixed",
            
        
    
        
        
            
                "expected_deliverable": "Ada Lovelace",
            
        
    
        
        
            
                "max_files": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "instructions": "Ada Lovelace",
            
        
    
        
        
            
                "submission_type": "mixed",
            
        
    
        
        
            
                "expected_deliverable": "Grace Hopper",
            
        
    
        
        
            
                "max_files": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                "submission_type": "mixed",
            
        
    
        
        
            
                "expected_deliverable": "Alan Turing",
            
        
    
        
        
            
                "max_files": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "instructions": "Alan Turing",
            
        
    
        
        
            
                "submission_type": "file",
            
        
    
        
        
            
                "expected_deliverable": "Grace Hopper",
            
        
    
        
        
            
                "max_files": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const EnrollmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "progress_percent": 6.38,
            
        
    
        
        
            
                "certification_status": "ai_expert_certified",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "paused",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "progress_percent": 8.76,
            
        
    
        
        
            
                "certification_status": "ai_expert_certified",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "progress_percent": 3.98,
            
        
    
        
        
            
                "certification_status": "in_progress",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "progress_percent": 1.06,
            
        
    
        
        
            
                "certification_status": "ai_expert_certified",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LessonProgressData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "time_spent_seconds": 2,
            
        
    
        
        
            
                "lesson_progress_percent": 0.14,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "not_started",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "time_spent_seconds": 1,
            
        
    
        
        
            
                "lesson_progress_percent": 3.78,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "time_spent_seconds": 8,
            
        
    
        
        
            
                "lesson_progress_percent": 1.82,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "not_started",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "time_spent_seconds": 5,
            
        
    
        
        
            
                "lesson_progress_percent": 1.21,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QuizAttemptsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "score_percent": 2.78,
            
        
    
        
        
            
                "correct_count": 5,
            
        
    
        
        
            
                "question_count": 4,
            
        
    
        
        
            
                "submitted_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
            
        
    
        
        
            
                "score_percent": 6.73,
            
        
    
        
        
            
                "correct_count": 5,
            
        
    
        
        
            
                "question_count": 1,
            
        
    
        
        
            
                "submitted_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
            
        
    
        
        
            
                "score_percent": 3.01,
            
        
    
        
        
            
                "correct_count": 4,
            
        
    
        
        
            
                "question_count": 4,
            
        
    
        
        
            
                "submitted_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
            
        
    
        
        
            
                "score_percent": 3.61,
            
        
    
        
        
            
                "correct_count": 9,
            
        
    
        
        
            
                "question_count": 8,
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TaskSubmissionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "accepted",
            
        
    
        
        
            
                "submission_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "submission_url": "Grace Hopper",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "ai_feedback": "Ada Lovelace",
            
        
    
        
        
            
                "ai_score": 4.78,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "submission_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "submission_url": "Alan Turing",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "ai_feedback": "Marie Curie",
            
        
    
        
        
            
                "ai_score": 6.68,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "submission_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "submission_url": "Alan Turing",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "ai_feedback": "Marie Curie",
            
        
    
        
        
            
                "ai_score": 9.68,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "submission_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "submission_url": "Alan Turing",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "ai_feedback": "Marie Curie",
            
        
    
        
        
            
                "ai_score": 7.29,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AiChatSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mode": "career_coach",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "context_summary": "Marie Curie",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_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
            
        
    
        
        
            
                "mode": "roadblock_bot",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "context_summary": "Marie Curie",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_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
            
        
    
        
        
            
                "mode": "roadblock_bot",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "context_summary": "Grace Hopper",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_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
            
        
    
        
        
            
                "mode": "general_tutor",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "context_summary": "Grace Hopper",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AiChatMessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender": "user",
            
        
    
        
        
            
                "message_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "attachment_type": "resume",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender": "user",
            
        
    
        
        
            
                "message_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "attachment_type": "other",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender": "system",
            
        
    
        
        
            
                "message_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "attachment_type": "other",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender": "user",
            
        
    
        
        
            
                "message_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "attachment_type": "none",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CareerCoachReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "resume_text": "Ada Lovelace",
            
        
    
        
        
            
                "current_role_text": "Marie Curie",
            
        
    
        
        
            
                "target_role_text": "Marie Curie",
            
        
    
        
        
            
                "clarifying_questions": "Grace Hopper",
            
        
    
        
        
            
                "career_path": "Ada Lovelace",
            
        
    
        
        
            
                "skill_gaps": "Marie Curie",
            
        
    
        
        
            
                "next_steps": "Grace Hopper",
            
        
    
        
        
            
                "resume_suggestions": "Grace Hopper",
            
        
    
        
        
            
                "visibility": "shareable_link",
            
        
    
        
        
            
                "share_token": "Alan Turing",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "resume_text": "Alan Turing",
            
        
    
        
        
            
                "current_role_text": "Grace Hopper",
            
        
    
        
        
            
                "target_role_text": "Alan Turing",
            
        
    
        
        
            
                "clarifying_questions": "Grace Hopper",
            
        
    
        
        
            
                "career_path": "Ada Lovelace",
            
        
    
        
        
            
                "skill_gaps": "Grace Hopper",
            
        
    
        
        
            
                "next_steps": "Ada Lovelace",
            
        
    
        
        
            
                "resume_suggestions": "Grace Hopper",
            
        
    
        
        
            
                "visibility": "shareable_link",
            
        
    
        
        
            
                "share_token": "Grace Hopper",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "resume_text": "Alan Turing",
            
        
    
        
        
            
                "current_role_text": "Grace Hopper",
            
        
    
        
        
            
                "target_role_text": "Alan Turing",
            
        
    
        
        
            
                "clarifying_questions": "Grace Hopper",
            
        
    
        
        
            
                "career_path": "Grace Hopper",
            
        
    
        
        
            
                "skill_gaps": "Ada Lovelace",
            
        
    
        
        
            
                "next_steps": "Alan Turing",
            
        
    
        
        
            
                "resume_suggestions": "Ada Lovelace",
            
        
    
        
        
            
                "visibility": "shareable_link",
            
        
    
        
        
            
                "share_token": "Grace Hopper",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "resume_text": "Grace Hopper",
            
        
    
        
        
            
                "current_role_text": "Ada Lovelace",
            
        
    
        
        
            
                "target_role_text": "Alan Turing",
            
        
    
        
        
            
                "clarifying_questions": "Alan Turing",
            
        
    
        
        
            
                "career_path": "Grace Hopper",
            
        
    
        
        
            
                "skill_gaps": "Alan Turing",
            
        
    
        
        
            
                "next_steps": "Alan Turing",
            
        
    
        
        
            
                "resume_suggestions": "Grace Hopper",
            
        
    
        
        
            
                "visibility": "shareable_link",
            
        
    
        
        
            
                "share_token": "Grace Hopper",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const UsageLimitsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "feature": "ai_tutor",
            
        
    
        
        
            
                "limit_count": 2,
            
        
    
        
        
            
                "used_count": 3,
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "feature": "roadblock_bot",
            
        
    
        
        
            
                "limit_count": 9,
            
        
    
        
        
            
                "used_count": 3,
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "feature": "roadblock_bot",
            
        
    
        
        
            
                "limit_count": 8,
            
        
    
        
        
            
                "used_count": 9,
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "feature": "career_coach",
            
        
    
        
        
            
                "limit_count": 2,
            
        
    
        
        
            
                "used_count": 1,
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PricingPlansData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "price_amount": 4.32,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "billing_interval": "monthly",
            
        
    
        
        
            
                "stripe_price_ref": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "price_amount": 7.15,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "billing_interval": "yearly",
            
        
    
        
        
            
                "stripe_price_ref": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "price_amount": 1.36,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "billing_interval": "monthly",
            
        
    
        
        
            
                "stripe_price_ref": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "price_amount": 2.74,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "billing_interval": "one_time",
            
        
    
        
        
            
                "stripe_price_ref": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SubscriptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "past_due",
            
        
    
        
        
            
                "stripe_customer_ref": "Grace Hopper",
            
        
    
        
        
            
                "stripe_subscription_ref": "Ada Lovelace",
            
        
    
        
        
            
                "current_period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "current_period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "canceled_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
            
        
    
        
        
            
                "status": "past_due",
            
        
    
        
        
            
                "stripe_customer_ref": "Grace Hopper",
            
        
    
        
        
            
                "stripe_subscription_ref": "Grace Hopper",
            
        
    
        
        
            
                "current_period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "current_period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "canceled_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
            
        
    
        
        
            
                "status": "trialing",
            
        
    
        
        
            
                "stripe_customer_ref": "Alan Turing",
            
        
    
        
        
            
                "stripe_subscription_ref": "Alan Turing",
            
        
    
        
        
            
                "current_period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "current_period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "canceled_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
            
        
    
        
        
            
                "status": "incomplete",
            
        
    
        
        
            
                "stripe_customer_ref": "Marie Curie",
            
        
    
        
        
            
                "stripe_subscription_ref": "Alan Turing",
            
        
    
        
        
            
                "current_period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "current_period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "canceled_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PaymentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 9.03,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "stripe_payment_intent_ref": "Ada Lovelace",
            
        
    
        
        
            
                "receipt_url": "Ada Lovelace",
            
        
    
        
        
            
                "paid_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
            
        
    
        
        
            
                "amount": 6.84,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "stripe_payment_intent_ref": "Ada Lovelace",
            
        
    
        
        
            
                "receipt_url": "Marie Curie",
            
        
    
        
        
            
                "paid_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
            
        
    
        
        
            
                "amount": 2.52,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "stripe_payment_intent_ref": "Alan Turing",
            
        
    
        
        
            
                "receipt_url": "Ada Lovelace",
            
        
    
        
        
            
                "paid_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
            
        
    
        
        
            
                "amount": 6.07,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "status": "succeeded",
            
        
    
        
        
            
                "stripe_payment_intent_ref": "Marie Curie",
            
        
    
        
        
            
                "receipt_url": "Ada Lovelace",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CohortsData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "planned",
            
        
    
        
        
            
                "max_learners": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "max_learners": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "max_learners": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "planned",
            
        
    
        
        
            
                "max_learners": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const OrganizationMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "admin",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "admin",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "recruiter",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "viewer",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const TalentInquiriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_review",
            
        
    
        
        
            
                "subject": "Grace Hopper",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "new",
            
        
    
        
        
            
                "subject": "Marie Curie",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "new",
            
        
    
        
        
            
                "subject": "Ada Lovelace",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "new",
            
        
    
        
        
            
                "subject": "Grace Hopper",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // 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 associateOnboardingResponsWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OnboardingRespons0 = await OnboardingResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OnboardingRespons0?.setUser)
                {
                    await
                    OnboardingRespons0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OnboardingRespons1 = await OnboardingResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OnboardingRespons1?.setUser)
                {
                    await
                    OnboardingRespons1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OnboardingRespons2 = await OnboardingResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OnboardingRespons2?.setUser)
                {
                    await
                    OnboardingRespons2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OnboardingRespons3 = await OnboardingResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OnboardingRespons3?.setUser)
                {
                    await
                    OnboardingRespons3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateOnboardingResponsWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OnboardingRespons0 = await OnboardingResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OnboardingRespons0?.setOrganization)
                {
                    await
                    OnboardingRespons0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OnboardingRespons1 = await OnboardingResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OnboardingRespons1?.setOrganization)
                {
                    await
                    OnboardingRespons1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OnboardingRespons2 = await OnboardingResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OnboardingRespons2?.setOrganization)
                {
                    await
                    OnboardingRespons2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OnboardingRespons3 = await OnboardingResponses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OnboardingRespons3?.setOrganization)
                {
                    await
                    OnboardingRespons3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateExternalAccountWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExternalAccount0 = await ExternalAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ExternalAccount0?.setUser)
                {
                    await
                    ExternalAccount0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExternalAccount1 = await ExternalAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ExternalAccount1?.setUser)
                {
                    await
                    ExternalAccount1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExternalAccount2 = await ExternalAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ExternalAccount2?.setUser)
                {
                    await
                    ExternalAccount2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExternalAccount3 = await ExternalAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ExternalAccount3?.setUser)
                {
                    await
                    ExternalAccount3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateExternalAccountWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalAccount0 = await ExternalAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ExternalAccount0?.setOrganization)
                {
                    await
                    ExternalAccount0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalAccount1 = await ExternalAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ExternalAccount1?.setOrganization)
                {
                    await
                    ExternalAccount1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalAccount2 = await ExternalAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ExternalAccount2?.setOrganization)
                {
                    await
                    ExternalAccount2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalAccount3 = await ExternalAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ExternalAccount3?.setOrganization)
                {
                    await
                    ExternalAccount3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSkillNodeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SkillNode0 = await SkillNodes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SkillNode0?.setOrganization)
                {
                    await
                    SkillNode0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SkillNode1 = await SkillNodes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SkillNode1?.setOrganization)
                {
                    await
                    SkillNode1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SkillNode2 = await SkillNodes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SkillNode2?.setOrganization)
                {
                    await
                    SkillNode2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SkillNode3 = await SkillNodes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SkillNode3?.setOrganization)
                {
                    await
                    SkillNode3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateUserSkillNodeAwardWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSkillNodeAward0 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserSkillNodeAward0?.setUser)
                {
                    await
                    UserSkillNodeAward0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSkillNodeAward1 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserSkillNodeAward1?.setUser)
                {
                    await
                    UserSkillNodeAward1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSkillNodeAward2 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserSkillNodeAward2?.setUser)
                {
                    await
                    UserSkillNodeAward2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSkillNodeAward3 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserSkillNodeAward3?.setUser)
                {
                    await
                    UserSkillNodeAward3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateUserSkillNodeAwardWithSkill_node() {
            
                const relatedSkill_node0 = await SkillNodes.findOne({
                    offset: Math.floor(Math.random() * (await SkillNodes.count())),
                });
                const UserSkillNodeAward0 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserSkillNodeAward0?.setSkill_node)
                {
                    await
                    UserSkillNodeAward0.
                    setSkill_node(relatedSkill_node0);
                }
            
                const relatedSkill_node1 = await SkillNodes.findOne({
                    offset: Math.floor(Math.random() * (await SkillNodes.count())),
                });
                const UserSkillNodeAward1 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserSkillNodeAward1?.setSkill_node)
                {
                    await
                    UserSkillNodeAward1.
                    setSkill_node(relatedSkill_node1);
                }
            
                const relatedSkill_node2 = await SkillNodes.findOne({
                    offset: Math.floor(Math.random() * (await SkillNodes.count())),
                });
                const UserSkillNodeAward2 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserSkillNodeAward2?.setSkill_node)
                {
                    await
                    UserSkillNodeAward2.
                    setSkill_node(relatedSkill_node2);
                }
            
                const relatedSkill_node3 = await SkillNodes.findOne({
                    offset: Math.floor(Math.random() * (await SkillNodes.count())),
                });
                const UserSkillNodeAward3 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserSkillNodeAward3?.setSkill_node)
                {
                    await
                    UserSkillNodeAward3.
                    setSkill_node(relatedSkill_node3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateUserSkillNodeAwardWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserSkillNodeAward0 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserSkillNodeAward0?.setOrganization)
                {
                    await
                    UserSkillNodeAward0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserSkillNodeAward1 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserSkillNodeAward1?.setOrganization)
                {
                    await
                    UserSkillNodeAward1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserSkillNodeAward2 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserSkillNodeAward2?.setOrganization)
                {
                    await
                    UserSkillNodeAward2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserSkillNodeAward3 = await UserSkillNodeAwards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserSkillNodeAward3?.setOrganization)
                {
                    await
                    UserSkillNodeAward3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateProjectWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setUser)
                {
                    await
                    Project0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setUser)
                {
                    await
                    Project1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setUser)
                {
                    await
                    Project2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setUser)
                {
                    await
                    Project3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProjectWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setOrganization)
                {
                    await
                    Project0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setOrganization)
                {
                    await
                    Project1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setOrganization)
                {
                    await
                    Project2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setOrganization)
                {
                    await
                    Project3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateExternalSignalWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExternalSignal0 = await ExternalSignals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ExternalSignal0?.setUser)
                {
                    await
                    ExternalSignal0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExternalSignal1 = await ExternalSignals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ExternalSignal1?.setUser)
                {
                    await
                    ExternalSignal1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExternalSignal2 = await ExternalSignals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ExternalSignal2?.setUser)
                {
                    await
                    ExternalSignal2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExternalSignal3 = await ExternalSignals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ExternalSignal3?.setUser)
                {
                    await
                    ExternalSignal3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateExternalSignalWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalSignal0 = await ExternalSignals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ExternalSignal0?.setOrganization)
                {
                    await
                    ExternalSignal0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalSignal1 = await ExternalSignals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ExternalSignal1?.setOrganization)
                {
                    await
                    ExternalSignal1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalSignal2 = await ExternalSignals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ExternalSignal2?.setOrganization)
                {
                    await
                    ExternalSignal2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalSignal3 = await ExternalSignals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ExternalSignal3?.setOrganization)
                {
                    await
                    ExternalSignal3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCoursWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cours0 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cours0?.setOrganization)
                {
                    await
                    Cours0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cours1 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cours1?.setOrganization)
                {
                    await
                    Cours1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cours2 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cours2?.setOrganization)
                {
                    await
                    Cours2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cours3 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Cours3?.setOrganization)
                {
                    await
                    Cours3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCoursePhasWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const CoursePhas0 = await CoursePhases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoursePhas0?.setCourse)
                {
                    await
                    CoursePhas0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const CoursePhas1 = await CoursePhases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoursePhas1?.setCourse)
                {
                    await
                    CoursePhas1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const CoursePhas2 = await CoursePhases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoursePhas2?.setCourse)
                {
                    await
                    CoursePhas2.
                    setCourse(relatedCourse2);
                }
            
                const relatedCourse3 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const CoursePhas3 = await CoursePhases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoursePhas3?.setCourse)
                {
                    await
                    CoursePhas3.
                    setCourse(relatedCourse3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            
            async function associateCoursePhasWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoursePhas0 = await CoursePhases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoursePhas0?.setOrganization)
                {
                    await
                    CoursePhas0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoursePhas1 = await CoursePhases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoursePhas1?.setOrganization)
                {
                    await
                    CoursePhas1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoursePhas2 = await CoursePhases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoursePhas2?.setOrganization)
                {
                    await
                    CoursePhas2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoursePhas3 = await CoursePhases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoursePhas3?.setOrganization)
                {
                    await
                    CoursePhas3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateLessonWithCourse_phase() {
            
                const relatedCourse_phase0 = await CoursePhases.findOne({
                    offset: Math.floor(Math.random() * (await CoursePhases.count())),
                });
                const Lesson0 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Lesson0?.setCourse_phase)
                {
                    await
                    Lesson0.
                    setCourse_phase(relatedCourse_phase0);
                }
            
                const relatedCourse_phase1 = await CoursePhases.findOne({
                    offset: Math.floor(Math.random() * (await CoursePhases.count())),
                });
                const Lesson1 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Lesson1?.setCourse_phase)
                {
                    await
                    Lesson1.
                    setCourse_phase(relatedCourse_phase1);
                }
            
                const relatedCourse_phase2 = await CoursePhases.findOne({
                    offset: Math.floor(Math.random() * (await CoursePhases.count())),
                });
                const Lesson2 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Lesson2?.setCourse_phase)
                {
                    await
                    Lesson2.
                    setCourse_phase(relatedCourse_phase2);
                }
            
                const relatedCourse_phase3 = await CoursePhases.findOne({
                    offset: Math.floor(Math.random() * (await CoursePhases.count())),
                });
                const Lesson3 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Lesson3?.setCourse_phase)
                {
                    await
                    Lesson3.
                    setCourse_phase(relatedCourse_phase3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            
            async function associateLessonWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Lesson0 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Lesson0?.setOrganization)
                {
                    await
                    Lesson0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Lesson1 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Lesson1?.setOrganization)
                {
                    await
                    Lesson1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Lesson2 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Lesson2?.setOrganization)
                {
                    await
                    Lesson2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Lesson3 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Lesson3?.setOrganization)
                {
                    await
                    Lesson3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateLessonVariantWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonVariant0 = await LessonVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LessonVariant0?.setLesson)
                {
                    await
                    LessonVariant0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonVariant1 = await LessonVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LessonVariant1?.setLesson)
                {
                    await
                    LessonVariant1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonVariant2 = await LessonVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LessonVariant2?.setLesson)
                {
                    await
                    LessonVariant2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonVariant3 = await LessonVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LessonVariant3?.setLesson)
                {
                    await
                    LessonVariant3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateLessonVariantWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LessonVariant0 = await LessonVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LessonVariant0?.setOrganization)
                {
                    await
                    LessonVariant0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LessonVariant1 = await LessonVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LessonVariant1?.setOrganization)
                {
                    await
                    LessonVariant1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LessonVariant2 = await LessonVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LessonVariant2?.setOrganization)
                {
                    await
                    LessonVariant2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LessonVariant3 = await LessonVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LessonVariant3?.setOrganization)
                {
                    await
                    LessonVariant3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQuizQuestionWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const QuizQuestion0 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizQuestion0?.setLesson)
                {
                    await
                    QuizQuestion0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const QuizQuestion1 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizQuestion1?.setLesson)
                {
                    await
                    QuizQuestion1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const QuizQuestion2 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizQuestion2?.setLesson)
                {
                    await
                    QuizQuestion2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const QuizQuestion3 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizQuestion3?.setLesson)
                {
                    await
                    QuizQuestion3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            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 associateBuildTaskWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const BuildTask0 = await BuildTasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BuildTask0?.setLesson)
                {
                    await
                    BuildTask0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const BuildTask1 = await BuildTasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BuildTask1?.setLesson)
                {
                    await
                    BuildTask1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const BuildTask2 = await BuildTasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BuildTask2?.setLesson)
                {
                    await
                    BuildTask2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const BuildTask3 = await BuildTasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BuildTask3?.setLesson)
                {
                    await
                    BuildTask3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBuildTaskWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BuildTask0 = await BuildTasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BuildTask0?.setOrganization)
                {
                    await
                    BuildTask0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BuildTask1 = await BuildTasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BuildTask1?.setOrganization)
                {
                    await
                    BuildTask1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BuildTask2 = await BuildTasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BuildTask2?.setOrganization)
                {
                    await
                    BuildTask2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BuildTask3 = await BuildTasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BuildTask3?.setOrganization)
                {
                    await
                    BuildTask3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            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 associateEnrollmentWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setCourse)
                {
                    await
                    Enrollment0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setCourse)
                {
                    await
                    Enrollment1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setCourse)
                {
                    await
                    Enrollment2.
                    setCourse(relatedCourse2);
                }
            
                const relatedCourse3 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setCourse)
                {
                    await
                    Enrollment3.
                    setCourse(relatedCourse3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            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 associateLessonProgresWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LessonProgres0 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LessonProgres0?.setUser)
                {
                    await
                    LessonProgres0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LessonProgres1 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LessonProgres1?.setUser)
                {
                    await
                    LessonProgres1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LessonProgres2 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LessonProgres2?.setUser)
                {
                    await
                    LessonProgres2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LessonProgres3 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LessonProgres3?.setUser)
                {
                    await
                    LessonProgres3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateLessonProgresWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonProgres0 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LessonProgres0?.setLesson)
                {
                    await
                    LessonProgres0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonProgres1 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LessonProgres1?.setLesson)
                {
                    await
                    LessonProgres1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonProgres2 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LessonProgres2?.setLesson)
                {
                    await
                    LessonProgres2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonProgres3 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LessonProgres3?.setLesson)
                {
                    await
                    LessonProgres3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateLessonProgresWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LessonProgres0 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LessonProgres0?.setOrganization)
                {
                    await
                    LessonProgres0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LessonProgres1 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LessonProgres1?.setOrganization)
                {
                    await
                    LessonProgres1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LessonProgres2 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LessonProgres2?.setOrganization)
                {
                    await
                    LessonProgres2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LessonProgres3 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LessonProgres3?.setOrganization)
                {
                    await
                    LessonProgres3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQuizAttemptWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizAttempt0 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizAttempt0?.setUser)
                {
                    await
                    QuizAttempt0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizAttempt1 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizAttempt1?.setUser)
                {
                    await
                    QuizAttempt1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizAttempt2 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizAttempt2?.setUser)
                {
                    await
                    QuizAttempt2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizAttempt3 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizAttempt3?.setUser)
                {
                    await
                    QuizAttempt3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateQuizAttemptWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const QuizAttempt0 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizAttempt0?.setLesson)
                {
                    await
                    QuizAttempt0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const QuizAttempt1 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizAttempt1?.setLesson)
                {
                    await
                    QuizAttempt1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const QuizAttempt2 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizAttempt2?.setLesson)
                {
                    await
                    QuizAttempt2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const QuizAttempt3 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizAttempt3?.setLesson)
                {
                    await
                    QuizAttempt3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateQuizAttemptWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizAttempt0 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizAttempt0?.setOrganization)
                {
                    await
                    QuizAttempt0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizAttempt1 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizAttempt1?.setOrganization)
                {
                    await
                    QuizAttempt1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizAttempt2 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizAttempt2?.setOrganization)
                {
                    await
                    QuizAttempt2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizAttempt3 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizAttempt3?.setOrganization)
                {
                    await
                    QuizAttempt3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTaskSubmissionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TaskSubmission0 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TaskSubmission0?.setUser)
                {
                    await
                    TaskSubmission0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TaskSubmission1 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TaskSubmission1?.setUser)
                {
                    await
                    TaskSubmission1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TaskSubmission2 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TaskSubmission2?.setUser)
                {
                    await
                    TaskSubmission2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TaskSubmission3 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TaskSubmission3?.setUser)
                {
                    await
                    TaskSubmission3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateTaskSubmissionWithBuild_task() {
            
                const relatedBuild_task0 = await BuildTasks.findOne({
                    offset: Math.floor(Math.random() * (await BuildTasks.count())),
                });
                const TaskSubmission0 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TaskSubmission0?.setBuild_task)
                {
                    await
                    TaskSubmission0.
                    setBuild_task(relatedBuild_task0);
                }
            
                const relatedBuild_task1 = await BuildTasks.findOne({
                    offset: Math.floor(Math.random() * (await BuildTasks.count())),
                });
                const TaskSubmission1 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TaskSubmission1?.setBuild_task)
                {
                    await
                    TaskSubmission1.
                    setBuild_task(relatedBuild_task1);
                }
            
                const relatedBuild_task2 = await BuildTasks.findOne({
                    offset: Math.floor(Math.random() * (await BuildTasks.count())),
                });
                const TaskSubmission2 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TaskSubmission2?.setBuild_task)
                {
                    await
                    TaskSubmission2.
                    setBuild_task(relatedBuild_task2);
                }
            
                const relatedBuild_task3 = await BuildTasks.findOne({
                    offset: Math.floor(Math.random() * (await BuildTasks.count())),
                });
                const TaskSubmission3 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TaskSubmission3?.setBuild_task)
                {
                    await
                    TaskSubmission3.
                    setBuild_task(relatedBuild_task3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTaskSubmissionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaskSubmission0 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TaskSubmission0?.setOrganization)
                {
                    await
                    TaskSubmission0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaskSubmission1 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TaskSubmission1?.setOrganization)
                {
                    await
                    TaskSubmission1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaskSubmission2 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TaskSubmission2?.setOrganization)
                {
                    await
                    TaskSubmission2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaskSubmission3 = await TaskSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TaskSubmission3?.setOrganization)
                {
                    await
                    TaskSubmission3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAiChatSessionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiChatSession0 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiChatSession0?.setUser)
                {
                    await
                    AiChatSession0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiChatSession1 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiChatSession1?.setUser)
                {
                    await
                    AiChatSession1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiChatSession2 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiChatSession2?.setUser)
                {
                    await
                    AiChatSession2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiChatSession3 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiChatSession3?.setUser)
                {
                    await
                    AiChatSession3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateAiChatSessionWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const AiChatSession0 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiChatSession0?.setLesson)
                {
                    await
                    AiChatSession0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const AiChatSession1 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiChatSession1?.setLesson)
                {
                    await
                    AiChatSession1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const AiChatSession2 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiChatSession2?.setLesson)
                {
                    await
                    AiChatSession2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const AiChatSession3 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiChatSession3?.setLesson)
                {
                    await
                    AiChatSession3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAiChatSessionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiChatSession0 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiChatSession0?.setOrganization)
                {
                    await
                    AiChatSession0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiChatSession1 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiChatSession1?.setOrganization)
                {
                    await
                    AiChatSession1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiChatSession2 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiChatSession2?.setOrganization)
                {
                    await
                    AiChatSession2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiChatSession3 = await AiChatSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiChatSession3?.setOrganization)
                {
                    await
                    AiChatSession3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAiChatMessageWithSession() {
            
                const relatedSession0 = await AiChatSessions.findOne({
                    offset: Math.floor(Math.random() * (await AiChatSessions.count())),
                });
                const AiChatMessage0 = await AiChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiChatMessage0?.setSession)
                {
                    await
                    AiChatMessage0.
                    setSession(relatedSession0);
                }
            
                const relatedSession1 = await AiChatSessions.findOne({
                    offset: Math.floor(Math.random() * (await AiChatSessions.count())),
                });
                const AiChatMessage1 = await AiChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiChatMessage1?.setSession)
                {
                    await
                    AiChatMessage1.
                    setSession(relatedSession1);
                }
            
                const relatedSession2 = await AiChatSessions.findOne({
                    offset: Math.floor(Math.random() * (await AiChatSessions.count())),
                });
                const AiChatMessage2 = await AiChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiChatMessage2?.setSession)
                {
                    await
                    AiChatMessage2.
                    setSession(relatedSession2);
                }
            
                const relatedSession3 = await AiChatSessions.findOne({
                    offset: Math.floor(Math.random() * (await AiChatSessions.count())),
                });
                const AiChatMessage3 = await AiChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiChatMessage3?.setSession)
                {
                    await
                    AiChatMessage3.
                    setSession(relatedSession3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAiChatMessageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiChatMessage0 = await AiChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiChatMessage0?.setOrganization)
                {
                    await
                    AiChatMessage0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiChatMessage1 = await AiChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiChatMessage1?.setOrganization)
                {
                    await
                    AiChatMessage1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiChatMessage2 = await AiChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiChatMessage2?.setOrganization)
                {
                    await
                    AiChatMessage2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiChatMessage3 = await AiChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiChatMessage3?.setOrganization)
                {
                    await
                    AiChatMessage3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCareerCoachReportWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CareerCoachReport0 = await CareerCoachReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CareerCoachReport0?.setUser)
                {
                    await
                    CareerCoachReport0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CareerCoachReport1 = await CareerCoachReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CareerCoachReport1?.setUser)
                {
                    await
                    CareerCoachReport1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CareerCoachReport2 = await CareerCoachReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CareerCoachReport2?.setUser)
                {
                    await
                    CareerCoachReport2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CareerCoachReport3 = await CareerCoachReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CareerCoachReport3?.setUser)
                {
                    await
                    CareerCoachReport3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCareerCoachReportWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CareerCoachReport0 = await CareerCoachReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CareerCoachReport0?.setOrganization)
                {
                    await
                    CareerCoachReport0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CareerCoachReport1 = await CareerCoachReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CareerCoachReport1?.setOrganization)
                {
                    await
                    CareerCoachReport1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CareerCoachReport2 = await CareerCoachReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CareerCoachReport2?.setOrganization)
                {
                    await
                    CareerCoachReport2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CareerCoachReport3 = await CareerCoachReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CareerCoachReport3?.setOrganization)
                {
                    await
                    CareerCoachReport3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateUsageLimitWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UsageLimit0 = await UsageLimits.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UsageLimit0?.setUser)
                {
                    await
                    UsageLimit0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UsageLimit1 = await UsageLimits.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UsageLimit1?.setUser)
                {
                    await
                    UsageLimit1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UsageLimit2 = await UsageLimits.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UsageLimit2?.setUser)
                {
                    await
                    UsageLimit2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UsageLimit3 = await UsageLimits.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UsageLimit3?.setUser)
                {
                    await
                    UsageLimit3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateUsageLimitWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UsageLimit0 = await UsageLimits.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UsageLimit0?.setOrganization)
                {
                    await
                    UsageLimit0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UsageLimit1 = await UsageLimits.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UsageLimit1?.setOrganization)
                {
                    await
                    UsageLimit1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UsageLimit2 = await UsageLimits.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UsageLimit2?.setOrganization)
                {
                    await
                    UsageLimit2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UsageLimit3 = await UsageLimits.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UsageLimit3?.setOrganization)
                {
                    await
                    UsageLimit3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePricingPlanWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PricingPlan0 = await PricingPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PricingPlan0?.setOrganization)
                {
                    await
                    PricingPlan0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PricingPlan1 = await PricingPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PricingPlan1?.setOrganization)
                {
                    await
                    PricingPlan1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PricingPlan2 = await PricingPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PricingPlan2?.setOrganization)
                {
                    await
                    PricingPlan2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PricingPlan3 = await PricingPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PricingPlan3?.setOrganization)
                {
                    await
                    PricingPlan3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSubscriptionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Subscription0 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Subscription0?.setUser)
                {
                    await
                    Subscription0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Subscription1 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Subscription1?.setUser)
                {
                    await
                    Subscription1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Subscription2 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Subscription2?.setUser)
                {
                    await
                    Subscription2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Subscription3 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Subscription3?.setUser)
                {
                    await
                    Subscription3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateSubscriptionWithPricing_plan() {
            
                const relatedPricing_plan0 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Subscription0 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Subscription0?.setPricing_plan)
                {
                    await
                    Subscription0.
                    setPricing_plan(relatedPricing_plan0);
                }
            
                const relatedPricing_plan1 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Subscription1 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Subscription1?.setPricing_plan)
                {
                    await
                    Subscription1.
                    setPricing_plan(relatedPricing_plan1);
                }
            
                const relatedPricing_plan2 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Subscription2 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Subscription2?.setPricing_plan)
                {
                    await
                    Subscription2.
                    setPricing_plan(relatedPricing_plan2);
                }
            
                const relatedPricing_plan3 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Subscription3 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Subscription3?.setPricing_plan)
                {
                    await
                    Subscription3.
                    setPricing_plan(relatedPricing_plan3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSubscriptionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Subscription0 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Subscription0?.setOrganization)
                {
                    await
                    Subscription0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Subscription1 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Subscription1?.setOrganization)
                {
                    await
                    Subscription1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Subscription2 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Subscription2?.setOrganization)
                {
                    await
                    Subscription2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Subscription3 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Subscription3?.setOrganization)
                {
                    await
                    Subscription3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePaymentWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setUser)
                {
                    await
                    Payment0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setUser)
                {
                    await
                    Payment1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setUser)
                {
                    await
                    Payment2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setUser)
                {
                    await
                    Payment3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associatePaymentWithPricing_plan() {
            
                const relatedPricing_plan0 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setPricing_plan)
                {
                    await
                    Payment0.
                    setPricing_plan(relatedPricing_plan0);
                }
            
                const relatedPricing_plan1 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setPricing_plan)
                {
                    await
                    Payment1.
                    setPricing_plan(relatedPricing_plan1);
                }
            
                const relatedPricing_plan2 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setPricing_plan)
                {
                    await
                    Payment2.
                    setPricing_plan(relatedPricing_plan2);
                }
            
                const relatedPricing_plan3 = await PricingPlans.findOne({
                    offset: Math.floor(Math.random() * (await PricingPlans.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setPricing_plan)
                {
                    await
                    Payment3.
                    setPricing_plan(relatedPricing_plan3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePaymentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setOrganization)
                {
                    await
                    Payment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setOrganization)
                {
                    await
                    Payment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setOrganization)
                {
                    await
                    Payment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setOrganization)
                {
                    await
                    Payment3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCohortWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cohort0 = await Cohorts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cohort0?.setOrganization)
                {
                    await
                    Cohort0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cohort1 = await Cohorts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cohort1?.setOrganization)
                {
                    await
                    Cohort1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cohort2 = await Cohorts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cohort2?.setOrganization)
                {
                    await
                    Cohort2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cohort3 = await Cohorts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Cohort3?.setOrganization)
                {
                    await
                    Cohort3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateOrganizationMembershipWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OrganizationMembership0 = await OrganizationMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrganizationMembership0?.setOrganization)
                {
                    await
                    OrganizationMembership0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OrganizationMembership1 = await OrganizationMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrganizationMembership1?.setOrganization)
                {
                    await
                    OrganizationMembership1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OrganizationMembership2 = await OrganizationMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrganizationMembership2?.setOrganization)
                {
                    await
                    OrganizationMembership2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OrganizationMembership3 = await OrganizationMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrganizationMembership3?.setOrganization)
                {
                    await
                    OrganizationMembership3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateOrganizationMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OrganizationMembership0 = await OrganizationMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrganizationMembership0?.setUser)
                {
                    await
                    OrganizationMembership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OrganizationMembership1 = await OrganizationMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrganizationMembership1?.setUser)
                {
                    await
                    OrganizationMembership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OrganizationMembership2 = await OrganizationMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrganizationMembership2?.setUser)
                {
                    await
                    OrganizationMembership2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OrganizationMembership3 = await OrganizationMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrganizationMembership3?.setUser)
                {
                    await
                    OrganizationMembership3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTalentInquiryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TalentInquiry0 = await TalentInquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TalentInquiry0?.setOrganization)
                {
                    await
                    TalentInquiry0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TalentInquiry1 = await TalentInquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TalentInquiry1?.setOrganization)
                {
                    await
                    TalentInquiry1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TalentInquiry2 = await TalentInquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TalentInquiry2?.setOrganization)
                {
                    await
                    TalentInquiry2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TalentInquiry3 = await TalentInquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TalentInquiry3?.setOrganization)
                {
                    await
                    TalentInquiry3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateTalentInquiryWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TalentInquiry0 = await TalentInquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TalentInquiry0?.setUser)
                {
                    await
                    TalentInquiry0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TalentInquiry1 = await TalentInquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TalentInquiry1?.setUser)
                {
                    await
                    TalentInquiry1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TalentInquiry2 = await TalentInquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TalentInquiry2?.setUser)
                {
                    await
                    TalentInquiry2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TalentInquiry3 = await TalentInquiries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TalentInquiry3?.setUser)
                {
                    await
                    TalentInquiry3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await OnboardingResponses.bulkCreate(OnboardingResponsesData);
                
            
            
                
                await ExternalAccounts.bulkCreate(ExternalAccountsData);
                
            
            
                
                await SkillNodes.bulkCreate(SkillNodesData);
                
            
            
                
                await UserSkillNodeAwards.bulkCreate(UserSkillNodeAwardsData);
                
            
            
                
                await Projects.bulkCreate(ProjectsData);
                
            
            
                
                await ExternalSignals.bulkCreate(ExternalSignalsData);
                
            
            
                
                await Courses.bulkCreate(CoursesData);
                
            
            
                
                await CoursePhases.bulkCreate(CoursePhasesData);
                
            
            
                
                await Lessons.bulkCreate(LessonsData);
                
            
            
                
                await LessonVariants.bulkCreate(LessonVariantsData);
                
            
            
                
                await QuizQuestions.bulkCreate(QuizQuestionsData);
                
            
            
                
                await BuildTasks.bulkCreate(BuildTasksData);
                
            
            
                
                await Enrollments.bulkCreate(EnrollmentsData);
                
            
            
                
                await LessonProgress.bulkCreate(LessonProgressData);
                
            
            
                
                await QuizAttempts.bulkCreate(QuizAttemptsData);
                
            
            
                
                await TaskSubmissions.bulkCreate(TaskSubmissionsData);
                
            
            
                
                await AiChatSessions.bulkCreate(AiChatSessionsData);
                
            
            
                
                await AiChatMessages.bulkCreate(AiChatMessagesData);
                
            
            
                
                await CareerCoachReports.bulkCreate(CareerCoachReportsData);
                
            
            
                
                await UsageLimits.bulkCreate(UsageLimitsData);
                
            
            
                
                await PricingPlans.bulkCreate(PricingPlansData);
                
            
            
                
                await Subscriptions.bulkCreate(SubscriptionsData);
                
            
            
                
                await Payments.bulkCreate(PaymentsData);
                
            
            
                
                await Cohorts.bulkCreate(CohortsData);
                
            
            
                
                await OrganizationMemberships.bulkCreate(OrganizationMembershipsData);
                
            
            
                
                await TalentInquiries.bulkCreate(TalentInquiriesData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                        
                        await associateOnboardingResponsWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOnboardingResponsWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateExternalAccountWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateExternalAccountWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSkillNodeWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateUserSkillNodeAwardWithUser(),
                    
                
                    
                        
                        await associateUserSkillNodeAwardWithSkill_node(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateUserSkillNodeAwardWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateProjectWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProjectWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateExternalSignalWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateExternalSignalWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCoursWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCoursePhasWithCourse(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateCoursePhasWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateLessonWithCourse_phase(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateLessonWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateLessonVariantWithLesson(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLessonVariantWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQuizQuestionWithLesson(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizQuestionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateBuildTaskWithLesson(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBuildTaskWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateEnrollmentWithUser(),
                    
                
                    
                        
                        await associateEnrollmentWithCourse(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateEnrollmentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateLessonProgresWithUser(),
                    
                
                    
                        
                        await associateLessonProgresWithLesson(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLessonProgresWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQuizAttemptWithUser(),
                    
                
                    
                        
                        await associateQuizAttemptWithLesson(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizAttemptWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTaskSubmissionWithUser(),
                    
                
                    
                        
                        await associateTaskSubmissionWithBuild_task(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTaskSubmissionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAiChatSessionWithUser(),
                    
                
                    
                        
                        await associateAiChatSessionWithLesson(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAiChatSessionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAiChatMessageWithSession(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAiChatMessageWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCareerCoachReportWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCareerCoachReportWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateUsageLimitWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateUsageLimitWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePricingPlanWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSubscriptionWithUser(),
                    
                
                    
                        
                        await associateSubscriptionWithPricing_plan(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSubscriptionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePaymentWithUser(),
                    
                
                    
                        
                        await associatePaymentWithPricing_plan(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePaymentWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCohortWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateOrganizationMembershipWithOrganization(),
                    
                
                    
                        
                        await associateOrganizationMembershipWithUser(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTalentInquiryWithOrganization(),
                    
                
                    
                        
                        await associateTalentInquiryWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('onboarding_responses', null, {});
            
            
            await queryInterface.bulkDelete('external_accounts', null, {});
            
            
            await queryInterface.bulkDelete('skill_nodes', null, {});
            
            
            await queryInterface.bulkDelete('user_skill_node_awards', null, {});
            
            
            await queryInterface.bulkDelete('projects', null, {});
            
            
            await queryInterface.bulkDelete('external_signals', null, {});
            
            
            await queryInterface.bulkDelete('courses', null, {});
            
            
            await queryInterface.bulkDelete('course_phases', null, {});
            
            
            await queryInterface.bulkDelete('lessons', null, {});
            
            
            await queryInterface.bulkDelete('lesson_variants', null, {});
            
            
            await queryInterface.bulkDelete('quiz_questions', null, {});
            
            
            await queryInterface.bulkDelete('build_tasks', null, {});
            
            
            await queryInterface.bulkDelete('enrollments', null, {});
            
            
            await queryInterface.bulkDelete('lesson_progress', null, {});
            
            
            await queryInterface.bulkDelete('quiz_attempts', null, {});
            
            
            await queryInterface.bulkDelete('task_submissions', null, {});
            
            
            await queryInterface.bulkDelete('ai_chat_sessions', null, {});
            
            
            await queryInterface.bulkDelete('ai_chat_messages', null, {});
            
            
            await queryInterface.bulkDelete('career_coach_reports', null, {});
            
            
            await queryInterface.bulkDelete('usage_limits', null, {});
            
            
            await queryInterface.bulkDelete('pricing_plans', null, {});
            
            
            await queryInterface.bulkDelete('subscriptions', null, {});
            
            
            await queryInterface.bulkDelete('payments', null, {});
            
            
            await queryInterface.bulkDelete('cohorts', null, {});
            
            
            await queryInterface.bulkDelete('organization_memberships', null, {});
            
            
            await queryInterface.bulkDelete('talent_inquiries', null, {});
            
        
    },
};