





















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






const Avatars = db.avatars;

const AvatarCustomizations = db.avatar_customizations;

const Cosmetics = db.cosmetics;

const Boxes = db.boxes;

const BoxItems = db.box_items;

const Purchases = db.purchases;

const InventoryItems = db.inventory_items;

const Titles = db.titles;

const Badges = db.badges;

const Achievements = db.achievements;

const UserAchievements = db.user_achievements;

const Quizzes = db.quizzes;

const QuizQuestions = db.quiz_questions;

const QuestionAnswers = db.question_answers;

const QuizTags = db.quiz_tags;

const QuizTagLinks = db.quiz_tag_links;

const OrbixQuizAssistantSessions = db.orbix_quiz_assistant_sessions;

const GameModes = db.game_modes;

const Matches = db.matches;

const MatchPlayers = db.match_players;

const MatchQuestions = db.match_questions;

const PlayerAnswers = db.player_answers;

const WheelEvents = db.wheel_events;

const MusicPlaylists = db.music_playlists;

const MusicTracks = db.music_tracks;

const Events = db.events;

const DailyRewards = db.daily_rewards;

const ModerationReports = db.moderation_reports;

const CommunityModes = db.community_modes;

const CommunityModeBuildSessions = db.community_mode_build_sessions;

const LeaderboardEntries = db.leaderboard_entries;







const AvatarsData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                "source_type": "box",
            
        
    
        
        
            
                "is_collectible": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "model_key": "Marie Curie",
            
        
    
        
        
            
                "drop_weight": 5.82,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "rarity": "mythic",
            
        
    
        
        
            
                "source_type": "box",
            
        
    
        
        
            
                "is_collectible": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "model_key": "Grace Hopper",
            
        
    
        
        
            
                "drop_weight": 3.75,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "rarity": "mythic",
            
        
    
        
        
            
                "source_type": "shop",
            
        
    
        
        
            
                "is_collectible": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "model_key": "Grace Hopper",
            
        
    
        
        
            
                "drop_weight": 4.02,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                "source_type": "box",
            
        
    
        
        
            
                "is_collectible": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "model_key": "Marie Curie",
            
        
    
        
        
            
                "drop_weight": 1.71,
            
        
    
    },
    
];



const AvatarCustomizationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "profile_name": "Ada Lovelace",
            
        
    
        
        
            
                "base_color": "red",
            
        
    
        
        
            
                "custom_color_hex": "Grace Hopper",
            
        
    
        
        
            
                "face_style": "smile",
            
        
    
        
        
            
                "pattern_style": "none",
            
        
    
        
        
            
                "pattern_color": "blue",
            
        
    
        
        
            
                "pattern_custom_hex": "Grace Hopper",
            
        
    
        
        
            
                "hat_style": "graduation_cap",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "profile_name": "Alan Turing",
            
        
    
        
        
            
                "base_color": "gray",
            
        
    
        
        
            
                "custom_color_hex": "Grace Hopper",
            
        
    
        
        
            
                "face_style": "sleepy",
            
        
    
        
        
            
                "pattern_style": "stars",
            
        
    
        
        
            
                "pattern_color": "red",
            
        
    
        
        
            
                "pattern_custom_hex": "Alan Turing",
            
        
    
        
        
            
                "hat_style": "none",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "profile_name": "Alan Turing",
            
        
    
        
        
            
                "base_color": "yellow",
            
        
    
        
        
            
                "custom_color_hex": "Marie Curie",
            
        
    
        
        
            
                "face_style": "smile",
            
        
    
        
        
            
                "pattern_style": "waves",
            
        
    
        
        
            
                "pattern_color": "black",
            
        
    
        
        
            
                "pattern_custom_hex": "Grace Hopper",
            
        
    
        
        
            
                "hat_style": "cap",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "profile_name": "Marie Curie",
            
        
    
        
        
            
                "base_color": "custom",
            
        
    
        
        
            
                "custom_color_hex": "Alan Turing",
            
        
    
        
        
            
                "face_style": "sleepy",
            
        
    
        
        
            
                "pattern_style": "waves",
            
        
    
        
        
            
                "pattern_color": "green",
            
        
    
        
        
            
                "pattern_custom_hex": "Grace Hopper",
            
        
    
        
        
            
                "hat_style": "headphones",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const CosmeticsData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "cosmetic_type": "pattern",
            
        
    
        
        
            
                "rarity": "common",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "asset_key": "Marie Curie",
            
        
    
        
        
            
                "is_limited_time": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "cosmetic_type": "face",
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "asset_key": "Grace Hopper",
            
        
    
        
        
            
                "is_limited_time": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "cosmetic_type": "pattern",
            
        
    
        
        
            
                "rarity": "uncommon",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "asset_key": "Marie Curie",
            
        
    
        
        
            
                "is_limited_time": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "cosmetic_type": "hat",
            
        
    
        
        
            
                "rarity": "legendary",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "asset_key": "Grace Hopper",
            
        
    
        
        
            
                "is_limited_time": false,
            
        
    
    },
    
];



const BoxesData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "box_type": "kingdom",
            
        
    
        
        
            
                "price_yux": 5,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_available": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "box_type": "future",
            
        
    
        
        
            
                "price_yux": 4,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_available": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "box_type": "future",
            
        
    
        
        
            
                "price_yux": 4,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_available": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "box_type": "event",
            
        
    
        
        
            
                "price_yux": 1,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_available": false,
            
        
    
    },
    
];



const BoxItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_kind": "cosmetic",
            
        
    
        
        
            
                "rarity": "common",
            
        
    
        
        
            
                "drop_rate_percent": 2.33,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_kind": "cosmetic",
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                "drop_rate_percent": 6.83,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_kind": "avatar",
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                "drop_rate_percent": 8.54,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_kind": "cosmetic",
            
        
    
        
        
            
                "rarity": "legendary",
            
        
    
        
        
            
                "drop_rate_percent": 2.27,
            
        
    
    },
    
];



const PurchasesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "purchase_type": "shop_item",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount_yux": 7,
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "purchase_type": "box_open",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount_yux": 2,
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "purchase_type": "box_open",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount_yux": 2,
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "purchase_type": "box_open",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount_yux": 1,
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
    },
    
];



const InventoryItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_kind": "title",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "quantity": 3,
            
        
    
        
        
            
                "unlocked_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_kind": "cosmetic",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "quantity": 5,
            
        
    
        
        
            
                "unlocked_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_kind": "title",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "quantity": 7,
            
        
    
        
        
            
                "unlocked_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_kind": "badge",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "quantity": 4,
            
        
    
        
        
            
                "unlocked_at": new Date(Date.now()),
            
        
    
    },
    
];



const TitlesData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tagline": "Marie Curie",
            
        
    
        
        
            
                "unlock_type": "shop",
            
        
    
        
        
            
                "is_hidden": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "tagline": "Grace Hopper",
            
        
    
        
        
            
                "unlock_type": "admin_grant",
            
        
    
        
        
            
                "is_hidden": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "tagline": "Ada Lovelace",
            
        
    
        
        
            
                "unlock_type": "starter",
            
        
    
        
        
            
                "is_hidden": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tagline": "Grace Hopper",
            
        
    
        
        
            
                "unlock_type": "shop",
            
        
    
        
        
            
                "is_hidden": true,
            
        
    
    },
    
];



const BadgesData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "unlock_type": "achievement",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "unlock_type": "achievement",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "unlock_type": "achievement",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "unlock_type": "admin_grant",
            
        
    
    },
    
];



const AchievementsData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "category": "community",
            
        
    
        
        
            
                "target_value": 6,
            
        
    
        
        
            
                "reward_yux": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_repeatable": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "category": "answering",
            
        
    
        
        
            
                "target_value": 3,
            
        
    
        
        
            
                "reward_yux": 7,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_repeatable": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "category": "community",
            
        
    
        
        
            
                "target_value": 5,
            
        
    
        
        
            
                "reward_yux": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_repeatable": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "category": "streaks",
            
        
    
        
        
            
                "target_value": 7,
            
        
    
        
        
            
                "reward_yux": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_repeatable": true,
            
        
    
    },
    
];



const UserAchievementsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "progress_value": 3,
            
        
    
        
        
            
                "is_completed": true,
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "progress_value": 2,
            
        
    
        
        
            
                "is_completed": true,
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "progress_value": 3,
            
        
    
        
        
            
                "is_completed": false,
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "progress_value": 5,
            
        
    
        
        
            
                "is_completed": false,
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
];



const QuizzesData = [
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "quiz_type": "official",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "unlisted",
            
        
    
        
        
            
                "is_verified": false,
            
        
    
        
        
            
                "verified_badge_text": "Ada Lovelace",
            
        
    
        
        
            
                "subject": "history",
            
        
    
        
        
            
                "age_group": "early",
            
        
    
        
        
            
                "difficulty": "hard",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "allow_images_in_questions": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "quiz_type": "official",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "is_verified": false,
            
        
    
        
        
            
                "verified_badge_text": "Ada Lovelace",
            
        
    
        
        
            
                "subject": "languages",
            
        
    
        
        
            
                "age_group": "mixed",
            
        
    
        
        
            
                "difficulty": "easy",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "allow_images_in_questions": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "quiz_type": "personal",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "unlisted",
            
        
    
        
        
            
                "is_verified": false,
            
        
    
        
        
            
                "verified_badge_text": "Ada Lovelace",
            
        
    
        
        
            
                "subject": "geography",
            
        
    
        
        
            
                "age_group": "mixed",
            
        
    
        
        
            
                "difficulty": "hard",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "allow_images_in_questions": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "quiz_type": "personal",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "is_verified": true,
            
        
    
        
        
            
                "verified_badge_text": "Grace Hopper",
            
        
    
        
        
            
                "subject": "mathematics",
            
        
    
        
        
            
                "age_group": "adult",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "allow_images_in_questions": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const QuizQuestionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "time_limit_seconds": 1,
            
        
    
        
        
            
                "points": 3,
            
        
    
        
        
            
                "question_type": "multiple_choice",
            
        
    
        
        
            
                "order_index": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "time_limit_seconds": 8,
            
        
    
        
        
            
                "points": 8,
            
        
    
        
        
            
                "question_type": "multiple_choice",
            
        
    
        
        
            
                "order_index": 3,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "time_limit_seconds": 4,
            
        
    
        
        
            
                "points": 2,
            
        
    
        
        
            
                "question_type": "multiple_choice",
            
        
    
        
        
            
                "order_index": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "time_limit_seconds": 9,
            
        
    
        
        
            
                "points": 2,
            
        
    
        
        
            
                "question_type": "multiple_choice",
            
        
    
        
        
            
                "order_index": 6,
            
        
    
    },
    
];



const QuestionAnswersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_text": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "order_index": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_text": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "order_index": 5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_correct": true,
            
        
    
        
        
            
                "order_index": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "answer_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_correct": true,
            
        
    
        
        
            
                "order_index": 1,
            
        
    
    },
    
];



const QuizTagsData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tag_type": "skill",
            
        
    
        
        
            
                "is_featured": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "tag_type": "event",
            
        
    
        
        
            
                "is_featured": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tag_type": "mode_fit",
            
        
    
        
        
            
                "is_featured": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "tag_type": "event",
            
        
    
        
        
            
                "is_featured": false,
            
        
    
    },
    
];



const QuizTagLinksData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const OrbixQuizAssistantSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "topic": "Alan Turing",
            
        
    
        
        
            
                "target_question_count": 9,
            
        
    
        
        
            
                "age_group": "early",
            
        
    
        
        
            
                "difficulty": "hard",
            
        
    
        
        
            
                "include_images": false,
            
        
    
        
        
            
                "status": "draft_ready",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "topic": "Alan Turing",
            
        
    
        
        
            
                "target_question_count": 9,
            
        
    
        
        
            
                "age_group": "early",
            
        
    
        
        
            
                "difficulty": "mixed",
            
        
    
        
        
            
                "include_images": false,
            
        
    
        
        
            
                "status": "exported_to_quiz",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "topic": "Grace Hopper",
            
        
    
        
        
            
                "target_question_count": 4,
            
        
    
        
        
            
                "age_group": "teens",
            
        
    
        
        
            
                "difficulty": "mixed",
            
        
    
        
        
            
                "include_images": true,
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "topic": "Alan Turing",
            
        
    
        
        
            
                "target_question_count": 2,
            
        
    
        
        
            
                "age_group": "early",
            
        
    
        
        
            
                "difficulty": "mixed",
            
        
    
        
        
            
                "include_images": false,
            
        
    
        
        
            
                "status": "draft_ready",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
];



const GameModesData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "mode_key": "manipulat",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_official": false,
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "mode_key": "mirror",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_official": false,
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "mode_key": "manipulat",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_official": false,
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "mode_key": "system_override",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_official": false,
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
    },
    
];



const MatchesData = [
    
    {
    
        
        
            
                "game_code": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "is_locked": false,
            
        
    
        
        
            
                "max_players": 5,
            
        
    
        
        
            
                "question_count": 7,
            
        
    
        
        
            
                "randomize_questions": false,
            
        
    
        
        
            
                "randomize_answers": false,
            
        
    
        
        
            
                "wheel_event_every_n_questions": 9,
            
        
    
        
        
            
                "cat_interaction_every_n_questions": 9,
            
        
    
        
        
            
                "starting_speed_kmh": 4,
            
        
    
        
        
            
                "race_map": "milky_way_highway",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "game_code": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "is_locked": false,
            
        
    
        
        
            
                "max_players": 9,
            
        
    
        
        
            
                "question_count": 5,
            
        
    
        
        
            
                "randomize_questions": false,
            
        
    
        
        
            
                "randomize_answers": false,
            
        
    
        
        
            
                "wheel_event_every_n_questions": 8,
            
        
    
        
        
            
                "cat_interaction_every_n_questions": 8,
            
        
    
        
        
            
                "starting_speed_kmh": 9,
            
        
    
        
        
            
                "race_map": "milky_way_highway",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "game_code": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "lobby",
            
        
    
        
        
            
                "is_locked": true,
            
        
    
        
        
            
                "max_players": 9,
            
        
    
        
        
            
                "question_count": 1,
            
        
    
        
        
            
                "randomize_questions": false,
            
        
    
        
        
            
                "randomize_answers": true,
            
        
    
        
        
            
                "wheel_event_every_n_questions": 4,
            
        
    
        
        
            
                "cat_interaction_every_n_questions": 3,
            
        
    
        
        
            
                "starting_speed_kmh": 1,
            
        
    
        
        
            
                "race_map": "milky_way_highway",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "game_code": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "is_locked": false,
            
        
    
        
        
            
                "max_players": 5,
            
        
    
        
        
            
                "question_count": 8,
            
        
    
        
        
            
                "randomize_questions": false,
            
        
    
        
        
            
                "randomize_answers": true,
            
        
    
        
        
            
                "wheel_event_every_n_questions": 4,
            
        
    
        
        
            
                "cat_interaction_every_n_questions": 6,
            
        
    
        
        
            
                "starting_speed_kmh": 2,
            
        
    
        
        
            
                "race_map": "actually_legal_highway_race",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
    },
    
];



const MatchPlayersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "player_status": "joined",
            
        
    
        
        
            
                "score_points": 6,
            
        
    
        
        
            
                "correct_count": 3,
            
        
    
        
        
            
                "incorrect_count": 4,
            
        
    
        
        
            
                "yux_earned": 5,
            
        
    
        
        
            
                "race_distance_km": 3.88,
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "player_status": "joined",
            
        
    
        
        
            
                "score_points": 7,
            
        
    
        
        
            
                "correct_count": 4,
            
        
    
        
        
            
                "incorrect_count": 2,
            
        
    
        
        
            
                "yux_earned": 5,
            
        
    
        
        
            
                "race_distance_km": 5.16,
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "player_status": "playing",
            
        
    
        
        
            
                "score_points": 2,
            
        
    
        
        
            
                "correct_count": 2,
            
        
    
        
        
            
                "incorrect_count": 5,
            
        
    
        
        
            
                "yux_earned": 4,
            
        
    
        
        
            
                "race_distance_km": 8.62,
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "player_status": "finished",
            
        
    
        
        
            
                "score_points": 4,
            
        
    
        
        
            
                "correct_count": 3,
            
        
    
        
        
            
                "incorrect_count": 3,
            
        
    
        
        
            
                "yux_earned": 5,
            
        
    
        
        
            
                "race_distance_km": 5.09,
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
    },
    
];



const MatchQuestionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_index": 6,
            
        
    
        
        
            
                "revealed_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_index": 4,
            
        
    
        
        
            
                "revealed_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_index": 8,
            
        
    
        
        
            
                "revealed_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "question_index": 7,
            
        
    
        
        
            
                "revealed_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
    },
    
];



const PlayerAnswersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "points_awarded": 6,
            
        
    
        
        
            
                "answer_time_ms": 4,
            
        
    
        
        
            
                "answered_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_correct": true,
            
        
    
        
        
            
                "points_awarded": 5,
            
        
    
        
        
            
                "answer_time_ms": 1,
            
        
    
        
        
            
                "answered_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "points_awarded": 3,
            
        
    
        
        
            
                "answer_time_ms": 4,
            
        
    
        
        
            
                "answered_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "points_awarded": 2,
            
        
    
        
        
            
                "answer_time_ms": 8,
            
        
    
        
        
            
                "answered_at": new Date(Date.now()),
            
        
    
    },
    
];



const WheelEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "trigger_question_index": 4,
            
        
    
        
        
            
                "reward_type": "triple_points",
            
        
    
        
        
            
                "multiplier_value": 1.61,
            
        
    
        
        
            
                "bonus_points": 2,
            
        
    
        
        
            
                "bonus_yux": 3,
            
        
    
        
        
            
                "music_track": "track_a",
            
        
    
        
        
            
                "event_started_at": new Date(Date.now()),
            
        
    
        
        
            
                "event_ended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "trigger_question_index": 9,
            
        
    
        
        
            
                "reward_type": "bonus_points",
            
        
    
        
        
            
                "multiplier_value": 8.32,
            
        
    
        
        
            
                "bonus_points": 1,
            
        
    
        
        
            
                "bonus_yux": 6,
            
        
    
        
        
            
                "music_track": "track_a",
            
        
    
        
        
            
                "event_started_at": new Date(Date.now()),
            
        
    
        
        
            
                "event_ended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "trigger_question_index": 4,
            
        
    
        
        
            
                "reward_type": "double_points",
            
        
    
        
        
            
                "multiplier_value": 3.26,
            
        
    
        
        
            
                "bonus_points": 7,
            
        
    
        
        
            
                "bonus_yux": 1,
            
        
    
        
        
            
                "music_track": "track_b",
            
        
    
        
        
            
                "event_started_at": new Date(Date.now()),
            
        
    
        
        
            
                "event_ended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "trigger_question_index": 7,
            
        
    
        
        
            
                "reward_type": "jackpot",
            
        
    
        
        
            
                "multiplier_value": 2.31,
            
        
    
        
        
            
                "bonus_points": 1,
            
        
    
        
        
            
                "bonus_yux": 1,
            
        
    
        
        
            
                "music_track": "track_b",
            
        
    
        
        
            
                "event_started_at": new Date(Date.now()),
            
        
    
        
        
            
                "event_ended_at": new Date(Date.now()),
            
        
    
    },
    
];



const MusicPlaylistsData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "playlist_type": "default",
            
        
    
        
        
            
                "auto_activate": true,
            
        
    
        
        
            
                "active_from": new Date(Date.now()),
            
        
    
        
        
            
                "active_to": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "playlist_type": "seasonal_christmas",
            
        
    
        
        
            
                "auto_activate": false,
            
        
    
        
        
            
                "active_from": new Date(Date.now()),
            
        
    
        
        
            
                "active_to": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "playlist_type": "seasonal_christmas",
            
        
    
        
        
            
                "auto_activate": true,
            
        
    
        
        
            
                "active_from": new Date(Date.now()),
            
        
    
        
        
            
                "active_to": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "playlist_type": "default",
            
        
    
        
        
            
                "auto_activate": false,
            
        
    
        
        
            
                "active_from": new Date(Date.now()),
            
        
    
        
        
            
                "active_to": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const MusicTracksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "duration_seconds": 9,
            
        
    
        
        
            
                "order_index": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "duration_seconds": 4,
            
        
    
        
        
            
                "order_index": 9,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "duration_seconds": 5,
            
        
    
        
        
            
                "order_index": 8,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "duration_seconds": 6,
            
        
    
        
        
            
                "order_index": 5,
            
        
    
    },
    
];



const EventsData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "event_type": "community",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "event_type": "seasonal",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "event_type": "reward_boost",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "event_type": "reward_boost",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const DailyRewardsData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "reward_type": "box",
            
        
    
        
        
            
                "day_index": 5,
            
        
    
        
        
            
                "yux_amount": 2,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "reward_type": "title",
            
        
    
        
        
            
                "day_index": 6,
            
        
    
        
        
            
                "yux_amount": 3,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "reward_type": "badge",
            
        
    
        
        
            
                "day_index": 8,
            
        
    
        
        
            
                "yux_amount": 6,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "reward_type": "title",
            
        
    
        
        
            
                "day_index": 9,
            
        
    
        
        
            
                "yux_amount": 3,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
    },
    
];



const ModerationReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "community_mode",
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "community_mode",
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "quiz",
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "question",
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "status": "in_review",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
];



const CommunityModesData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "is_unofficial": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rules_summary": "Grace Hopper",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "is_unofficial": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rules_summary": "Grace Hopper",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "is_unofficial": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rules_summary": "Ada Lovelace",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "disabled",
            
        
    
        
        
            
                "is_unofficial": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rules_summary": "Grace Hopper",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const CommunityModeBuildSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "concept": "Alan Turing",
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "concept": "Ada Lovelace",
            
        
    
        
        
            
                "status": "collecting_requirements",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "concept": "Ada Lovelace",
            
        
    
        
        
            
                "status": "draft_ready",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "concept": "Grace Hopper",
            
        
    
        
        
            
                "status": "collecting_requirements",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
];



const LeaderboardEntriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "scope": "mode",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank_position": 9,
            
        
    
        
        
            
                "score_value": 9,
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "scope": "class",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank_position": 8,
            
        
    
        
        
            
                "score_value": 4,
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "scope": "global",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank_position": 2,
            
        
    
        
        
            
                "score_value": 4,
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "scope": "mode",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank_position": 3,
            
        
    
        
        
            
                "score_value": 4,
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAvatarCustomizationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AvatarCustomization0 = await AvatarCustomizations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AvatarCustomization0?.setUser)
                {
                    await
                    AvatarCustomization0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AvatarCustomization1 = await AvatarCustomizations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AvatarCustomization1?.setUser)
                {
                    await
                    AvatarCustomization1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AvatarCustomization2 = await AvatarCustomizations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AvatarCustomization2?.setUser)
                {
                    await
                    AvatarCustomization2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AvatarCustomization3 = await AvatarCustomizations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AvatarCustomization3?.setUser)
                {
                    await
                    AvatarCustomization3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBoxItemWithBox() {
            
                const relatedBox0 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const BoxItem0 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BoxItem0?.setBox)
                {
                    await
                    BoxItem0.
                    setBox(relatedBox0);
                }
            
                const relatedBox1 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const BoxItem1 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BoxItem1?.setBox)
                {
                    await
                    BoxItem1.
                    setBox(relatedBox1);
                }
            
                const relatedBox2 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const BoxItem2 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BoxItem2?.setBox)
                {
                    await
                    BoxItem2.
                    setBox(relatedBox2);
                }
            
                const relatedBox3 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const BoxItem3 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BoxItem3?.setBox)
                {
                    await
                    BoxItem3.
                    setBox(relatedBox3);
                }
            
        }
        
    
        
            
            async function associateBoxItemWithAvatar() {
            
                const relatedAvatar0 = await Avatars.findOne({
                    offset: Math.floor(Math.random() * (await Avatars.count())),
                });
                const BoxItem0 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BoxItem0?.setAvatar)
                {
                    await
                    BoxItem0.
                    setAvatar(relatedAvatar0);
                }
            
                const relatedAvatar1 = await Avatars.findOne({
                    offset: Math.floor(Math.random() * (await Avatars.count())),
                });
                const BoxItem1 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BoxItem1?.setAvatar)
                {
                    await
                    BoxItem1.
                    setAvatar(relatedAvatar1);
                }
            
                const relatedAvatar2 = await Avatars.findOne({
                    offset: Math.floor(Math.random() * (await Avatars.count())),
                });
                const BoxItem2 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BoxItem2?.setAvatar)
                {
                    await
                    BoxItem2.
                    setAvatar(relatedAvatar2);
                }
            
                const relatedAvatar3 = await Avatars.findOne({
                    offset: Math.floor(Math.random() * (await Avatars.count())),
                });
                const BoxItem3 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BoxItem3?.setAvatar)
                {
                    await
                    BoxItem3.
                    setAvatar(relatedAvatar3);
                }
            
        }
        
    
        
            
            async function associateBoxItemWithCosmetic() {
            
                const relatedCosmetic0 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const BoxItem0 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BoxItem0?.setCosmetic)
                {
                    await
                    BoxItem0.
                    setCosmetic(relatedCosmetic0);
                }
            
                const relatedCosmetic1 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const BoxItem1 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BoxItem1?.setCosmetic)
                {
                    await
                    BoxItem1.
                    setCosmetic(relatedCosmetic1);
                }
            
                const relatedCosmetic2 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const BoxItem2 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BoxItem2?.setCosmetic)
                {
                    await
                    BoxItem2.
                    setCosmetic(relatedCosmetic2);
                }
            
                const relatedCosmetic3 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const BoxItem3 = await BoxItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BoxItem3?.setCosmetic)
                {
                    await
                    BoxItem3.
                    setCosmetic(relatedCosmetic3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePurchasWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Purchas0 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Purchas0?.setUser)
                {
                    await
                    Purchas0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Purchas1 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Purchas1?.setUser)
                {
                    await
                    Purchas1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Purchas2 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Purchas2?.setUser)
                {
                    await
                    Purchas2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Purchas3 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Purchas3?.setUser)
                {
                    await
                    Purchas3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
            
            async function associatePurchasWithBox() {
            
                const relatedBox0 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const Purchas0 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Purchas0?.setBox)
                {
                    await
                    Purchas0.
                    setBox(relatedBox0);
                }
            
                const relatedBox1 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const Purchas1 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Purchas1?.setBox)
                {
                    await
                    Purchas1.
                    setBox(relatedBox1);
                }
            
                const relatedBox2 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const Purchas2 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Purchas2?.setBox)
                {
                    await
                    Purchas2.
                    setBox(relatedBox2);
                }
            
                const relatedBox3 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const Purchas3 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Purchas3?.setBox)
                {
                    await
                    Purchas3.
                    setBox(relatedBox3);
                }
            
        }
        
    
        
            
            async function associatePurchasWithCosmetic() {
            
                const relatedCosmetic0 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const Purchas0 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Purchas0?.setCosmetic)
                {
                    await
                    Purchas0.
                    setCosmetic(relatedCosmetic0);
                }
            
                const relatedCosmetic1 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const Purchas1 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Purchas1?.setCosmetic)
                {
                    await
                    Purchas1.
                    setCosmetic(relatedCosmetic1);
                }
            
                const relatedCosmetic2 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const Purchas2 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Purchas2?.setCosmetic)
                {
                    await
                    Purchas2.
                    setCosmetic(relatedCosmetic2);
                }
            
                const relatedCosmetic3 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const Purchas3 = await Purchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Purchas3?.setCosmetic)
                {
                    await
                    Purchas3.
                    setCosmetic(relatedCosmetic3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateInventoryItemWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const InventoryItem0 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InventoryItem0?.setUser)
                {
                    await
                    InventoryItem0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const InventoryItem1 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InventoryItem1?.setUser)
                {
                    await
                    InventoryItem1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const InventoryItem2 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InventoryItem2?.setUser)
                {
                    await
                    InventoryItem2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const InventoryItem3 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InventoryItem3?.setUser)
                {
                    await
                    InventoryItem3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
            
            async function associateInventoryItemWithAvatar() {
            
                const relatedAvatar0 = await Avatars.findOne({
                    offset: Math.floor(Math.random() * (await Avatars.count())),
                });
                const InventoryItem0 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InventoryItem0?.setAvatar)
                {
                    await
                    InventoryItem0.
                    setAvatar(relatedAvatar0);
                }
            
                const relatedAvatar1 = await Avatars.findOne({
                    offset: Math.floor(Math.random() * (await Avatars.count())),
                });
                const InventoryItem1 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InventoryItem1?.setAvatar)
                {
                    await
                    InventoryItem1.
                    setAvatar(relatedAvatar1);
                }
            
                const relatedAvatar2 = await Avatars.findOne({
                    offset: Math.floor(Math.random() * (await Avatars.count())),
                });
                const InventoryItem2 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InventoryItem2?.setAvatar)
                {
                    await
                    InventoryItem2.
                    setAvatar(relatedAvatar2);
                }
            
                const relatedAvatar3 = await Avatars.findOne({
                    offset: Math.floor(Math.random() * (await Avatars.count())),
                });
                const InventoryItem3 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InventoryItem3?.setAvatar)
                {
                    await
                    InventoryItem3.
                    setAvatar(relatedAvatar3);
                }
            
        }
        
    
        
            
            async function associateInventoryItemWithCosmetic() {
            
                const relatedCosmetic0 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const InventoryItem0 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InventoryItem0?.setCosmetic)
                {
                    await
                    InventoryItem0.
                    setCosmetic(relatedCosmetic0);
                }
            
                const relatedCosmetic1 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const InventoryItem1 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InventoryItem1?.setCosmetic)
                {
                    await
                    InventoryItem1.
                    setCosmetic(relatedCosmetic1);
                }
            
                const relatedCosmetic2 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const InventoryItem2 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InventoryItem2?.setCosmetic)
                {
                    await
                    InventoryItem2.
                    setCosmetic(relatedCosmetic2);
                }
            
                const relatedCosmetic3 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const InventoryItem3 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InventoryItem3?.setCosmetic)
                {
                    await
                    InventoryItem3.
                    setCosmetic(relatedCosmetic3);
                }
            
        }
        
    
        
            
            async function associateInventoryItemWithTitle_item() {
            
                const relatedTitle_item0 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const InventoryItem0 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InventoryItem0?.setTitle_item)
                {
                    await
                    InventoryItem0.
                    setTitle_item(relatedTitle_item0);
                }
            
                const relatedTitle_item1 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const InventoryItem1 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InventoryItem1?.setTitle_item)
                {
                    await
                    InventoryItem1.
                    setTitle_item(relatedTitle_item1);
                }
            
                const relatedTitle_item2 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const InventoryItem2 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InventoryItem2?.setTitle_item)
                {
                    await
                    InventoryItem2.
                    setTitle_item(relatedTitle_item2);
                }
            
                const relatedTitle_item3 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const InventoryItem3 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InventoryItem3?.setTitle_item)
                {
                    await
                    InventoryItem3.
                    setTitle_item(relatedTitle_item3);
                }
            
        }
        
    
        
            
            async function associateInventoryItemWithBadge() {
            
                const relatedBadge0 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const InventoryItem0 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InventoryItem0?.setBadge)
                {
                    await
                    InventoryItem0.
                    setBadge(relatedBadge0);
                }
            
                const relatedBadge1 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const InventoryItem1 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InventoryItem1?.setBadge)
                {
                    await
                    InventoryItem1.
                    setBadge(relatedBadge1);
                }
            
                const relatedBadge2 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const InventoryItem2 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InventoryItem2?.setBadge)
                {
                    await
                    InventoryItem2.
                    setBadge(relatedBadge2);
                }
            
                const relatedBadge3 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const InventoryItem3 = await InventoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InventoryItem3?.setBadge)
                {
                    await
                    InventoryItem3.
                    setBadge(relatedBadge3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAchievementWithReward_title() {
            
                const relatedReward_title0 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const Achievement0 = await Achievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Achievement0?.setReward_title)
                {
                    await
                    Achievement0.
                    setReward_title(relatedReward_title0);
                }
            
                const relatedReward_title1 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const Achievement1 = await Achievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Achievement1?.setReward_title)
                {
                    await
                    Achievement1.
                    setReward_title(relatedReward_title1);
                }
            
                const relatedReward_title2 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const Achievement2 = await Achievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Achievement2?.setReward_title)
                {
                    await
                    Achievement2.
                    setReward_title(relatedReward_title2);
                }
            
                const relatedReward_title3 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const Achievement3 = await Achievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Achievement3?.setReward_title)
                {
                    await
                    Achievement3.
                    setReward_title(relatedReward_title3);
                }
            
        }
        
    
        
            
            async function associateAchievementWithReward_badge() {
            
                const relatedReward_badge0 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const Achievement0 = await Achievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Achievement0?.setReward_badge)
                {
                    await
                    Achievement0.
                    setReward_badge(relatedReward_badge0);
                }
            
                const relatedReward_badge1 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const Achievement1 = await Achievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Achievement1?.setReward_badge)
                {
                    await
                    Achievement1.
                    setReward_badge(relatedReward_badge1);
                }
            
                const relatedReward_badge2 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const Achievement2 = await Achievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Achievement2?.setReward_badge)
                {
                    await
                    Achievement2.
                    setReward_badge(relatedReward_badge2);
                }
            
                const relatedReward_badge3 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const Achievement3 = await Achievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Achievement3?.setReward_badge)
                {
                    await
                    Achievement3.
                    setReward_badge(relatedReward_badge3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateUserAchievementWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAchievement0 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserAchievement0?.setUser)
                {
                    await
                    UserAchievement0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAchievement1 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserAchievement1?.setUser)
                {
                    await
                    UserAchievement1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAchievement2 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserAchievement2?.setUser)
                {
                    await
                    UserAchievement2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAchievement3 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserAchievement3?.setUser)
                {
                    await
                    UserAchievement3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateUserAchievementWithAchievement() {
            
                const relatedAchievement0 = await Achievements.findOne({
                    offset: Math.floor(Math.random() * (await Achievements.count())),
                });
                const UserAchievement0 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserAchievement0?.setAchievement)
                {
                    await
                    UserAchievement0.
                    setAchievement(relatedAchievement0);
                }
            
                const relatedAchievement1 = await Achievements.findOne({
                    offset: Math.floor(Math.random() * (await Achievements.count())),
                });
                const UserAchievement1 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserAchievement1?.setAchievement)
                {
                    await
                    UserAchievement1.
                    setAchievement(relatedAchievement1);
                }
            
                const relatedAchievement2 = await Achievements.findOne({
                    offset: Math.floor(Math.random() * (await Achievements.count())),
                });
                const UserAchievement2 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserAchievement2?.setAchievement)
                {
                    await
                    UserAchievement2.
                    setAchievement(relatedAchievement2);
                }
            
                const relatedAchievement3 = await Achievements.findOne({
                    offset: Math.floor(Math.random() * (await Achievements.count())),
                });
                const UserAchievement3 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserAchievement3?.setAchievement)
                {
                    await
                    UserAchievement3.
                    setAchievement(relatedAchievement3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateQuizzeWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Quizze0 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Quizze0?.setOwner)
                {
                    await
                    Quizze0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Quizze1 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Quizze1?.setOwner)
                {
                    await
                    Quizze1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Quizze2 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Quizze2?.setOwner)
                {
                    await
                    Quizze2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Quizze3 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Quizze3?.setOwner)
                {
                    await
                    Quizze3.
                    setOwner(relatedOwner3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

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

    
    
    
        
            
            async function associateQuestionAnswerWithQuestion() {
            
                const relatedQuestion0 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuestionAnswer0 = await QuestionAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuestionAnswer0?.setQuestion)
                {
                    await
                    QuestionAnswer0.
                    setQuestion(relatedQuestion0);
                }
            
                const relatedQuestion1 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuestionAnswer1 = await QuestionAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuestionAnswer1?.setQuestion)
                {
                    await
                    QuestionAnswer1.
                    setQuestion(relatedQuestion1);
                }
            
                const relatedQuestion2 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuestionAnswer2 = await QuestionAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuestionAnswer2?.setQuestion)
                {
                    await
                    QuestionAnswer2.
                    setQuestion(relatedQuestion2);
                }
            
                const relatedQuestion3 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuestionAnswer3 = await QuestionAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuestionAnswer3?.setQuestion)
                {
                    await
                    QuestionAnswer3.
                    setQuestion(relatedQuestion3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateQuizTagLinkWithQuiz() {
            
                const relatedQuiz0 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizTagLink0 = await QuizTagLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizTagLink0?.setQuiz)
                {
                    await
                    QuizTagLink0.
                    setQuiz(relatedQuiz0);
                }
            
                const relatedQuiz1 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizTagLink1 = await QuizTagLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizTagLink1?.setQuiz)
                {
                    await
                    QuizTagLink1.
                    setQuiz(relatedQuiz1);
                }
            
                const relatedQuiz2 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizTagLink2 = await QuizTagLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizTagLink2?.setQuiz)
                {
                    await
                    QuizTagLink2.
                    setQuiz(relatedQuiz2);
                }
            
                const relatedQuiz3 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizTagLink3 = await QuizTagLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizTagLink3?.setQuiz)
                {
                    await
                    QuizTagLink3.
                    setQuiz(relatedQuiz3);
                }
            
        }
        
    
        
            
            async function associateQuizTagLinkWithTag() {
            
                const relatedTag0 = await QuizTags.findOne({
                    offset: Math.floor(Math.random() * (await QuizTags.count())),
                });
                const QuizTagLink0 = await QuizTagLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizTagLink0?.setTag)
                {
                    await
                    QuizTagLink0.
                    setTag(relatedTag0);
                }
            
                const relatedTag1 = await QuizTags.findOne({
                    offset: Math.floor(Math.random() * (await QuizTags.count())),
                });
                const QuizTagLink1 = await QuizTagLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizTagLink1?.setTag)
                {
                    await
                    QuizTagLink1.
                    setTag(relatedTag1);
                }
            
                const relatedTag2 = await QuizTags.findOne({
                    offset: Math.floor(Math.random() * (await QuizTags.count())),
                });
                const QuizTagLink2 = await QuizTagLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizTagLink2?.setTag)
                {
                    await
                    QuizTagLink2.
                    setTag(relatedTag2);
                }
            
                const relatedTag3 = await QuizTags.findOne({
                    offset: Math.floor(Math.random() * (await QuizTags.count())),
                });
                const QuizTagLink3 = await QuizTagLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizTagLink3?.setTag)
                {
                    await
                    QuizTagLink3.
                    setTag(relatedTag3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateOrbixQuizAssistantSessionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OrbixQuizAssistantSession0 = await OrbixQuizAssistantSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrbixQuizAssistantSession0?.setUser)
                {
                    await
                    OrbixQuizAssistantSession0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OrbixQuizAssistantSession1 = await OrbixQuizAssistantSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrbixQuizAssistantSession1?.setUser)
                {
                    await
                    OrbixQuizAssistantSession1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OrbixQuizAssistantSession2 = await OrbixQuizAssistantSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrbixQuizAssistantSession2?.setUser)
                {
                    await
                    OrbixQuizAssistantSession2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OrbixQuizAssistantSession3 = await OrbixQuizAssistantSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrbixQuizAssistantSession3?.setUser)
                {
                    await
                    OrbixQuizAssistantSession3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateOrbixQuizAssistantSessionWithGenerated_quiz() {
            
                const relatedGenerated_quiz0 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const OrbixQuizAssistantSession0 = await OrbixQuizAssistantSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrbixQuizAssistantSession0?.setGenerated_quiz)
                {
                    await
                    OrbixQuizAssistantSession0.
                    setGenerated_quiz(relatedGenerated_quiz0);
                }
            
                const relatedGenerated_quiz1 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const OrbixQuizAssistantSession1 = await OrbixQuizAssistantSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrbixQuizAssistantSession1?.setGenerated_quiz)
                {
                    await
                    OrbixQuizAssistantSession1.
                    setGenerated_quiz(relatedGenerated_quiz1);
                }
            
                const relatedGenerated_quiz2 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const OrbixQuizAssistantSession2 = await OrbixQuizAssistantSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrbixQuizAssistantSession2?.setGenerated_quiz)
                {
                    await
                    OrbixQuizAssistantSession2.
                    setGenerated_quiz(relatedGenerated_quiz2);
                }
            
                const relatedGenerated_quiz3 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const OrbixQuizAssistantSession3 = await OrbixQuizAssistantSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrbixQuizAssistantSession3?.setGenerated_quiz)
                {
                    await
                    OrbixQuizAssistantSession3.
                    setGenerated_quiz(relatedGenerated_quiz3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateMatcheWithHost() {
            
                const relatedHost0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche0 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Matche0?.setHost)
                {
                    await
                    Matche0.
                    setHost(relatedHost0);
                }
            
                const relatedHost1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche1 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Matche1?.setHost)
                {
                    await
                    Matche1.
                    setHost(relatedHost1);
                }
            
                const relatedHost2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche2 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Matche2?.setHost)
                {
                    await
                    Matche2.
                    setHost(relatedHost2);
                }
            
                const relatedHost3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche3 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Matche3?.setHost)
                {
                    await
                    Matche3.
                    setHost(relatedHost3);
                }
            
        }
        
    
        
            
            async function associateMatcheWithMode() {
            
                const relatedMode0 = await GameModes.findOne({
                    offset: Math.floor(Math.random() * (await GameModes.count())),
                });
                const Matche0 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Matche0?.setMode)
                {
                    await
                    Matche0.
                    setMode(relatedMode0);
                }
            
                const relatedMode1 = await GameModes.findOne({
                    offset: Math.floor(Math.random() * (await GameModes.count())),
                });
                const Matche1 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Matche1?.setMode)
                {
                    await
                    Matche1.
                    setMode(relatedMode1);
                }
            
                const relatedMode2 = await GameModes.findOne({
                    offset: Math.floor(Math.random() * (await GameModes.count())),
                });
                const Matche2 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Matche2?.setMode)
                {
                    await
                    Matche2.
                    setMode(relatedMode2);
                }
            
                const relatedMode3 = await GameModes.findOne({
                    offset: Math.floor(Math.random() * (await GameModes.count())),
                });
                const Matche3 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Matche3?.setMode)
                {
                    await
                    Matche3.
                    setMode(relatedMode3);
                }
            
        }
        
    
        
            
            async function associateMatcheWithQuiz() {
            
                const relatedQuiz0 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const Matche0 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Matche0?.setQuiz)
                {
                    await
                    Matche0.
                    setQuiz(relatedQuiz0);
                }
            
                const relatedQuiz1 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const Matche1 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Matche1?.setQuiz)
                {
                    await
                    Matche1.
                    setQuiz(relatedQuiz1);
                }
            
                const relatedQuiz2 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const Matche2 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Matche2?.setQuiz)
                {
                    await
                    Matche2.
                    setQuiz(relatedQuiz2);
                }
            
                const relatedQuiz3 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const Matche3 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Matche3?.setQuiz)
                {
                    await
                    Matche3.
                    setQuiz(relatedQuiz3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMatchPlayerWithMatch() {
            
                const relatedMatch0 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const MatchPlayer0 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MatchPlayer0?.setMatch)
                {
                    await
                    MatchPlayer0.
                    setMatch(relatedMatch0);
                }
            
                const relatedMatch1 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const MatchPlayer1 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MatchPlayer1?.setMatch)
                {
                    await
                    MatchPlayer1.
                    setMatch(relatedMatch1);
                }
            
                const relatedMatch2 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const MatchPlayer2 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MatchPlayer2?.setMatch)
                {
                    await
                    MatchPlayer2.
                    setMatch(relatedMatch2);
                }
            
                const relatedMatch3 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const MatchPlayer3 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MatchPlayer3?.setMatch)
                {
                    await
                    MatchPlayer3.
                    setMatch(relatedMatch3);
                }
            
        }
        
    
        
            
            async function associateMatchPlayerWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MatchPlayer0 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MatchPlayer0?.setUser)
                {
                    await
                    MatchPlayer0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MatchPlayer1 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MatchPlayer1?.setUser)
                {
                    await
                    MatchPlayer1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MatchPlayer2 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MatchPlayer2?.setUser)
                {
                    await
                    MatchPlayer2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MatchPlayer3 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MatchPlayer3?.setUser)
                {
                    await
                    MatchPlayer3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
            
            async function associateMatchPlayerWithAvatar_customization() {
            
                const relatedAvatar_customization0 = await AvatarCustomizations.findOne({
                    offset: Math.floor(Math.random() * (await AvatarCustomizations.count())),
                });
                const MatchPlayer0 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MatchPlayer0?.setAvatar_customization)
                {
                    await
                    MatchPlayer0.
                    setAvatar_customization(relatedAvatar_customization0);
                }
            
                const relatedAvatar_customization1 = await AvatarCustomizations.findOne({
                    offset: Math.floor(Math.random() * (await AvatarCustomizations.count())),
                });
                const MatchPlayer1 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MatchPlayer1?.setAvatar_customization)
                {
                    await
                    MatchPlayer1.
                    setAvatar_customization(relatedAvatar_customization1);
                }
            
                const relatedAvatar_customization2 = await AvatarCustomizations.findOne({
                    offset: Math.floor(Math.random() * (await AvatarCustomizations.count())),
                });
                const MatchPlayer2 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MatchPlayer2?.setAvatar_customization)
                {
                    await
                    MatchPlayer2.
                    setAvatar_customization(relatedAvatar_customization2);
                }
            
                const relatedAvatar_customization3 = await AvatarCustomizations.findOne({
                    offset: Math.floor(Math.random() * (await AvatarCustomizations.count())),
                });
                const MatchPlayer3 = await MatchPlayers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MatchPlayer3?.setAvatar_customization)
                {
                    await
                    MatchPlayer3.
                    setAvatar_customization(relatedAvatar_customization3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMatchQuestionWithMatch() {
            
                const relatedMatch0 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const MatchQuestion0 = await MatchQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MatchQuestion0?.setMatch)
                {
                    await
                    MatchQuestion0.
                    setMatch(relatedMatch0);
                }
            
                const relatedMatch1 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const MatchQuestion1 = await MatchQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MatchQuestion1?.setMatch)
                {
                    await
                    MatchQuestion1.
                    setMatch(relatedMatch1);
                }
            
                const relatedMatch2 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const MatchQuestion2 = await MatchQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MatchQuestion2?.setMatch)
                {
                    await
                    MatchQuestion2.
                    setMatch(relatedMatch2);
                }
            
                const relatedMatch3 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const MatchQuestion3 = await MatchQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MatchQuestion3?.setMatch)
                {
                    await
                    MatchQuestion3.
                    setMatch(relatedMatch3);
                }
            
        }
        
    
        
            
            async function associateMatchQuestionWithQuiz_question() {
            
                const relatedQuiz_question0 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const MatchQuestion0 = await MatchQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MatchQuestion0?.setQuiz_question)
                {
                    await
                    MatchQuestion0.
                    setQuiz_question(relatedQuiz_question0);
                }
            
                const relatedQuiz_question1 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const MatchQuestion1 = await MatchQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MatchQuestion1?.setQuiz_question)
                {
                    await
                    MatchQuestion1.
                    setQuiz_question(relatedQuiz_question1);
                }
            
                const relatedQuiz_question2 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const MatchQuestion2 = await MatchQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MatchQuestion2?.setQuiz_question)
                {
                    await
                    MatchQuestion2.
                    setQuiz_question(relatedQuiz_question2);
                }
            
                const relatedQuiz_question3 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const MatchQuestion3 = await MatchQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MatchQuestion3?.setQuiz_question)
                {
                    await
                    MatchQuestion3.
                    setQuiz_question(relatedQuiz_question3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePlayerAnswerWithMatch_player() {
            
                const relatedMatch_player0 = await MatchPlayers.findOne({
                    offset: Math.floor(Math.random() * (await MatchPlayers.count())),
                });
                const PlayerAnswer0 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PlayerAnswer0?.setMatch_player)
                {
                    await
                    PlayerAnswer0.
                    setMatch_player(relatedMatch_player0);
                }
            
                const relatedMatch_player1 = await MatchPlayers.findOne({
                    offset: Math.floor(Math.random() * (await MatchPlayers.count())),
                });
                const PlayerAnswer1 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PlayerAnswer1?.setMatch_player)
                {
                    await
                    PlayerAnswer1.
                    setMatch_player(relatedMatch_player1);
                }
            
                const relatedMatch_player2 = await MatchPlayers.findOne({
                    offset: Math.floor(Math.random() * (await MatchPlayers.count())),
                });
                const PlayerAnswer2 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PlayerAnswer2?.setMatch_player)
                {
                    await
                    PlayerAnswer2.
                    setMatch_player(relatedMatch_player2);
                }
            
                const relatedMatch_player3 = await MatchPlayers.findOne({
                    offset: Math.floor(Math.random() * (await MatchPlayers.count())),
                });
                const PlayerAnswer3 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PlayerAnswer3?.setMatch_player)
                {
                    await
                    PlayerAnswer3.
                    setMatch_player(relatedMatch_player3);
                }
            
        }
        
    
        
            
            async function associatePlayerAnswerWithMatch_question() {
            
                const relatedMatch_question0 = await MatchQuestions.findOne({
                    offset: Math.floor(Math.random() * (await MatchQuestions.count())),
                });
                const PlayerAnswer0 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PlayerAnswer0?.setMatch_question)
                {
                    await
                    PlayerAnswer0.
                    setMatch_question(relatedMatch_question0);
                }
            
                const relatedMatch_question1 = await MatchQuestions.findOne({
                    offset: Math.floor(Math.random() * (await MatchQuestions.count())),
                });
                const PlayerAnswer1 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PlayerAnswer1?.setMatch_question)
                {
                    await
                    PlayerAnswer1.
                    setMatch_question(relatedMatch_question1);
                }
            
                const relatedMatch_question2 = await MatchQuestions.findOne({
                    offset: Math.floor(Math.random() * (await MatchQuestions.count())),
                });
                const PlayerAnswer2 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PlayerAnswer2?.setMatch_question)
                {
                    await
                    PlayerAnswer2.
                    setMatch_question(relatedMatch_question2);
                }
            
                const relatedMatch_question3 = await MatchQuestions.findOne({
                    offset: Math.floor(Math.random() * (await MatchQuestions.count())),
                });
                const PlayerAnswer3 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PlayerAnswer3?.setMatch_question)
                {
                    await
                    PlayerAnswer3.
                    setMatch_question(relatedMatch_question3);
                }
            
        }
        
    
        
            
            async function associatePlayerAnswerWithSelected_answer() {
            
                const relatedSelected_answer0 = await QuestionAnswers.findOne({
                    offset: Math.floor(Math.random() * (await QuestionAnswers.count())),
                });
                const PlayerAnswer0 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PlayerAnswer0?.setSelected_answer)
                {
                    await
                    PlayerAnswer0.
                    setSelected_answer(relatedSelected_answer0);
                }
            
                const relatedSelected_answer1 = await QuestionAnswers.findOne({
                    offset: Math.floor(Math.random() * (await QuestionAnswers.count())),
                });
                const PlayerAnswer1 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PlayerAnswer1?.setSelected_answer)
                {
                    await
                    PlayerAnswer1.
                    setSelected_answer(relatedSelected_answer1);
                }
            
                const relatedSelected_answer2 = await QuestionAnswers.findOne({
                    offset: Math.floor(Math.random() * (await QuestionAnswers.count())),
                });
                const PlayerAnswer2 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PlayerAnswer2?.setSelected_answer)
                {
                    await
                    PlayerAnswer2.
                    setSelected_answer(relatedSelected_answer2);
                }
            
                const relatedSelected_answer3 = await QuestionAnswers.findOne({
                    offset: Math.floor(Math.random() * (await QuestionAnswers.count())),
                });
                const PlayerAnswer3 = await PlayerAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PlayerAnswer3?.setSelected_answer)
                {
                    await
                    PlayerAnswer3.
                    setSelected_answer(relatedSelected_answer3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateWheelEventWithMatch() {
            
                const relatedMatch0 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const WheelEvent0 = await WheelEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WheelEvent0?.setMatch)
                {
                    await
                    WheelEvent0.
                    setMatch(relatedMatch0);
                }
            
                const relatedMatch1 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const WheelEvent1 = await WheelEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WheelEvent1?.setMatch)
                {
                    await
                    WheelEvent1.
                    setMatch(relatedMatch1);
                }
            
                const relatedMatch2 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const WheelEvent2 = await WheelEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WheelEvent2?.setMatch)
                {
                    await
                    WheelEvent2.
                    setMatch(relatedMatch2);
                }
            
                const relatedMatch3 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const WheelEvent3 = await WheelEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WheelEvent3?.setMatch)
                {
                    await
                    WheelEvent3.
                    setMatch(relatedMatch3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMusicTrackWithPlaylist() {
            
                const relatedPlaylist0 = await MusicPlaylists.findOne({
                    offset: Math.floor(Math.random() * (await MusicPlaylists.count())),
                });
                const MusicTrack0 = await MusicTracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MusicTrack0?.setPlaylist)
                {
                    await
                    MusicTrack0.
                    setPlaylist(relatedPlaylist0);
                }
            
                const relatedPlaylist1 = await MusicPlaylists.findOne({
                    offset: Math.floor(Math.random() * (await MusicPlaylists.count())),
                });
                const MusicTrack1 = await MusicTracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MusicTrack1?.setPlaylist)
                {
                    await
                    MusicTrack1.
                    setPlaylist(relatedPlaylist1);
                }
            
                const relatedPlaylist2 = await MusicPlaylists.findOne({
                    offset: Math.floor(Math.random() * (await MusicPlaylists.count())),
                });
                const MusicTrack2 = await MusicTracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MusicTrack2?.setPlaylist)
                {
                    await
                    MusicTrack2.
                    setPlaylist(relatedPlaylist2);
                }
            
                const relatedPlaylist3 = await MusicPlaylists.findOne({
                    offset: Math.floor(Math.random() * (await MusicPlaylists.count())),
                });
                const MusicTrack3 = await MusicTracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MusicTrack3?.setPlaylist)
                {
                    await
                    MusicTrack3.
                    setPlaylist(relatedPlaylist3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateDailyRewardWithBox() {
            
                const relatedBox0 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const DailyReward0 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DailyReward0?.setBox)
                {
                    await
                    DailyReward0.
                    setBox(relatedBox0);
                }
            
                const relatedBox1 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const DailyReward1 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DailyReward1?.setBox)
                {
                    await
                    DailyReward1.
                    setBox(relatedBox1);
                }
            
                const relatedBox2 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const DailyReward2 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DailyReward2?.setBox)
                {
                    await
                    DailyReward2.
                    setBox(relatedBox2);
                }
            
                const relatedBox3 = await Boxes.findOne({
                    offset: Math.floor(Math.random() * (await Boxes.count())),
                });
                const DailyReward3 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DailyReward3?.setBox)
                {
                    await
                    DailyReward3.
                    setBox(relatedBox3);
                }
            
        }
        
    
        
            
            async function associateDailyRewardWithCosmetic() {
            
                const relatedCosmetic0 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const DailyReward0 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DailyReward0?.setCosmetic)
                {
                    await
                    DailyReward0.
                    setCosmetic(relatedCosmetic0);
                }
            
                const relatedCosmetic1 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const DailyReward1 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DailyReward1?.setCosmetic)
                {
                    await
                    DailyReward1.
                    setCosmetic(relatedCosmetic1);
                }
            
                const relatedCosmetic2 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const DailyReward2 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DailyReward2?.setCosmetic)
                {
                    await
                    DailyReward2.
                    setCosmetic(relatedCosmetic2);
                }
            
                const relatedCosmetic3 = await Cosmetics.findOne({
                    offset: Math.floor(Math.random() * (await Cosmetics.count())),
                });
                const DailyReward3 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DailyReward3?.setCosmetic)
                {
                    await
                    DailyReward3.
                    setCosmetic(relatedCosmetic3);
                }
            
        }
        
    
        
            
            async function associateDailyRewardWithTitle_item() {
            
                const relatedTitle_item0 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const DailyReward0 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DailyReward0?.setTitle_item)
                {
                    await
                    DailyReward0.
                    setTitle_item(relatedTitle_item0);
                }
            
                const relatedTitle_item1 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const DailyReward1 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DailyReward1?.setTitle_item)
                {
                    await
                    DailyReward1.
                    setTitle_item(relatedTitle_item1);
                }
            
                const relatedTitle_item2 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const DailyReward2 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DailyReward2?.setTitle_item)
                {
                    await
                    DailyReward2.
                    setTitle_item(relatedTitle_item2);
                }
            
                const relatedTitle_item3 = await Titles.findOne({
                    offset: Math.floor(Math.random() * (await Titles.count())),
                });
                const DailyReward3 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DailyReward3?.setTitle_item)
                {
                    await
                    DailyReward3.
                    setTitle_item(relatedTitle_item3);
                }
            
        }
        
    
        
            
            async function associateDailyRewardWithBadge() {
            
                const relatedBadge0 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const DailyReward0 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DailyReward0?.setBadge)
                {
                    await
                    DailyReward0.
                    setBadge(relatedBadge0);
                }
            
                const relatedBadge1 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const DailyReward1 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DailyReward1?.setBadge)
                {
                    await
                    DailyReward1.
                    setBadge(relatedBadge1);
                }
            
                const relatedBadge2 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const DailyReward2 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DailyReward2?.setBadge)
                {
                    await
                    DailyReward2.
                    setBadge(relatedBadge2);
                }
            
                const relatedBadge3 = await Badges.findOne({
                    offset: Math.floor(Math.random() * (await Badges.count())),
                });
                const DailyReward3 = await DailyRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DailyReward3?.setBadge)
                {
                    await
                    DailyReward3.
                    setBadge(relatedBadge3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateModerationReportWithReporter() {
            
                const relatedReporter0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ModerationReport0 = await ModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ModerationReport0?.setReporter)
                {
                    await
                    ModerationReport0.
                    setReporter(relatedReporter0);
                }
            
                const relatedReporter1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ModerationReport1 = await ModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ModerationReport1?.setReporter)
                {
                    await
                    ModerationReport1.
                    setReporter(relatedReporter1);
                }
            
                const relatedReporter2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ModerationReport2 = await ModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ModerationReport2?.setReporter)
                {
                    await
                    ModerationReport2.
                    setReporter(relatedReporter2);
                }
            
                const relatedReporter3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ModerationReport3 = await ModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ModerationReport3?.setReporter)
                {
                    await
                    ModerationReport3.
                    setReporter(relatedReporter3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateCommunityModeWithCreator() {
            
                const relatedCreator0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityMode0 = await CommunityModes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityMode0?.setCreator)
                {
                    await
                    CommunityMode0.
                    setCreator(relatedCreator0);
                }
            
                const relatedCreator1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityMode1 = await CommunityModes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityMode1?.setCreator)
                {
                    await
                    CommunityMode1.
                    setCreator(relatedCreator1);
                }
            
                const relatedCreator2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityMode2 = await CommunityModes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityMode2?.setCreator)
                {
                    await
                    CommunityMode2.
                    setCreator(relatedCreator2);
                }
            
                const relatedCreator3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityMode3 = await CommunityModes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityMode3?.setCreator)
                {
                    await
                    CommunityMode3.
                    setCreator(relatedCreator3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCommunityModeBuildSessionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityModeBuildSession0 = await CommunityModeBuildSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityModeBuildSession0?.setUser)
                {
                    await
                    CommunityModeBuildSession0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityModeBuildSession1 = await CommunityModeBuildSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityModeBuildSession1?.setUser)
                {
                    await
                    CommunityModeBuildSession1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityModeBuildSession2 = await CommunityModeBuildSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityModeBuildSession2?.setUser)
                {
                    await
                    CommunityModeBuildSession2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityModeBuildSession3 = await CommunityModeBuildSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityModeBuildSession3?.setUser)
                {
                    await
                    CommunityModeBuildSession3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateCommunityModeBuildSessionWithResult_mode() {
            
                const relatedResult_mode0 = await CommunityModes.findOne({
                    offset: Math.floor(Math.random() * (await CommunityModes.count())),
                });
                const CommunityModeBuildSession0 = await CommunityModeBuildSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityModeBuildSession0?.setResult_mode)
                {
                    await
                    CommunityModeBuildSession0.
                    setResult_mode(relatedResult_mode0);
                }
            
                const relatedResult_mode1 = await CommunityModes.findOne({
                    offset: Math.floor(Math.random() * (await CommunityModes.count())),
                });
                const CommunityModeBuildSession1 = await CommunityModeBuildSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityModeBuildSession1?.setResult_mode)
                {
                    await
                    CommunityModeBuildSession1.
                    setResult_mode(relatedResult_mode1);
                }
            
                const relatedResult_mode2 = await CommunityModes.findOne({
                    offset: Math.floor(Math.random() * (await CommunityModes.count())),
                });
                const CommunityModeBuildSession2 = await CommunityModeBuildSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityModeBuildSession2?.setResult_mode)
                {
                    await
                    CommunityModeBuildSession2.
                    setResult_mode(relatedResult_mode2);
                }
            
                const relatedResult_mode3 = await CommunityModes.findOne({
                    offset: Math.floor(Math.random() * (await CommunityModes.count())),
                });
                const CommunityModeBuildSession3 = await CommunityModeBuildSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityModeBuildSession3?.setResult_mode)
                {
                    await
                    CommunityModeBuildSession3.
                    setResult_mode(relatedResult_mode3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            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 associateLeaderboardEntryWithEvent() {
            
                const relatedEvent0 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const LeaderboardEntry0 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaderboardEntry0?.setEvent)
                {
                    await
                    LeaderboardEntry0.
                    setEvent(relatedEvent0);
                }
            
                const relatedEvent1 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const LeaderboardEntry1 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaderboardEntry1?.setEvent)
                {
                    await
                    LeaderboardEntry1.
                    setEvent(relatedEvent1);
                }
            
                const relatedEvent2 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const LeaderboardEntry2 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaderboardEntry2?.setEvent)
                {
                    await
                    LeaderboardEntry2.
                    setEvent(relatedEvent2);
                }
            
                const relatedEvent3 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const LeaderboardEntry3 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaderboardEntry3?.setEvent)
                {
                    await
                    LeaderboardEntry3.
                    setEvent(relatedEvent3);
                }
            
        }
        
    
        
            
            async function associateLeaderboardEntryWithMode() {
            
                const relatedMode0 = await GameModes.findOne({
                    offset: Math.floor(Math.random() * (await GameModes.count())),
                });
                const LeaderboardEntry0 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaderboardEntry0?.setMode)
                {
                    await
                    LeaderboardEntry0.
                    setMode(relatedMode0);
                }
            
                const relatedMode1 = await GameModes.findOne({
                    offset: Math.floor(Math.random() * (await GameModes.count())),
                });
                const LeaderboardEntry1 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaderboardEntry1?.setMode)
                {
                    await
                    LeaderboardEntry1.
                    setMode(relatedMode1);
                }
            
                const relatedMode2 = await GameModes.findOne({
                    offset: Math.floor(Math.random() * (await GameModes.count())),
                });
                const LeaderboardEntry2 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaderboardEntry2?.setMode)
                {
                    await
                    LeaderboardEntry2.
                    setMode(relatedMode2);
                }
            
                const relatedMode3 = await GameModes.findOne({
                    offset: Math.floor(Math.random() * (await GameModes.count())),
                });
                const LeaderboardEntry3 = await LeaderboardEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaderboardEntry3?.setMode)
                {
                    await
                    LeaderboardEntry3.
                    setMode(relatedMode3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Avatars.bulkCreate(AvatarsData);
                
            
            
                
                await AvatarCustomizations.bulkCreate(AvatarCustomizationsData);
                
            
            
                
                await Cosmetics.bulkCreate(CosmeticsData);
                
            
            
                
                await Boxes.bulkCreate(BoxesData);
                
            
            
                
                await BoxItems.bulkCreate(BoxItemsData);
                
            
            
                
                await Purchases.bulkCreate(PurchasesData);
                
            
            
                
                await InventoryItems.bulkCreate(InventoryItemsData);
                
            
            
                
                await Titles.bulkCreate(TitlesData);
                
            
            
                
                await Badges.bulkCreate(BadgesData);
                
            
            
                
                await Achievements.bulkCreate(AchievementsData);
                
            
            
                
                await UserAchievements.bulkCreate(UserAchievementsData);
                
            
            
                
                await Quizzes.bulkCreate(QuizzesData);
                
            
            
                
                await QuizQuestions.bulkCreate(QuizQuestionsData);
                
            
            
                
                await QuestionAnswers.bulkCreate(QuestionAnswersData);
                
            
            
                
                await QuizTags.bulkCreate(QuizTagsData);
                
            
            
                
                await QuizTagLinks.bulkCreate(QuizTagLinksData);
                
            
            
                
                await OrbixQuizAssistantSessions.bulkCreate(OrbixQuizAssistantSessionsData);
                
            
            
                
                await GameModes.bulkCreate(GameModesData);
                
            
            
                
                await Matches.bulkCreate(MatchesData);
                
            
            
                
                await MatchPlayers.bulkCreate(MatchPlayersData);
                
            
            
                
                await MatchQuestions.bulkCreate(MatchQuestionsData);
                
            
            
                
                await PlayerAnswers.bulkCreate(PlayerAnswersData);
                
            
            
                
                await WheelEvents.bulkCreate(WheelEventsData);
                
            
            
                
                await MusicPlaylists.bulkCreate(MusicPlaylistsData);
                
            
            
                
                await MusicTracks.bulkCreate(MusicTracksData);
                
            
            
                
                await Events.bulkCreate(EventsData);
                
            
            
                
                await DailyRewards.bulkCreate(DailyRewardsData);
                
            
            
                
                await ModerationReports.bulkCreate(ModerationReportsData);
                
            
            
                
                await CommunityModes.bulkCreate(CommunityModesData);
                
            
            
                
                await CommunityModeBuildSessions.bulkCreate(CommunityModeBuildSessionsData);
                
            
            
                
                await LeaderboardEntries.bulkCreate(LeaderboardEntriesData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAvatarCustomizationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBoxItemWithBox(),
                    
                
                    
                        
                        await associateBoxItemWithAvatar(),
                    
                
                    
                        
                        await associateBoxItemWithCosmetic(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePurchasWithUser(),
                    
                
                    
                
                    
                        
                        await associatePurchasWithBox(),
                    
                
                    
                        
                        await associatePurchasWithCosmetic(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateInventoryItemWithUser(),
                    
                
                    
                
                    
                        
                        await associateInventoryItemWithAvatar(),
                    
                
                    
                        
                        await associateInventoryItemWithCosmetic(),
                    
                
                    
                        
                        await associateInventoryItemWithTitle_item(),
                    
                
                    
                        
                        await associateInventoryItemWithBadge(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAchievementWithReward_title(),
                    
                
                    
                        
                        await associateAchievementWithReward_badge(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserAchievementWithUser(),
                    
                
                    
                        
                        await associateUserAchievementWithAchievement(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizzeWithOwner(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQuizQuestionWithQuiz(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQuestionAnswerWithQuestion(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQuizTagLinkWithQuiz(),
                    
                
                    
                        
                        await associateQuizTagLinkWithTag(),
                    
                
            
                
                
                    
                        
                        await associateOrbixQuizAssistantSessionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOrbixQuizAssistantSessionWithGenerated_quiz(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateMatcheWithHost(),
                    
                
                    
                        
                        await associateMatcheWithMode(),
                    
                
                    
                        
                        await associateMatcheWithQuiz(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMatchPlayerWithMatch(),
                    
                
                    
                        
                        await associateMatchPlayerWithUser(),
                    
                
                    
                
                    
                        
                        await associateMatchPlayerWithAvatar_customization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMatchQuestionWithMatch(),
                    
                
                    
                        
                        await associateMatchQuestionWithQuiz_question(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePlayerAnswerWithMatch_player(),
                    
                
                    
                        
                        await associatePlayerAnswerWithMatch_question(),
                    
                
                    
                        
                        await associatePlayerAnswerWithSelected_answer(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateWheelEventWithMatch(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMusicTrackWithPlaylist(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDailyRewardWithBox(),
                    
                
                    
                        
                        await associateDailyRewardWithCosmetic(),
                    
                
                    
                        
                        await associateDailyRewardWithTitle_item(),
                    
                
                    
                        
                        await associateDailyRewardWithBadge(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateModerationReportWithReporter(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateCommunityModeWithCreator(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCommunityModeBuildSessionWithUser(),
                    
                
                    
                
                    
                
                    
                        
                        await associateCommunityModeBuildSessionWithResult_mode(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLeaderboardEntryWithUser(),
                    
                
                    
                
                    
                        
                        await associateLeaderboardEntryWithEvent(),
                    
                
                    
                        
                        await associateLeaderboardEntryWithMode(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('avatars', null, {});
            
            
            await queryInterface.bulkDelete('avatar_customizations', null, {});
            
            
            await queryInterface.bulkDelete('cosmetics', null, {});
            
            
            await queryInterface.bulkDelete('boxes', null, {});
            
            
            await queryInterface.bulkDelete('box_items', null, {});
            
            
            await queryInterface.bulkDelete('purchases', null, {});
            
            
            await queryInterface.bulkDelete('inventory_items', null, {});
            
            
            await queryInterface.bulkDelete('titles', null, {});
            
            
            await queryInterface.bulkDelete('badges', null, {});
            
            
            await queryInterface.bulkDelete('achievements', null, {});
            
            
            await queryInterface.bulkDelete('user_achievements', null, {});
            
            
            await queryInterface.bulkDelete('quizzes', null, {});
            
            
            await queryInterface.bulkDelete('quiz_questions', null, {});
            
            
            await queryInterface.bulkDelete('question_answers', null, {});
            
            
            await queryInterface.bulkDelete('quiz_tags', null, {});
            
            
            await queryInterface.bulkDelete('quiz_tag_links', null, {});
            
            
            await queryInterface.bulkDelete('orbix_quiz_assistant_sessions', null, {});
            
            
            await queryInterface.bulkDelete('game_modes', null, {});
            
            
            await queryInterface.bulkDelete('matches', null, {});
            
            
            await queryInterface.bulkDelete('match_players', null, {});
            
            
            await queryInterface.bulkDelete('match_questions', null, {});
            
            
            await queryInterface.bulkDelete('player_answers', null, {});
            
            
            await queryInterface.bulkDelete('wheel_events', null, {});
            
            
            await queryInterface.bulkDelete('music_playlists', null, {});
            
            
            await queryInterface.bulkDelete('music_tracks', null, {});
            
            
            await queryInterface.bulkDelete('events', null, {});
            
            
            await queryInterface.bulkDelete('daily_rewards', null, {});
            
            
            await queryInterface.bulkDelete('moderation_reports', null, {});
            
            
            await queryInterface.bulkDelete('community_modes', null, {});
            
            
            await queryInterface.bulkDelete('community_mode_build_sessions', null, {});
            
            
            await queryInterface.bulkDelete('leaderboard_entries', null, {});
            
        
    },
};