





















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






const Organizations = db.organizations;

const Courses = db.courses;

const Lessons = db.lessons;

const Exercises = db.exercises;

const Games = db.games;

const InteractiveActivities = db.interactive_activities;

const ContentItems = db.content_items;

const LearningPaths = db.learning_paths;

const Enrollments = db.enrollments;

const ProgressRecords = db.progress_records;

const Attempts = db.attempts;

const Leaderboards = db.leaderboards;

const LeaderboardEntries = db.leaderboard_entries;

const AiMentorProfiles = db.ai_mentor_profiles;

const MentorConversations = db.mentor_conversations;

const MentorMessages = db.mentor_messages;

const ProblemReports = db.problem_reports;

const SolutionProposals = db.solution_proposals;

const Votes = db.votes;

const Comments = db.comments;

const Notifications = db.notifications;

const Badges = db.badges;

const UserBadges = db.user_badges;

const Events = db.events;

const EventRegistrations = db.event_registrations;

const SitePages = db.site_pages;







const OrganizationsData = [
    
    {
    
        
        
            
                "name": "KillNet Learning Lab",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Samarkand Digital School",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Global Open Education Hub",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Fergana Tech College",
            
        
    
    },
    
];



const CoursesData = [
    
    {
    
        
        
            
                "title": "Critical Thinking for Students",
            
        
    
        
        
            
                "slug": "critical-thinking-students",
            
        
    
        
        
            
                "level": "advanced",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "summary": "Build strong reasoning and decision-making skills.",
            
        
    
        
        
            
                "description": "A practical course on logic, cognitive biases, and structured problem solving.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "tags": "thinking,logic,study skills",
            
        
    
        
        
            
                "estimated_hours": 8.5,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Math Foundations: Algebra Essentials",
            
        
    
        
        
            
                "slug": "math-foundations-algebra",
            
        
    
        
        
            
                "level": "advanced",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "summary": "Strengthen algebra skills with guided practice.",
            
        
    
        
        
            
                "description": "Covers expressions, equations, and word problems with step-by-step examples.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "tags": "math,algebra",
            
        
    
        
        
            
                "estimated_hours": 12,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Digital Literacy and Online Safety",
            
        
    
        
        
            
                "slug": "digital-literacy-safety",
            
        
    
        
        
            
                "level": "beginner",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "summary": "Learn safe and effective internet use.",
            
        
    
        
        
            
                "description": "Privacy, phishing prevention, and responsible online behavior for learners.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "tags": "digital,security",
            
        
    
        
        
            
                "estimated_hours": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "English for STEM Learners",
            
        
    
        
        
            
                "slug": "english-for-stem",
            
        
    
        
        
            
                "level": "beginner",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "summary": "Key English skills for science and technology contexts.",
            
        
    
        
        
            
                "description": "Vocabulary, reading strategies, and writing basics for STEM students.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "tags": "english,stem",
            
        
    
        
        
            
                "estimated_hours": 10,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LessonsData = [
    
    {
    
        
        
            
                "title": "Recognizing Cognitive Biases",
            
        
    
        
        
            
                "order_index": 1,
            
        
    
        
        
            
                "content_type": "assignment",
            
        
    
        
        
            
                "content": "Learn common cognitive biases and how they affect learning and decisions.",
            
        
    
        
        
            
                "video_url": "https://videos.example.com/biases",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Solving Linear Equations",
            
        
    
        
        
            
                "order_index": 2,
            
        
    
        
        
            
                "content_type": "interactive",
            
        
    
        
        
            
                "content": "Follow a clear process to isolate variables and verify solutions.",
            
        
    
        
        
            
                "video_url": "https://videos.example.com/linear-equations",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Password Hygiene Basics",
            
        
    
        
        
            
                "order_index": 1,
            
        
    
        
        
            
                "content_type": "assignment",
            
        
    
        
        
            
                "content": "Create strong passwords and use password managers effectively.",
            
        
    
        
        
            
                "video_url": "https://videos.example.com/passwords",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Reading Scientific Texts",
            
        
    
        
        
            
                "order_index": 1,
            
        
    
        
        
            
                "content_type": "quiz",
            
        
    
        
        
            
                "content": "Skim, scan, and extract key ideas from scientific articles.",
            
        
    
        
        
            
                "video_url": "https://videos.example.com/reading-stem",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ExercisesData = [
    
    {
    
        
        
            
                "title": "Memory Grid Recall",
            
        
    
        
        
            
                "category": "math",
            
        
    
        
        
            
                "difficulty": "expert",
            
        
    
        
        
            
                "instructions": "Memorize the highlighted cells, then reproduce the pattern.",
            
        
    
        
        
            
                "prompt_template": "Show a 4x4 grid pattern to memorize.",
            
        
    
        
        
            
                "time_limit_seconds": 90,
            
        
    
        
        
            
                "max_score": 100,
            
        
    
        
        
            
                "is_adaptive": true,
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Focus Sprint",
            
        
    
        
        
            
                "category": "attention",
            
        
    
        
        
            
                "difficulty": "easy",
            
        
    
        
        
            
                "instructions": "Tap only the target symbol and ignore distractions.",
            
        
    
        
        
            
                "prompt_template": "Generate a stream of symbols with a target.",
            
        
    
        
        
            
                "time_limit_seconds": 60,
            
        
    
        
        
            
                "max_score": 120,
            
        
    
        
        
            
                "is_adaptive": true,
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Logic Chain",
            
        
    
        
        
            
                "category": "attention",
            
        
    
        
        
            
                "difficulty": "easy",
            
        
    
        
        
            
                "instructions": "Deduce the correct order using given constraints.",
            
        
    
        
        
            
                "prompt_template": "Provide 5 items with constraints for ordering.",
            
        
    
        
        
            
                "time_limit_seconds": 240,
            
        
    
        
        
            
                "max_score": 150,
            
        
    
        
        
            
                "is_adaptive": true,
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Quick Math Drill",
            
        
    
        
        
            
                "category": "math",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                "instructions": "Answer as many arithmetic questions as possible.",
            
        
    
        
        
            
                "prompt_template": "Generate timed arithmetic questions.",
            
        
    
        
        
            
                "time_limit_seconds": 120,
            
        
    
        
        
            
                "max_score": 200,
            
        
    
        
        
            
                "is_adaptive": true,
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GamesData = [
    
    {
    
        
        
            
                "title": "Equation Quest",
            
        
    
        
        
            
                "genre": "strategy",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                "description": "Solve puzzles by balancing equations and unlocking levels.",
            
        
    
        
        
            
                "game_url": "https://games.example.com/equation-quest",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "time_limit_seconds": 600,
            
        
    
        
        
            
                "multiplayer": true,
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Cyber Safe Challenge",
            
        
    
        
        
            
                "genre": "arcade",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                "description": "Make smart choices to protect a virtual profile from threats.",
            
        
    
        
        
            
                "game_url": "https://games.example.com/cyber-safe",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "time_limit_seconds": 480,
            
        
    
        
        
            
                "multiplayer": true,
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Vocabulary Arcade",
            
        
    
        
        
            
                "genre": "puzzle",
            
        
    
        
        
            
                "difficulty": "expert",
            
        
    
        
        
            
                "description": "Fast-paced vocabulary matching and definitions.",
            
        
    
        
        
            
                "game_url": "https://games.example.com/vocab-arcade",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "time_limit_seconds": 420,
            
        
    
        
        
            
                "multiplayer": true,
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Logic Labyrinth",
            
        
    
        
        
            
                "genre": "word",
            
        
    
        
        
            
                "difficulty": "easy",
            
        
    
        
        
            
                "description": "Navigate through logic gates and reasoning puzzles.",
            
        
    
        
        
            
                "game_url": "https://games.example.com/logic-labyrinth",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "time_limit_seconds": 900,
            
        
    
        
        
            
                "multiplayer": true,
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const InteractiveActivitiesData = [
    
    {
    
        
        
            
                "title": "Spaced Repetition Flashcards",
            
        
    
        
        
            
                "activity_type": "simulation",
            
        
    
        
        
            
                "difficulty": "easy",
            
        
    
        
        
            
                "instructions": "Review flashcards with increasing intervals based on performance.",
            
        
    
        
        
            
                "activity_url": "https://activities.example.com/flashcards-spaced",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Drag and Drop Sentence Builder",
            
        
    
        
        
            
                "activity_type": "drag_drop",
            
        
    
        
        
            
                "difficulty": "hard",
            
        
    
        
        
            
                "instructions": "Arrange words to form correct sentences.",
            
        
    
        
        
            
                "activity_url": "https://activities.example.com/sentence-builder",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Mini Coding Lab: Loops",
            
        
    
        
        
            
                "activity_type": "lab",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                "instructions": "Complete short coding tasks about loops and iteration.",
            
        
    
        
        
            
                "activity_url": "https://activities.example.com/coding-loops",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Science Simulation: Motion",
            
        
    
        
        
            
                "activity_type": "flashcards",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                "instructions": "Adjust variables to see how speed and distance change.",
            
        
    
        
        
            
                "activity_url": "https://activities.example.com/motion-sim",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContentItemsData = [
    
    {
    
        
        
            
                "title": "Lesson: Recognizing Cognitive Biases",
            
        
    
        
        
            
                "content_kind": "activity",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Good starter for critical thinking modules.",
            
        
    
        
        
            
                "recommended_minutes": 20,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Exercise: Quick Math Drill",
            
        
    
        
        
            
                "content_kind": "lesson",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Use after algebra practice.",
            
        
    
        
        
            
                "recommended_minutes": 10,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Game: Equation Quest",
            
        
    
        
        
            
                "content_kind": "game",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Engaging reinforcement for equation balancing.",
            
        
    
        
        
            
                "recommended_minutes": 25,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Activity: Spaced Repetition Flashcards",
            
        
    
        
        
            
                "content_kind": "lesson",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Daily review activity.",
            
        
    
        
        
            
                "recommended_minutes": 15,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LearningPathsData = [
    
    {
    
        
        
            
                "title": "Exam Readiness Sprint",
            
        
    
        
        
            
                "goal": "A focused two-week plan to improve test performance and confidence.",
            
        
    
        
        
            
                "audience": "general",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "STEM English Booster",
            
        
    
        
        
            
                "goal": "Build confidence reading and writing STEM content in English.",
            
        
    
        
        
            
                "audience": "professional",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Digital Safety Starter",
            
        
    
        
        
            
                "goal": "Learn safe online habits and protect accounts and devices.",
            
        
    
        
        
            
                "audience": "professional",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Focus and Productivity Plan",
            
        
    
        
        
            
                "goal": "Create routines, reduce distractions, and study more effectively.",
            
        
    
        
        
            
                "audience": "general",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const EnrollmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "dropped",
            
        
    
        
        
            
                "enrolled_at": new Date('2026-01-20T10:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-02-20T10:00:00Z'),
            
        
    
        
        
            
                "progress_percent": 45.5,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "enrolled_at": new Date('2026-01-25T10:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-03-01T10:00:00Z'),
            
        
    
        
        
            
                "progress_percent": 32.2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "enrolled_at": new Date('2026-01-18T10:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-02-25T10:00:00Z'),
            
        
    
        
        
            
                "progress_percent": 58.8,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "enrolled_at": new Date('2025-12-10T10:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-01-05T10:00:00Z'),
            
        
    
        
        
            
                "progress_percent": 100,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProgressRecordsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_kind": "path",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "in_progress",
            
        
    
        
        
            
                "progress_percent": 60,
            
        
    
        
        
            
                "attempts": 1,
            
        
    
        
        
            
                "last_activity_at": new Date('2026-02-03T18:25:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_kind": "activity",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "not_started",
            
        
    
        
        
            
                "progress_percent": 40,
            
        
    
        
        
            
                "attempts": 3,
            
        
    
        
        
            
                "last_activity_at": new Date('2026-02-03T18:40:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_kind": "activity",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "completed",
            
        
    
        
        
            
                "progress_percent": 100,
            
        
    
        
        
            
                "attempts": 1,
            
        
    
        
        
            
                "last_activity_at": new Date('2026-01-05T09:15:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_kind": "game",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "completed",
            
        
    
        
        
            
                "progress_percent": 35,
            
        
    
        
        
            
                "attempts": 4,
            
        
    
        
        
            
                "last_activity_at": new Date('2026-02-05T11:58:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AttemptsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attempt_kind": "exercise",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "score": 140,
            
        
    
        
        
            
                "accuracy_percent": 78.5,
            
        
    
        
        
            
                "duration_seconds": 115,
            
        
    
        
        
            
                "result": "success",
            
        
    
        
        
            
                "started_at": new Date('2026-02-03T18:30:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-02-03T18:32:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attempt_kind": "activity",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "score": 320,
            
        
    
        
        
            
                "accuracy_percent": 82.1,
            
        
    
        
        
            
                "duration_seconds": 540,
            
        
    
        
        
            
                "result": "fail",
            
        
    
        
        
            
                "started_at": new Date('2026-02-04T08:30:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-02-04T08:39:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attempt_kind": "game",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "score": 90,
            
        
    
        
        
            
                "accuracy_percent": 88.9,
            
        
    
        
        
            
                "duration_seconds": 620,
            
        
    
        
        
            
                "result": "abandoned",
            
        
    
        
        
            
                "started_at": new Date('2026-02-05T11:30:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-02-05T11:40:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attempt_kind": "game",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "score": 70,
            
        
    
        
        
            
                "accuracy_percent": 65.2,
            
        
    
        
        
            
                "duration_seconds": 60,
            
        
    
        
        
            
                "result": "abandoned",
            
        
    
        
        
            
                "started_at": new Date('2026-02-02T10:05:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-02-02T10:06:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LeaderboardsData = [
    
    {
    
        
        
            
                "title": "Global Weekly Scoreboard",
            
        
    
        
        
            
                "scope": "course",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "metric": "accuracy",
            
        
    
        
        
            
                "period_start": new Date('2026-02-03T00:00:00Z'),
            
        
    
        
        
            
                "period_end": new Date('2026-02-10T00:00:00Z'),
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Uzbekistan Monthly Streaks",
            
        
    
        
        
            
                "scope": "monthly",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "metric": "accuracy",
            
        
    
        
        
            
                "period_start": new Date('2026-02-01T00:00:00Z'),
            
        
    
        
        
            
                "period_end": new Date('2026-03-01T00:00:00Z'),
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Samarkand Digital School Points",
            
        
    
        
        
            
                "scope": "organization",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "metric": "streak_days",
            
        
    
        
        
            
                "period_start": new Date('2026-01-01T00:00:00Z'),
            
        
    
        
        
            
                "period_end": new Date('2026-02-01T00:00:00Z'),
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Algebra Essentials Accuracy",
            
        
    
        
        
            
                "scope": "monthly",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "metric": "accuracy",
            
        
    
        
        
            
                "period_start": new Date('2026-01-15T00:00:00Z'),
            
        
    
        
        
            
                "period_end": new Date('2026-02-15T00:00:00Z'),
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const LeaderboardEntriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank": 2,
            
        
    
        
        
            
                "points": 780,
            
        
    
        
        
            
                "value": 780,
            
        
    
        
        
            
                "recorded_at": new Date('2026-02-09T23:55:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank": 4,
            
        
    
        
        
            
                "points": 620,
            
        
    
        
        
            
                "value": 620,
            
        
    
        
        
            
                "recorded_at": new Date('2026-02-09T23:55:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank": 3,
            
        
    
        
        
            
                "points": 12,
            
        
    
        
        
            
                "value": 12,
            
        
    
        
        
            
                "recorded_at": new Date('2026-02-28T23:50:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank": 1,
            
        
    
        
        
            
                "points": 0,
            
        
    
        
        
            
                "value": 91.4,
            
        
    
        
        
            
                "recorded_at": new Date('2026-02-14T23:59:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AiMentorProfilesData = [
    
    {
    
        
        
            
                "name": "Mentor Nova",
            
        
    
        
        
            
                "persona": "A supportive mentor focused on clear explanations and confidence building.",
            
        
    
        
        
            
                "system_prompt": "You are Mentor Nova. Explain concepts step-by-step and ask quick checks for understanding.",
            
        
    
        
        
            
                "tone": "strict",
            
        
    
        
        
            
                "supported_subjects": "math,logic,study skills",
            
        
    
        
        
            
                "visibility": "organization",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_default": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Mentor Atlas",
            
        
    
        
        
            
                "persona": "A structured mentor that uses the Socratic method to guide learning.",
            
        
    
        
        
            
                "system_prompt": "You are Mentor Atlas. Ask guiding questions before giving the full answer.",
            
        
    
        
        
            
                "tone": "detailed",
            
        
    
        
        
            
                "supported_subjects": "critical thinking,problem solving",
            
        
    
        
        
            
                "visibility": "organization",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_default": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Mentor Sadaf",
            
        
    
        
        
            
                "persona": "A concise mentor specializing in digital literacy and online safety.",
            
        
    
        
        
            
                "system_prompt": "You are Mentor Sadaf. Provide concise actionable guidance and safety tips.",
            
        
    
        
        
            
                "tone": "concise",
            
        
    
        
        
            
                "supported_subjects": "digital literacy,online safety",
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_default": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Mentor Lingua",
            
        
    
        
        
            
                "persona": "An encouraging language mentor with examples and practice prompts.",
            
        
    
        
        
            
                "system_prompt": "You are Mentor Lingua. Provide examples, then short practice exercises.",
            
        
    
        
        
            
                "tone": "friendly",
            
        
    
        
        
            
                "supported_subjects": "english,writing,reading",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_default": true,
            
        
    
    },
    
];



const MentorConversationsData = [
    
    {
    
        
        
            
                "title": "Help with Linear Equations",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "started_at": new Date('2026-02-03T18:45:00Z'),
            
        
    
        
        
            
                "last_message_at": new Date('2026-02-03T18:48:00Z'),
            
        
    
        
        
            
                "topic_tags": "algebra,equations",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "How to avoid distractions while studying",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "started_at": new Date('2026-02-04T08:45:00Z'),
            
        
    
        
        
            
                "last_message_at": new Date('2026-02-04T08:47:00Z'),
            
        
    
        
        
            
                "topic_tags": "focus,habits",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Password manager recommendation",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "started_at": new Date('2026-01-04T12:00:00Z'),
            
        
    
        
        
            
                "last_message_at": new Date('2026-01-04T12:05:00Z'),
            
        
    
        
        
            
                "topic_tags": "security,passwords",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Reading STEM article tips",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "started_at": new Date('2026-01-20T16:10:00Z'),
            
        
    
        
        
            
                "last_message_at": new Date('2026-01-20T16:14:00Z'),
            
        
    
        
        
            
                "topic_tags": "reading,english",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MentorMessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender_type": "user",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content": "I get stuck when there are negatives on both sides. Can you show a simple method?",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date('2026-02-03T18:45:30Z'),
            
        
    
        
        
            
                "tokens_used": 0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender_type": "user",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content": "Sure. Move variables to one side and constants to the other, then simplify step by step. Try: 2x-3= -x+6.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date('2026-02-03T18:46:10Z'),
            
        
    
        
        
            
                "tokens_used": 120,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender_type": "system",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content": "My phone distracts me during homework. What should I do?",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date('2026-02-04T08:45:20Z'),
            
        
    
        
        
            
                "tokens_used": 0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender_type": "user",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content": "Use a 25-minute focus block, put the phone in another room, and plan a short break reward after each block.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date('2026-02-04T08:46:05Z'),
            
        
    
        
        
            
                "tokens_used": 95,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProblemReportsData = [
    
    {
    
        
        
            
                "title": "Limited access to modern learning materials",
            
        
    
        
        
            
                "scope": "global",
            
        
    
        
        
            
                "category": "digital_access",
            
        
    
        
        
            
                "description": "Many students lack reliable devices and internet, limiting access to high-quality resources and practice.",
            
        
    
        
        
            
                "evidence_links": "https://example.org/report-digital-access",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date('2026-01-10T09:00:00Z'),
            
        
    
        
        
            
                "published_at": new Date('2026-01-20T09:00:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Assessment focuses on memorization",
            
        
    
        
        
            
                "scope": "uzbekistan",
            
        
    
        
        
            
                "category": "infrastructure",
            
        
    
        
        
            
                "description": "Students are rewarded for rote recall rather than reasoning, creativity, and applied problem solving.",
            
        
    
        
        
            
                "evidence_links": "https://example.org/report-assessment",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date('2026-02-01T10:00:00Z'),
            
        
    
        
        
            
                "published_at": new Date('2026-02-15T10:00:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Teacher training gaps in digital pedagogy",
            
        
    
        
        
            
                "scope": "global",
            
        
    
        
        
            
                "category": "digital_access",
            
        
    
        
        
            
                "description": "Teachers often lack support and time to learn digital tools and active-learning methods.",
            
        
    
        
        
            
                "evidence_links": "https://example.org/report-teacher-training",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date('2026-02-02T08:30:00Z'),
            
        
    
        
        
            
                "published_at": new Date('2026-02-20T08:30:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Student motivation drops in higher grades",
            
        
    
        
        
            
                "scope": "global",
            
        
    
        
        
            
                "category": "infrastructure",
            
        
    
        
        
            
                "description": "Engagement decreases due to stress, lack of relevance, and limited feedback loops.",
            
        
    
        
        
            
                "evidence_links": "https://example.org/report-motivation",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date('2025-12-05T12:00:00Z'),
            
        
    
        
        
            
                "published_at": new Date('2025-12-20T12:00:00Z'),
            
        
    
    },
    
];



const SolutionProposalsData = [
    
    {
    
        
        
            
                "title": "Offline-first learning packs",
            
        
    
        
        
            
                "summary": "Provide downloadable lesson packs and practice sets for low-connectivity areas.",
            
        
    
        
        
            
                "proposal": "Create offline modules with synced progress when connection returns; distribute via school labs and mobile hotspots.",
            
        
    
        
        
            
                "impact_level": "systemic",
            
        
    
        
        
            
                "cost_level": "low",
            
        
    
        
        
            
                "time_horizon": "short_term",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date('2026-01-12T10:00:00Z'),
            
        
    
        
        
            
                "published_at": new Date('2026-01-22T10:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Competency-based quizzes and projects",
            
        
    
        
        
            
                "summary": "Shift assessments toward skills using quizzes, projects, and rubrics.",
            
        
    
        
        
            
                "proposal": "Introduce item banks aligned with competencies and provide project templates to measure real understanding.",
            
        
    
        
        
            
                "impact_level": "medium",
            
        
    
        
        
            
                "cost_level": "high",
            
        
    
        
        
            
                "time_horizon": "long_term",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date('2026-02-02T12:00:00Z'),
            
        
    
        
        
            
                "published_at": new Date('2026-02-18T12:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Micro-training for teachers",
            
        
    
        
        
            
                "summary": "Weekly 20-minute training sessions on digital pedagogy and active learning.",
            
        
    
        
        
            
                "proposal": "Offer short modules, classroom-ready templates, and peer sharing sessions with mentoring support.",
            
        
    
        
        
            
                "impact_level": "high",
            
        
    
        
        
            
                "cost_level": "medium",
            
        
    
        
        
            
                "time_horizon": "short_term",
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date('2026-02-03T09:00:00Z'),
            
        
    
        
        
            
                "published_at": new Date('2026-02-20T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Gamified study streaks with feedback",
            
        
    
        
        
            
                "summary": "Use streaks, badges, and AI feedback to improve engagement.",
            
        
    
        
        
            
                "proposal": "Introduce short daily challenges, personalized AI hints, and reflective prompts to keep learners motivated.",
            
        
    
        
        
            
                "impact_level": "low",
            
        
    
        
        
            
                "cost_level": "low",
            
        
    
        
        
            
                "time_horizon": "mid_term",
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date('2025-12-10T15:00:00Z'),
            
        
    
        
        
            
                "published_at": new Date('2025-12-22T15:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const VotesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "problem_report",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "value": "up",
            
        
    
        
        
            
                "voted_at": new Date('2026-01-23T10:15:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "solution_proposal",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "value": "up",
            
        
    
        
        
            
                "voted_at": new Date('2026-01-02T09:20:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "solution_proposal",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "value": "up",
            
        
    
        
        
            
                "voted_at": new Date('2026-02-03T13:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "problem_report",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "value": "down",
            
        
    
        
        
            
                "voted_at": new Date('2026-01-21T11:30:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CommentsData = [
    
    {
    
        
        
            
                "target_type": "problem_report",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content": "Offline access would help a lot in my area during outages.",
            
        
    
        
        
            
                "posted_at": new Date('2026-01-21T12:00:00Z'),
            
        
    
        
        
            
                "is_pinned": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "target_type": "solution_proposal",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content": "A USB distribution option could be useful for schools without Wi-Fi.",
            
        
    
        
        
            
                "posted_at": new Date('2026-01-23T12:20:00Z'),
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "target_type": "course",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content": "The examples are clear. More word problems would be great.",
            
        
    
        
        
            
                "posted_at": new Date('2026-02-01T08:10:00Z'),
            
        
    
        
        
            
                "is_pinned": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "target_type": "course",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content": "Good checklist. I started using a password manager after this.",
            
        
    
        
        
            
                "posted_at": new Date('2026-01-06T09:00:00Z'),
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "progress",
            
        
    
        
        
            
                "title": "New badge progress",
            
        
    
        
        
            
                "message": "You are close to earning Focus Starter. Complete one more focus exercise.",
            
        
    
        
        
            
                "action_url": "/badges",
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date('2026-02-04T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "progress",
            
        
    
        
        
            
                "title": "Mentor reply received",
            
        
    
        
        
            
                "message": "Your mentor responded with a two-week exam plan.",
            
        
    
        
        
            
                "action_url": "/mentor/conversations/5",
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "sent_at": new Date('2026-02-05T12:15:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "course",
            
        
    
        
        
            
                "title": "Content review requested",
            
        
    
        
        
            
                "message": "A new problem report is waiting for review.",
            
        
    
        
        
            
                "action_url": "/problem_reports",
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date('2026-02-02T09:05:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "mentor",
            
        
    
        
        
            
                "title": "New comment on proposal",
            
        
    
        
        
            
                "message": "A learner commented on Offline-first learning packs.",
            
        
    
        
        
            
                "action_url": "/solution_proposals/1",
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "sent_at": new Date('2026-01-23T12:30:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BadgesData = [
    
    {
    
        
        
            
                "name": "Focus Starter",
            
        
    
        
        
            
                "description": "Complete 3 attention exercises.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rarity": "common",
            
        
    
        
        
            
                "points_awarded": 50,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Math Momentum",
            
        
    
        
        
            
                "description": "Achieve 80 percent accuracy in 5 math drills.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rarity": "epic",
            
        
    
        
        
            
                "points_awarded": 120,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Digital Guardian",
            
        
    
        
        
            
                "description": "Finish the online safety course and pass the quiz.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rarity": "epic",
            
        
    
        
        
            
                "points_awarded": 200,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Consistency Champion",
            
        
    
        
        
            
                "description": "Maintain a 7-day learning streak.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                "points_awarded": 150,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const UserBadgesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date('2026-02-04T09:30:00Z'),
            
        
    
        
        
            
                "reason": "Completed three focus-related activities.",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date('2026-01-05T10:30:00Z'),
            
        
    
        
        
            
                "reason": "Completed Digital Literacy and Online Safety with high score.",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date('2026-01-10T11:00:00Z'),
            
        
    
        
        
            
                "reason": "Maintained a 7-day practice streak.",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date('2026-01-23T13:00:00Z'),
            
        
    
        
        
            
                "reason": "Shared helpful comments on multiple proposals.",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const EventsData = [
    
    {
    
        
        
            
                "title": "Live Webinar: Study Skills That Work",
            
        
    
        
        
            
                "event_type": "webinar",
            
        
    
        
        
            
                "description": "A live session on effective study methods and reducing procrastination.",
            
        
    
        
        
            
                "start_at": new Date('2026-02-12T15:00:00Z'),
            
        
    
        
        
            
                "end_at": new Date('2026-02-12T16:00:00Z'),
            
        
    
        
        
            
                "location": "Online",
            
        
    
        
        
            
                "join_url": "https://meet.example.com/study-skills",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
    },
    
    {
    
        
        
            
                "title": "Workshop: Teaching with Interactive Activities",
            
        
    
        
        
            
                "event_type": "hackathon_demo",
            
        
    
        
        
            
                "description": "Hands-on workshop for teachers to integrate activities into lessons.",
            
        
    
        
        
            
                "start_at": new Date('2026-02-15T10:00:00Z'),
            
        
    
        
        
            
                "end_at": new Date('2026-02-15T12:00:00Z'),
            
        
    
        
        
            
                "location": "Tashkent",
            
        
    
        
        
            
                "join_url": "https://events.example.com/interactive-workshop",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
    },
    
    {
    
        
        
            
                "title": "Weekly Challenge: Logic Labyrinth",
            
        
    
        
        
            
                "event_type": "challenge",
            
        
    
        
        
            
                "description": "Complete the Logic Labyrinth game and share your strategy.",
            
        
    
        
        
            
                "start_at": new Date('2026-02-05T00:00:00Z'),
            
        
    
        
        
            
                "end_at": new Date('2026-02-12T00:00:00Z'),
            
        
    
        
        
            
                "location": "Online",
            
        
    
        
        
            
                "join_url": "https://killnet.uz/challenges/logic-labyrinth",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "live",
            
        
    
    },
    
    {
    
        
        
            
                "title": "Hackathon Demo Day",
            
        
    
        
        
            
                "event_type": "live_class",
            
        
    
        
        
            
                "description": "Showcase platform features and collect feedback from educators.",
            
        
    
        
        
            
                "start_at": new Date('2026-02-20T09:00:00Z'),
            
        
    
        
        
            
                "end_at": new Date('2026-02-20T11:00:00Z'),
            
        
    
        
        
            
                "location": "Online",
            
        
    
        
        
            
                "join_url": "https://meet.example.com/demo-day",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
    },
    
];



const EventRegistrationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "attended",
            
        
    
        
        
            
                "registered_at": new Date('2026-02-06T09:00:00Z'),
            
        
    
        
        
            
                "checked_in_at": new Date('2026-02-12T14:55:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "registered_at": new Date('2026-02-06T10:00:00Z'),
            
        
    
        
        
            
                "checked_in_at": new Date('2026-02-12T14:56:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "registered_at": new Date('2026-02-07T08:00:00Z'),
            
        
    
        
        
            
                "checked_in_at": new Date('2026-02-15T09:55:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "registered",
            
        
    
        
        
            
                "registered_at": new Date('2026-02-10T11:00:00Z'),
            
        
    
        
        
            
                "checked_in_at": new Date('2026-02-20T08:55:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SitePagesData = [
    
    {
    
        
        
            
                "title": "About KillNet",
            
        
    
        
        
            
                "slug": "about",
            
        
    
        
        
            
                "visibility": "members",
            
        
    
        
        
            
                "content": "KillNet is a learning platform designed to make education more effective through practice, feedback, and mentorship.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "published_at": new Date('2026-01-05T10:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "How It Works",
            
        
    
        
        
            
                "slug": "how-it-works",
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "content": "Choose a course, practice with games and exercises, and ask the AI mentor when you are stuck.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "published_at": new Date('2026-01-06T10:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Privacy Policy",
            
        
    
        
        
            
                "slug": "privacy",
            
        
    
        
        
            
                "visibility": "admin",
            
        
    
        
        
            
                "content": "We respect user privacy and process data to provide learning features and progress tracking.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "published_at": new Date('2026-01-07T10:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "For Teachers",
            
        
    
        
        
            
                "slug": "for-teachers",
            
        
    
        
        
            
                "visibility": "members",
            
        
    
        
        
            
                "content": "Tools for creating lessons, tracking learner progress, and using mentor guidance in class.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "published_at": new Date('2026-01-15T12:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // 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 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 associateCoursWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cours0 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cours0?.setAuthor)
                {
                    await
                    Cours0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cours1 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cours1?.setAuthor)
                {
                    await
                    Cours1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cours2 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cours2?.setAuthor)
                {
                    await
                    Cours2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cours3 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Cours3?.setAuthor)
                {
                    await
                    Cours3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateLessonWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Lesson0 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Lesson0?.setCourse)
                {
                    await
                    Lesson0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Lesson1 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Lesson1?.setCourse)
                {
                    await
                    Lesson1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Lesson2 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Lesson2?.setCourse)
                {
                    await
                    Lesson2.
                    setCourse(relatedCourse2);
                }
            
                const relatedCourse3 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Lesson3 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Lesson3?.setCourse)
                {
                    await
                    Lesson3.
                    setCourse(relatedCourse3);
                }
            
        }
        
    
        
            
            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 associateExercisWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Exercis0 = await Exercises.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Exercis0?.setOrganization)
                {
                    await
                    Exercis0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Exercis1 = await Exercises.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Exercis1?.setOrganization)
                {
                    await
                    Exercis1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Exercis2 = await Exercises.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Exercis2?.setOrganization)
                {
                    await
                    Exercis2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Exercis3 = await Exercises.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Exercis3?.setOrganization)
                {
                    await
                    Exercis3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateGameWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Game0 = await Games.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Game0?.setOrganization)
                {
                    await
                    Game0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Game1 = await Games.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Game1?.setOrganization)
                {
                    await
                    Game1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Game2 = await Games.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Game2?.setOrganization)
                {
                    await
                    Game2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Game3 = await Games.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Game3?.setOrganization)
                {
                    await
                    Game3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateInteractiveActivityWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const InteractiveActivity0 = await InteractiveActivities.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InteractiveActivity0?.setOrganization)
                {
                    await
                    InteractiveActivity0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const InteractiveActivity1 = await InteractiveActivities.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InteractiveActivity1?.setOrganization)
                {
                    await
                    InteractiveActivity1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const InteractiveActivity2 = await InteractiveActivities.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InteractiveActivity2?.setOrganization)
                {
                    await
                    InteractiveActivity2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const InteractiveActivity3 = await InteractiveActivities.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InteractiveActivity3?.setOrganization)
                {
                    await
                    InteractiveActivity3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
            
            async function associateContentItemWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const ContentItem0 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentItem0?.setLesson)
                {
                    await
                    ContentItem0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const ContentItem1 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentItem1?.setLesson)
                {
                    await
                    ContentItem1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const ContentItem2 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentItem2?.setLesson)
                {
                    await
                    ContentItem2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const ContentItem3 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContentItem3?.setLesson)
                {
                    await
                    ContentItem3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
            
            async function associateContentItemWithExercise() {
            
                const relatedExercise0 = await Exercises.findOne({
                    offset: Math.floor(Math.random() * (await Exercises.count())),
                });
                const ContentItem0 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentItem0?.setExercise)
                {
                    await
                    ContentItem0.
                    setExercise(relatedExercise0);
                }
            
                const relatedExercise1 = await Exercises.findOne({
                    offset: Math.floor(Math.random() * (await Exercises.count())),
                });
                const ContentItem1 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentItem1?.setExercise)
                {
                    await
                    ContentItem1.
                    setExercise(relatedExercise1);
                }
            
                const relatedExercise2 = await Exercises.findOne({
                    offset: Math.floor(Math.random() * (await Exercises.count())),
                });
                const ContentItem2 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentItem2?.setExercise)
                {
                    await
                    ContentItem2.
                    setExercise(relatedExercise2);
                }
            
                const relatedExercise3 = await Exercises.findOne({
                    offset: Math.floor(Math.random() * (await Exercises.count())),
                });
                const ContentItem3 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContentItem3?.setExercise)
                {
                    await
                    ContentItem3.
                    setExercise(relatedExercise3);
                }
            
        }
        
    
        
            
            async function associateContentItemWithGame() {
            
                const relatedGame0 = await Games.findOne({
                    offset: Math.floor(Math.random() * (await Games.count())),
                });
                const ContentItem0 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentItem0?.setGame)
                {
                    await
                    ContentItem0.
                    setGame(relatedGame0);
                }
            
                const relatedGame1 = await Games.findOne({
                    offset: Math.floor(Math.random() * (await Games.count())),
                });
                const ContentItem1 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentItem1?.setGame)
                {
                    await
                    ContentItem1.
                    setGame(relatedGame1);
                }
            
                const relatedGame2 = await Games.findOne({
                    offset: Math.floor(Math.random() * (await Games.count())),
                });
                const ContentItem2 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentItem2?.setGame)
                {
                    await
                    ContentItem2.
                    setGame(relatedGame2);
                }
            
                const relatedGame3 = await Games.findOne({
                    offset: Math.floor(Math.random() * (await Games.count())),
                });
                const ContentItem3 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContentItem3?.setGame)
                {
                    await
                    ContentItem3.
                    setGame(relatedGame3);
                }
            
        }
        
    
        
            
            async function associateContentItemWithActivity() {
            
                const relatedActivity0 = await InteractiveActivities.findOne({
                    offset: Math.floor(Math.random() * (await InteractiveActivities.count())),
                });
                const ContentItem0 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentItem0?.setActivity)
                {
                    await
                    ContentItem0.
                    setActivity(relatedActivity0);
                }
            
                const relatedActivity1 = await InteractiveActivities.findOne({
                    offset: Math.floor(Math.random() * (await InteractiveActivities.count())),
                });
                const ContentItem1 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentItem1?.setActivity)
                {
                    await
                    ContentItem1.
                    setActivity(relatedActivity1);
                }
            
                const relatedActivity2 = await InteractiveActivities.findOne({
                    offset: Math.floor(Math.random() * (await InteractiveActivities.count())),
                });
                const ContentItem2 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentItem2?.setActivity)
                {
                    await
                    ContentItem2.
                    setActivity(relatedActivity2);
                }
            
                const relatedActivity3 = await InteractiveActivities.findOne({
                    offset: Math.floor(Math.random() * (await InteractiveActivities.count())),
                });
                const ContentItem3 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContentItem3?.setActivity)
                {
                    await
                    ContentItem3.
                    setActivity(relatedActivity3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateContentItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContentItem0 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentItem0?.setOrganization)
                {
                    await
                    ContentItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContentItem1 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentItem1?.setOrganization)
                {
                    await
                    ContentItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContentItem2 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentItem2?.setOrganization)
                {
                    await
                    ContentItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContentItem3 = await ContentItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContentItem3?.setOrganization)
                {
                    await
                    ContentItem3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateLearningPathWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LearningPath0 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LearningPath0?.setOwner)
                {
                    await
                    LearningPath0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LearningPath1 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LearningPath1?.setOwner)
                {
                    await
                    LearningPath1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LearningPath2 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LearningPath2?.setOwner)
                {
                    await
                    LearningPath2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LearningPath3 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LearningPath3?.setOwner)
                {
                    await
                    LearningPath3.
                    setOwner(relatedOwner3);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    
        
            
            async function associateLearningPathWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LearningPath0 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LearningPath0?.setOrganization)
                {
                    await
                    LearningPath0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LearningPath1 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LearningPath1?.setOrganization)
                {
                    await
                    LearningPath1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LearningPath2 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LearningPath2?.setOrganization)
                {
                    await
                    LearningPath2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LearningPath3 = await LearningPaths.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LearningPath3?.setOrganization)
                {
                    await
                    LearningPath3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function 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 associateProgressRecordWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProgressRecord0 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProgressRecord0?.setUser)
                {
                    await
                    ProgressRecord0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProgressRecord1 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProgressRecord1?.setUser)
                {
                    await
                    ProgressRecord1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProgressRecord2 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProgressRecord2?.setUser)
                {
                    await
                    ProgressRecord2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProgressRecord3 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProgressRecord3?.setUser)
                {
                    await
                    ProgressRecord3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
            
            async function associateProgressRecordWithContent_item() {
            
                const relatedContent_item0 = await ContentItems.findOne({
                    offset: Math.floor(Math.random() * (await ContentItems.count())),
                });
                const ProgressRecord0 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProgressRecord0?.setContent_item)
                {
                    await
                    ProgressRecord0.
                    setContent_item(relatedContent_item0);
                }
            
                const relatedContent_item1 = await ContentItems.findOne({
                    offset: Math.floor(Math.random() * (await ContentItems.count())),
                });
                const ProgressRecord1 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProgressRecord1?.setContent_item)
                {
                    await
                    ProgressRecord1.
                    setContent_item(relatedContent_item1);
                }
            
                const relatedContent_item2 = await ContentItems.findOne({
                    offset: Math.floor(Math.random() * (await ContentItems.count())),
                });
                const ProgressRecord2 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProgressRecord2?.setContent_item)
                {
                    await
                    ProgressRecord2.
                    setContent_item(relatedContent_item2);
                }
            
                const relatedContent_item3 = await ContentItems.findOne({
                    offset: Math.floor(Math.random() * (await ContentItems.count())),
                });
                const ProgressRecord3 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProgressRecord3?.setContent_item)
                {
                    await
                    ProgressRecord3.
                    setContent_item(relatedContent_item3);
                }
            
        }
        
    
        
            
            async function associateProgressRecordWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const ProgressRecord0 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProgressRecord0?.setCourse)
                {
                    await
                    ProgressRecord0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const ProgressRecord1 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProgressRecord1?.setCourse)
                {
                    await
                    ProgressRecord1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const ProgressRecord2 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProgressRecord2?.setCourse)
                {
                    await
                    ProgressRecord2.
                    setCourse(relatedCourse2);
                }
            
                const relatedCourse3 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const ProgressRecord3 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProgressRecord3?.setCourse)
                {
                    await
                    ProgressRecord3.
                    setCourse(relatedCourse3);
                }
            
        }
        
    
        
            
            async function associateProgressRecordWithPath() {
            
                const relatedPath0 = await LearningPaths.findOne({
                    offset: Math.floor(Math.random() * (await LearningPaths.count())),
                });
                const ProgressRecord0 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProgressRecord0?.setPath)
                {
                    await
                    ProgressRecord0.
                    setPath(relatedPath0);
                }
            
                const relatedPath1 = await LearningPaths.findOne({
                    offset: Math.floor(Math.random() * (await LearningPaths.count())),
                });
                const ProgressRecord1 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProgressRecord1?.setPath)
                {
                    await
                    ProgressRecord1.
                    setPath(relatedPath1);
                }
            
                const relatedPath2 = await LearningPaths.findOne({
                    offset: Math.floor(Math.random() * (await LearningPaths.count())),
                });
                const ProgressRecord2 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProgressRecord2?.setPath)
                {
                    await
                    ProgressRecord2.
                    setPath(relatedPath2);
                }
            
                const relatedPath3 = await LearningPaths.findOne({
                    offset: Math.floor(Math.random() * (await LearningPaths.count())),
                });
                const ProgressRecord3 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProgressRecord3?.setPath)
                {
                    await
                    ProgressRecord3.
                    setPath(relatedPath3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProgressRecordWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProgressRecord0 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProgressRecord0?.setOrganization)
                {
                    await
                    ProgressRecord0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProgressRecord1 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProgressRecord1?.setOrganization)
                {
                    await
                    ProgressRecord1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProgressRecord2 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProgressRecord2?.setOrganization)
                {
                    await
                    ProgressRecord2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProgressRecord3 = await ProgressRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProgressRecord3?.setOrganization)
                {
                    await
                    ProgressRecord3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAttemptWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Attempt0 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Attempt0?.setUser)
                {
                    await
                    Attempt0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Attempt1 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Attempt1?.setUser)
                {
                    await
                    Attempt1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Attempt2 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Attempt2?.setUser)
                {
                    await
                    Attempt2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Attempt3 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Attempt3?.setUser)
                {
                    await
                    Attempt3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
            
            async function associateAttemptWithExercise() {
            
                const relatedExercise0 = await Exercises.findOne({
                    offset: Math.floor(Math.random() * (await Exercises.count())),
                });
                const Attempt0 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Attempt0?.setExercise)
                {
                    await
                    Attempt0.
                    setExercise(relatedExercise0);
                }
            
                const relatedExercise1 = await Exercises.findOne({
                    offset: Math.floor(Math.random() * (await Exercises.count())),
                });
                const Attempt1 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Attempt1?.setExercise)
                {
                    await
                    Attempt1.
                    setExercise(relatedExercise1);
                }
            
                const relatedExercise2 = await Exercises.findOne({
                    offset: Math.floor(Math.random() * (await Exercises.count())),
                });
                const Attempt2 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Attempt2?.setExercise)
                {
                    await
                    Attempt2.
                    setExercise(relatedExercise2);
                }
            
                const relatedExercise3 = await Exercises.findOne({
                    offset: Math.floor(Math.random() * (await Exercises.count())),
                });
                const Attempt3 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Attempt3?.setExercise)
                {
                    await
                    Attempt3.
                    setExercise(relatedExercise3);
                }
            
        }
        
    
        
            
            async function associateAttemptWithGame() {
            
                const relatedGame0 = await Games.findOne({
                    offset: Math.floor(Math.random() * (await Games.count())),
                });
                const Attempt0 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Attempt0?.setGame)
                {
                    await
                    Attempt0.
                    setGame(relatedGame0);
                }
            
                const relatedGame1 = await Games.findOne({
                    offset: Math.floor(Math.random() * (await Games.count())),
                });
                const Attempt1 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Attempt1?.setGame)
                {
                    await
                    Attempt1.
                    setGame(relatedGame1);
                }
            
                const relatedGame2 = await Games.findOne({
                    offset: Math.floor(Math.random() * (await Games.count())),
                });
                const Attempt2 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Attempt2?.setGame)
                {
                    await
                    Attempt2.
                    setGame(relatedGame2);
                }
            
                const relatedGame3 = await Games.findOne({
                    offset: Math.floor(Math.random() * (await Games.count())),
                });
                const Attempt3 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Attempt3?.setGame)
                {
                    await
                    Attempt3.
                    setGame(relatedGame3);
                }
            
        }
        
    
        
            
            async function associateAttemptWithActivity() {
            
                const relatedActivity0 = await InteractiveActivities.findOne({
                    offset: Math.floor(Math.random() * (await InteractiveActivities.count())),
                });
                const Attempt0 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Attempt0?.setActivity)
                {
                    await
                    Attempt0.
                    setActivity(relatedActivity0);
                }
            
                const relatedActivity1 = await InteractiveActivities.findOne({
                    offset: Math.floor(Math.random() * (await InteractiveActivities.count())),
                });
                const Attempt1 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Attempt1?.setActivity)
                {
                    await
                    Attempt1.
                    setActivity(relatedActivity1);
                }
            
                const relatedActivity2 = await InteractiveActivities.findOne({
                    offset: Math.floor(Math.random() * (await InteractiveActivities.count())),
                });
                const Attempt2 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Attempt2?.setActivity)
                {
                    await
                    Attempt2.
                    setActivity(relatedActivity2);
                }
            
                const relatedActivity3 = await InteractiveActivities.findOne({
                    offset: Math.floor(Math.random() * (await InteractiveActivities.count())),
                });
                const Attempt3 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Attempt3?.setActivity)
                {
                    await
                    Attempt3.
                    setActivity(relatedActivity3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAttemptWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Attempt0 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Attempt0?.setOrganization)
                {
                    await
                    Attempt0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Attempt1 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Attempt1?.setOrganization)
                {
                    await
                    Attempt1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Attempt2 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Attempt2?.setOrganization)
                {
                    await
                    Attempt2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Attempt3 = await Attempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Attempt3?.setOrganization)
                {
                    await
                    Attempt3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
            
            async function associateLeaderboardWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Leaderboard0 = await Leaderboards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Leaderboard0?.setOrganization)
                {
                    await
                    Leaderboard0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Leaderboard1 = await Leaderboards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Leaderboard1?.setOrganization)
                {
                    await
                    Leaderboard1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Leaderboard2 = await Leaderboards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Leaderboard2?.setOrganization)
                {
                    await
                    Leaderboard2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Leaderboard3 = await Leaderboards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Leaderboard3?.setOrganization)
                {
                    await
                    Leaderboard3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
            
            async function associateLeaderboardWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Leaderboard0 = await Leaderboards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Leaderboard0?.setCourse)
                {
                    await
                    Leaderboard0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Leaderboard1 = await Leaderboards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Leaderboard1?.setCourse)
                {
                    await
                    Leaderboard1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Leaderboard2 = await Leaderboards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Leaderboard2?.setCourse)
                {
                    await
                    Leaderboard2.
                    setCourse(relatedCourse2);
                }
            
                const relatedCourse3 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Leaderboard3 = await Leaderboards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Leaderboard3?.setCourse)
                {
                    await
                    Leaderboard3.
                    setCourse(relatedCourse3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLeaderboardEntryWithLeaderboard() {
            
                const relatedLeaderboard0 = await Leaderboards.findOne({
                    offset: Math.floor(Math.random() * (await Leaderboards.count())),
                });
                const LeaderboardEntry0 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaderboardEntry0?.setLeaderboard)
                {
                    await
                    LeaderboardEntry0.
                    setLeaderboard(relatedLeaderboard0);
                }
            
                const relatedLeaderboard1 = await Leaderboards.findOne({
                    offset: Math.floor(Math.random() * (await Leaderboards.count())),
                });
                const LeaderboardEntry1 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaderboardEntry1?.setLeaderboard)
                {
                    await
                    LeaderboardEntry1.
                    setLeaderboard(relatedLeaderboard1);
                }
            
                const relatedLeaderboard2 = await Leaderboards.findOne({
                    offset: Math.floor(Math.random() * (await Leaderboards.count())),
                });
                const LeaderboardEntry2 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaderboardEntry2?.setLeaderboard)
                {
                    await
                    LeaderboardEntry2.
                    setLeaderboard(relatedLeaderboard2);
                }
            
                const relatedLeaderboard3 = await Leaderboards.findOne({
                    offset: Math.floor(Math.random() * (await Leaderboards.count())),
                });
                const LeaderboardEntry3 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaderboardEntry3?.setLeaderboard)
                {
                    await
                    LeaderboardEntry3.
                    setLeaderboard(relatedLeaderboard3);
                }
            
        }
        
    
        
            
            async function associateLeaderboardEntryWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeaderboardEntry0 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaderboardEntry0?.setUser)
                {
                    await
                    LeaderboardEntry0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeaderboardEntry1 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaderboardEntry1?.setUser)
                {
                    await
                    LeaderboardEntry1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeaderboardEntry2 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaderboardEntry2?.setUser)
                {
                    await
                    LeaderboardEntry2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeaderboardEntry3 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaderboardEntry3?.setUser)
                {
                    await
                    LeaderboardEntry3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateLeaderboardEntryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LeaderboardEntry0 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaderboardEntry0?.setOrganization)
                {
                    await
                    LeaderboardEntry0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LeaderboardEntry1 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaderboardEntry1?.setOrganization)
                {
                    await
                    LeaderboardEntry1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LeaderboardEntry2 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaderboardEntry2?.setOrganization)
                {
                    await
                    LeaderboardEntry2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LeaderboardEntry3 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaderboardEntry3?.setOrganization)
                {
                    await
                    LeaderboardEntry3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAiMentorProfileWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiMentorProfile0 = await AiMentorProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiMentorProfile0?.setOrganization)
                {
                    await
                    AiMentorProfile0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiMentorProfile1 = await AiMentorProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiMentorProfile1?.setOrganization)
                {
                    await
                    AiMentorProfile1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiMentorProfile2 = await AiMentorProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiMentorProfile2?.setOrganization)
                {
                    await
                    AiMentorProfile2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiMentorProfile3 = await AiMentorProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiMentorProfile3?.setOrganization)
                {
                    await
                    AiMentorProfile3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateMentorConversationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MentorConversation0 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MentorConversation0?.setUser)
                {
                    await
                    MentorConversation0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MentorConversation1 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MentorConversation1?.setUser)
                {
                    await
                    MentorConversation1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MentorConversation2 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MentorConversation2?.setUser)
                {
                    await
                    MentorConversation2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MentorConversation3 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MentorConversation3?.setUser)
                {
                    await
                    MentorConversation3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateMentorConversationWithMentor_profile() {
            
                const relatedMentor_profile0 = await AiMentorProfiles.findOne({
                    offset: Math.floor(Math.random() * (await AiMentorProfiles.count())),
                });
                const MentorConversation0 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MentorConversation0?.setMentor_profile)
                {
                    await
                    MentorConversation0.
                    setMentor_profile(relatedMentor_profile0);
                }
            
                const relatedMentor_profile1 = await AiMentorProfiles.findOne({
                    offset: Math.floor(Math.random() * (await AiMentorProfiles.count())),
                });
                const MentorConversation1 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MentorConversation1?.setMentor_profile)
                {
                    await
                    MentorConversation1.
                    setMentor_profile(relatedMentor_profile1);
                }
            
                const relatedMentor_profile2 = await AiMentorProfiles.findOne({
                    offset: Math.floor(Math.random() * (await AiMentorProfiles.count())),
                });
                const MentorConversation2 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MentorConversation2?.setMentor_profile)
                {
                    await
                    MentorConversation2.
                    setMentor_profile(relatedMentor_profile2);
                }
            
                const relatedMentor_profile3 = await AiMentorProfiles.findOne({
                    offset: Math.floor(Math.random() * (await AiMentorProfiles.count())),
                });
                const MentorConversation3 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MentorConversation3?.setMentor_profile)
                {
                    await
                    MentorConversation3.
                    setMentor_profile(relatedMentor_profile3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMentorConversationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MentorConversation0 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MentorConversation0?.setOrganization)
                {
                    await
                    MentorConversation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MentorConversation1 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MentorConversation1?.setOrganization)
                {
                    await
                    MentorConversation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MentorConversation2 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MentorConversation2?.setOrganization)
                {
                    await
                    MentorConversation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MentorConversation3 = await MentorConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MentorConversation3?.setOrganization)
                {
                    await
                    MentorConversation3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMentorMessageWithConversation() {
            
                const relatedConversation0 = await MentorConversations.findOne({
                    offset: Math.floor(Math.random() * (await MentorConversations.count())),
                });
                const MentorMessage0 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MentorMessage0?.setConversation)
                {
                    await
                    MentorMessage0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await MentorConversations.findOne({
                    offset: Math.floor(Math.random() * (await MentorConversations.count())),
                });
                const MentorMessage1 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MentorMessage1?.setConversation)
                {
                    await
                    MentorMessage1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await MentorConversations.findOne({
                    offset: Math.floor(Math.random() * (await MentorConversations.count())),
                });
                const MentorMessage2 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MentorMessage2?.setConversation)
                {
                    await
                    MentorMessage2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await MentorConversations.findOne({
                    offset: Math.floor(Math.random() * (await MentorConversations.count())),
                });
                const MentorMessage3 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MentorMessage3?.setConversation)
                {
                    await
                    MentorMessage3.
                    setConversation(relatedConversation3);
                }
            
        }
        
    
        
    
        
            
            async function associateMentorMessageWithSender_user() {
            
                const relatedSender_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MentorMessage0 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MentorMessage0?.setSender_user)
                {
                    await
                    MentorMessage0.
                    setSender_user(relatedSender_user0);
                }
            
                const relatedSender_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MentorMessage1 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MentorMessage1?.setSender_user)
                {
                    await
                    MentorMessage1.
                    setSender_user(relatedSender_user1);
                }
            
                const relatedSender_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MentorMessage2 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MentorMessage2?.setSender_user)
                {
                    await
                    MentorMessage2.
                    setSender_user(relatedSender_user2);
                }
            
                const relatedSender_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MentorMessage3 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MentorMessage3?.setSender_user)
                {
                    await
                    MentorMessage3.
                    setSender_user(relatedSender_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMentorMessageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MentorMessage0 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MentorMessage0?.setOrganization)
                {
                    await
                    MentorMessage0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MentorMessage1 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MentorMessage1?.setOrganization)
                {
                    await
                    MentorMessage1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MentorMessage2 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MentorMessage2?.setOrganization)
                {
                    await
                    MentorMessage2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MentorMessage3 = await MentorMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MentorMessage3?.setOrganization)
                {
                    await
                    MentorMessage3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProblemReportWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProblemReport0 = await ProblemReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProblemReport0?.setAuthor)
                {
                    await
                    ProblemReport0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProblemReport1 = await ProblemReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProblemReport1?.setAuthor)
                {
                    await
                    ProblemReport1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProblemReport2 = await ProblemReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProblemReport2?.setAuthor)
                {
                    await
                    ProblemReport2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProblemReport3 = await ProblemReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProblemReport3?.setAuthor)
                {
                    await
                    ProblemReport3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
            
            async function associateProblemReportWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProblemReport0 = await ProblemReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProblemReport0?.setOrganization)
                {
                    await
                    ProblemReport0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProblemReport1 = await ProblemReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProblemReport1?.setOrganization)
                {
                    await
                    ProblemReport1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProblemReport2 = await ProblemReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProblemReport2?.setOrganization)
                {
                    await
                    ProblemReport2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProblemReport3 = await ProblemReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProblemReport3?.setOrganization)
                {
                    await
                    ProblemReport3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSolutionProposalWithProblem_report() {
            
                const relatedProblem_report0 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const SolutionProposal0 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SolutionProposal0?.setProblem_report)
                {
                    await
                    SolutionProposal0.
                    setProblem_report(relatedProblem_report0);
                }
            
                const relatedProblem_report1 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const SolutionProposal1 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SolutionProposal1?.setProblem_report)
                {
                    await
                    SolutionProposal1.
                    setProblem_report(relatedProblem_report1);
                }
            
                const relatedProblem_report2 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const SolutionProposal2 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SolutionProposal2?.setProblem_report)
                {
                    await
                    SolutionProposal2.
                    setProblem_report(relatedProblem_report2);
                }
            
                const relatedProblem_report3 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const SolutionProposal3 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SolutionProposal3?.setProblem_report)
                {
                    await
                    SolutionProposal3.
                    setProblem_report(relatedProblem_report3);
                }
            
        }
        
    
        
            
            async function associateSolutionProposalWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SolutionProposal0 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SolutionProposal0?.setAuthor)
                {
                    await
                    SolutionProposal0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SolutionProposal1 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SolutionProposal1?.setAuthor)
                {
                    await
                    SolutionProposal1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SolutionProposal2 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SolutionProposal2?.setAuthor)
                {
                    await
                    SolutionProposal2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SolutionProposal3 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SolutionProposal3?.setAuthor)
                {
                    await
                    SolutionProposal3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateSolutionProposalWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SolutionProposal0 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SolutionProposal0?.setOrganization)
                {
                    await
                    SolutionProposal0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SolutionProposal1 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SolutionProposal1?.setOrganization)
                {
                    await
                    SolutionProposal1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SolutionProposal2 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SolutionProposal2?.setOrganization)
                {
                    await
                    SolutionProposal2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SolutionProposal3 = await SolutionProposals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SolutionProposal3?.setOrganization)
                {
                    await
                    SolutionProposal3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateVoteWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Vote0 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Vote0?.setUser)
                {
                    await
                    Vote0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Vote1 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Vote1?.setUser)
                {
                    await
                    Vote1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Vote2 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Vote2?.setUser)
                {
                    await
                    Vote2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Vote3 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Vote3?.setUser)
                {
                    await
                    Vote3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
            
            async function associateVoteWithProblem_report() {
            
                const relatedProblem_report0 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const Vote0 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Vote0?.setProblem_report)
                {
                    await
                    Vote0.
                    setProblem_report(relatedProblem_report0);
                }
            
                const relatedProblem_report1 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const Vote1 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Vote1?.setProblem_report)
                {
                    await
                    Vote1.
                    setProblem_report(relatedProblem_report1);
                }
            
                const relatedProblem_report2 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const Vote2 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Vote2?.setProblem_report)
                {
                    await
                    Vote2.
                    setProblem_report(relatedProblem_report2);
                }
            
                const relatedProblem_report3 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const Vote3 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Vote3?.setProblem_report)
                {
                    await
                    Vote3.
                    setProblem_report(relatedProblem_report3);
                }
            
        }
        
    
        
            
            async function associateVoteWithSolution_proposal() {
            
                const relatedSolution_proposal0 = await SolutionProposals.findOne({
                    offset: Math.floor(Math.random() * (await SolutionProposals.count())),
                });
                const Vote0 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Vote0?.setSolution_proposal)
                {
                    await
                    Vote0.
                    setSolution_proposal(relatedSolution_proposal0);
                }
            
                const relatedSolution_proposal1 = await SolutionProposals.findOne({
                    offset: Math.floor(Math.random() * (await SolutionProposals.count())),
                });
                const Vote1 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Vote1?.setSolution_proposal)
                {
                    await
                    Vote1.
                    setSolution_proposal(relatedSolution_proposal1);
                }
            
                const relatedSolution_proposal2 = await SolutionProposals.findOne({
                    offset: Math.floor(Math.random() * (await SolutionProposals.count())),
                });
                const Vote2 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Vote2?.setSolution_proposal)
                {
                    await
                    Vote2.
                    setSolution_proposal(relatedSolution_proposal2);
                }
            
                const relatedSolution_proposal3 = await SolutionProposals.findOne({
                    offset: Math.floor(Math.random() * (await SolutionProposals.count())),
                });
                const Vote3 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Vote3?.setSolution_proposal)
                {
                    await
                    Vote3.
                    setSolution_proposal(relatedSolution_proposal3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateVoteWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Vote0 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Vote0?.setOrganization)
                {
                    await
                    Vote0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Vote1 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Vote1?.setOrganization)
                {
                    await
                    Vote1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Vote2 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Vote2?.setOrganization)
                {
                    await
                    Vote2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Vote3 = await Votes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Vote3?.setOrganization)
                {
                    await
                    Vote3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
            
            async function associateCommentWithProblem_report() {
            
                const relatedProblem_report0 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setProblem_report)
                {
                    await
                    Comment0.
                    setProblem_report(relatedProblem_report0);
                }
            
                const relatedProblem_report1 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setProblem_report)
                {
                    await
                    Comment1.
                    setProblem_report(relatedProblem_report1);
                }
            
                const relatedProblem_report2 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setProblem_report)
                {
                    await
                    Comment2.
                    setProblem_report(relatedProblem_report2);
                }
            
                const relatedProblem_report3 = await ProblemReports.findOne({
                    offset: Math.floor(Math.random() * (await ProblemReports.count())),
                });
                const Comment3 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Comment3?.setProblem_report)
                {
                    await
                    Comment3.
                    setProblem_report(relatedProblem_report3);
                }
            
        }
        
    
        
            
            async function associateCommentWithSolution_proposal() {
            
                const relatedSolution_proposal0 = await SolutionProposals.findOne({
                    offset: Math.floor(Math.random() * (await SolutionProposals.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setSolution_proposal)
                {
                    await
                    Comment0.
                    setSolution_proposal(relatedSolution_proposal0);
                }
            
                const relatedSolution_proposal1 = await SolutionProposals.findOne({
                    offset: Math.floor(Math.random() * (await SolutionProposals.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setSolution_proposal)
                {
                    await
                    Comment1.
                    setSolution_proposal(relatedSolution_proposal1);
                }
            
                const relatedSolution_proposal2 = await SolutionProposals.findOne({
                    offset: Math.floor(Math.random() * (await SolutionProposals.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setSolution_proposal)
                {
                    await
                    Comment2.
                    setSolution_proposal(relatedSolution_proposal2);
                }
            
                const relatedSolution_proposal3 = await SolutionProposals.findOne({
                    offset: Math.floor(Math.random() * (await SolutionProposals.count())),
                });
                const Comment3 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Comment3?.setSolution_proposal)
                {
                    await
                    Comment3.
                    setSolution_proposal(relatedSolution_proposal3);
                }
            
        }
        
    
        
            
            async function associateCommentWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setCourse)
                {
                    await
                    Comment0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setCourse)
                {
                    await
                    Comment1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setCourse)
                {
                    await
                    Comment2.
                    setCourse(relatedCourse2);
                }
            
                const relatedCourse3 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Comment3 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Comment3?.setCourse)
                {
                    await
                    Comment3.
                    setCourse(relatedCourse3);
                }
            
        }
        
    
        
            
            async function associateCommentWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setLesson)
                {
                    await
                    Comment0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setLesson)
                {
                    await
                    Comment1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setLesson)
                {
                    await
                    Comment2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const Comment3 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Comment3?.setLesson)
                {
                    await
                    Comment3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
            
            async function associateCommentWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setAuthor)
                {
                    await
                    Comment0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setAuthor)
                {
                    await
                    Comment1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setAuthor)
                {
                    await
                    Comment2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment3 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Comment3?.setAuthor)
                {
                    await
                    Comment3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateCommentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setOrganization)
                {
                    await
                    Comment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setOrganization)
                {
                    await
                    Comment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setOrganization)
                {
                    await
                    Comment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Comment3 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Comment3?.setOrganization)
                {
                    await
                    Comment3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateNotificationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setUser)
                {
                    await
                    Notification0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setUser)
                {
                    await
                    Notification1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setUser)
                {
                    await
                    Notification2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification3 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Notification3?.setUser)
                {
                    await
                    Notification3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateNotificationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setOrganization)
                {
                    await
                    Notification0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setOrganization)
                {
                    await
                    Notification1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setOrganization)
                {
                    await
                    Notification2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Notification3 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Notification3?.setOrganization)
                {
                    await
                    Notification3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

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

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

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateEventWithHost() {
            
                const relatedHost0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Event0 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Event0?.setHost)
                {
                    await
                    Event0.
                    setHost(relatedHost0);
                }
            
                const relatedHost1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Event1 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Event1?.setHost)
                {
                    await
                    Event1.
                    setHost(relatedHost1);
                }
            
                const relatedHost2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Event2 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Event2?.setHost)
                {
                    await
                    Event2.
                    setHost(relatedHost2);
                }
            
                const relatedHost3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Event3 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Event3?.setHost)
                {
                    await
                    Event3.
                    setHost(relatedHost3);
                }
            
        }
        
    
        
            
            async function associateEventWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Event0 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Event0?.setOrganization)
                {
                    await
                    Event0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Event1 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Event1?.setOrganization)
                {
                    await
                    Event1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Event2 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Event2?.setOrganization)
                {
                    await
                    Event2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Event3 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Event3?.setOrganization)
                {
                    await
                    Event3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateEventRegistrationWithEvent() {
            
                const relatedEvent0 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const EventRegistration0 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EventRegistration0?.setEvent)
                {
                    await
                    EventRegistration0.
                    setEvent(relatedEvent0);
                }
            
                const relatedEvent1 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const EventRegistration1 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EventRegistration1?.setEvent)
                {
                    await
                    EventRegistration1.
                    setEvent(relatedEvent1);
                }
            
                const relatedEvent2 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const EventRegistration2 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EventRegistration2?.setEvent)
                {
                    await
                    EventRegistration2.
                    setEvent(relatedEvent2);
                }
            
                const relatedEvent3 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const EventRegistration3 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EventRegistration3?.setEvent)
                {
                    await
                    EventRegistration3.
                    setEvent(relatedEvent3);
                }
            
        }
        
    
        
            
            async function associateEventRegistrationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EventRegistration0 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EventRegistration0?.setUser)
                {
                    await
                    EventRegistration0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EventRegistration1 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EventRegistration1?.setUser)
                {
                    await
                    EventRegistration1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EventRegistration2 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EventRegistration2?.setUser)
                {
                    await
                    EventRegistration2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EventRegistration3 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EventRegistration3?.setUser)
                {
                    await
                    EventRegistration3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateEventRegistrationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const EventRegistration0 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EventRegistration0?.setOrganization)
                {
                    await
                    EventRegistration0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const EventRegistration1 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EventRegistration1?.setOrganization)
                {
                    await
                    EventRegistration1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const EventRegistration2 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EventRegistration2?.setOrganization)
                {
                    await
                    EventRegistration2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const EventRegistration3 = await EventRegistrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EventRegistration3?.setOrganization)
                {
                    await
                    EventRegistration3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSitePageWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SitePage0 = await SitePages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SitePage0?.setAuthor)
                {
                    await
                    SitePage0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SitePage1 = await SitePages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SitePage1?.setAuthor)
                {
                    await
                    SitePage1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SitePage2 = await SitePages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SitePage2?.setAuthor)
                {
                    await
                    SitePage2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SitePage3 = await SitePages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SitePage3?.setAuthor)
                {
                    await
                    SitePage3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
    
        
            
            async function associateSitePageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SitePage0 = await SitePages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SitePage0?.setOrganization)
                {
                    await
                    SitePage0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SitePage1 = await SitePages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SitePage1?.setOrganization)
                {
                    await
                    SitePage1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SitePage2 = await SitePages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SitePage2?.setOrganization)
                {
                    await
                    SitePage2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SitePage3 = await SitePages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SitePage3?.setOrganization)
                {
                    await
                    SitePage3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await Courses.bulkCreate(CoursesData);
                
            
            
                
                await Lessons.bulkCreate(LessonsData);
                
            
            
                
                await Exercises.bulkCreate(ExercisesData);
                
            
            
                
                await Games.bulkCreate(GamesData);
                
            
            
                
                await InteractiveActivities.bulkCreate(InteractiveActivitiesData);
                
            
            
                
                await ContentItems.bulkCreate(ContentItemsData);
                
            
            
                
                await LearningPaths.bulkCreate(LearningPathsData);
                
            
            
                
                await Enrollments.bulkCreate(EnrollmentsData);
                
            
            
                
                await ProgressRecords.bulkCreate(ProgressRecordsData);
                
            
            
                
                await Attempts.bulkCreate(AttemptsData);
                
            
            
                
                await Leaderboards.bulkCreate(LeaderboardsData);
                
            
            
                
                await LeaderboardEntries.bulkCreate(LeaderboardEntriesData);
                
            
            
                
                await AiMentorProfiles.bulkCreate(AiMentorProfilesData);
                
            
            
                
                await MentorConversations.bulkCreate(MentorConversationsData);
                
            
            
                
                await MentorMessages.bulkCreate(MentorMessagesData);
                
            
            
                
                await ProblemReports.bulkCreate(ProblemReportsData);
                
            
            
                
                await SolutionProposals.bulkCreate(SolutionProposalsData);
                
            
            
                
                await Votes.bulkCreate(VotesData);
                
            
            
                
                await Comments.bulkCreate(CommentsData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            
                
                await Badges.bulkCreate(BadgesData);
                
            
            
                
                await UserBadges.bulkCreate(UserBadgesData);
                
            
            
                
                await Events.bulkCreate(EventsData);
                
            
            
                
                await EventRegistrations.bulkCreate(EventRegistrationsData);
                
            
            
                
                await SitePages.bulkCreate(SitePagesData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCoursWithOrganization(),
                    
                
                    
                        
                        await associateCoursWithAuthor(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLessonWithCourse(),
                    
                
                    
                        
                        await associateLessonWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateExercisWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateGameWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateInteractiveActivityWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateContentItemWithLesson(),
                    
                
                    
                        
                        await associateContentItemWithExercise(),
                    
                
                    
                        
                        await associateContentItemWithGame(),
                    
                
                    
                        
                        await associateContentItemWithActivity(),
                    
                
                    
                
                    
                
                    
                        
                        await associateContentItemWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLearningPathWithOwner(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateLearningPathWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateEnrollmentWithUser(),
                    
                
                    
                        
                        await associateEnrollmentWithCourse(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateEnrollmentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateProgressRecordWithUser(),
                    
                
                    
                
                    
                        
                        await associateProgressRecordWithContent_item(),
                    
                
                    
                        
                        await associateProgressRecordWithCourse(),
                    
                
                    
                        
                        await associateProgressRecordWithPath(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProgressRecordWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAttemptWithUser(),
                    
                
                    
                
                    
                        
                        await associateAttemptWithExercise(),
                    
                
                    
                        
                        await associateAttemptWithGame(),
                    
                
                    
                        
                        await associateAttemptWithActivity(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAttemptWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateLeaderboardWithOrganization(),
                    
                
                    
                        
                        await associateLeaderboardWithCourse(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLeaderboardEntryWithLeaderboard(),
                    
                
                    
                        
                        await associateLeaderboardEntryWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLeaderboardEntryWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAiMentorProfileWithOrganization(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateMentorConversationWithUser(),
                    
                
                    
                        
                        await associateMentorConversationWithMentor_profile(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMentorConversationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMentorMessageWithConversation(),
                    
                
                    
                
                    
                        
                        await associateMentorMessageWithSender_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMentorMessageWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProblemReportWithAuthor(),
                    
                
                    
                        
                        await associateProblemReportWithOrganization(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSolutionProposalWithProblem_report(),
                    
                
                    
                        
                        await associateSolutionProposalWithAuthor(),
                    
                
                    
                
                    
                
                    
                        
                        await associateSolutionProposalWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateVoteWithUser(),
                    
                
                    
                
                    
                        
                        await associateVoteWithProblem_report(),
                    
                
                    
                        
                        await associateVoteWithSolution_proposal(),
                    
                
                    
                
                    
                
                    
                        
                        await associateVoteWithOrganization(),
                    
                
            
                
                
                    
                
                    
                        
                        await associateCommentWithProblem_report(),
                    
                
                    
                        
                        await associateCommentWithSolution_proposal(),
                    
                
                    
                        
                        await associateCommentWithCourse(),
                    
                
                    
                        
                        await associateCommentWithLesson(),
                    
                
                    
                        
                        await associateCommentWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCommentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateNotificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateNotificationWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBadgeWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateUserBadgeWithUser(),
                    
                
                    
                        
                        await associateUserBadgeWithBadge(),
                    
                
                    
                
                    
                
                    
                        
                        await associateUserBadgeWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateEventWithHost(),
                    
                
                    
                        
                        await associateEventWithOrganization(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateEventRegistrationWithEvent(),
                    
                
                    
                        
                        await associateEventRegistrationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateEventRegistrationWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSitePageWithAuthor(),
                    
                
                    
                
                    
                        
                        await associateSitePageWithOrganization(),
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('courses', null, {});
            
            
            await queryInterface.bulkDelete('lessons', null, {});
            
            
            await queryInterface.bulkDelete('exercises', null, {});
            
            
            await queryInterface.bulkDelete('games', null, {});
            
            
            await queryInterface.bulkDelete('interactive_activities', null, {});
            
            
            await queryInterface.bulkDelete('content_items', null, {});
            
            
            await queryInterface.bulkDelete('learning_paths', null, {});
            
            
            await queryInterface.bulkDelete('enrollments', null, {});
            
            
            await queryInterface.bulkDelete('progress_records', null, {});
            
            
            await queryInterface.bulkDelete('attempts', null, {});
            
            
            await queryInterface.bulkDelete('leaderboards', null, {});
            
            
            await queryInterface.bulkDelete('leaderboard_entries', null, {});
            
            
            await queryInterface.bulkDelete('ai_mentor_profiles', null, {});
            
            
            await queryInterface.bulkDelete('mentor_conversations', null, {});
            
            
            await queryInterface.bulkDelete('mentor_messages', null, {});
            
            
            await queryInterface.bulkDelete('problem_reports', null, {});
            
            
            await queryInterface.bulkDelete('solution_proposals', null, {});
            
            
            await queryInterface.bulkDelete('votes', null, {});
            
            
            await queryInterface.bulkDelete('comments', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
            
            await queryInterface.bulkDelete('badges', null, {});
            
            
            await queryInterface.bulkDelete('user_badges', null, {});
            
            
            await queryInterface.bulkDelete('events', null, {});
            
            
            await queryInterface.bulkDelete('event_registrations', null, {});
            
            
            await queryInterface.bulkDelete('site_pages', null, {});
            
        
    },
};