





















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






const Publishers = db.publishers;

const Authors = db.authors;

const Genres = db.genres;

const Books = db.books;

const UserLibraryItems = db.user_library_items;

const Bookmarks = db.bookmarks;

const Notes = db.notes;

const CameraScanSessions = db.camera_scan_sessions;

const CoinLedgerEntries = db.coin_ledger_entries;

const WithdrawalRequests = db.withdrawal_requests;

const PaymentTransactions = db.payment_transactions;

const DailyLoginRewards = db.daily_login_rewards;

const ReadingStreaks = db.reading_streaks;

const AchievementDefinitions = db.achievement_definitions;

const UserAchievements = db.user_achievements;

const RankTiers = db.rank_tiers;

const UserRanks = db.user_ranks;

const ChallengeDefinitions = db.challenge_definitions;

const UserChallenges = db.user_challenges;

const QuizDefinitions = db.quiz_definitions;

const QuizQuestions = db.quiz_questions;

const QuizAnswerChoices = db.quiz_answer_choices;

const QuizAttempts = db.quiz_attempts;

const Friendships = db.friendships;

const BookClubs = db.book_clubs;

const BookClubMemberships = db.book_club_memberships;

const ClubChatMessages = db.club_chat_messages;

const ReadingCircleEvents = db.reading_circle_events;

const RecommendationEvents = db.recommendation_events;

const PushNotifications = db.push_notifications;

const FraudFlags = db.fraud_flags;

const KycVerifications = db.kyc_verifications;

const UserUploads = db.user_uploads;







const PublishersData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "website_url": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "website_url": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "website_url": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "website_url": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "website_url": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
];



const AuthorsData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "bio": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "website_url": "Marie Curie",
            
        
    
        
        
            
                "primary_language": "uz",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "bio": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "website_url": "Ada Lovelace",
            
        
    
        
        
            
                "primary_language": "en",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "bio": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "website_url": "Alan Turing",
            
        
    
        
        
            
                "primary_language": "ru",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "bio": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "website_url": "Grace Hopper",
            
        
    
        
        
            
                "primary_language": "en",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "bio": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "website_url": "Grace Hopper",
            
        
    
        
        
            
                "primary_language": "en",
            
        
    
    },
    
];



const GenresData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
];



const BooksData = [
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "subtitle": "Marie Curie",
            
        
    
        
        
            
                "isbn": "Ada Lovelace",
            
        
    
        
        
            
                "language": "uz",
            
        
    
        
        
            
                "format": "physical_reference",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "page_count": 9,
            
        
    
        
        
            
                "word_count": 6,
            
        
    
        
        
            
                "duration_seconds": 1,
            
        
    
        
        
            
                "difficulty_score": 1.28,
            
        
    
        
        
            
                "popularity_score": 3.39,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "subtitle": "Marie Curie",
            
        
    
        
        
            
                "isbn": "Grace Hopper",
            
        
    
        
        
            
                "language": "en",
            
        
    
        
        
            
                "format": "ebook",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "page_count": 5,
            
        
    
        
        
            
                "word_count": 7,
            
        
    
        
        
            
                "duration_seconds": 8,
            
        
    
        
        
            
                "difficulty_score": 8.43,
            
        
    
        
        
            
                "popularity_score": 7.18,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "subtitle": "Marie Curie",
            
        
    
        
        
            
                "isbn": "Marie Curie",
            
        
    
        
        
            
                "language": "en",
            
        
    
        
        
            
                "format": "audiobook",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "page_count": 7,
            
        
    
        
        
            
                "word_count": 1,
            
        
    
        
        
            
                "duration_seconds": 3,
            
        
    
        
        
            
                "difficulty_score": 7.79,
            
        
    
        
        
            
                "popularity_score": 7.36,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "subtitle": "Marie Curie",
            
        
    
        
        
            
                "isbn": "Marie Curie",
            
        
    
        
        
            
                "language": "en",
            
        
    
        
        
            
                "format": "audiobook",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "page_count": 5,
            
        
    
        
        
            
                "word_count": 7,
            
        
    
        
        
            
                "duration_seconds": 1,
            
        
    
        
        
            
                "difficulty_score": 4.48,
            
        
    
        
        
            
                "popularity_score": 3.08,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "subtitle": "Marie Curie",
            
        
    
        
        
            
                "isbn": "Alan Turing",
            
        
    
        
        
            
                "language": "en",
            
        
    
        
        
            
                "format": "audiobook",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "page_count": 8,
            
        
    
        
        
            
                "word_count": 1,
            
        
    
        
        
            
                "duration_seconds": 4,
            
        
    
        
        
            
                "difficulty_score": 6.58,
            
        
    
        
        
            
                "popularity_score": 8.57,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const UserLibraryItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "library",
            
        
    
        
        
            
                "status": "saved",
            
        
    
        
        
            
                "offline_downloaded": false,
            
        
    
        
        
            
                "downloaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "progress_percent": 5.75,
            
        
    
        
        
            
                "current_location": 8,
            
        
    
        
        
            
                "last_opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "scan_claim",
            
        
    
        
        
            
                "status": "saved",
            
        
    
        
        
            
                "offline_downloaded": true,
            
        
    
        
        
            
                "downloaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "progress_percent": 9.61,
            
        
    
        
        
            
                "current_location": 9,
            
        
    
        
        
            
                "last_opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "scan_claim",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "offline_downloaded": false,
            
        
    
        
        
            
                "downloaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "progress_percent": 5.08,
            
        
    
        
        
            
                "current_location": 3,
            
        
    
        
        
            
                "last_opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "scan_claim",
            
        
    
        
        
            
                "status": "saved",
            
        
    
        
        
            
                "offline_downloaded": true,
            
        
    
        
        
            
                "downloaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "progress_percent": 7.07,
            
        
    
        
        
            
                "current_location": 3,
            
        
    
        
        
            
                "last_opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "scan_claim",
            
        
    
        
        
            
                "status": "saved",
            
        
    
        
        
            
                "offline_downloaded": true,
            
        
    
        
        
            
                "downloaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "progress_percent": 2.31,
            
        
    
        
        
            
                "current_location": 2,
            
        
    
        
        
            
                "last_opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
];



const BookmarksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 9,
            
        
    
        
        
            
                "label": "Ada Lovelace",
            
        
    
        
        
            
                "added_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 4,
            
        
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "added_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 3,
            
        
    
        
        
            
                "label": "Alan Turing",
            
        
    
        
        
            
                "added_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 4,
            
        
    
        
        
            
                "label": "Alan Turing",
            
        
    
        
        
            
                "added_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 4,
            
        
    
        
        
            
                "label": "Marie Curie",
            
        
    
        
        
            
                "added_at": new Date(Date.now()),
            
        
    
    },
    
];



const NotesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 8,
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "content": "Ada Lovelace",
            
        
    
        
        
            
                "is_private": false,
            
        
    
        
        
            
                "noted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 7,
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "content": "Ada Lovelace",
            
        
    
        
        
            
                "is_private": false,
            
        
    
        
        
            
                "noted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 2,
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                "is_private": true,
            
        
    
        
        
            
                "noted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 1,
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "is_private": true,
            
        
    
        
        
            
                "noted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "location": 7,
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "is_private": false,
            
        
    
        
        
            
                "noted_at": new Date(Date.now()),
            
        
    
    },
    
];



const CameraScanSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "scan_type": "shelf",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "frames_analyzed": 3,
            
        
    
        
        
            
                "pages_detected": 8,
            
        
    
        
        
            
                "confidence_score": 4.26,
            
        
    
        
        
            
                "page_turning_detected": false,
            
        
    
        
        
            
                "duplicate_page_detected": true,
            
        
    
        
        
            
                "fraud_reason": "Grace Hopper",
            
        
    
        
        
            
                "coins_awarded": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "scan_type": "page",
            
        
    
        
        
            
                "status": "started",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "frames_analyzed": 1,
            
        
    
        
        
            
                "pages_detected": 3,
            
        
    
        
        
            
                "confidence_score": 5.62,
            
        
    
        
        
            
                "page_turning_detected": true,
            
        
    
        
        
            
                "duplicate_page_detected": false,
            
        
    
        
        
            
                "fraud_reason": "Alan Turing",
            
        
    
        
        
            
                "coins_awarded": 9,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "scan_type": "shelf",
            
        
    
        
        
            
                "status": "started",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "frames_analyzed": 9,
            
        
    
        
        
            
                "pages_detected": 1,
            
        
    
        
        
            
                "confidence_score": 0.24,
            
        
    
        
        
            
                "page_turning_detected": false,
            
        
    
        
        
            
                "duplicate_page_detected": false,
            
        
    
        
        
            
                "fraud_reason": "Marie Curie",
            
        
    
        
        
            
                "coins_awarded": 3,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "scan_type": "page",
            
        
    
        
        
            
                "status": "verifying",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "frames_analyzed": 5,
            
        
    
        
        
            
                "pages_detected": 4,
            
        
    
        
        
            
                "confidence_score": 9.47,
            
        
    
        
        
            
                "page_turning_detected": false,
            
        
    
        
        
            
                "duplicate_page_detected": false,
            
        
    
        
        
            
                "fraud_reason": "Grace Hopper",
            
        
    
        
        
            
                "coins_awarded": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "scan_type": "shelf",
            
        
    
        
        
            
                "status": "flagged",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "frames_analyzed": 8,
            
        
    
        
        
            
                "pages_detected": 3,
            
        
    
        
        
            
                "confidence_score": 6.5,
            
        
    
        
        
            
                "page_turning_detected": false,
            
        
    
        
        
            
                "duplicate_page_detected": true,
            
        
    
        
        
            
                "fraud_reason": "Grace Hopper",
            
        
    
        
        
            
                "coins_awarded": 5,
            
        
    
    },
    
];



const CoinLedgerEntriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "reversal",
            
        
    
        
        
            
                "reason": "admin_adjustment",
            
        
    
        
        
            
                "amount_coins": 3,
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "reversal",
            
        
    
        
        
            
                "reason": "streak_bonus",
            
        
    
        
        
            
                "amount_coins": 7,
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "adjustment",
            
        
    
        
        
            
                "reason": "daily_login",
            
        
    
        
        
            
                "amount_coins": 2,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "spend",
            
        
    
        
        
            
                "reason": "streak_bonus",
            
        
    
        
        
            
                "amount_coins": 4,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "reversal",
            
        
    
        
        
            
                "reason": "ebook_read",
            
        
    
        
        
            
                "amount_coins": 1,
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const WithdrawalRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "coins_amount": 4,
            
        
    
        
        
            
                "cash_amount_uzs": 0.93,
            
        
    
        
        
            
                "payout_method": "bank_transfer",
            
        
    
        
        
            
                "payout_destination": "Alan Turing",
            
        
    
        
        
            
                "provider_reference": "Ada Lovelace",
            
        
    
        
        
            
                "admin_note": "Grace Hopper",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "coins_amount": 2,
            
        
    
        
        
            
                "cash_amount_uzs": 8.19,
            
        
    
        
        
            
                "payout_method": "e_wallet",
            
        
    
        
        
            
                "payout_destination": "Alan Turing",
            
        
    
        
        
            
                "provider_reference": "Marie Curie",
            
        
    
        
        
            
                "admin_note": "Grace Hopper",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "coins_amount": 3,
            
        
    
        
        
            
                "cash_amount_uzs": 0.66,
            
        
    
        
        
            
                "payout_method": "bank_transfer",
            
        
    
        
        
            
                "payout_destination": "Alan Turing",
            
        
    
        
        
            
                "provider_reference": "Grace Hopper",
            
        
    
        
        
            
                "admin_note": "Grace Hopper",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "coins_amount": 7,
            
        
    
        
        
            
                "cash_amount_uzs": 7.64,
            
        
    
        
        
            
                "payout_method": "e_wallet",
            
        
    
        
        
            
                "payout_destination": "Alan Turing",
            
        
    
        
        
            
                "provider_reference": "Alan Turing",
            
        
    
        
        
            
                "admin_note": "Marie Curie",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "coins_amount": 4,
            
        
    
        
        
            
                "cash_amount_uzs": 0.7,
            
        
    
        
        
            
                "payout_method": "e_wallet",
            
        
    
        
        
            
                "payout_destination": "Alan Turing",
            
        
    
        
        
            
                "provider_reference": "Alan Turing",
            
        
    
        
        
            
                "admin_note": "Alan Turing",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
];



const PaymentTransactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "initiated",
            
        
    
        
        
            
                "provider": "paynet",
            
        
    
        
        
            
                "amount_uzs": 0.19,
            
        
    
        
        
            
                "provider_transaction_reference": "Ada Lovelace",
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "finalized_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "succeeded",
            
        
    
        
        
            
                "provider": "payme",
            
        
    
        
        
            
                "amount_uzs": 3.99,
            
        
    
        
        
            
                "provider_transaction_reference": "Grace Hopper",
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "finalized_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "provider": "apelsin",
            
        
    
        
        
            
                "amount_uzs": 1.41,
            
        
    
        
        
            
                "provider_transaction_reference": "Ada Lovelace",
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "finalized_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "provider": "manual",
            
        
    
        
        
            
                "amount_uzs": 0.65,
            
        
    
        
        
            
                "provider_transaction_reference": "Ada Lovelace",
            
        
    
        
        
            
                "failure_reason": "Ada Lovelace",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "finalized_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "provider": "manual",
            
        
    
        
        
            
                "amount_uzs": 9.92,
            
        
    
        
        
            
                "provider_transaction_reference": "Alan Turing",
            
        
    
        
        
            
                "failure_reason": "Ada Lovelace",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "finalized_at": new Date(Date.now()),
            
        
    
    },
    
];



const DailyLoginRewardsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 6,
            
        
    
        
        
            
                "streak_day": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 7,
            
        
    
        
        
            
                "streak_day": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 1,
            
        
    
        
        
            
                "streak_day": 9,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 9,
            
        
    
        
        
            
                "streak_day": 9,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rewarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 4,
            
        
    
        
        
            
                "streak_day": 7,
            
        
    
    },
    
];



const ReadingStreaksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_streak_days": 3,
            
        
    
        
        
            
                "best_streak_days": 7,
            
        
    
        
        
            
                "last_streak_date": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_streak_days": 6,
            
        
    
        
        
            
                "best_streak_days": 7,
            
        
    
        
        
            
                "last_streak_date": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_streak_days": 8,
            
        
    
        
        
            
                "best_streak_days": 8,
            
        
    
        
        
            
                "last_streak_date": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_streak_days": 7,
            
        
    
        
        
            
                "best_streak_days": 3,
            
        
    
        
        
            
                "last_streak_date": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_streak_days": 7,
            
        
    
        
        
            
                "best_streak_days": 2,
            
        
    
        
        
            
                "last_streak_date": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
    },
    
];



const AchievementDefinitionsData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "category": "streak",
            
        
    
        
        
            
                "rarity": "legendary",
            
        
    
        
        
            
                "target_value": 5,
            
        
    
        
        
            
                "metric": "streak_days",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "category": "coins",
            
        
    
        
        
            
                "rarity": "legendary",
            
        
    
        
        
            
                "target_value": 8,
            
        
    
        
        
            
                "metric": "challenges_completed",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "category": "social",
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                "target_value": 5,
            
        
    
        
        
            
                "metric": "quizzes_passed",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "category": "challenge",
            
        
    
        
        
            
                "rarity": "epic",
            
        
    
        
        
            
                "target_value": 7,
            
        
    
        
        
            
                "metric": "minutes_read",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "category": "reading",
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                "target_value": 7,
            
        
    
        
        
            
                "metric": "streak_days",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
];



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



const RankTiersData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "min_points": 2,
            
        
    
        
        
            
                "max_points": 6,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "min_points": 9,
            
        
    
        
        
            
                "max_points": 9,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "min_points": 4,
            
        
    
        
        
            
                "max_points": 5,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "min_points": 7,
            
        
    
        
        
            
                "max_points": 8,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "min_points": 8,
            
        
    
        
        
            
                "max_points": 6,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
];



const UserRanksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank_points": 1,
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank_points": 8,
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank_points": 7,
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank_points": 1,
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank_points": 5,
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
    },
    
];



const ChallengeDefinitionsData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "challenge_type": "read_books",
            
        
    
        
        
            
                "target_value": 5,
            
        
    
        
        
            
                "reward_coins": 3,
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "challenge_type": "scan_books",
            
        
    
        
        
            
                "target_value": 7,
            
        
    
        
        
            
                "reward_coins": 3,
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "status": "ended",
            
        
    
        
        
            
                "challenge_type": "complete_quizzes",
            
        
    
        
        
            
                "target_value": 1,
            
        
    
        
        
            
                "reward_coins": 9,
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "challenge_type": "read_minutes",
            
        
    
        
        
            
                "target_value": 8,
            
        
    
        
        
            
                "reward_coins": 8,
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "challenge_type": "read_minutes",
            
        
    
        
        
            
                "target_value": 5,
            
        
    
        
        
            
                "reward_coins": 5,
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
    },
    
];



const UserChallengesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "progress_value": 6,
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "joined",
            
        
    
        
        
            
                "progress_value": 8,
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 8,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "progress_value": 1,
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "joined",
            
        
    
        
        
            
                "progress_value": 7,
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "progress_value": 7,
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 6,
            
        
    
    },
    
];



const QuizDefinitionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "question_count": 1,
            
        
    
        
        
            
                "time_limit_seconds": 8,
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "question_count": 3,
            
        
    
        
        
            
                "time_limit_seconds": 1,
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "difficulty": "easy",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "question_count": 1,
            
        
    
        
        
            
                "time_limit_seconds": 9,
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "difficulty": "easy",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "question_count": 4,
            
        
    
        
        
            
                "time_limit_seconds": 1,
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "difficulty": "hard",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "question_count": 6,
            
        
    
        
        
            
                "time_limit_seconds": 2,
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
    },
    
];



const QuizQuestionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Alan Turing",
            
        
    
        
        
            
                "question_type": "multiple_choice",
            
        
    
        
        
            
                "explanation": "Grace Hopper",
            
        
    
        
        
            
                "order_index": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Alan Turing",
            
        
    
        
        
            
                "question_type": "true_false",
            
        
    
        
        
            
                "explanation": "Marie Curie",
            
        
    
        
        
            
                "order_index": 9,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Alan Turing",
            
        
    
        
        
            
                "question_type": "single_choice",
            
        
    
        
        
            
                "explanation": "Ada Lovelace",
            
        
    
        
        
            
                "order_index": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Marie Curie",
            
        
    
        
        
            
                "question_type": "true_false",
            
        
    
        
        
            
                "explanation": "Grace Hopper",
            
        
    
        
        
            
                "order_index": 5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Ada Lovelace",
            
        
    
        
        
            
                "question_type": "true_false",
            
        
    
        
        
            
                "explanation": "Grace Hopper",
            
        
    
        
        
            
                "order_index": 7,
            
        
    
    },
    
];



const QuizAnswerChoicesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "choice_text": "Marie Curie",
            
        
    
        
        
            
                "is_correct": true,
            
        
    
        
        
            
                "order_index": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "choice_text": "Ada Lovelace",
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "order_index": 9,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "choice_text": "Marie Curie",
            
        
    
        
        
            
                "is_correct": false,
            
        
    
        
        
            
                "order_index": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "choice_text": "Grace Hopper",
            
        
    
        
        
            
                "is_correct": true,
            
        
    
        
        
            
                "order_index": 5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "choice_text": "Marie Curie",
            
        
    
        
        
            
                "is_correct": true,
            
        
    
        
        
            
                "order_index": 9,
            
        
    
    },
    
];



const QuizAttemptsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "score_percent": 1,
            
        
    
        
        
            
                "correct_count": 6,
            
        
    
        
        
            
                "total_count": 9,
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 9,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "score_percent": 6,
            
        
    
        
        
            
                "correct_count": 6,
            
        
    
        
        
            
                "total_count": 5,
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                "score_percent": 9,
            
        
    
        
        
            
                "correct_count": 9,
            
        
    
        
        
            
                "total_count": 1,
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 4,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "started",
            
        
    
        
        
            
                "score_percent": 1,
            
        
    
        
        
            
                "correct_count": 1,
            
        
    
        
        
            
                "total_count": 4,
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "passed",
            
        
    
        
        
            
                "score_percent": 3,
            
        
    
        
        
            
                "correct_count": 7,
            
        
    
        
        
            
                "total_count": 5,
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "coins_awarded": 4,
            
        
    
    },
    
];



const FriendshipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "declined",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "blocked",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "declined",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "declined",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "blocked",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
];



const BookClubsData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
    },
    
];



const BookClubMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "owner",
            
        
    
        
        
            
                "status": "left",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "moderator",
            
        
    
        
        
            
                "status": "banned",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "moderator",
            
        
    
        
        
            
                "status": "invited",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "owner",
            
        
    
        
        
            
                "status": "invited",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "moderator",
            
        
    
        
        
            
                "status": "joined",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
];



const ClubChatMessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_text": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_deleted": true,
            
        
    
    },
    
    {
    
        
        
            
                // 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()),
            
        
    
        
        
            
                "is_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()),
            
        
    
        
        
            
                "is_deleted": true,
            
        
    
    },
    
    {
    
        
        
            
                // 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()),
            
        
    
        
        
            
                "is_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()),
            
        
    
        
        
            
                "is_deleted": false,
            
        
    
    },
    
];



const ReadingCircleEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "agenda": "Marie Curie",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "meeting_link": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "agenda": "Marie Curie",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "meeting_link": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "agenda": "Ada Lovelace",
            
        
    
        
        
            
                "status": "ongoing",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "meeting_link": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "agenda": "Marie Curie",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "meeting_link": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "agenda": "Grace Hopper",
            
        
    
        
        
            
                "status": "scheduled",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "meeting_link": "Alan Turing",
            
        
    
    },
    
];



const RecommendationEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "club",
            
        
    
        
        
            
                "score": 9.48,
            
        
    
        
        
            
                "explanation": "Ada Lovelace",
            
        
    
        
        
            
                "recommended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "club",
            
        
    
        
        
            
                "score": 3.81,
            
        
    
        
        
            
                "explanation": "Grace Hopper",
            
        
    
        
        
            
                "recommended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "ai",
            
        
    
        
        
            
                "score": 9.99,
            
        
    
        
        
            
                "explanation": "Grace Hopper",
            
        
    
        
        
            
                "recommended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "ai",
            
        
    
        
        
            
                "score": 0.32,
            
        
    
        
        
            
                "explanation": "Alan Turing",
            
        
    
        
        
            
                "recommended_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "source": "editorial",
            
        
    
        
        
            
                "score": 4.18,
            
        
    
        
        
            
                "explanation": "Ada Lovelace",
            
        
    
        
        
            
                "recommended_at": new Date(Date.now()),
            
        
    
    },
    
];



const PushNotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "channel": "email",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "deep_link": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "channel": "email",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "deep_link": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "channel": "email",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "deep_link": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "channel": "in_app",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "deep_link": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "channel": "in_app",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "deep_link": "Alan Turing",
            
        
    
    },
    
];



const FraudFlagsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "severity": "critical",
            
        
    
        
        
            
                "status": "dismissed",
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "flagged_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "severity": "medium",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                "flagged_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "severity": "high",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "flagged_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "severity": "high",
            
        
    
        
        
            
                "status": "investigating",
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                "flagged_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "severity": "high",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "reason": "Ada Lovelace",
            
        
    
        
        
            
                "flagged_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
];



const KycVerificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "document_type": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "full_name_on_document": "Alan Turing",
            
        
    
        
        
            
                "document_number": "Marie Curie",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "document_type": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "full_name_on_document": "Grace Hopper",
            
        
    
        
        
            
                "document_number": "Alan Turing",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_note": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "not_started",
            
        
    
        
        
            
                "document_type": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "full_name_on_document": "Marie Curie",
            
        
    
        
        
            
                "document_number": "Marie Curie",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "document_type": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "full_name_on_document": "Grace Hopper",
            
        
    
        
        
            
                "document_number": "Ada Lovelace",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_note": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "document_type": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "full_name_on_document": "Ada Lovelace",
            
        
    
        
        
            
                "document_number": "Grace Hopper",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_note": "Ada Lovelace",
            
        
    
    },
    
];



const UserUploadsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "content_type": "document",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rejection_reason": "Ada Lovelace",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "content_type": "document",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rejection_reason": "Marie Curie",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                "content_type": "document",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rejection_reason": "Grace Hopper",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "content_type": "audio",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rejection_reason": "Grace Hopper",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "status": "uploaded",
            
        
    
        
        
            
                "content_type": "ebook",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rejection_reason": "Marie Curie",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBookWithPublisher() {
            
                const relatedPublisher0 = await Publishers.findOne({
                    offset: Math.floor(Math.random() * (await Publishers.count())),
                });
                const Book0 = await Books.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Book0?.setPublisher)
                {
                    await
                    Book0.
                    setPublisher(relatedPublisher0);
                }
            
                const relatedPublisher1 = await Publishers.findOne({
                    offset: Math.floor(Math.random() * (await Publishers.count())),
                });
                const Book1 = await Books.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Book1?.setPublisher)
                {
                    await
                    Book1.
                    setPublisher(relatedPublisher1);
                }
            
                const relatedPublisher2 = await Publishers.findOne({
                    offset: Math.floor(Math.random() * (await Publishers.count())),
                });
                const Book2 = await Books.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Book2?.setPublisher)
                {
                    await
                    Book2.
                    setPublisher(relatedPublisher2);
                }
            
                const relatedPublisher3 = await Publishers.findOne({
                    offset: Math.floor(Math.random() * (await Publishers.count())),
                });
                const Book3 = await Books.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Book3?.setPublisher)
                {
                    await
                    Book3.
                    setPublisher(relatedPublisher3);
                }
            
                const relatedPublisher4 = await Publishers.findOne({
                    offset: Math.floor(Math.random() * (await Publishers.count())),
                });
                const Book4 = await Books.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Book4?.setPublisher)
                {
                    await
                    Book4.
                    setPublisher(relatedPublisher4);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateUserLibraryItemWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLibraryItem0 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserLibraryItem0?.setUser)
                {
                    await
                    UserLibraryItem0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLibraryItem1 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserLibraryItem1?.setUser)
                {
                    await
                    UserLibraryItem1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLibraryItem2 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserLibraryItem2?.setUser)
                {
                    await
                    UserLibraryItem2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLibraryItem3 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserLibraryItem3?.setUser)
                {
                    await
                    UserLibraryItem3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLibraryItem4 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserLibraryItem4?.setUser)
                {
                    await
                    UserLibraryItem4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateUserLibraryItemWithBook() {
            
                const relatedBook0 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const UserLibraryItem0 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserLibraryItem0?.setBook)
                {
                    await
                    UserLibraryItem0.
                    setBook(relatedBook0);
                }
            
                const relatedBook1 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const UserLibraryItem1 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserLibraryItem1?.setBook)
                {
                    await
                    UserLibraryItem1.
                    setBook(relatedBook1);
                }
            
                const relatedBook2 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const UserLibraryItem2 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserLibraryItem2?.setBook)
                {
                    await
                    UserLibraryItem2.
                    setBook(relatedBook2);
                }
            
                const relatedBook3 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const UserLibraryItem3 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserLibraryItem3?.setBook)
                {
                    await
                    UserLibraryItem3.
                    setBook(relatedBook3);
                }
            
                const relatedBook4 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const UserLibraryItem4 = await UserLibraryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserLibraryItem4?.setBook)
                {
                    await
                    UserLibraryItem4.
                    setBook(relatedBook4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBookmarkWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Bookmark0 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Bookmark0?.setUser)
                {
                    await
                    Bookmark0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Bookmark1 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Bookmark1?.setUser)
                {
                    await
                    Bookmark1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Bookmark2 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Bookmark2?.setUser)
                {
                    await
                    Bookmark2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Bookmark3 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Bookmark3?.setUser)
                {
                    await
                    Bookmark3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Bookmark4 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Bookmark4?.setUser)
                {
                    await
                    Bookmark4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateBookmarkWithBook() {
            
                const relatedBook0 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Bookmark0 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Bookmark0?.setBook)
                {
                    await
                    Bookmark0.
                    setBook(relatedBook0);
                }
            
                const relatedBook1 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Bookmark1 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Bookmark1?.setBook)
                {
                    await
                    Bookmark1.
                    setBook(relatedBook1);
                }
            
                const relatedBook2 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Bookmark2 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Bookmark2?.setBook)
                {
                    await
                    Bookmark2.
                    setBook(relatedBook2);
                }
            
                const relatedBook3 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Bookmark3 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Bookmark3?.setBook)
                {
                    await
                    Bookmark3.
                    setBook(relatedBook3);
                }
            
                const relatedBook4 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Bookmark4 = await Bookmarks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Bookmark4?.setBook)
                {
                    await
                    Bookmark4.
                    setBook(relatedBook4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateNoteWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Note0 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Note0?.setUser)
                {
                    await
                    Note0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Note1 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Note1?.setUser)
                {
                    await
                    Note1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Note2 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Note2?.setUser)
                {
                    await
                    Note2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Note3 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Note3?.setUser)
                {
                    await
                    Note3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Note4 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Note4?.setUser)
                {
                    await
                    Note4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateNoteWithBook() {
            
                const relatedBook0 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Note0 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Note0?.setBook)
                {
                    await
                    Note0.
                    setBook(relatedBook0);
                }
            
                const relatedBook1 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Note1 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Note1?.setBook)
                {
                    await
                    Note1.
                    setBook(relatedBook1);
                }
            
                const relatedBook2 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Note2 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Note2?.setBook)
                {
                    await
                    Note2.
                    setBook(relatedBook2);
                }
            
                const relatedBook3 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Note3 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Note3?.setBook)
                {
                    await
                    Note3.
                    setBook(relatedBook3);
                }
            
                const relatedBook4 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const Note4 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Note4?.setBook)
                {
                    await
                    Note4.
                    setBook(relatedBook4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCameraScanSessionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CameraScanSession0 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CameraScanSession0?.setUser)
                {
                    await
                    CameraScanSession0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CameraScanSession1 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CameraScanSession1?.setUser)
                {
                    await
                    CameraScanSession1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CameraScanSession2 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CameraScanSession2?.setUser)
                {
                    await
                    CameraScanSession2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CameraScanSession3 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CameraScanSession3?.setUser)
                {
                    await
                    CameraScanSession3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CameraScanSession4 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CameraScanSession4?.setUser)
                {
                    await
                    CameraScanSession4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateCameraScanSessionWithBook() {
            
                const relatedBook0 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CameraScanSession0 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CameraScanSession0?.setBook)
                {
                    await
                    CameraScanSession0.
                    setBook(relatedBook0);
                }
            
                const relatedBook1 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CameraScanSession1 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CameraScanSession1?.setBook)
                {
                    await
                    CameraScanSession1.
                    setBook(relatedBook1);
                }
            
                const relatedBook2 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CameraScanSession2 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CameraScanSession2?.setBook)
                {
                    await
                    CameraScanSession2.
                    setBook(relatedBook2);
                }
            
                const relatedBook3 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CameraScanSession3 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CameraScanSession3?.setBook)
                {
                    await
                    CameraScanSession3.
                    setBook(relatedBook3);
                }
            
                const relatedBook4 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CameraScanSession4 = await CameraScanSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CameraScanSession4?.setBook)
                {
                    await
                    CameraScanSession4.
                    setBook(relatedBook4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCoinLedgerEntryWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinLedgerEntry0 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoinLedgerEntry0?.setUser)
                {
                    await
                    CoinLedgerEntry0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinLedgerEntry1 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoinLedgerEntry1?.setUser)
                {
                    await
                    CoinLedgerEntry1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinLedgerEntry2 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoinLedgerEntry2?.setUser)
                {
                    await
                    CoinLedgerEntry2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinLedgerEntry3 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoinLedgerEntry3?.setUser)
                {
                    await
                    CoinLedgerEntry3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoinLedgerEntry4 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CoinLedgerEntry4?.setUser)
                {
                    await
                    CoinLedgerEntry4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCoinLedgerEntryWithScan_session() {
            
                const relatedScan_session0 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const CoinLedgerEntry0 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoinLedgerEntry0?.setScan_session)
                {
                    await
                    CoinLedgerEntry0.
                    setScan_session(relatedScan_session0);
                }
            
                const relatedScan_session1 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const CoinLedgerEntry1 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoinLedgerEntry1?.setScan_session)
                {
                    await
                    CoinLedgerEntry1.
                    setScan_session(relatedScan_session1);
                }
            
                const relatedScan_session2 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const CoinLedgerEntry2 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoinLedgerEntry2?.setScan_session)
                {
                    await
                    CoinLedgerEntry2.
                    setScan_session(relatedScan_session2);
                }
            
                const relatedScan_session3 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const CoinLedgerEntry3 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoinLedgerEntry3?.setScan_session)
                {
                    await
                    CoinLedgerEntry3.
                    setScan_session(relatedScan_session3);
                }
            
                const relatedScan_session4 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const CoinLedgerEntry4 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CoinLedgerEntry4?.setScan_session)
                {
                    await
                    CoinLedgerEntry4.
                    setScan_session(relatedScan_session4);
                }
            
        }
        
    
        
            
            async function associateCoinLedgerEntryWithBook() {
            
                const relatedBook0 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CoinLedgerEntry0 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoinLedgerEntry0?.setBook)
                {
                    await
                    CoinLedgerEntry0.
                    setBook(relatedBook0);
                }
            
                const relatedBook1 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CoinLedgerEntry1 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoinLedgerEntry1?.setBook)
                {
                    await
                    CoinLedgerEntry1.
                    setBook(relatedBook1);
                }
            
                const relatedBook2 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CoinLedgerEntry2 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoinLedgerEntry2?.setBook)
                {
                    await
                    CoinLedgerEntry2.
                    setBook(relatedBook2);
                }
            
                const relatedBook3 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CoinLedgerEntry3 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoinLedgerEntry3?.setBook)
                {
                    await
                    CoinLedgerEntry3.
                    setBook(relatedBook3);
                }
            
                const relatedBook4 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const CoinLedgerEntry4 = await CoinLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CoinLedgerEntry4?.setBook)
                {
                    await
                    CoinLedgerEntry4.
                    setBook(relatedBook4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateWithdrawalRequestWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WithdrawalRequest0 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WithdrawalRequest0?.setUser)
                {
                    await
                    WithdrawalRequest0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WithdrawalRequest1 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WithdrawalRequest1?.setUser)
                {
                    await
                    WithdrawalRequest1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WithdrawalRequest2 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WithdrawalRequest2?.setUser)
                {
                    await
                    WithdrawalRequest2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WithdrawalRequest3 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WithdrawalRequest3?.setUser)
                {
                    await
                    WithdrawalRequest3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WithdrawalRequest4 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WithdrawalRequest4?.setUser)
                {
                    await
                    WithdrawalRequest4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePaymentTransactionWithWithdrawal_request() {
            
                const relatedWithdrawal_request0 = await WithdrawalRequests.findOne({
                    offset: Math.floor(Math.random() * (await WithdrawalRequests.count())),
                });
                const PaymentTransaction0 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentTransaction0?.setWithdrawal_request)
                {
                    await
                    PaymentTransaction0.
                    setWithdrawal_request(relatedWithdrawal_request0);
                }
            
                const relatedWithdrawal_request1 = await WithdrawalRequests.findOne({
                    offset: Math.floor(Math.random() * (await WithdrawalRequests.count())),
                });
                const PaymentTransaction1 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentTransaction1?.setWithdrawal_request)
                {
                    await
                    PaymentTransaction1.
                    setWithdrawal_request(relatedWithdrawal_request1);
                }
            
                const relatedWithdrawal_request2 = await WithdrawalRequests.findOne({
                    offset: Math.floor(Math.random() * (await WithdrawalRequests.count())),
                });
                const PaymentTransaction2 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentTransaction2?.setWithdrawal_request)
                {
                    await
                    PaymentTransaction2.
                    setWithdrawal_request(relatedWithdrawal_request2);
                }
            
                const relatedWithdrawal_request3 = await WithdrawalRequests.findOne({
                    offset: Math.floor(Math.random() * (await WithdrawalRequests.count())),
                });
                const PaymentTransaction3 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentTransaction3?.setWithdrawal_request)
                {
                    await
                    PaymentTransaction3.
                    setWithdrawal_request(relatedWithdrawal_request3);
                }
            
                const relatedWithdrawal_request4 = await WithdrawalRequests.findOne({
                    offset: Math.floor(Math.random() * (await WithdrawalRequests.count())),
                });
                const PaymentTransaction4 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentTransaction4?.setWithdrawal_request)
                {
                    await
                    PaymentTransaction4.
                    setWithdrawal_request(relatedWithdrawal_request4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDailyLoginRewardWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailyLoginReward0 = await DailyLoginRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DailyLoginReward0?.setUser)
                {
                    await
                    DailyLoginReward0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailyLoginReward1 = await DailyLoginRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DailyLoginReward1?.setUser)
                {
                    await
                    DailyLoginReward1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailyLoginReward2 = await DailyLoginRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DailyLoginReward2?.setUser)
                {
                    await
                    DailyLoginReward2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailyLoginReward3 = await DailyLoginRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DailyLoginReward3?.setUser)
                {
                    await
                    DailyLoginReward3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailyLoginReward4 = await DailyLoginRewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DailyLoginReward4?.setUser)
                {
                    await
                    DailyLoginReward4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateReadingStreakWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReadingStreak0 = await ReadingStreaks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReadingStreak0?.setUser)
                {
                    await
                    ReadingStreak0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReadingStreak1 = await ReadingStreaks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReadingStreak1?.setUser)
                {
                    await
                    ReadingStreak1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReadingStreak2 = await ReadingStreaks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReadingStreak2?.setUser)
                {
                    await
                    ReadingStreak2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReadingStreak3 = await ReadingStreaks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReadingStreak3?.setUser)
                {
                    await
                    ReadingStreak3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReadingStreak4 = await ReadingStreaks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ReadingStreak4?.setUser)
                {
                    await
                    ReadingStreak4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserAchievementWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAchievement0 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserAchievement0?.setUser)
                {
                    await
                    UserAchievement0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAchievement1 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserAchievement1?.setUser)
                {
                    await
                    UserAchievement1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAchievement2 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserAchievement2?.setUser)
                {
                    await
                    UserAchievement2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAchievement3 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserAchievement3?.setUser)
                {
                    await
                    UserAchievement3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAchievement4 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserAchievement4?.setUser)
                {
                    await
                    UserAchievement4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateUserAchievementWithAchievement_definition() {
            
                const relatedAchievement_definition0 = await AchievementDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await AchievementDefinitions.count())),
                });
                const UserAchievement0 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserAchievement0?.setAchievement_definition)
                {
                    await
                    UserAchievement0.
                    setAchievement_definition(relatedAchievement_definition0);
                }
            
                const relatedAchievement_definition1 = await AchievementDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await AchievementDefinitions.count())),
                });
                const UserAchievement1 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserAchievement1?.setAchievement_definition)
                {
                    await
                    UserAchievement1.
                    setAchievement_definition(relatedAchievement_definition1);
                }
            
                const relatedAchievement_definition2 = await AchievementDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await AchievementDefinitions.count())),
                });
                const UserAchievement2 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserAchievement2?.setAchievement_definition)
                {
                    await
                    UserAchievement2.
                    setAchievement_definition(relatedAchievement_definition2);
                }
            
                const relatedAchievement_definition3 = await AchievementDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await AchievementDefinitions.count())),
                });
                const UserAchievement3 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserAchievement3?.setAchievement_definition)
                {
                    await
                    UserAchievement3.
                    setAchievement_definition(relatedAchievement_definition3);
                }
            
                const relatedAchievement_definition4 = await AchievementDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await AchievementDefinitions.count())),
                });
                const UserAchievement4 = await UserAchievements.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserAchievement4?.setAchievement_definition)
                {
                    await
                    UserAchievement4.
                    setAchievement_definition(relatedAchievement_definition4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserRankWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRank0 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserRank0?.setUser)
                {
                    await
                    UserRank0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRank1 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserRank1?.setUser)
                {
                    await
                    UserRank1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRank2 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserRank2?.setUser)
                {
                    await
                    UserRank2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRank3 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserRank3?.setUser)
                {
                    await
                    UserRank3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRank4 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserRank4?.setUser)
                {
                    await
                    UserRank4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateUserRankWithRank_tier() {
            
                const relatedRank_tier0 = await RankTiers.findOne({
                    offset: Math.floor(Math.random() * (await RankTiers.count())),
                });
                const UserRank0 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserRank0?.setRank_tier)
                {
                    await
                    UserRank0.
                    setRank_tier(relatedRank_tier0);
                }
            
                const relatedRank_tier1 = await RankTiers.findOne({
                    offset: Math.floor(Math.random() * (await RankTiers.count())),
                });
                const UserRank1 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserRank1?.setRank_tier)
                {
                    await
                    UserRank1.
                    setRank_tier(relatedRank_tier1);
                }
            
                const relatedRank_tier2 = await RankTiers.findOne({
                    offset: Math.floor(Math.random() * (await RankTiers.count())),
                });
                const UserRank2 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserRank2?.setRank_tier)
                {
                    await
                    UserRank2.
                    setRank_tier(relatedRank_tier2);
                }
            
                const relatedRank_tier3 = await RankTiers.findOne({
                    offset: Math.floor(Math.random() * (await RankTiers.count())),
                });
                const UserRank3 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserRank3?.setRank_tier)
                {
                    await
                    UserRank3.
                    setRank_tier(relatedRank_tier3);
                }
            
                const relatedRank_tier4 = await RankTiers.findOne({
                    offset: Math.floor(Math.random() * (await RankTiers.count())),
                });
                const UserRank4 = await UserRanks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserRank4?.setRank_tier)
                {
                    await
                    UserRank4.
                    setRank_tier(relatedRank_tier4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserChallengeWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserChallenge0 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserChallenge0?.setUser)
                {
                    await
                    UserChallenge0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserChallenge1 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserChallenge1?.setUser)
                {
                    await
                    UserChallenge1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserChallenge2 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserChallenge2?.setUser)
                {
                    await
                    UserChallenge2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserChallenge3 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserChallenge3?.setUser)
                {
                    await
                    UserChallenge3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserChallenge4 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserChallenge4?.setUser)
                {
                    await
                    UserChallenge4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateUserChallengeWithChallenge_definition() {
            
                const relatedChallenge_definition0 = await ChallengeDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ChallengeDefinitions.count())),
                });
                const UserChallenge0 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserChallenge0?.setChallenge_definition)
                {
                    await
                    UserChallenge0.
                    setChallenge_definition(relatedChallenge_definition0);
                }
            
                const relatedChallenge_definition1 = await ChallengeDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ChallengeDefinitions.count())),
                });
                const UserChallenge1 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserChallenge1?.setChallenge_definition)
                {
                    await
                    UserChallenge1.
                    setChallenge_definition(relatedChallenge_definition1);
                }
            
                const relatedChallenge_definition2 = await ChallengeDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ChallengeDefinitions.count())),
                });
                const UserChallenge2 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserChallenge2?.setChallenge_definition)
                {
                    await
                    UserChallenge2.
                    setChallenge_definition(relatedChallenge_definition2);
                }
            
                const relatedChallenge_definition3 = await ChallengeDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ChallengeDefinitions.count())),
                });
                const UserChallenge3 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserChallenge3?.setChallenge_definition)
                {
                    await
                    UserChallenge3.
                    setChallenge_definition(relatedChallenge_definition3);
                }
            
                const relatedChallenge_definition4 = await ChallengeDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ChallengeDefinitions.count())),
                });
                const UserChallenge4 = await UserChallenges.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserChallenge4?.setChallenge_definition)
                {
                    await
                    UserChallenge4.
                    setChallenge_definition(relatedChallenge_definition4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateQuizDefinitionWithBook() {
            
                const relatedBook0 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const QuizDefinition0 = await QuizDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizDefinition0?.setBook)
                {
                    await
                    QuizDefinition0.
                    setBook(relatedBook0);
                }
            
                const relatedBook1 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const QuizDefinition1 = await QuizDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizDefinition1?.setBook)
                {
                    await
                    QuizDefinition1.
                    setBook(relatedBook1);
                }
            
                const relatedBook2 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const QuizDefinition2 = await QuizDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizDefinition2?.setBook)
                {
                    await
                    QuizDefinition2.
                    setBook(relatedBook2);
                }
            
                const relatedBook3 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const QuizDefinition3 = await QuizDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizDefinition3?.setBook)
                {
                    await
                    QuizDefinition3.
                    setBook(relatedBook3);
                }
            
                const relatedBook4 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const QuizDefinition4 = await QuizDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (QuizDefinition4?.setBook)
                {
                    await
                    QuizDefinition4.
                    setBook(relatedBook4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateQuizQuestionWithQuiz_definition() {
            
                const relatedQuiz_definition0 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizQuestion0 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizQuestion0?.setQuiz_definition)
                {
                    await
                    QuizQuestion0.
                    setQuiz_definition(relatedQuiz_definition0);
                }
            
                const relatedQuiz_definition1 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizQuestion1 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizQuestion1?.setQuiz_definition)
                {
                    await
                    QuizQuestion1.
                    setQuiz_definition(relatedQuiz_definition1);
                }
            
                const relatedQuiz_definition2 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizQuestion2 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizQuestion2?.setQuiz_definition)
                {
                    await
                    QuizQuestion2.
                    setQuiz_definition(relatedQuiz_definition2);
                }
            
                const relatedQuiz_definition3 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizQuestion3 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizQuestion3?.setQuiz_definition)
                {
                    await
                    QuizQuestion3.
                    setQuiz_definition(relatedQuiz_definition3);
                }
            
                const relatedQuiz_definition4 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizQuestion4 = await QuizQuestions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (QuizQuestion4?.setQuiz_definition)
                {
                    await
                    QuizQuestion4.
                    setQuiz_definition(relatedQuiz_definition4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateQuizAnswerChoiceWithQuiz_question() {
            
                const relatedQuiz_question0 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizAnswerChoice0 = await QuizAnswerChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizAnswerChoice0?.setQuiz_question)
                {
                    await
                    QuizAnswerChoice0.
                    setQuiz_question(relatedQuiz_question0);
                }
            
                const relatedQuiz_question1 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizAnswerChoice1 = await QuizAnswerChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizAnswerChoice1?.setQuiz_question)
                {
                    await
                    QuizAnswerChoice1.
                    setQuiz_question(relatedQuiz_question1);
                }
            
                const relatedQuiz_question2 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizAnswerChoice2 = await QuizAnswerChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizAnswerChoice2?.setQuiz_question)
                {
                    await
                    QuizAnswerChoice2.
                    setQuiz_question(relatedQuiz_question2);
                }
            
                const relatedQuiz_question3 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizAnswerChoice3 = await QuizAnswerChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizAnswerChoice3?.setQuiz_question)
                {
                    await
                    QuizAnswerChoice3.
                    setQuiz_question(relatedQuiz_question3);
                }
            
                const relatedQuiz_question4 = await QuizQuestions.findOne({
                    offset: Math.floor(Math.random() * (await QuizQuestions.count())),
                });
                const QuizAnswerChoice4 = await QuizAnswerChoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (QuizAnswerChoice4?.setQuiz_question)
                {
                    await
                    QuizAnswerChoice4.
                    setQuiz_question(relatedQuiz_question4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateQuizAttemptWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizAttempt0 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizAttempt0?.setUser)
                {
                    await
                    QuizAttempt0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizAttempt1 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizAttempt1?.setUser)
                {
                    await
                    QuizAttempt1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizAttempt2 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizAttempt2?.setUser)
                {
                    await
                    QuizAttempt2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizAttempt3 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizAttempt3?.setUser)
                {
                    await
                    QuizAttempt3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizAttempt4 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (QuizAttempt4?.setUser)
                {
                    await
                    QuizAttempt4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateQuizAttemptWithQuiz_definition() {
            
                const relatedQuiz_definition0 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizAttempt0 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizAttempt0?.setQuiz_definition)
                {
                    await
                    QuizAttempt0.
                    setQuiz_definition(relatedQuiz_definition0);
                }
            
                const relatedQuiz_definition1 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizAttempt1 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizAttempt1?.setQuiz_definition)
                {
                    await
                    QuizAttempt1.
                    setQuiz_definition(relatedQuiz_definition1);
                }
            
                const relatedQuiz_definition2 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizAttempt2 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizAttempt2?.setQuiz_definition)
                {
                    await
                    QuizAttempt2.
                    setQuiz_definition(relatedQuiz_definition2);
                }
            
                const relatedQuiz_definition3 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizAttempt3 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuizAttempt3?.setQuiz_definition)
                {
                    await
                    QuizAttempt3.
                    setQuiz_definition(relatedQuiz_definition3);
                }
            
                const relatedQuiz_definition4 = await QuizDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await QuizDefinitions.count())),
                });
                const QuizAttempt4 = await QuizAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (QuizAttempt4?.setQuiz_definition)
                {
                    await
                    QuizAttempt4.
                    setQuiz_definition(relatedQuiz_definition4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFriendshipWithRequester() {
            
                const relatedRequester0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship0 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Friendship0?.setRequester)
                {
                    await
                    Friendship0.
                    setRequester(relatedRequester0);
                }
            
                const relatedRequester1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship1 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Friendship1?.setRequester)
                {
                    await
                    Friendship1.
                    setRequester(relatedRequester1);
                }
            
                const relatedRequester2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship2 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Friendship2?.setRequester)
                {
                    await
                    Friendship2.
                    setRequester(relatedRequester2);
                }
            
                const relatedRequester3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship3 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Friendship3?.setRequester)
                {
                    await
                    Friendship3.
                    setRequester(relatedRequester3);
                }
            
                const relatedRequester4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship4 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Friendship4?.setRequester)
                {
                    await
                    Friendship4.
                    setRequester(relatedRequester4);
                }
            
        }
        
    
        
            
            async function associateFriendshipWithAddressee() {
            
                const relatedAddressee0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship0 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Friendship0?.setAddressee)
                {
                    await
                    Friendship0.
                    setAddressee(relatedAddressee0);
                }
            
                const relatedAddressee1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship1 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Friendship1?.setAddressee)
                {
                    await
                    Friendship1.
                    setAddressee(relatedAddressee1);
                }
            
                const relatedAddressee2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship2 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Friendship2?.setAddressee)
                {
                    await
                    Friendship2.
                    setAddressee(relatedAddressee2);
                }
            
                const relatedAddressee3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship3 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Friendship3?.setAddressee)
                {
                    await
                    Friendship3.
                    setAddressee(relatedAddressee3);
                }
            
                const relatedAddressee4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Friendship4 = await Friendships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Friendship4?.setAddressee)
                {
                    await
                    Friendship4.
                    setAddressee(relatedAddressee4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBookClubWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClub0 = await BookClubs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BookClub0?.setOwner)
                {
                    await
                    BookClub0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClub1 = await BookClubs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BookClub1?.setOwner)
                {
                    await
                    BookClub1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClub2 = await BookClubs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BookClub2?.setOwner)
                {
                    await
                    BookClub2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClub3 = await BookClubs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BookClub3?.setOwner)
                {
                    await
                    BookClub3.
                    setOwner(relatedOwner3);
                }
            
                const relatedOwner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClub4 = await BookClubs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BookClub4?.setOwner)
                {
                    await
                    BookClub4.
                    setOwner(relatedOwner4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateBookClubMembershipWithBook_club() {
            
                const relatedBook_club0 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const BookClubMembership0 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BookClubMembership0?.setBook_club)
                {
                    await
                    BookClubMembership0.
                    setBook_club(relatedBook_club0);
                }
            
                const relatedBook_club1 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const BookClubMembership1 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BookClubMembership1?.setBook_club)
                {
                    await
                    BookClubMembership1.
                    setBook_club(relatedBook_club1);
                }
            
                const relatedBook_club2 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const BookClubMembership2 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BookClubMembership2?.setBook_club)
                {
                    await
                    BookClubMembership2.
                    setBook_club(relatedBook_club2);
                }
            
                const relatedBook_club3 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const BookClubMembership3 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BookClubMembership3?.setBook_club)
                {
                    await
                    BookClubMembership3.
                    setBook_club(relatedBook_club3);
                }
            
                const relatedBook_club4 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const BookClubMembership4 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BookClubMembership4?.setBook_club)
                {
                    await
                    BookClubMembership4.
                    setBook_club(relatedBook_club4);
                }
            
        }
        
    
        
            
            async function associateBookClubMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClubMembership0 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BookClubMembership0?.setUser)
                {
                    await
                    BookClubMembership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClubMembership1 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BookClubMembership1?.setUser)
                {
                    await
                    BookClubMembership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClubMembership2 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BookClubMembership2?.setUser)
                {
                    await
                    BookClubMembership2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClubMembership3 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BookClubMembership3?.setUser)
                {
                    await
                    BookClubMembership3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BookClubMembership4 = await BookClubMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BookClubMembership4?.setUser)
                {
                    await
                    BookClubMembership4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateClubChatMessageWithBook_club() {
            
                const relatedBook_club0 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ClubChatMessage0 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ClubChatMessage0?.setBook_club)
                {
                    await
                    ClubChatMessage0.
                    setBook_club(relatedBook_club0);
                }
            
                const relatedBook_club1 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ClubChatMessage1 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ClubChatMessage1?.setBook_club)
                {
                    await
                    ClubChatMessage1.
                    setBook_club(relatedBook_club1);
                }
            
                const relatedBook_club2 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ClubChatMessage2 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ClubChatMessage2?.setBook_club)
                {
                    await
                    ClubChatMessage2.
                    setBook_club(relatedBook_club2);
                }
            
                const relatedBook_club3 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ClubChatMessage3 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ClubChatMessage3?.setBook_club)
                {
                    await
                    ClubChatMessage3.
                    setBook_club(relatedBook_club3);
                }
            
                const relatedBook_club4 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ClubChatMessage4 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ClubChatMessage4?.setBook_club)
                {
                    await
                    ClubChatMessage4.
                    setBook_club(relatedBook_club4);
                }
            
        }
        
    
        
            
            async function associateClubChatMessageWithSender() {
            
                const relatedSender0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ClubChatMessage0 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ClubChatMessage0?.setSender)
                {
                    await
                    ClubChatMessage0.
                    setSender(relatedSender0);
                }
            
                const relatedSender1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ClubChatMessage1 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ClubChatMessage1?.setSender)
                {
                    await
                    ClubChatMessage1.
                    setSender(relatedSender1);
                }
            
                const relatedSender2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ClubChatMessage2 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ClubChatMessage2?.setSender)
                {
                    await
                    ClubChatMessage2.
                    setSender(relatedSender2);
                }
            
                const relatedSender3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ClubChatMessage3 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ClubChatMessage3?.setSender)
                {
                    await
                    ClubChatMessage3.
                    setSender(relatedSender3);
                }
            
                const relatedSender4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ClubChatMessage4 = await ClubChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ClubChatMessage4?.setSender)
                {
                    await
                    ClubChatMessage4.
                    setSender(relatedSender4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateReadingCircleEventWithBook_club() {
            
                const relatedBook_club0 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ReadingCircleEvent0 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReadingCircleEvent0?.setBook_club)
                {
                    await
                    ReadingCircleEvent0.
                    setBook_club(relatedBook_club0);
                }
            
                const relatedBook_club1 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ReadingCircleEvent1 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReadingCircleEvent1?.setBook_club)
                {
                    await
                    ReadingCircleEvent1.
                    setBook_club(relatedBook_club1);
                }
            
                const relatedBook_club2 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ReadingCircleEvent2 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReadingCircleEvent2?.setBook_club)
                {
                    await
                    ReadingCircleEvent2.
                    setBook_club(relatedBook_club2);
                }
            
                const relatedBook_club3 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ReadingCircleEvent3 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReadingCircleEvent3?.setBook_club)
                {
                    await
                    ReadingCircleEvent3.
                    setBook_club(relatedBook_club3);
                }
            
                const relatedBook_club4 = await BookClubs.findOne({
                    offset: Math.floor(Math.random() * (await BookClubs.count())),
                });
                const ReadingCircleEvent4 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ReadingCircleEvent4?.setBook_club)
                {
                    await
                    ReadingCircleEvent4.
                    setBook_club(relatedBook_club4);
                }
            
        }
        
    
        
            
            async function associateReadingCircleEventWithBook() {
            
                const relatedBook0 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const ReadingCircleEvent0 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReadingCircleEvent0?.setBook)
                {
                    await
                    ReadingCircleEvent0.
                    setBook(relatedBook0);
                }
            
                const relatedBook1 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const ReadingCircleEvent1 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReadingCircleEvent1?.setBook)
                {
                    await
                    ReadingCircleEvent1.
                    setBook(relatedBook1);
                }
            
                const relatedBook2 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const ReadingCircleEvent2 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReadingCircleEvent2?.setBook)
                {
                    await
                    ReadingCircleEvent2.
                    setBook(relatedBook2);
                }
            
                const relatedBook3 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const ReadingCircleEvent3 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReadingCircleEvent3?.setBook)
                {
                    await
                    ReadingCircleEvent3.
                    setBook(relatedBook3);
                }
            
                const relatedBook4 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const ReadingCircleEvent4 = await ReadingCircleEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ReadingCircleEvent4?.setBook)
                {
                    await
                    ReadingCircleEvent4.
                    setBook(relatedBook4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateRecommendationEventWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecommendationEvent0 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecommendationEvent0?.setUser)
                {
                    await
                    RecommendationEvent0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecommendationEvent1 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecommendationEvent1?.setUser)
                {
                    await
                    RecommendationEvent1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecommendationEvent2 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecommendationEvent2?.setUser)
                {
                    await
                    RecommendationEvent2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecommendationEvent3 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecommendationEvent3?.setUser)
                {
                    await
                    RecommendationEvent3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecommendationEvent4 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RecommendationEvent4?.setUser)
                {
                    await
                    RecommendationEvent4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateRecommendationEventWithBook() {
            
                const relatedBook0 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const RecommendationEvent0 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecommendationEvent0?.setBook)
                {
                    await
                    RecommendationEvent0.
                    setBook(relatedBook0);
                }
            
                const relatedBook1 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const RecommendationEvent1 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecommendationEvent1?.setBook)
                {
                    await
                    RecommendationEvent1.
                    setBook(relatedBook1);
                }
            
                const relatedBook2 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const RecommendationEvent2 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecommendationEvent2?.setBook)
                {
                    await
                    RecommendationEvent2.
                    setBook(relatedBook2);
                }
            
                const relatedBook3 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const RecommendationEvent3 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecommendationEvent3?.setBook)
                {
                    await
                    RecommendationEvent3.
                    setBook(relatedBook3);
                }
            
                const relatedBook4 = await Books.findOne({
                    offset: Math.floor(Math.random() * (await Books.count())),
                });
                const RecommendationEvent4 = await RecommendationEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RecommendationEvent4?.setBook)
                {
                    await
                    RecommendationEvent4.
                    setBook(relatedBook4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePushNotificationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushNotification0 = await PushNotifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PushNotification0?.setUser)
                {
                    await
                    PushNotification0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushNotification1 = await PushNotifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PushNotification1?.setUser)
                {
                    await
                    PushNotification1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushNotification2 = await PushNotifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PushNotification2?.setUser)
                {
                    await
                    PushNotification2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushNotification3 = await PushNotifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PushNotification3?.setUser)
                {
                    await
                    PushNotification3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushNotification4 = await PushNotifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PushNotification4?.setUser)
                {
                    await
                    PushNotification4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFraudFlagWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FraudFlag0 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FraudFlag0?.setUser)
                {
                    await
                    FraudFlag0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FraudFlag1 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FraudFlag1?.setUser)
                {
                    await
                    FraudFlag1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FraudFlag2 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FraudFlag2?.setUser)
                {
                    await
                    FraudFlag2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FraudFlag3 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FraudFlag3?.setUser)
                {
                    await
                    FraudFlag3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FraudFlag4 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FraudFlag4?.setUser)
                {
                    await
                    FraudFlag4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateFraudFlagWithScan_session() {
            
                const relatedScan_session0 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const FraudFlag0 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FraudFlag0?.setScan_session)
                {
                    await
                    FraudFlag0.
                    setScan_session(relatedScan_session0);
                }
            
                const relatedScan_session1 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const FraudFlag1 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FraudFlag1?.setScan_session)
                {
                    await
                    FraudFlag1.
                    setScan_session(relatedScan_session1);
                }
            
                const relatedScan_session2 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const FraudFlag2 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FraudFlag2?.setScan_session)
                {
                    await
                    FraudFlag2.
                    setScan_session(relatedScan_session2);
                }
            
                const relatedScan_session3 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const FraudFlag3 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FraudFlag3?.setScan_session)
                {
                    await
                    FraudFlag3.
                    setScan_session(relatedScan_session3);
                }
            
                const relatedScan_session4 = await CameraScanSessions.findOne({
                    offset: Math.floor(Math.random() * (await CameraScanSessions.count())),
                });
                const FraudFlag4 = await FraudFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FraudFlag4?.setScan_session)
                {
                    await
                    FraudFlag4.
                    setScan_session(relatedScan_session4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateKycVerificationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KycVerification0 = await KycVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KycVerification0?.setUser)
                {
                    await
                    KycVerification0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KycVerification1 = await KycVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KycVerification1?.setUser)
                {
                    await
                    KycVerification1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KycVerification2 = await KycVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KycVerification2?.setUser)
                {
                    await
                    KycVerification2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KycVerification3 = await KycVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (KycVerification3?.setUser)
                {
                    await
                    KycVerification3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const KycVerification4 = await KycVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (KycVerification4?.setUser)
                {
                    await
                    KycVerification4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserUploadWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserUpload0 = await UserUploads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserUpload0?.setUser)
                {
                    await
                    UserUpload0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserUpload1 = await UserUploads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserUpload1?.setUser)
                {
                    await
                    UserUpload1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserUpload2 = await UserUploads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserUpload2?.setUser)
                {
                    await
                    UserUpload2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserUpload3 = await UserUploads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserUpload3?.setUser)
                {
                    await
                    UserUpload3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserUpload4 = await UserUploads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserUpload4?.setUser)
                {
                    await
                    UserUpload4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Publishers.bulkCreate(PublishersData);
                
            
            
                
                await Authors.bulkCreate(AuthorsData);
                
            
            
                
                await Genres.bulkCreate(GenresData);
                
            
            
                
                await Books.bulkCreate(BooksData);
                
            
            
                
                await UserLibraryItems.bulkCreate(UserLibraryItemsData);
                
            
            
                
                await Bookmarks.bulkCreate(BookmarksData);
                
            
            
                
                await Notes.bulkCreate(NotesData);
                
            
            
                
                await CameraScanSessions.bulkCreate(CameraScanSessionsData);
                
            
            
                
                await CoinLedgerEntries.bulkCreate(CoinLedgerEntriesData);
                
            
            
                
                await WithdrawalRequests.bulkCreate(WithdrawalRequestsData);
                
            
            
                
                await PaymentTransactions.bulkCreate(PaymentTransactionsData);
                
            
            
                
                await DailyLoginRewards.bulkCreate(DailyLoginRewardsData);
                
            
            
                
                await ReadingStreaks.bulkCreate(ReadingStreaksData);
                
            
            
                
                await AchievementDefinitions.bulkCreate(AchievementDefinitionsData);
                
            
            
                
                await UserAchievements.bulkCreate(UserAchievementsData);
                
            
            
                
                await RankTiers.bulkCreate(RankTiersData);
                
            
            
                
                await UserRanks.bulkCreate(UserRanksData);
                
            
            
                
                await ChallengeDefinitions.bulkCreate(ChallengeDefinitionsData);
                
            
            
                
                await UserChallenges.bulkCreate(UserChallengesData);
                
            
            
                
                await QuizDefinitions.bulkCreate(QuizDefinitionsData);
                
            
            
                
                await QuizQuestions.bulkCreate(QuizQuestionsData);
                
            
            
                
                await QuizAnswerChoices.bulkCreate(QuizAnswerChoicesData);
                
            
            
                
                await QuizAttempts.bulkCreate(QuizAttemptsData);
                
            
            
                
                await Friendships.bulkCreate(FriendshipsData);
                
            
            
                
                await BookClubs.bulkCreate(BookClubsData);
                
            
            
                
                await BookClubMemberships.bulkCreate(BookClubMembershipsData);
                
            
            
                
                await ClubChatMessages.bulkCreate(ClubChatMessagesData);
                
            
            
                
                await ReadingCircleEvents.bulkCreate(ReadingCircleEventsData);
                
            
            
                
                await RecommendationEvents.bulkCreate(RecommendationEventsData);
                
            
            
                
                await PushNotifications.bulkCreate(PushNotificationsData);
                
            
            
                
                await FraudFlags.bulkCreate(FraudFlagsData);
                
            
            
                
                await KycVerifications.bulkCreate(KycVerificationsData);
                
            
            
                
                await UserUploads.bulkCreate(UserUploadsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBookWithPublisher(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateUserLibraryItemWithUser(),
                    
                
                    
                        
                        await associateUserLibraryItemWithBook(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBookmarkWithUser(),
                    
                
                    
                        
                        await associateBookmarkWithBook(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNoteWithUser(),
                    
                
                    
                        
                        await associateNoteWithBook(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCameraScanSessionWithUser(),
                    
                
                    
                        
                        await associateCameraScanSessionWithBook(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCoinLedgerEntryWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCoinLedgerEntryWithScan_session(),
                    
                
                    
                        
                        await associateCoinLedgerEntryWithBook(),
                    
                
            
                
                
                    
                        
                        await associateWithdrawalRequestWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePaymentTransactionWithWithdrawal_request(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDailyLoginRewardWithUser(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReadingStreakWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserAchievementWithUser(),
                    
                
                    
                        
                        await associateUserAchievementWithAchievement_definition(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserRankWithUser(),
                    
                
                    
                        
                        await associateUserRankWithRank_tier(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserChallengeWithUser(),
                    
                
                    
                        
                        await associateUserChallengeWithChallenge_definition(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQuizDefinitionWithBook(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQuizQuestionWithQuiz_definition(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQuizAnswerChoiceWithQuiz_question(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQuizAttemptWithUser(),
                    
                
                    
                        
                        await associateQuizAttemptWithQuiz_definition(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFriendshipWithRequester(),
                    
                
                    
                        
                        await associateFriendshipWithAddressee(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBookClubWithOwner(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateBookClubMembershipWithBook_club(),
                    
                
                    
                        
                        await associateBookClubMembershipWithUser(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateClubChatMessageWithBook_club(),
                    
                
                    
                        
                        await associateClubChatMessageWithSender(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReadingCircleEventWithBook_club(),
                    
                
                    
                        
                        await associateReadingCircleEventWithBook(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateRecommendationEventWithUser(),
                    
                
                    
                        
                        await associateRecommendationEventWithBook(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePushNotificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFraudFlagWithUser(),
                    
                
                    
                        
                        await associateFraudFlagWithScan_session(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateKycVerificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserUploadWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('publishers', null, {});
            
            
            await queryInterface.bulkDelete('authors', null, {});
            
            
            await queryInterface.bulkDelete('genres', null, {});
            
            
            await queryInterface.bulkDelete('books', null, {});
            
            
            await queryInterface.bulkDelete('user_library_items', null, {});
            
            
            await queryInterface.bulkDelete('bookmarks', null, {});
            
            
            await queryInterface.bulkDelete('notes', null, {});
            
            
            await queryInterface.bulkDelete('camera_scan_sessions', null, {});
            
            
            await queryInterface.bulkDelete('coin_ledger_entries', null, {});
            
            
            await queryInterface.bulkDelete('withdrawal_requests', null, {});
            
            
            await queryInterface.bulkDelete('payment_transactions', null, {});
            
            
            await queryInterface.bulkDelete('daily_login_rewards', null, {});
            
            
            await queryInterface.bulkDelete('reading_streaks', null, {});
            
            
            await queryInterface.bulkDelete('achievement_definitions', null, {});
            
            
            await queryInterface.bulkDelete('user_achievements', null, {});
            
            
            await queryInterface.bulkDelete('rank_tiers', null, {});
            
            
            await queryInterface.bulkDelete('user_ranks', null, {});
            
            
            await queryInterface.bulkDelete('challenge_definitions', null, {});
            
            
            await queryInterface.bulkDelete('user_challenges', null, {});
            
            
            await queryInterface.bulkDelete('quiz_definitions', null, {});
            
            
            await queryInterface.bulkDelete('quiz_questions', null, {});
            
            
            await queryInterface.bulkDelete('quiz_answer_choices', null, {});
            
            
            await queryInterface.bulkDelete('quiz_attempts', null, {});
            
            
            await queryInterface.bulkDelete('friendships', null, {});
            
            
            await queryInterface.bulkDelete('book_clubs', null, {});
            
            
            await queryInterface.bulkDelete('book_club_memberships', null, {});
            
            
            await queryInterface.bulkDelete('club_chat_messages', null, {});
            
            
            await queryInterface.bulkDelete('reading_circle_events', null, {});
            
            
            await queryInterface.bulkDelete('recommendation_events', null, {});
            
            
            await queryInterface.bulkDelete('push_notifications', null, {});
            
            
            await queryInterface.bulkDelete('fraud_flags', null, {});
            
            
            await queryInterface.bulkDelete('kyc_verifications', null, {});
            
            
            await queryInterface.bulkDelete('user_uploads', null, {});
            
        
    },
};