





















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






const UserSessions = db.user_sessions;

const Referrals = db.referrals;

const CoinEarningRules = db.coin_earning_rules;

const CoinCodes = db.coin_codes;

const CoinCodeRedemptions = db.coin_code_redemptions;

const WalletTransactions = db.wallet_transactions;

const CoinConversions = db.coin_conversions;

const MembershipPlans = db.membership_plans;

const UserMemberships = db.user_memberships;

const ShopItems = db.shop_items;

const ItemRedemptions = db.item_redemptions;

const Products = db.products;

const ArticleContents = db.article_contents;

const ComicContents = db.comic_contents;

const VideoContents = db.video_contents;

const GameContents = db.game_contents;

const ProductPurchases = db.product_purchases;

const ContentConsumptions = db.content_consumptions;

const ChatRooms = db.chat_rooms;

const ChatMemberships = db.chat_memberships;

const ChatMessages = db.chat_messages;

const AppSettings = db.app_settings;

const AdminAuditLogs = db.admin_audit_logs;







const UserSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_token": "Ada Lovelace",
            
        
    
        
        
            
                "signed_in_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_out_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Ada Lovelace",
            
        
    
        
        
            
                "remember_me": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_token": "Alan Turing",
            
        
    
        
        
            
                "signed_in_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_out_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Grace Hopper",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "remember_me": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_token": "Ada Lovelace",
            
        
    
        
        
            
                "signed_in_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_out_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Alan Turing",
            
        
    
        
        
            
                "user_agent": "Marie Curie",
            
        
    
        
        
            
                "remember_me": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_token": "Marie Curie",
            
        
    
        
        
            
                "signed_in_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_out_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Alan Turing",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "remember_me": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_token": "Alan Turing",
            
        
    
        
        
            
                "signed_in_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_out_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Ada Lovelace",
            
        
    
        
        
            
                "remember_me": false,
            
        
    
    },
    
];



const ReferralsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "referral_code": "Marie Curie",
            
        
    
        
        
            
                "referred_email": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "INVITED",
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_up_at": new Date(Date.now()),
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reward_doodlecoins": 2,
            
        
    
        
        
            
                "note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "referral_code": "Grace Hopper",
            
        
    
        
        
            
                "referred_email": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "REWARDED",
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_up_at": new Date(Date.now()),
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reward_doodlecoins": 3,
            
        
    
        
        
            
                "note": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "referral_code": "Ada Lovelace",
            
        
    
        
        
            
                "referred_email": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "SIGNED_UP",
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_up_at": new Date(Date.now()),
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reward_doodlecoins": 5,
            
        
    
        
        
            
                "note": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "referral_code": "Grace Hopper",
            
        
    
        
        
            
                "referred_email": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "INVITED",
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_up_at": new Date(Date.now()),
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reward_doodlecoins": 2,
            
        
    
        
        
            
                "note": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "referral_code": "Grace Hopper",
            
        
    
        
        
            
                "referred_email": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "SIGNED_UP",
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                "signed_up_at": new Date(Date.now()),
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reward_doodlecoins": 2,
            
        
    
        
        
            
                "note": "Alan Turing",
            
        
    
    },
    
];



const CoinEarningRulesData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "source": "OTHER",
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "base_doodlecoins": 6,
            
        
    
        
        
            
                "multiplier": 6.69,
            
        
    
        
        
            
                "min_streak_days": 8,
            
        
    
        
        
            
                "max_streak_days": 9,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "source": "PRODUCT_BONUS",
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "base_doodlecoins": 6,
            
        
    
        
        
            
                "multiplier": 1.21,
            
        
    
        
        
            
                "min_streak_days": 1,
            
        
    
        
        
            
                "max_streak_days": 3,
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "source": "ADMIN_ADJUSTMENT",
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "base_doodlecoins": 8,
            
        
    
        
        
            
                "multiplier": 9.32,
            
        
    
        
        
            
                "min_streak_days": 9,
            
        
    
        
        
            
                "max_streak_days": 1,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "source": "STREAK",
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "base_doodlecoins": 9,
            
        
    
        
        
            
                "multiplier": 3.05,
            
        
    
        
        
            
                "min_streak_days": 6,
            
        
    
        
        
            
                "max_streak_days": 6,
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "source": "REFERRAL",
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "base_doodlecoins": 1,
            
        
    
        
        
            
                "multiplier": 0.91,
            
        
    
        
        
            
                "min_streak_days": 4,
            
        
    
        
        
            
                "max_streak_days": 1,
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
];



const CoinCodesData = [
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "pin": "Grace Hopper",
            
        
    
        
        
            
                "amount_doodlecoins": 3,
            
        
    
        
        
            
                "max_redemptions": 7,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "success_message": "Marie Curie",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "pin": "Alan Turing",
            
        
    
        
        
            
                "amount_doodlecoins": 2,
            
        
    
        
        
            
                "max_redemptions": 3,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "success_message": "Alan Turing",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "pin": "Alan Turing",
            
        
    
        
        
            
                "amount_doodlecoins": 5,
            
        
    
        
        
            
                "max_redemptions": 6,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "success_message": "Grace Hopper",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "pin": "Ada Lovelace",
            
        
    
        
        
            
                "amount_doodlecoins": 4,
            
        
    
        
        
            
                "max_redemptions": 6,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "success_message": "Marie Curie",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "pin": "Grace Hopper",
            
        
    
        
        
            
                "amount_doodlecoins": 4,
            
        
    
        
        
            
                "max_redemptions": 3,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "success_message": "Marie Curie",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
];



const CoinCodeRedemptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount_doodlecoins": 1,
            
        
    
        
        
            
                "status_message": "Alan Turing",
            
        
    
        
        
            
                "successful": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount_doodlecoins": 6,
            
        
    
        
        
            
                "status_message": "Grace Hopper",
            
        
    
        
        
            
                "successful": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount_doodlecoins": 2,
            
        
    
        
        
            
                "status_message": "Grace Hopper",
            
        
    
        
        
            
                "successful": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount_doodlecoins": 2,
            
        
    
        
        
            
                "status_message": "Marie Curie",
            
        
    
        
        
            
                "successful": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount_doodlecoins": 7,
            
        
    
        
        
            
                "status_message": "Ada Lovelace",
            
        
    
        
        
            
                "successful": false,
            
        
    
    },
    
];



const WalletTransactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency": "SUPERCHARGED",
            
        
    
        
        
            
                "direction": "DEBIT",
            
        
    
        
        
            
                "amount": 6,
            
        
    
        
        
            
                "balance_after": 3,
            
        
    
        
        
            
                "reason": "REFERRAL_REWARD",
            
        
    
        
        
            
                "reference": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency": "SUPERCHARGED",
            
        
    
        
        
            
                "direction": "CREDIT",
            
        
    
        
        
            
                "amount": 2,
            
        
    
        
        
            
                "balance_after": 5,
            
        
    
        
        
            
                "reason": "CONVERSION",
            
        
    
        
        
            
                "reference": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency": "SUPERCHARGED",
            
        
    
        
        
            
                "direction": "DEBIT",
            
        
    
        
        
            
                "amount": 7,
            
        
    
        
        
            
                "balance_after": 2,
            
        
    
        
        
            
                "reason": "ITEM_REDEMPTION",
            
        
    
        
        
            
                "reference": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency": "SUPERCHARGED",
            
        
    
        
        
            
                "direction": "DEBIT",
            
        
    
        
        
            
                "amount": 5,
            
        
    
        
        
            
                "balance_after": 9,
            
        
    
        
        
            
                "reason": "CODE_REDEMPTION",
            
        
    
        
        
            
                "reference": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency": "SUPERCHARGED",
            
        
    
        
        
            
                "direction": "DEBIT",
            
        
    
        
        
            
                "amount": 3,
            
        
    
        
        
            
                "balance_after": 5,
            
        
    
        
        
            
                "reason": "CONVERSION",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Marie Curie",
            
        
    
    },
    
];



const CoinConversionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "from_doodlecoins": 4,
            
        
    
        
        
            
                "to_supercharged": 5,
            
        
    
        
        
            
                "rate_from": 6,
            
        
    
        
        
            
                "rate_to": 9,
            
        
    
        
        
            
                "converted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "from_doodlecoins": 8,
            
        
    
        
        
            
                "to_supercharged": 7,
            
        
    
        
        
            
                "rate_from": 6,
            
        
    
        
        
            
                "rate_to": 6,
            
        
    
        
        
            
                "converted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "from_doodlecoins": 1,
            
        
    
        
        
            
                "to_supercharged": 6,
            
        
    
        
        
            
                "rate_from": 6,
            
        
    
        
        
            
                "rate_to": 2,
            
        
    
        
        
            
                "converted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "from_doodlecoins": 4,
            
        
    
        
        
            
                "to_supercharged": 2,
            
        
    
        
        
            
                "rate_from": 6,
            
        
    
        
        
            
                "rate_to": 7,
            
        
    
        
        
            
                "converted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "from_doodlecoins": 6,
            
        
    
        
        
            
                "to_supercharged": 7,
            
        
    
        
        
            
                "rate_from": 8,
            
        
    
        
        
            
                "rate_to": 5,
            
        
    
        
        
            
                "converted_at": new Date(Date.now()),
            
        
    
    },
    
];



const MembershipPlansData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tier": "PREMIUM",
            
        
    
        
        
            
                "monthly_doodlecoins": 9,
            
        
    
        
        
            
                "doodlecoin_multiplier": 7.95,
            
        
    
        
        
            
                "price_supercharged": 6,
            
        
    
        
        
            
                "perks_summary": "Marie Curie",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "tier": "SILVER",
            
        
    
        
        
            
                "monthly_doodlecoins": 1,
            
        
    
        
        
            
                "doodlecoin_multiplier": 7.92,
            
        
    
        
        
            
                "price_supercharged": 3,
            
        
    
        
        
            
                "perks_summary": "Alan Turing",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tier": "GOLD",
            
        
    
        
        
            
                "monthly_doodlecoins": 1,
            
        
    
        
        
            
                "doodlecoin_multiplier": 1.21,
            
        
    
        
        
            
                "price_supercharged": 7,
            
        
    
        
        
            
                "perks_summary": "Marie Curie",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tier": "PREMIUM",
            
        
    
        
        
            
                "monthly_doodlecoins": 1,
            
        
    
        
        
            
                "doodlecoin_multiplier": 5.73,
            
        
    
        
        
            
                "price_supercharged": 8,
            
        
    
        
        
            
                "perks_summary": "Marie Curie",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "tier": "FREE",
            
        
    
        
        
            
                "monthly_doodlecoins": 1,
            
        
    
        
        
            
                "doodlecoin_multiplier": 7.11,
            
        
    
        
        
            
                "price_supercharged": 4,
            
        
    
        
        
            
                "perks_summary": "Alan Turing",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
];



const UserMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "next_billing_at": new Date(Date.now()),
            
        
    
        
        
            
                "cancelled_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 4,
            
        
    
        
        
            
                "perks_snapshot": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "EXPIRED",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "next_billing_at": new Date(Date.now()),
            
        
    
        
        
            
                "cancelled_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 8,
            
        
    
        
        
            
                "perks_snapshot": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "next_billing_at": new Date(Date.now()),
            
        
    
        
        
            
                "cancelled_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 8,
            
        
    
        
        
            
                "perks_snapshot": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "next_billing_at": new Date(Date.now()),
            
        
    
        
        
            
                "cancelled_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 9,
            
        
    
        
        
            
                "perks_snapshot": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "EXPIRED",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "next_billing_at": new Date(Date.now()),
            
        
    
        
        
            
                "cancelled_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 3,
            
        
    
        
        
            
                "perks_snapshot": "Ada Lovelace",
            
        
    
    },
    
];



const ShopItemsData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "cost_doodlecoins": 2,
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "cost_doodlecoins": 4,
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "cost_doodlecoins": 6,
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "cost_doodlecoins": 5,
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "cost_doodlecoins": 1,
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
];



const ItemRedemptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "cost_doodlecoins": 8,
            
        
    
        
        
            
                "status": "FULFILLED",
            
        
    
        
        
            
                "note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "cost_doodlecoins": 9,
            
        
    
        
        
            
                "status": "REQUESTED",
            
        
    
        
        
            
                "note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "cost_doodlecoins": 3,
            
        
    
        
        
            
                "status": "REJECTED",
            
        
    
        
        
            
                "note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "cost_doodlecoins": 2,
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "redeemed_at": new Date(Date.now()),
            
        
    
        
        
            
                "cost_doodlecoins": 5,
            
        
    
        
        
            
                "status": "REJECTED",
            
        
    
        
        
            
                "note": "Grace Hopper",
            
        
    
    },
    
];



const ProductsData = [
    
    {
    
        
        
            
                "product_type": "ARTICLE",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price_supercharged": 8,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "max_purchases": 5,
            
        
    
        
        
            
                "status": "DRAFT",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "product_type": "VIDEO",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price_supercharged": 5,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "max_purchases": 6,
            
        
    
        
        
            
                "status": "DRAFT",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "product_type": "GAME",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price_supercharged": 5,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "max_purchases": 7,
            
        
    
        
        
            
                "status": "PUBLISHED",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "product_type": "VIDEO",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price_supercharged": 7,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "max_purchases": 2,
            
        
    
        
        
            
                "status": "ARCHIVED",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "product_type": "VIDEO",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price_supercharged": 3,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "max_purchases": 4,
            
        
    
        
        
            
                "status": "PUBLISHED",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ArticleContentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "excerpt": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "excerpt": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "excerpt": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "excerpt": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "excerpt": "Marie Curie",
            
        
    
    },
    
];



const ComicContentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const VideoContentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "video_caption": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "video_caption": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "video_caption": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "video_caption": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "video_caption": "Alan Turing",
            
        
    
    },
    
];



const GameContentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "launch_type": "REDIRECT_URL",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "redirect_url": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "launch_type": "UPLOAD_HTML",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "redirect_url": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "launch_type": "UPLOAD_HTML",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "redirect_url": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "launch_type": "UPLOAD_HTML",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "redirect_url": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "launch_type": "UPLOAD_HTML",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "redirect_url": "Grace Hopper",
            
        
    
    },
    
];



const ProductPurchasesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 9,
            
        
    
        
        
            
                "access_status": "ACTIVE",
            
        
    
        
        
            
                "access_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 3,
            
        
    
        
        
            
                "access_status": "ACTIVE",
            
        
    
        
        
            
                "access_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 5,
            
        
    
        
        
            
                "access_status": "ACTIVE",
            
        
    
        
        
            
                "access_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 9,
            
        
    
        
        
            
                "access_status": "ACTIVE",
            
        
    
        
        
            
                "access_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
        
        
            
                "price_supercharged": 9,
            
        
    
        
        
            
                "access_status": "EXPIRED",
            
        
    
        
        
            
                "access_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "note": "Grace Hopper",
            
        
    
    },
    
];



const ContentConsumptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "VIEW",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "duration_seconds": 3,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "READ",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "duration_seconds": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "VIEW",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "duration_seconds": 5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "WATCH",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "duration_seconds": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "WATCH",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "duration_seconds": 5,
            
        
    
    },
    
];



const ChatRoomsData = [
    
    {
    
        
        
            
                "room_type": "PUBLIC",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "private_room": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "room_type": "DIRECT",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "private_room": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "room_type": "GROUP",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "private_room": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "room_type": "DIRECT",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "private_room": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "room_type": "PUBLIC",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "private_room": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
    },
    
];



const ChatMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "MODERATOR",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "muted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "MODERATOR",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "muted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "MEMBER",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "muted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "MODERATOR",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "muted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "MEMBER",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "muted": true,
            
        
    
    },
    
];



const ChatMessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "deleted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "deleted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "deleted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "deleted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "deleted": true,
            
        
    
    },
    
];



const AppSettingsData = [
    
    {
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "value": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "public": true,
            
        
    
    },
    
    {
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "value": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "public": true,
            
        
    
    },
    
    {
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "value": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "public": false,
            
        
    
    },
    
    {
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "value": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "public": false,
            
        
    
    },
    
    {
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "value": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "public": false,
            
        
    
    },
    
];



const AdminAuditLogsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "USER_DELETE",
            
        
    
        
        
            
                "entity_name": "Alan Turing",
            
        
    
        
        
            
                "entity_reference": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "CODE_UPDATE",
            
        
    
        
        
            
                "entity_name": "Alan Turing",
            
        
    
        
        
            
                "entity_reference": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "CODE_DELETE",
            
        
    
        
        
            
                "entity_name": "Marie Curie",
            
        
    
        
        
            
                "entity_reference": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "OTHER",
            
        
    
        
        
            
                "entity_name": "Alan Turing",
            
        
    
        
        
            
                "entity_reference": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "PRODUCT_CREATE",
            
        
    
        
        
            
                "entity_name": "Ada Lovelace",
            
        
    
        
        
            
                "entity_reference": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
            
            async function associateUserSessionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSession0 = await UserSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserSession0?.setUser)
                {
                    await
                    UserSession0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSession1 = await UserSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserSession1?.setUser)
                {
                    await
                    UserSession1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSession2 = await UserSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserSession2?.setUser)
                {
                    await
                    UserSession2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSession3 = await UserSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserSession3?.setUser)
                {
                    await
                    UserSession3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSession4 = await UserSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserSession4?.setUser)
                {
                    await
                    UserSession4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateReferralWithReferrer() {
            
                const relatedReferrer0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral0 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Referral0?.setReferrer)
                {
                    await
                    Referral0.
                    setReferrer(relatedReferrer0);
                }
            
                const relatedReferrer1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral1 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Referral1?.setReferrer)
                {
                    await
                    Referral1.
                    setReferrer(relatedReferrer1);
                }
            
                const relatedReferrer2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral2 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Referral2?.setReferrer)
                {
                    await
                    Referral2.
                    setReferrer(relatedReferrer2);
                }
            
                const relatedReferrer3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral3 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Referral3?.setReferrer)
                {
                    await
                    Referral3.
                    setReferrer(relatedReferrer3);
                }
            
                const relatedReferrer4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral4 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Referral4?.setReferrer)
                {
                    await
                    Referral4.
                    setReferrer(relatedReferrer4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateReferralWithReferred_user() {
            
                const relatedReferred_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral0 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Referral0?.setReferred_user)
                {
                    await
                    Referral0.
                    setReferred_user(relatedReferred_user0);
                }
            
                const relatedReferred_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral1 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Referral1?.setReferred_user)
                {
                    await
                    Referral1.
                    setReferred_user(relatedReferred_user1);
                }
            
                const relatedReferred_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral2 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Referral2?.setReferred_user)
                {
                    await
                    Referral2.
                    setReferred_user(relatedReferred_user2);
                }
            
                const relatedReferred_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral3 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Referral3?.setReferred_user)
                {
                    await
                    Referral3.
                    setReferred_user(relatedReferred_user3);
                }
            
                const relatedReferred_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Referral4 = await Referrals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Referral4?.setReferred_user)
                {
                    await
                    Referral4.
                    setReferred_user(relatedReferred_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCoinCodeRedemptionWithCoin_code() {
            
                const relatedCoin_code0 = await CoinCodes.findOne({
                    offset: Math.floor(Math.random() * (await CoinCodes.count())),
                });
                const CoinCodeRedemption0 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoinCodeRedemption0?.setCoin_code)
                {
                    await
                    CoinCodeRedemption0.
                    setCoin_code(relatedCoin_code0);
                }
            
                const relatedCoin_code1 = await CoinCodes.findOne({
                    offset: Math.floor(Math.random() * (await CoinCodes.count())),
                });
                const CoinCodeRedemption1 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoinCodeRedemption1?.setCoin_code)
                {
                    await
                    CoinCodeRedemption1.
                    setCoin_code(relatedCoin_code1);
                }
            
                const relatedCoin_code2 = await CoinCodes.findOne({
                    offset: Math.floor(Math.random() * (await CoinCodes.count())),
                });
                const CoinCodeRedemption2 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoinCodeRedemption2?.setCoin_code)
                {
                    await
                    CoinCodeRedemption2.
                    setCoin_code(relatedCoin_code2);
                }
            
                const relatedCoin_code3 = await CoinCodes.findOne({
                    offset: Math.floor(Math.random() * (await CoinCodes.count())),
                });
                const CoinCodeRedemption3 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoinCodeRedemption3?.setCoin_code)
                {
                    await
                    CoinCodeRedemption3.
                    setCoin_code(relatedCoin_code3);
                }
            
                const relatedCoin_code4 = await CoinCodes.findOne({
                    offset: Math.floor(Math.random() * (await CoinCodes.count())),
                });
                const CoinCodeRedemption4 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CoinCodeRedemption4?.setCoin_code)
                {
                    await
                    CoinCodeRedemption4.
                    setCoin_code(relatedCoin_code4);
                }
            
        }
        
    
        
            
            async function associateCoinCodeRedemptionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinCodeRedemption0 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoinCodeRedemption0?.setUser)
                {
                    await
                    CoinCodeRedemption0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinCodeRedemption1 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoinCodeRedemption1?.setUser)
                {
                    await
                    CoinCodeRedemption1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinCodeRedemption2 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoinCodeRedemption2?.setUser)
                {
                    await
                    CoinCodeRedemption2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinCodeRedemption3 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoinCodeRedemption3?.setUser)
                {
                    await
                    CoinCodeRedemption3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinCodeRedemption4 = await CoinCodeRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CoinCodeRedemption4?.setUser)
                {
                    await
                    CoinCodeRedemption4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateWalletTransactionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WalletTransaction0 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WalletTransaction0?.setUser)
                {
                    await
                    WalletTransaction0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WalletTransaction1 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WalletTransaction1?.setUser)
                {
                    await
                    WalletTransaction1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WalletTransaction2 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WalletTransaction2?.setUser)
                {
                    await
                    WalletTransaction2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WalletTransaction3 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WalletTransaction3?.setUser)
                {
                    await
                    WalletTransaction3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WalletTransaction4 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WalletTransaction4?.setUser)
                {
                    await
                    WalletTransaction4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCoinConversionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinConversion0 = await CoinConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoinConversion0?.setUser)
                {
                    await
                    CoinConversion0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinConversion1 = await CoinConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoinConversion1?.setUser)
                {
                    await
                    CoinConversion1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinConversion2 = await CoinConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoinConversion2?.setUser)
                {
                    await
                    CoinConversion2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinConversion3 = await CoinConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoinConversion3?.setUser)
                {
                    await
                    CoinConversion3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinConversion4 = await CoinConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CoinConversion4?.setUser)
                {
                    await
                    CoinConversion4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserMembership0 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserMembership0?.setUser)
                {
                    await
                    UserMembership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserMembership1 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserMembership1?.setUser)
                {
                    await
                    UserMembership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserMembership2 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserMembership2?.setUser)
                {
                    await
                    UserMembership2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserMembership3 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserMembership3?.setUser)
                {
                    await
                    UserMembership3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserMembership4 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserMembership4?.setUser)
                {
                    await
                    UserMembership4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateUserMembershipWithMembership_plan() {
            
                const relatedMembership_plan0 = await MembershipPlans.findOne({
                    offset: Math.floor(Math.random() * (await MembershipPlans.count())),
                });
                const UserMembership0 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserMembership0?.setMembership_plan)
                {
                    await
                    UserMembership0.
                    setMembership_plan(relatedMembership_plan0);
                }
            
                const relatedMembership_plan1 = await MembershipPlans.findOne({
                    offset: Math.floor(Math.random() * (await MembershipPlans.count())),
                });
                const UserMembership1 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserMembership1?.setMembership_plan)
                {
                    await
                    UserMembership1.
                    setMembership_plan(relatedMembership_plan1);
                }
            
                const relatedMembership_plan2 = await MembershipPlans.findOne({
                    offset: Math.floor(Math.random() * (await MembershipPlans.count())),
                });
                const UserMembership2 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserMembership2?.setMembership_plan)
                {
                    await
                    UserMembership2.
                    setMembership_plan(relatedMembership_plan2);
                }
            
                const relatedMembership_plan3 = await MembershipPlans.findOne({
                    offset: Math.floor(Math.random() * (await MembershipPlans.count())),
                });
                const UserMembership3 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserMembership3?.setMembership_plan)
                {
                    await
                    UserMembership3.
                    setMembership_plan(relatedMembership_plan3);
                }
            
                const relatedMembership_plan4 = await MembershipPlans.findOne({
                    offset: Math.floor(Math.random() * (await MembershipPlans.count())),
                });
                const UserMembership4 = await UserMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserMembership4?.setMembership_plan)
                {
                    await
                    UserMembership4.
                    setMembership_plan(relatedMembership_plan4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateItemRedemptionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ItemRedemption0 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ItemRedemption0?.setUser)
                {
                    await
                    ItemRedemption0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ItemRedemption1 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ItemRedemption1?.setUser)
                {
                    await
                    ItemRedemption1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ItemRedemption2 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ItemRedemption2?.setUser)
                {
                    await
                    ItemRedemption2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ItemRedemption3 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ItemRedemption3?.setUser)
                {
                    await
                    ItemRedemption3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ItemRedemption4 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ItemRedemption4?.setUser)
                {
                    await
                    ItemRedemption4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateItemRedemptionWithShop_item() {
            
                const relatedShop_item0 = await ShopItems.findOne({
                    offset: Math.floor(Math.random() * (await ShopItems.count())),
                });
                const ItemRedemption0 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ItemRedemption0?.setShop_item)
                {
                    await
                    ItemRedemption0.
                    setShop_item(relatedShop_item0);
                }
            
                const relatedShop_item1 = await ShopItems.findOne({
                    offset: Math.floor(Math.random() * (await ShopItems.count())),
                });
                const ItemRedemption1 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ItemRedemption1?.setShop_item)
                {
                    await
                    ItemRedemption1.
                    setShop_item(relatedShop_item1);
                }
            
                const relatedShop_item2 = await ShopItems.findOne({
                    offset: Math.floor(Math.random() * (await ShopItems.count())),
                });
                const ItemRedemption2 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ItemRedemption2?.setShop_item)
                {
                    await
                    ItemRedemption2.
                    setShop_item(relatedShop_item2);
                }
            
                const relatedShop_item3 = await ShopItems.findOne({
                    offset: Math.floor(Math.random() * (await ShopItems.count())),
                });
                const ItemRedemption3 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ItemRedemption3?.setShop_item)
                {
                    await
                    ItemRedemption3.
                    setShop_item(relatedShop_item3);
                }
            
                const relatedShop_item4 = await ShopItems.findOne({
                    offset: Math.floor(Math.random() * (await ShopItems.count())),
                });
                const ItemRedemption4 = await ItemRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ItemRedemption4?.setShop_item)
                {
                    await
                    ItemRedemption4.
                    setShop_item(relatedShop_item4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProductWithCreated_by_user() {
            
                const relatedCreated_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setCreated_by_user)
                {
                    await
                    Product0.
                    setCreated_by_user(relatedCreated_by_user0);
                }
            
                const relatedCreated_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setCreated_by_user)
                {
                    await
                    Product1.
                    setCreated_by_user(relatedCreated_by_user1);
                }
            
                const relatedCreated_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setCreated_by_user)
                {
                    await
                    Product2.
                    setCreated_by_user(relatedCreated_by_user2);
                }
            
                const relatedCreated_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setCreated_by_user)
                {
                    await
                    Product3.
                    setCreated_by_user(relatedCreated_by_user3);
                }
            
                const relatedCreated_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Product4 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Product4?.setCreated_by_user)
                {
                    await
                    Product4.
                    setCreated_by_user(relatedCreated_by_user4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateArticleContentWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ArticleContent0 = await ArticleContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ArticleContent0?.setProduct)
                {
                    await
                    ArticleContent0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ArticleContent1 = await ArticleContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ArticleContent1?.setProduct)
                {
                    await
                    ArticleContent1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ArticleContent2 = await ArticleContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ArticleContent2?.setProduct)
                {
                    await
                    ArticleContent2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ArticleContent3 = await ArticleContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ArticleContent3?.setProduct)
                {
                    await
                    ArticleContent3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ArticleContent4 = await ArticleContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ArticleContent4?.setProduct)
                {
                    await
                    ArticleContent4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateComicContentWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ComicContent0 = await ComicContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ComicContent0?.setProduct)
                {
                    await
                    ComicContent0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ComicContent1 = await ComicContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ComicContent1?.setProduct)
                {
                    await
                    ComicContent1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ComicContent2 = await ComicContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ComicContent2?.setProduct)
                {
                    await
                    ComicContent2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ComicContent3 = await ComicContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ComicContent3?.setProduct)
                {
                    await
                    ComicContent3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ComicContent4 = await ComicContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ComicContent4?.setProduct)
                {
                    await
                    ComicContent4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateVideoContentWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const VideoContent0 = await VideoContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VideoContent0?.setProduct)
                {
                    await
                    VideoContent0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const VideoContent1 = await VideoContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VideoContent1?.setProduct)
                {
                    await
                    VideoContent1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const VideoContent2 = await VideoContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VideoContent2?.setProduct)
                {
                    await
                    VideoContent2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const VideoContent3 = await VideoContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VideoContent3?.setProduct)
                {
                    await
                    VideoContent3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const VideoContent4 = await VideoContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VideoContent4?.setProduct)
                {
                    await
                    VideoContent4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateGameContentWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const GameContent0 = await GameContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GameContent0?.setProduct)
                {
                    await
                    GameContent0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const GameContent1 = await GameContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GameContent1?.setProduct)
                {
                    await
                    GameContent1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const GameContent2 = await GameContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GameContent2?.setProduct)
                {
                    await
                    GameContent2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const GameContent3 = await GameContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GameContent3?.setProduct)
                {
                    await
                    GameContent3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const GameContent4 = await GameContents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GameContent4?.setProduct)
                {
                    await
                    GameContent4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateProductPurchasWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductPurchas0 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductPurchas0?.setUser)
                {
                    await
                    ProductPurchas0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductPurchas1 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductPurchas1?.setUser)
                {
                    await
                    ProductPurchas1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductPurchas2 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductPurchas2?.setUser)
                {
                    await
                    ProductPurchas2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductPurchas3 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductPurchas3?.setUser)
                {
                    await
                    ProductPurchas3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductPurchas4 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductPurchas4?.setUser)
                {
                    await
                    ProductPurchas4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateProductPurchasWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductPurchas0 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductPurchas0?.setProduct)
                {
                    await
                    ProductPurchas0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductPurchas1 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductPurchas1?.setProduct)
                {
                    await
                    ProductPurchas1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductPurchas2 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductPurchas2?.setProduct)
                {
                    await
                    ProductPurchas2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductPurchas3 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductPurchas3?.setProduct)
                {
                    await
                    ProductPurchas3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductPurchas4 = await ProductPurchases.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductPurchas4?.setProduct)
                {
                    await
                    ProductPurchas4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateContentConsumptionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentConsumption0 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentConsumption0?.setUser)
                {
                    await
                    ContentConsumption0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentConsumption1 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentConsumption1?.setUser)
                {
                    await
                    ContentConsumption1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentConsumption2 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentConsumption2?.setUser)
                {
                    await
                    ContentConsumption2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentConsumption3 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContentConsumption3?.setUser)
                {
                    await
                    ContentConsumption3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentConsumption4 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContentConsumption4?.setUser)
                {
                    await
                    ContentConsumption4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateContentConsumptionWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ContentConsumption0 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentConsumption0?.setProduct)
                {
                    await
                    ContentConsumption0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ContentConsumption1 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentConsumption1?.setProduct)
                {
                    await
                    ContentConsumption1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ContentConsumption2 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentConsumption2?.setProduct)
                {
                    await
                    ContentConsumption2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ContentConsumption3 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContentConsumption3?.setProduct)
                {
                    await
                    ContentConsumption3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ContentConsumption4 = await ContentConsumptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContentConsumption4?.setProduct)
                {
                    await
                    ContentConsumption4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateChatRoomWithCreated_by_user() {
            
                const relatedCreated_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatRoom0 = await ChatRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatRoom0?.setCreated_by_user)
                {
                    await
                    ChatRoom0.
                    setCreated_by_user(relatedCreated_by_user0);
                }
            
                const relatedCreated_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatRoom1 = await ChatRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatRoom1?.setCreated_by_user)
                {
                    await
                    ChatRoom1.
                    setCreated_by_user(relatedCreated_by_user1);
                }
            
                const relatedCreated_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatRoom2 = await ChatRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatRoom2?.setCreated_by_user)
                {
                    await
                    ChatRoom2.
                    setCreated_by_user(relatedCreated_by_user2);
                }
            
                const relatedCreated_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatRoom3 = await ChatRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatRoom3?.setCreated_by_user)
                {
                    await
                    ChatRoom3.
                    setCreated_by_user(relatedCreated_by_user3);
                }
            
                const relatedCreated_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatRoom4 = await ChatRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatRoom4?.setCreated_by_user)
                {
                    await
                    ChatRoom4.
                    setCreated_by_user(relatedCreated_by_user4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateChatMembershipWithChat_room() {
            
                const relatedChat_room0 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMembership0 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatMembership0?.setChat_room)
                {
                    await
                    ChatMembership0.
                    setChat_room(relatedChat_room0);
                }
            
                const relatedChat_room1 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMembership1 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatMembership1?.setChat_room)
                {
                    await
                    ChatMembership1.
                    setChat_room(relatedChat_room1);
                }
            
                const relatedChat_room2 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMembership2 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatMembership2?.setChat_room)
                {
                    await
                    ChatMembership2.
                    setChat_room(relatedChat_room2);
                }
            
                const relatedChat_room3 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMembership3 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatMembership3?.setChat_room)
                {
                    await
                    ChatMembership3.
                    setChat_room(relatedChat_room3);
                }
            
                const relatedChat_room4 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMembership4 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatMembership4?.setChat_room)
                {
                    await
                    ChatMembership4.
                    setChat_room(relatedChat_room4);
                }
            
        }
        
    
        
            
            async function associateChatMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMembership0 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatMembership0?.setUser)
                {
                    await
                    ChatMembership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMembership1 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatMembership1?.setUser)
                {
                    await
                    ChatMembership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMembership2 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatMembership2?.setUser)
                {
                    await
                    ChatMembership2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMembership3 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatMembership3?.setUser)
                {
                    await
                    ChatMembership3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMembership4 = await ChatMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatMembership4?.setUser)
                {
                    await
                    ChatMembership4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateChatMessageWithChat_room() {
            
                const relatedChat_room0 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMessage0 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatMessage0?.setChat_room)
                {
                    await
                    ChatMessage0.
                    setChat_room(relatedChat_room0);
                }
            
                const relatedChat_room1 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMessage1 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatMessage1?.setChat_room)
                {
                    await
                    ChatMessage1.
                    setChat_room(relatedChat_room1);
                }
            
                const relatedChat_room2 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMessage2 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatMessage2?.setChat_room)
                {
                    await
                    ChatMessage2.
                    setChat_room(relatedChat_room2);
                }
            
                const relatedChat_room3 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMessage3 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatMessage3?.setChat_room)
                {
                    await
                    ChatMessage3.
                    setChat_room(relatedChat_room3);
                }
            
                const relatedChat_room4 = await ChatRooms.findOne({
                    offset: Math.floor(Math.random() * (await ChatRooms.count())),
                });
                const ChatMessage4 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatMessage4?.setChat_room)
                {
                    await
                    ChatMessage4.
                    setChat_room(relatedChat_room4);
                }
            
        }
        
    
        
            
            async function associateChatMessageWithSender() {
            
                const relatedSender0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage0 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatMessage0?.setSender)
                {
                    await
                    ChatMessage0.
                    setSender(relatedSender0);
                }
            
                const relatedSender1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage1 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatMessage1?.setSender)
                {
                    await
                    ChatMessage1.
                    setSender(relatedSender1);
                }
            
                const relatedSender2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage2 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatMessage2?.setSender)
                {
                    await
                    ChatMessage2.
                    setSender(relatedSender2);
                }
            
                const relatedSender3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage3 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatMessage3?.setSender)
                {
                    await
                    ChatMessage3.
                    setSender(relatedSender3);
                }
            
                const relatedSender4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage4 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatMessage4?.setSender)
                {
                    await
                    ChatMessage4.
                    setSender(relatedSender4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAdminAuditLogWithAdmin_user() {
            
                const relatedAdmin_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog0 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AdminAuditLog0?.setAdmin_user)
                {
                    await
                    AdminAuditLog0.
                    setAdmin_user(relatedAdmin_user0);
                }
            
                const relatedAdmin_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog1 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AdminAuditLog1?.setAdmin_user)
                {
                    await
                    AdminAuditLog1.
                    setAdmin_user(relatedAdmin_user1);
                }
            
                const relatedAdmin_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog2 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AdminAuditLog2?.setAdmin_user)
                {
                    await
                    AdminAuditLog2.
                    setAdmin_user(relatedAdmin_user2);
                }
            
                const relatedAdmin_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog3 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AdminAuditLog3?.setAdmin_user)
                {
                    await
                    AdminAuditLog3.
                    setAdmin_user(relatedAdmin_user3);
                }
            
                const relatedAdmin_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog4 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AdminAuditLog4?.setAdmin_user)
                {
                    await
                    AdminAuditLog4.
                    setAdmin_user(relatedAdmin_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await UserSessions.bulkCreate(UserSessionsData);
                
            
            
                
                await Referrals.bulkCreate(ReferralsData);
                
            
            
                
                await CoinEarningRules.bulkCreate(CoinEarningRulesData);
                
            
            
                
                await CoinCodes.bulkCreate(CoinCodesData);
                
            
            
                
                await CoinCodeRedemptions.bulkCreate(CoinCodeRedemptionsData);
                
            
            
                
                await WalletTransactions.bulkCreate(WalletTransactionsData);
                
            
            
                
                await CoinConversions.bulkCreate(CoinConversionsData);
                
            
            
                
                await MembershipPlans.bulkCreate(MembershipPlansData);
                
            
            
                
                await UserMemberships.bulkCreate(UserMembershipsData);
                
            
            
                
                await ShopItems.bulkCreate(ShopItemsData);
                
            
            
                
                await ItemRedemptions.bulkCreate(ItemRedemptionsData);
                
            
            
                
                await Products.bulkCreate(ProductsData);
                
            
            
                
                await ArticleContents.bulkCreate(ArticleContentsData);
                
            
            
                
                await ComicContents.bulkCreate(ComicContentsData);
                
            
            
                
                await VideoContents.bulkCreate(VideoContentsData);
                
            
            
                
                await GameContents.bulkCreate(GameContentsData);
                
            
            
                
                await ProductPurchases.bulkCreate(ProductPurchasesData);
                
            
            
                
                await ContentConsumptions.bulkCreate(ContentConsumptionsData);
                
            
            
                
                await ChatRooms.bulkCreate(ChatRoomsData);
                
            
            
                
                await ChatMemberships.bulkCreate(ChatMembershipsData);
                
            
            
                
                await ChatMessages.bulkCreate(ChatMessagesData);
                
            
            
                
                await AppSettings.bulkCreate(AppSettingsData);
                
            
            
                
                await AdminAuditLogs.bulkCreate(AdminAuditLogsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                        
                        await associateUserSessionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReferralWithReferrer(),
                    
                
                    
                
                    
                
                    
                        
                        await associateReferralWithReferred_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCoinCodeRedemptionWithCoin_code(),
                    
                
                    
                        
                        await associateCoinCodeRedemptionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateWalletTransactionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCoinConversionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserMembershipWithUser(),
                    
                
                    
                        
                        await associateUserMembershipWithMembership_plan(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateItemRedemptionWithUser(),
                    
                
                    
                        
                        await associateItemRedemptionWithShop_item(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProductWithCreated_by_user(),
                    
                
            
                
                
                    
                        
                        await associateArticleContentWithProduct(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateComicContentWithProduct(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateVideoContentWithProduct(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateGameContentWithProduct(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProductPurchasWithUser(),
                    
                
                    
                        
                        await associateProductPurchasWithProduct(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateContentConsumptionWithUser(),
                    
                
                    
                        
                        await associateContentConsumptionWithProduct(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateChatRoomWithCreated_by_user(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateChatMembershipWithChat_room(),
                    
                
                    
                        
                        await associateChatMembershipWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateChatMessageWithChat_room(),
                    
                
                    
                        
                        await associateChatMessageWithSender(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAdminAuditLogWithAdmin_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('user_sessions', null, {});
            
            
            await queryInterface.bulkDelete('referrals', null, {});
            
            
            await queryInterface.bulkDelete('coin_earning_rules', null, {});
            
            
            await queryInterface.bulkDelete('coin_codes', null, {});
            
            
            await queryInterface.bulkDelete('coin_code_redemptions', null, {});
            
            
            await queryInterface.bulkDelete('wallet_transactions', null, {});
            
            
            await queryInterface.bulkDelete('coin_conversions', null, {});
            
            
            await queryInterface.bulkDelete('membership_plans', null, {});
            
            
            await queryInterface.bulkDelete('user_memberships', null, {});
            
            
            await queryInterface.bulkDelete('shop_items', null, {});
            
            
            await queryInterface.bulkDelete('item_redemptions', null, {});
            
            
            await queryInterface.bulkDelete('products', null, {});
            
            
            await queryInterface.bulkDelete('article_contents', null, {});
            
            
            await queryInterface.bulkDelete('comic_contents', null, {});
            
            
            await queryInterface.bulkDelete('video_contents', null, {});
            
            
            await queryInterface.bulkDelete('game_contents', null, {});
            
            
            await queryInterface.bulkDelete('product_purchases', null, {});
            
            
            await queryInterface.bulkDelete('content_consumptions', null, {});
            
            
            await queryInterface.bulkDelete('chat_rooms', null, {});
            
            
            await queryInterface.bulkDelete('chat_memberships', null, {});
            
            
            await queryInterface.bulkDelete('chat_messages', null, {});
            
            
            await queryInterface.bulkDelete('app_settings', null, {});
            
            
            await queryInterface.bulkDelete('admin_audit_logs', null, {});
            
        
    },
};