





















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






const Organizations = db.organizations;

const TrustProfiles = db.trust_profiles;

const IdentityVerifications = db.identity_verifications;

const Wallets = db.wallets;

const WalletTransactions = db.wallet_transactions;

const Chats = db.chats;

const ChatParticipants = db.chat_participants;

const Messages = db.messages;

const Stores = db.stores;

const Addresses = db.addresses;

const ProductCategories = db.product_categories;

const Products = db.products;

const Orders = db.orders;

const OrderItems = db.order_items;

const Payments = db.payments;

const ProductReviews = db.product_reviews;

const Shipments = db.shipments;

const Posts = db.posts;

const DeepDiveLinks = db.deep_dive_links;

const Citations = db.citations;

const PostEngagements = db.post_engagements;

const Rewards = db.rewards;

const ForumSpaces = db.forum_spaces;

const ForumThreads = db.forum_threads;

const ForumPosts = db.forum_posts;

const JobCompanies = db.job_companies;

const JobListings = db.job_listings;

const JobApplications = db.job_applications;

const UserCredentials = db.user_credentials;

const AffiliatePrograms = db.affiliate_programs;

const AffiliateMemberships = db.affiliate_memberships;

const Commissions = db.commissions;

const GeoRules = db.geo_rules;

const FactaQueries = db.facta_queries;

const FactaAnswers = db.facta_answers;

const Subscriptions = db.subscriptions;

const ApiClients = db.api_clients;

const AuditEvents = db.audit_events;







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



const TrustProfilesData = [
    
    {
    
        
        
            
                "trust_score": 92,
            
        
    
        
        
            
                "trust_tier": "unverified",
            
        
    
        
        
            
                "score_last_calculated_at": new Date('2026-05-12T09:10:00Z'),
            
        
    
        
        
            
                "is_human_verified": true,
            
        
    
        
        
            
                "is_business_verified": true,
            
        
    
        
        
            
                "is_identity_verified": true,
            
        
    
        
        
            
                "is_tax_verified": true,
            
        
    
        
        
            
                "risk_flags_summary": "Low risk profile with consistent verified data",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "trust_score": 78,
            
        
    
        
        
            
                "trust_tier": "unverified",
            
        
    
        
        
            
                "score_last_calculated_at": new Date('2026-05-18T13:30:00Z'),
            
        
    
        
        
            
                "is_human_verified": true,
            
        
    
        
        
            
                "is_business_verified": true,
            
        
    
        
        
            
                "is_identity_verified": true,
            
        
    
        
        
            
                "is_tax_verified": true,
            
        
    
        
        
            
                "risk_flags_summary": "Good standing seller account with verified business documents",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "trust_score": 61,
            
        
    
        
        
            
                "trust_tier": "trusted",
            
        
    
        
        
            
                "score_last_calculated_at": new Date('2026-05-22T07:45:00Z'),
            
        
    
        
        
            
                "is_human_verified": true,
            
        
    
        
        
            
                "is_business_verified": false,
            
        
    
        
        
            
                "is_identity_verified": true,
            
        
    
        
        
            
                "is_tax_verified": false,
            
        
    
        
        
            
                "risk_flags_summary": "Verified individual with normal activity patterns",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "trust_score": 48,
            
        
    
        
        
            
                "trust_tier": "basic",
            
        
    
        
        
            
                "score_last_calculated_at": new Date('2026-05-28T16:05:00Z'),
            
        
    
        
        
            
                "is_human_verified": true,
            
        
    
        
        
            
                "is_business_verified": false,
            
        
    
        
        
            
                "is_identity_verified": false,
            
        
    
        
        
            
                "is_tax_verified": false,
            
        
    
        
        
            
                "risk_flags_summary": "Human verified; identity document still under review",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "trust_score": 25,
            
        
    
        
        
            
                "trust_tier": "verified",
            
        
    
        
        
            
                "score_last_calculated_at": new Date('2026-06-02T11:20:00Z'),
            
        
    
        
        
            
                "is_human_verified": false,
            
        
    
        
        
            
                "is_business_verified": true,
            
        
    
        
        
            
                "is_identity_verified": false,
            
        
    
        
        
            
                "is_tax_verified": true,
            
        
    
        
        
            
                "risk_flags_summary": "New account awaiting verification steps",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const IdentityVerificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "verification_type": "address_proof",
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                "submitted_at": new Date('2026-04-10T10:00:00Z'),
            
        
    
        
        
            
                "reviewed_at": new Date('2026-04-10T14:00:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2031-04-10T00:00:00Z'),
            
        
    
        
        
            
                "document_number": "KTP-3276011001000001",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "match_confidence": 0.99,
            
        
    
        
        
            
                "review_notes": "Document and selfie match confirmed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "verification_type": "face_biometric",
            
        
    
        
        
            
                "status": "in_review",
            
        
    
        
        
            
                "submitted_at": new Date('2026-04-20T09:15:00Z'),
            
        
    
        
        
            
                "reviewed_at": new Date('2026-04-21T12:00:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2029-04-20T00:00:00Z'),
            
        
    
        
        
            
                "document_number": "NIB-2026-0001122",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "match_confidence": 0.96,
            
        
    
        
        
            
                "review_notes": "Business registration verified",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "verification_type": "npwp",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "submitted_at": new Date('2026-04-20T09:25:00Z'),
            
        
    
        
        
            
                "reviewed_at": new Date('2026-04-21T12:10:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2031-04-20T00:00:00Z'),
            
        
    
        
        
            
                "document_number": "NPWP-12.345.678.9-012.000",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "match_confidence": 0.95,
            
        
    
        
        
            
                "review_notes": "Tax id verified",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "verification_type": "employment_credential",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "submitted_at": new Date('2026-05-05T08:30:00Z'),
            
        
    
        
        
            
                "reviewed_at": new Date('2026-05-05T08:35:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2027-05-05T00:00:00Z'),
            
        
    
        
        
            
                "document_number": "BIO-SESSION-8F3A12",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "match_confidence": 0.98,
            
        
    
        
        
            
                "review_notes": "Liveness passed and match high",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "verification_type": "face_biometric",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "submitted_at": new Date('2026-06-10T15:00:00Z'),
            
        
    
        
        
            
                "reviewed_at": new Date('2026-06-10T15:00:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2031-06-10T00:00:00Z'),
            
        
    
        
        
            
                "document_number": "KTP-3276011001000005",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "match_confidence": 0.84,
            
        
    
        
        
            
                "review_notes": "Manual review required due to glare",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const WalletsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wallet_code": "WLT-VORTA-0001",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "available_balance": 12500000.0,
            
        
    
        
        
            
                "pending_balance": 350000.0,
            
        
    
        
        
            
                "currency": "IDR",
            
        
    
        
        
            
                "opened_at": new Date('2026-04-01T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wallet_code": "WLT-VORTA-0002",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "available_balance": 4200000.0,
            
        
    
        
        
            
                "pending_balance": 0.0,
            
        
    
        
        
            
                "currency": "IDR",
            
        
    
        
        
            
                "opened_at": new Date('2026-04-03T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wallet_code": "WLT-VORTA-0003",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "available_balance": 980000.0,
            
        
    
        
        
            
                "pending_balance": 120000.0,
            
        
    
        
        
            
                "currency": "IDR",
            
        
    
        
        
            
                "opened_at": new Date('2026-04-06T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wallet_code": "WLT-VORTA-0004",
            
        
    
        
        
            
                "status": "frozen",
            
        
    
        
        
            
                "available_balance": 250000.0,
            
        
    
        
        
            
                "pending_balance": 0.0,
            
        
    
        
        
            
                "currency": "IDR",
            
        
    
        
        
            
                "opened_at": new Date('2026-04-08T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wallet_code": "WLT-VORTA-0005",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "available_balance": 0.0,
            
        
    
        
        
            
                "pending_balance": 0.0,
            
        
    
        
        
            
                "currency": "IDR",
            
        
    
        
        
            
                "opened_at": new Date('2026-06-01T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const WalletTransactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "direction": "credit",
            
        
    
        
        
            
                "transaction_type": "adjustment",
            
        
    
        
        
            
                "status": "reversed",
            
        
    
        
        
            
                "amount": 1500000.0,
            
        
    
        
        
            
                "fee_amount": 0.0,
            
        
    
        
        
            
                "reference_code": "TXN-20260601-0001",
            
        
    
        
        
            
                "counterparty_label": "Bank Transfer Topup",
            
        
    
        
        
            
                "initiated_at": new Date('2026-06-01T10:00:00Z'),
            
        
    
        
        
            
                "settled_at": new Date('2026-06-01T10:02:00Z'),
            
        
    
        
        
            
                "memo": "Topup for store operations",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "direction": "debit",
            
        
    
        
        
            
                "transaction_type": "payment",
            
        
    
        
        
            
                "status": "processing",
            
        
    
        
        
            
                "amount": 275000.0,
            
        
    
        
        
            
                "fee_amount": 2500.0,
            
        
    
        
        
            
                "reference_code": "TXN-20260602-0002",
            
        
    
        
        
            
                "counterparty_label": "Order ORD-BOG-10001",
            
        
    
        
        
            
                "initiated_at": new Date('2026-06-02T08:10:00Z'),
            
        
    
        
        
            
                "settled_at": new Date('2026-06-02T08:11:00Z'),
            
        
    
        
        
            
                "memo": "Customer payment received and fee applied",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "direction": "credit",
            
        
    
        
        
            
                "transaction_type": "withdrawal",
            
        
    
        
        
            
                "status": "processing",
            
        
    
        
        
            
                "amount": 50000.0,
            
        
    
        
        
            
                "fee_amount": 0.0,
            
        
    
        
        
            
                "reference_code": "TXN-20260603-0003",
            
        
    
        
        
            
                "counterparty_label": "Creator Rewards",
            
        
    
        
        
            
                "initiated_at": new Date('2026-06-03T14:00:00Z'),
            
        
    
        
        
            
                "settled_at": new Date('2026-06-03T14:00:00Z'),
            
        
    
        
        
            
                "memo": "Weekly creator bonus payout",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "direction": "debit",
            
        
    
        
        
            
                "transaction_type": "reward_payout",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "amount": 2000000.0,
            
        
    
        
        
            
                "fee_amount": 5000.0,
            
        
    
        
        
            
                "reference_code": "TXN-20260605-0004",
            
        
    
        
        
            
                "counterparty_label": "Bank Withdrawal",
            
        
    
        
        
            
                "initiated_at": new Date('2026-06-05T09:30:00Z'),
            
        
    
        
        
            
                "settled_at": new Date('2026-06-05T09:30:00Z'),
            
        
    
        
        
            
                "memo": "Scheduled withdrawal to bank account",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "direction": "credit",
            
        
    
        
        
            
                "transaction_type": "reward_payout",
            
        
    
        
        
            
                "status": "processing",
            
        
    
        
        
            
                "amount": 120000.0,
            
        
    
        
        
            
                "fee_amount": 0.0,
            
        
    
        
        
            
                "reference_code": "TXN-20260606-0005",
            
        
    
        
        
            
                "counterparty_label": "Order ORD-BOG-10002",
            
        
    
        
        
            
                "initiated_at": new Date('2026-06-06T11:15:00Z'),
            
        
    
        
        
            
                "settled_at": new Date('2026-06-06T11:15:00Z'),
            
        
    
        
        
            
                "memo": "Insufficient balance",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ChatsData = [
    
    {
    
        
        
            
                "chat_type": "group",
            
        
    
        
        
            
                "chat_title": "Nadia Store - Customer Support",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "last_message_at": new Date('2026-06-10T08:45:00Z'),
            
        
    
        
        
            
                "is_encrypted": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "chat_type": "direct",
            
        
    
        
        
            
                "chat_title": "Raka and Siti",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "last_message_at": new Date('2026-06-09T12:10:00Z'),
            
        
    
        
        
            
                "is_encrypted": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "chat_type": "direct",
            
        
    
        
        
            
                "chat_title": "Bogor UMKM Network",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "last_message_at": new Date('2026-06-11T07:20:00Z'),
            
        
    
        
        
            
                "is_encrypted": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "chat_type": "group",
            
        
    
        
        
            
                "chat_title": "Order Discussion ORD-BOG-10001",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "last_message_at": new Date('2026-06-02T08:05:00Z'),
            
        
    
        
        
            
                "is_encrypted": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "chat_type": "group",
            
        
    
        
        
            
                "chat_title": "Facta Research Club",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "last_message_at": new Date('2026-06-08T19:00:00Z'),
            
        
    
        
        
            
                "is_encrypted": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ChatParticipantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "joined_at": new Date('2026-05-01T09:00:00Z'),
            
        
    
        
        
            
                "is_muted": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "joined_at": new Date('2026-05-01T09:00:00Z'),
            
        
    
        
        
            
                "is_muted": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "joined_at": new Date('2026-05-02T09:00:00Z'),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "joined_at": new Date('2026-06-01T10:00:00Z'),
            
        
    
        
        
            
                "is_muted": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "owner",
            
        
    
        
        
            
                "joined_at": new Date('2026-06-01T10:00:00Z'),
            
        
    
        
        
            
                "is_muted": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "system",
            
        
    
        
        
            
                "text_body": "Hi, can you confirm stock for the Bogor coffee beans 1kg",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "link_url": "https://vorta.example/products/bogor-coffee-1kg",
            
        
    
        
        
            
                "sent_at": new Date('2026-06-02T08:00:00Z'),
            
        
    
        
        
            
                "read_at": new Date('2026-06-02T08:02:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "image",
            
        
    
        
        
            
                "text_body": "Available today, price includes roasting date and batch code",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "link_url": "https://vorta.example/products/bogor-coffee-1kg",
            
        
    
        
        
            
                "sent_at": new Date('2026-06-02T08:03:00Z'),
            
        
    
        
        
            
                "read_at": new Date('2026-06-02T08:03:30Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "product_card",
            
        
    
        
        
            
                "text_body": "Payment request for ORD-BOG-10001 total 275000",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "link_url": "https://vorta.example/payments/ORD-BOG-10001",
            
        
    
        
        
            
                "sent_at": new Date('2026-06-02T08:04:30Z'),
            
        
    
        
        
            
                "read_at": new Date('2026-06-02T08:05:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "payment_request",
            
        
    
        
        
            
                "text_body": "Please share the deep dive link sources for the new finance tips video",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "link_url": "",
            
        
    
        
        
            
                "sent_at": new Date('2026-06-10T08:40:00Z'),
            
        
    
        
        
            
                "read_at": new Date('2026-06-10T08:41:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "system",
            
        
    
        
        
            
                "text_body": "Reminder: posting in Pulse requires trust score 31 or higher",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "link_url": "",
            
        
    
        
        
            
                "sent_at": new Date('2026-06-11T07:15:00Z'),
            
        
    
        
        
            
                "read_at": new Date('2026-06-11T07:16:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const StoresData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_name": "Nadia UMKM Mart",
            
        
    
        
        
            
                "store_slug": "nadia-umkm-mart",
            
        
    
        
        
            
                "store_type": "service_provider",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "description": "Curated local groceries and Bogor specialty products.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "support_phone": "+6281211112200",
            
        
    
        
        
            
                "support_email": "support@nadiaumkm.example",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_name": "Vorta Pilot Store",
            
        
    
        
        
            
                "store_slug": "vorta-pilot-store",
            
        
    
        
        
            
                "store_type": "service_provider",
            
        
    
        
        
            
                "status": "paused",
            
        
    
        
        
            
                "description": "Internal pilot catalog for testing chat-to-pay flows.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "support_phone": "+6281211111100",
            
        
    
        
        
            
                "support_email": "pilot@vorta.example",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_name": "Fajar Creator Shop",
            
        
    
        
        
            
                "store_slug": "fajar-creator-shop",
            
        
    
        
        
            
                "store_type": "reseller",
            
        
    
        
        
            
                "status": "paused",
            
        
    
        
        
            
                "description": "Merch and digital guides with verified sources.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "support_phone": "+6281211113300",
            
        
    
        
        
            
                "support_email": "shop@fajarcreator.example",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_name": "Rahma Services",
            
        
    
        
        
            
                "store_slug": "rahma-services",
            
        
    
        
        
            
                "store_type": "service_provider",
            
        
    
        
        
            
                "status": "suspended",
            
        
    
        
        
            
                "description": "Business research and citation review services.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "support_phone": "+6281211114400",
            
        
    
        
        
            
                "support_email": "hello@rahmaservices.example",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_name": "Dimas Starter Shop",
            
        
    
        
        
            
                "store_slug": "dimas-starter-shop",
            
        
    
        
        
            
                "store_type": "service_provider",
            
        
    
        
        
            
                "status": "paused",
            
        
    
        
        
            
                "description": "New store pending verification and first products.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "support_phone": "+6281211115500",
            
        
    
        
        
            
                "support_email": "owner@dimasstarter.example",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AddressesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Store Warehouse Bogor Barat",
            
        
    
        
        
            
                "recipient_name": "Nadia Putri",
            
        
    
        
        
            
                "phone_number": "+6281211110002",
            
        
    
        
        
            
                "country": "Indonesia",
            
        
    
        
        
            
                "province": "Jawa Barat",
            
        
    
        
        
            
                "city": "Kota Bogor",
            
        
    
        
        
            
                "district": "Bogor Barat",
            
        
    
        
        
            
                "postal_code": "16115",
            
        
    
        
        
            
                "street_address": "Jl. Raya Dramaga No. 10",
            
        
    
        
        
            
                "latitude": -6.5671,
            
        
    
        
        
            
                "longitude": 106.7412,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "HQ Bogor Barat",
            
        
    
        
        
            
                "recipient_name": "Raka Pratama",
            
        
    
        
        
            
                "phone_number": "+6281211110001",
            
        
    
        
        
            
                "country": "Indonesia",
            
        
    
        
        
            
                "province": "Jawa Barat",
            
        
    
        
        
            
                "city": "Kota Bogor",
            
        
    
        
        
            
                "district": "Bogor Barat",
            
        
    
        
        
            
                "postal_code": "16116",
            
        
    
        
        
            
                "street_address": "Jl. Abdullah Bin Nuh No. 5",
            
        
    
        
        
            
                "latitude": -6.5695,
            
        
    
        
        
            
                "longitude": 106.7367,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Creator Studio",
            
        
    
        
        
            
                "recipient_name": "Fajar Santoso",
            
        
    
        
        
            
                "phone_number": "+6281211110003",
            
        
    
        
        
            
                "country": "Indonesia",
            
        
    
        
        
            
                "province": "DKI Jakarta",
            
        
    
        
        
            
                "city": "Jakarta Selatan",
            
        
    
        
        
            
                "district": "Kebayoran Baru",
            
        
    
        
        
            
                "postal_code": "12110",
            
        
    
        
        
            
                "street_address": "Jl. Senopati No. 21",
            
        
    
        
        
            
                "latitude": -6.2277,
            
        
    
        
        
            
                "longitude": 106.809,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Office Address",
            
        
    
        
        
            
                "recipient_name": "Siti Rahmawati",
            
        
    
        
        
            
                "phone_number": "+6281211110004",
            
        
    
        
        
            
                "country": "Indonesia",
            
        
    
        
        
            
                "province": "Jawa Barat",
            
        
    
        
        
            
                "city": "Depok",
            
        
    
        
        
            
                "district": "Beji",
            
        
    
        
        
            
                "postal_code": "16424",
            
        
    
        
        
            
                "street_address": "Jl. Margonda Raya No. 88",
            
        
    
        
        
            
                "latitude": -6.3741,
            
        
    
        
        
            
                "longitude": 106.8317,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Home Address",
            
        
    
        
        
            
                "recipient_name": "Dimas Ardiansyah",
            
        
    
        
        
            
                "phone_number": "+6281211110005",
            
        
    
        
        
            
                "country": "Indonesia",
            
        
    
        
        
            
                "province": "Jawa Barat",
            
        
    
        
        
            
                "city": "Kota Bogor",
            
        
    
        
        
            
                "district": "Tanah Sareal",
            
        
    
        
        
            
                "postal_code": "16161",
            
        
    
        
        
            
                "street_address": "Perumahan Taman Yasmin Blok C2",
            
        
    
        
        
            
                "latitude": -6.5562,
            
        
    
        
        
            
                "longitude": 106.7815,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProductCategoriesData = [
    
    {
    
        
        
            
                "category_name": "Local Food and Beverage",
            
        
    
        
        
            
                "category_slug": "local-food-beverage",
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "description": "Bogor and Indonesian specialty consumables.",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category_name": "Health and Wellness",
            
        
    
        
        
            
                "category_slug": "health-wellness",
            
        
    
        
        
            
                "visibility": "internal",
            
        
    
        
        
            
                "description": "Supplements and wellness products with clear labeling.",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category_name": "Electronics Accessories",
            
        
    
        
        
            
                "category_slug": "electronics-accessories",
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "description": "Chargers, cables, and device add-ons.",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category_name": "Digital Products",
            
        
    
        
        
            
                "category_slug": "digital-products",
            
        
    
        
        
            
                "visibility": "internal",
            
        
    
        
        
            
                "description": "E-books, templates, and digital guides.",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category_name": "Business Services",
            
        
    
        
        
            
                "category_slug": "business-services",
            
        
    
        
        
            
                "visibility": "internal",
            
        
    
        
        
            
                "description": "Professional services for SMEs and creators.",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProductsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name": "Bogor Coffee Beans 1kg",
            
        
    
        
        
            
                "sku": "NMM-COF-1KG",
            
        
    
        
        
            
                "description": "Single origin Arabica, roasted weekly. Includes batch code and roast date.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "product_type": "physical",
            
        
    
        
        
            
                "price": 275000.0,
            
        
    
        
        
            
                "cost_price": 190000.0,
            
        
    
        
        
            
                "stock_quantity": 45,
            
        
    
        
        
            
                "status": "out_of_stock",
            
        
    
        
        
            
                "local_priority_eligible": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name": "Talas Chips Premium 250g",
            
        
    
        
        
            
                "sku": "NMM-TLS-250",
            
        
    
        
        
            
                "description": "Crispy taro chips from local farmers, sealed packaging.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "product_type": "physical",
            
        
    
        
        
            
                "price": 38000.0,
            
        
    
        
        
            
                "cost_price": 24000.0,
            
        
    
        
        
            
                "stock_quantity": 120,
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "local_priority_eligible": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name": "Citation Ready Research Template",
            
        
    
        
        
            
                "sku": "FCS-DIG-CITE01",
            
        
    
        
        
            
                "description": "A structured template for building citation maps and summaries.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "product_type": "physical",
            
        
    
        
        
            
                "price": 49000.0,
            
        
    
        
        
            
                "cost_price": 5000.0,
            
        
    
        
        
            
                "stock_quantity": 9999,
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "local_priority_eligible": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name": "Fact Checking Review Session 60min",
            
        
    
        
        
            
                "sku": "RHS-SVC-60",
            
        
    
        
        
            
                "description": "Review of sources and claims with clear citation recommendations.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "product_type": "digital",
            
        
    
        
        
            
                "price": 350000.0,
            
        
    
        
        
            
                "cost_price": 0.0,
            
        
    
        
        
            
                "stock_quantity": 30,
            
        
    
        
        
            
                "status": "out_of_stock",
            
        
    
        
        
            
                "local_priority_eligible": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name": "USB-C Fast Charging Cable 1.5m",
            
        
    
        
        
            
                "sku": "VPS-CBL-15",
            
        
    
        
        
            
                "description": "Durable braided cable, tested for stable charging.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "product_type": "physical",
            
        
    
        
        
            
                "price": 65000.0,
            
        
    
        
        
            
                "cost_price": 32000.0,
            
        
    
        
        
            
                "stock_quantity": 200,
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "local_priority_eligible": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const OrdersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "ORD-BOG-10001",
            
        
    
        
        
            
                "order_status": "paid",
            
        
    
        
        
            
                "subtotal_amount": 275000.0,
            
        
    
        
        
            
                "shipping_amount": 0.0,
            
        
    
        
        
            
                "total_amount": 275000.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "placed_at": new Date('2026-06-02T08:05:30Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-06-02T08:10:30Z'),
            
        
    
        
        
            
                "buyer_note": "Please pack well and include roast date label",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "ORD-BOG-10002",
            
        
    
        
        
            
                "order_status": "shipped",
            
        
    
        
        
            
                "subtotal_amount": 38000.0,
            
        
    
        
        
            
                "shipping_amount": 12000.0,
            
        
    
        
        
            
                "total_amount": 50000.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "placed_at": new Date('2026-06-06T11:10:00Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-06-06T11:10:00Z'),
            
        
    
        
        
            
                "buyer_note": "Deliver after 5pm",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "ORD-DPK-20001",
            
        
    
        
        
            
                "order_status": "completed",
            
        
    
        
        
            
                "subtotal_amount": 350000.0,
            
        
    
        
        
            
                "shipping_amount": 0.0,
            
        
    
        
        
            
                "total_amount": 350000.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "placed_at": new Date('2026-05-20T09:00:00Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-05-20T09:05:00Z'),
            
        
    
        
        
            
                "buyer_note": "Need output in APA format",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "ORD-BOG-10003",
            
        
    
        
        
            
                "order_status": "cancelled",
            
        
    
        
        
            
                "subtotal_amount": 65000.0,
            
        
    
        
        
            
                "shipping_amount": 10000.0,
            
        
    
        
        
            
                "total_amount": 75000.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "placed_at": new Date('2026-06-07T13:00:00Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-06-07T13:02:00Z'),
            
        
    
        
        
            
                "buyer_note": "Send via same day if possible",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "ORD-JKT-30001",
            
        
    
        
        
            
                "order_status": "shipped",
            
        
    
        
        
            
                "subtotal_amount": 49000.0,
            
        
    
        
        
            
                "shipping_amount": 0.0,
            
        
    
        
        
            
                "total_amount": 49000.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "placed_at": new Date('2026-06-08T15:40:00Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-06-08T15:41:00Z'),
            
        
    
        
        
            
                "buyer_note": "Email the download link",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const OrderItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price": 275000.0,
            
        
    
        
        
            
                "line_total": 275000.0,
            
        
    
        
        
            
                "variant_label": "Default",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price": 38000.0,
            
        
    
        
        
            
                "line_total": 38000.0,
            
        
    
        
        
            
                "variant_label": "Default",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price": 350000.0,
            
        
    
        
        
            
                "line_total": 350000.0,
            
        
    
        
        
            
                "variant_label": "Default",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price": 65000.0,
            
        
    
        
        
            
                "line_total": 65000.0,
            
        
    
        
        
            
                "variant_label": "Black",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price": 49000.0,
            
        
    
        
        
            
                "line_total": 49000.0,
            
        
    
        
        
            
                "variant_label": "PDF",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PaymentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "PAY-ORD-BOG-10001",
            
        
    
        
        
            
                "method": "wallet",
            
        
    
        
        
            
                "status": "initiated",
            
        
    
        
        
            
                "amount": 275000.0,
            
        
    
        
        
            
                "initiated_at": new Date('2026-06-02T08:10:00Z'),
            
        
    
        
        
            
                "captured_at": new Date('2026-06-02T08:11:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "PAY-ORD-BOG-10002",
            
        
    
        
        
            
                "method": "qris",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "amount": 50000.0,
            
        
    
        
        
            
                "initiated_at": new Date('2026-06-06T11:15:00Z'),
            
        
    
        
        
            
                "captured_at": new Date('2026-06-06T11:15:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "PAY-ORD-DPK-20001",
            
        
    
        
        
            
                "method": "wallet",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "amount": 350000.0,
            
        
    
        
        
            
                "initiated_at": new Date('2026-05-20T09:05:00Z'),
            
        
    
        
        
            
                "captured_at": new Date('2026-05-20T09:06:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "PAY-ORD-BOG-10003",
            
        
    
        
        
            
                "method": "wallet",
            
        
    
        
        
            
                "status": "initiated",
            
        
    
        
        
            
                "amount": 75000.0,
            
        
    
        
        
            
                "initiated_at": new Date('2026-06-07T13:01:00Z'),
            
        
    
        
        
            
                "captured_at": new Date('2026-06-07T13:05:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "PAY-ORD-JKT-30001",
            
        
    
        
        
            
                "method": "wallet",
            
        
    
        
        
            
                "status": "initiated",
            
        
    
        
        
            
                "amount": 49000.0,
            
        
    
        
        
            
                "initiated_at": new Date('2026-06-08T15:41:00Z'),
            
        
    
        
        
            
                "captured_at": new Date('2026-06-08T15:41:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProductReviewsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 5,
            
        
    
        
        
            
                "review_text": "Fresh roast and great aroma. Packaging was secure.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "moderation_status": "visible",
            
        
    
        
        
            
                "reviewed_at": new Date('2026-06-04T10:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 4,
            
        
    
        
        
            
                "review_text": "Tasty chips, would buy again once payment issue is resolved.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "moderation_status": "hidden",
            
        
    
        
        
            
                "reviewed_at": new Date('2026-06-08T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 5,
            
        
    
        
        
            
                "review_text": "Cable quality is solid and charging is stable.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "moderation_status": "hidden",
            
        
    
        
        
            
                "reviewed_at": new Date('2026-06-12T08:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 5,
            
        
    
        
        
            
                "review_text": "Template is well structured and easy to reuse.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "moderation_status": "flagged",
            
        
    
        
        
            
                "reviewed_at": new Date('2026-06-10T14:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 5,
            
        
    
        
        
            
                "review_text": "Clear citations and actionable feedback. Very professional.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "moderation_status": "flagged",
            
        
    
        
        
            
                "reviewed_at": new Date('2026-05-25T15:30:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ShipmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "jnt",
            
        
    
        
        
            
                "tracking_number": "GOSEND-BOG-00001",
            
        
    
        
        
            
                "shipment_status": "cancelled",
            
        
    
        
        
            
                "shipped_at": new Date('2026-06-02T10:00:00Z'),
            
        
    
        
        
            
                "delivered_at": new Date('2026-06-02T12:30:00Z'),
            
        
    
        
        
            
                "shipping_fee": 0.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "sicepat",
            
        
    
        
        
            
                "tracking_number": "JNE-BOG-778899",
            
        
    
        
        
            
                "shipment_status": "cancelled",
            
        
    
        
        
            
                "shipped_at": new Date('2026-06-07T16:00:00Z'),
            
        
    
        
        
            
                "delivered_at": new Date('2026-06-07T16:00:00Z'),
            
        
    
        
        
            
                "shipping_fee": 10000.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "fedex",
            
        
    
        
        
            
                "tracking_number": "SICEPAT-112233",
            
        
    
        
        
            
                "shipment_status": "returned",
            
        
    
        
        
            
                "shipped_at": new Date('2026-06-06T13:00:00Z'),
            
        
    
        
        
            
                "delivered_at": new Date('2026-06-06T13:00:00Z'),
            
        
    
        
        
            
                "shipping_fee": 12000.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "jnt",
            
        
    
        
        
            
                "tracking_number": "SERVICE-SESSION-20001",
            
        
    
        
        
            
                "shipment_status": "delivered",
            
        
    
        
        
            
                "shipped_at": new Date('2026-05-20T10:00:00Z'),
            
        
    
        
        
            
                "delivered_at": new Date('2026-05-20T11:00:00Z'),
            
        
    
        
        
            
                "shipping_fee": 0.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "dhl",
            
        
    
        
        
            
                "tracking_number": "DIGITAL-DELIVERY-30001",
            
        
    
        
        
            
                "shipment_status": "ready_to_ship",
            
        
    
        
        
            
                "shipped_at": new Date('2026-06-08T16:10:00Z'),
            
        
    
        
        
            
                "delivered_at": new Date('2026-06-08T16:10:00Z'),
            
        
    
        
        
            
                "shipping_fee": 0.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PostsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "image_gallery",
            
        
    
        
        
            
                "caption": "Finance tip: Always verify sources before sharing. Deep dive included.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "visibility": "followers",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "published_at": new Date('2026-06-01T07:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "live_stream",
            
        
    
        
        
            
                "caption": "Fresh local stock arrived today at the warehouse.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "visibility": "followers",
            
        
    
        
        
            
                "status": "removed",
            
        
    
        
        
            
                "published_at": new Date('2026-06-03T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "live_stream",
            
        
    
        
        
            
                "caption": "How to evaluate credibility in online claims. Short checklist inside.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "published_at": new Date('2026-06-05T18:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "short_video",
            
        
    
        
        
            
                "caption": "MVP update: chat to pay flow is now faster and safer.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "published_at": new Date('2026-06-07T10:30:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "image_gallery",
            
        
    
        
        
            
                "caption": "New here. Working on verification and setting up my store.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "published_at": new Date('2026-06-11T08:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DeepDiveLinksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Source pack for finance tip video",
            
        
    
        
        
            
                "summary": "Primary sources and datasets used for the finance guidance.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "validation_status": "valid",
            
        
    
        
        
            
                "ai_confidence": 0.97,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Product sourcing and quality notes",
            
        
    
        
        
            
                "summary": "Supplier notes and packaging standards for local goods.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "validation_status": "pending",
            
        
    
        
        
            
                "ai_confidence": 0.82,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Credibility checklist references",
            
        
    
        
        
            
                "summary": "Official guidance and academic references for evaluating claims.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "validation_status": "pending",
            
        
    
        
        
            
                "ai_confidence": 0.95,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Security and encryption overview",
            
        
    
        
        
            
                "summary": "High level explanation of encryption and privacy practices.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "validation_status": "pending",
            
        
    
        
        
            
                "ai_confidence": 0.74,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Onboarding and verification steps",
            
        
    
        
        
            
                "summary": "Personal onboarding notes and required verification documents.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "validation_status": "needs_review",
            
        
    
        
        
            
                "ai_confidence": 0.7,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CitationsData = [
    
    {
    
        
        
            
                "source_type": "transcript",
            
        
    
        
        
            
                "source_title": "OJK Consumer Education Portal",
            
        
    
        
        
            
                "source_url": "https://www.ojk.go.id/edukasi",
            
        
    
        
        
            
                "publisher": "Otoritas Jasa Keuangan",
            
        
    
        
        
            
                "published_at": new Date('2025-10-01T00:00:00Z'),
            
        
    
        
        
            
                "quote_excerpt": "Consumers are encouraged to verify licensed financial services providers.",
            
        
    
        
        
            
                "doi_or_identifier": "OJK-EDU-PORTAL",
            
        
    
        
        
            
                "credibility_grade": "c",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "source_type": "government",
            
        
    
        
        
            
                "source_title": "Information Literacy and Misinformation Research",
            
        
    
        
        
            
                "source_url": "https://example.org/journal/infolit-misinfo",
            
        
    
        
        
            
                "publisher": "Accredited Journal",
            
        
    
        
        
            
                "published_at": new Date('2024-06-15T00:00:00Z'),
            
        
    
        
        
            
                "quote_excerpt": "Structured citation mapping improves verification outcomes.",
            
        
    
        
        
            
                "doi_or_identifier": "10.1000/infolit.2024.15",
            
        
    
        
        
            
                "credibility_grade": "b",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "source_type": "education",
            
        
    
        
        
            
                "source_title": "ISO 9001 Packaging and Handling Guidance",
            
        
    
        
        
            
                "source_url": "https://example.org/iso/packaging-guidance",
            
        
    
        
        
            
                "publisher": "Standards Body",
            
        
    
        
        
            
                "published_at": new Date('2023-03-01T00:00:00Z'),
            
        
    
        
        
            
                "quote_excerpt": "Documented handling procedures reduce product damage risks.",
            
        
    
        
        
            
                "doi_or_identifier": "ISO-9001-PACK",
            
        
    
        
        
            
                "credibility_grade": "c",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "source_type": "government",
            
        
    
        
        
            
                "source_title": "University Research Skills Handbook",
            
        
    
        
        
            
                "source_url": "https://example.edu/research/handbook",
            
        
    
        
        
            
                "publisher": "Example University",
            
        
    
        
        
            
                "published_at": new Date('2022-09-01T00:00:00Z'),
            
        
    
        
        
            
                "quote_excerpt": "Prefer primary sources and verify publication context.",
            
        
    
        
        
            
                "doi_or_identifier": "EDU-RSH-2022",
            
        
    
        
        
            
                "credibility_grade": "d",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "source_type": "organization",
            
        
    
        
        
            
                "source_title": "Indonesia Personal Data Protection Overview",
            
        
    
        
        
            
                "source_url": "https://example.gov/pdp",
            
        
    
        
        
            
                "publisher": "Government Portal",
            
        
    
        
        
            
                "published_at": new Date('2023-10-17T00:00:00Z'),
            
        
    
        
        
            
                "quote_excerpt": "Privacy by design principles should guide system development.",
            
        
    
        
        
            
                "doi_or_identifier": "GOV-PDP-2023",
            
        
    
        
        
            
                "credibility_grade": "a",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PostEngagementsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "engagement_type": "comment",
            
        
    
        
        
            
                "comment_text": "Helpful and clear sources.",
            
        
    
        
        
            
                "engaged_at": new Date('2026-06-01T08:00:00Z'),
            
        
    
        
        
            
                "is_reward_eligible": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "engagement_type": "save",
            
        
    
        
        
            
                "comment_text": "Great reminder about citations. Thanks.",
            
        
    
        
        
            
                "engaged_at": new Date('2026-06-01T09:10:00Z'),
            
        
    
        
        
            
                "is_reward_eligible": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "engagement_type": "comment",
            
        
    
        
        
            
                "comment_text": "Viewed",
            
        
    
        
        
            
                "engaged_at": new Date('2026-06-03T10:00:00Z'),
            
        
    
        
        
            
                "is_reward_eligible": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "engagement_type": "like",
            
        
    
        
        
            
                "comment_text": "Shared with the research club.",
            
        
    
        
        
            
                "engaged_at": new Date('2026-06-07T11:00:00Z'),
            
        
    
        
        
            
                "is_reward_eligible": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "engagement_type": "like",
            
        
    
        
        
            
                "comment_text": "Welcome. Complete verification to unlock more features.",
            
        
    
        
        
            
                "engaged_at": new Date('2026-06-11T08:15:00Z'),
            
        
    
        
        
            
                "is_reward_eligible": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RewardsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reward_type": "creator_bonus",
            
        
    
        
        
            
                "points_amount": 120,
            
        
    
        
        
            
                "cash_value_amount": 1200.0,
            
        
    
        
        
            
                "status": "available",
            
        
    
        
        
            
                "awarded_at": new Date('2026-06-02T00:00:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2026-12-31T00:00:00Z'),
            
        
    
        
        
            
                "reason_note": "Engagement on verified educational content",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reward_type": "moderation_bounty",
            
        
    
        
        
            
                "points_amount": 1000,
            
        
    
        
        
            
                "cash_value_amount": 50000.0,
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "awarded_at": new Date('2026-06-03T14:00:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2026-12-31T00:00:00Z'),
            
        
    
        
        
            
                "reason_note": "Weekly creator bonus for validated deep dive content",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reward_type": "viewer_engagement",
            
        
    
        
        
            
                "points_amount": 300,
            
        
    
        
        
            
                "cash_value_amount": 5000.0,
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "awarded_at": new Date('2026-06-05T10:00:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2026-12-31T00:00:00Z'),
            
        
    
        
        
            
                "reason_note": "Referral pending completion of identity verification",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reward_type": "research_contribution",
            
        
    
        
        
            
                "points_amount": 200,
            
        
    
        
        
            
                "cash_value_amount": 10000.0,
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "awarded_at": new Date('2026-05-28T12:00:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2026-12-31T00:00:00Z'),
            
        
    
        
        
            
                "reason_note": "Reviewed flagged content and provided decision",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reward_type": "moderation_bounty",
            
        
    
        
        
            
                "points_amount": 50,
            
        
    
        
        
            
                "cash_value_amount": 500.0,
            
        
    
        
        
            
                "status": "redeemed",
            
        
    
        
        
            
                "awarded_at": new Date('2026-06-11T12:00:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2026-12-31T00:00:00Z'),
            
        
    
        
        
            
                "reason_note": "New user onboarding engagement",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ForumSpacesData = [
    
    {
    
        
        
            
                "space_name": "Pulse Bogor Barat",
            
        
    
        
        
            
                "description": "Local discussions for Bogor Barat residents and businesses.",
            
        
    
        
        
            
                "center_latitude": -6.5695,
            
        
    
        
        
            
                "center_longitude": 106.7367,
            
        
    
        
        
            
                "radius_meters": 5000,
            
        
    
        
        
            
                "min_trust_score_to_post": 31,
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "space_name": "Pulse Jakarta Selatan",
            
        
    
        
        
            
                "description": "Local community space for Jakarta Selatan.",
            
        
    
        
        
            
                "center_latitude": -6.2277,
            
        
    
        
        
            
                "center_longitude": 106.809,
            
        
    
        
        
            
                "radius_meters": 6000,
            
        
    
        
        
            
                "min_trust_score_to_post": 31,
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "space_name": "UMKM Logistics Tips",
            
        
    
        
        
            
                "description": "Sharing practical delivery and fulfillment strategies.",
            
        
    
        
        
            
                "center_latitude": -6.5671,
            
        
    
        
        
            
                "center_longitude": 106.7412,
            
        
    
        
        
            
                "radius_meters": 8000,
            
        
    
        
        
            
                "min_trust_score_to_post": 31,
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "space_name": "Facta High Stakes Research",
            
        
    
        
        
            
                "description": "Professional research discussions with strict citation norms.",
            
        
    
        
        
            
                "center_latitude": -6.3741,
            
        
    
        
        
            
                "center_longitude": 106.8317,
            
        
    
        
        
            
                "radius_meters": 15000,
            
        
    
        
        
            
                "min_trust_score_to_post": 50,
            
        
    
        
        
            
                "visibility": "members_only",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "space_name": "New Member Orientation",
            
        
    
        
        
            
                "description": "Help for new users to complete verification and set up profiles.",
            
        
    
        
        
            
                "center_latitude": -6.5562,
            
        
    
        
        
            
                "center_longitude": 106.7815,
            
        
    
        
        
            
                "radius_meters": 12000,
            
        
    
        
        
            
                "min_trust_score_to_post": 0,
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ForumThreadsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "thread_title": "Best same day courier options in Bogor Barat",
            
        
    
        
        
            
                "thread_body": "Looking for reliable same day couriers for fragile items. Any recommendations from verified sellers",
            
        
    
        
        
            
                "status": "locked",
            
        
    
        
        
            
                "created_on": new Date('2026-06-09T09:00:00Z'),
            
        
    
        
        
            
                "last_activity_at": new Date('2026-06-09T12:00:00Z'),
            
        
    
        
        
            
                "upvotes_count": 12,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "thread_title": "How to attach citations to educational videos",
            
        
    
        
        
            
                "thread_body": "Sharing a simple workflow to prepare a deep dive link with primary sources and clear excerpts.",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "created_on": new Date('2026-06-08T18:30:00Z'),
            
        
    
        
        
            
                "last_activity_at": new Date('2026-06-10T08:40:00Z'),
            
        
    
        
        
            
                "upvotes_count": 24,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "thread_title": "Handling conflicting sources in policy topics",
            
        
    
        
        
            
                "thread_body": "When sources disagree, document the conflict and provide neutral, pro, and contra summaries with citations.",
            
        
    
        
        
            
                "status": "locked",
            
        
    
        
        
            
                "created_on": new Date('2026-06-06T07:30:00Z'),
            
        
    
        
        
            
                "last_activity_at": new Date('2026-06-07T08:00:00Z'),
            
        
    
        
        
            
                "upvotes_count": 30,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "thread_title": "Verification steps checklist for new users",
            
        
    
        
        
            
                "thread_body": "Can someone share a simple checklist for KTP and face verification so I can complete it today",
            
        
    
        
        
            
                "status": "locked",
            
        
    
        
        
            
                "created_on": new Date('2026-06-11T08:10:00Z'),
            
        
    
        
        
            
                "last_activity_at": new Date('2026-06-11T09:00:00Z'),
            
        
    
        
        
            
                "upvotes_count": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "thread_title": "Reducing shipping cost with local routing",
            
        
    
        
        
            
                "thread_body": "Tips for prioritizing local fulfillment and managing shipping fee expectations.",
            
        
    
        
        
            
                "status": "removed",
            
        
    
        
        
            
                "created_on": new Date('2026-06-04T10:00:00Z'),
            
        
    
        
        
            
                "last_activity_at": new Date('2026-06-05T10:00:00Z'),
            
        
    
        
        
            
                "upvotes_count": 18,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ForumPostsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body_text": "For fragile items, consider couriers with instant tracking and photo proof of delivery.",
            
        
    
        
        
            
                "status": "visible",
            
        
    
        
        
            
                "posted_at": new Date('2026-06-09T09:30:00Z'),
            
        
    
        
        
            
                "upvotes_count": 5,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body_text": "If you have a steady volume, negotiate pickup schedules to reduce per parcel costs.",
            
        
    
        
        
            
                "status": "hidden",
            
        
    
        
        
            
                "posted_at": new Date('2026-06-09T10:00:00Z'),
            
        
    
        
        
            
                "upvotes_count": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body_text": "Deep dive links are helpful. I also add supplier and compliance docs for products.",
            
        
    
        
        
            
                "status": "visible",
            
        
    
        
        
            
                "posted_at": new Date('2026-06-09T08:20:00Z'),
            
        
    
        
        
            
                "upvotes_count": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body_text": "A simple rule: show what is agreed, what is disputed, and what data is missing.",
            
        
    
        
        
            
                "status": "removed",
            
        
    
        
        
            
                "posted_at": new Date('2026-06-06T09:00:00Z'),
            
        
    
        
        
            
                "upvotes_count": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body_text": "Start with KTP upload and face liveness. Once approved, your trust score increases automatically.",
            
        
    
        
        
            
                "status": "hidden",
            
        
    
        
        
            
                "posted_at": new Date('2026-06-11T08:20:00Z'),
            
        
    
        
        
            
                "upvotes_count": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const JobCompaniesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "company_name": "Nadia Retail Group",
            
        
    
        
        
            
                "company_legal_name": "PT Nadia Retail Nusantara",
            
        
    
        
        
            
                "company_website": "https://nadiaretail.example",
            
        
    
        
        
            
                "company_size": "medium",
            
        
    
        
        
            
                "verification_status": "rejected",
            
        
    
        
        
            
                "about": "Local retail and supply chain operations for SMEs.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "company_name": "Vorta Labs",
            
        
    
        
        
            
                "company_legal_name": "PT Vorta Teknologi Nusantara",
            
        
    
        
        
            
                "company_website": "https://vorta.example",
            
        
    
        
        
            
                "company_size": "enterprise",
            
        
    
        
        
            
                "verification_status": "unverified",
            
        
    
        
        
            
                "about": "Building digital trust infrastructure and information integrity products.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "company_name": "Rahma Research Studio",
            
        
    
        
        
            
                "company_legal_name": "CV Rahma Riset Indonesia",
            
        
    
        
        
            
                "company_website": "https://rahmareserach.example",
            
        
    
        
        
            
                "company_size": "micro",
            
        
    
        
        
            
                "verification_status": "unverified",
            
        
    
        
        
            
                "about": "Professional research assistance and citation review.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "company_name": "Fajar Media Network",
            
        
    
        
        
            
                "company_legal_name": "PT Fajar Media Kreatif",
            
        
    
        
        
            
                "company_website": "https://fajarmedia.example",
            
        
    
        
        
            
                "company_size": "micro",
            
        
    
        
        
            
                "verification_status": "verified",
            
        
    
        
        
            
                "about": "Educational content production with verified sources.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "company_name": "Dimas Trading",
            
        
    
        
        
            
                "company_legal_name": "UD Dimas Trading",
            
        
    
        
        
            
                "company_website": "https://dimastrading.example",
            
        
    
        
        
            
                "company_size": "medium",
            
        
    
        
        
            
                "verification_status": "verified",
            
        
    
        
        
            
                "about": "New local trading business onboarding to the platform.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const JobListingsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "Full Stack Engineer Node React",
            
        
    
        
        
            
                "employment_type": "part_time",
            
        
    
        
        
            
                "work_mode": "hybrid",
            
        
    
        
        
            
                "location_text": "Bogor",
            
        
    
        
        
            
                "salary_min": 12000000.0,
            
        
    
        
        
            
                "salary_max": 20000000.0,
            
        
    
        
        
            
                "description": "Build core super app modules with focus on security and performance.",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "posted_at": new Date('2026-06-01T09:00:00Z'),
            
        
    
        
        
            
                "closes_at": new Date('2026-07-01T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "Marketplace Operations Specialist",
            
        
    
        
        
            
                "employment_type": "full_time",
            
        
    
        
        
            
                "work_mode": "on_site",
            
        
    
        
        
            
                "location_text": "Bogor Barat",
            
        
    
        
        
            
                "salary_min": 6000000.0,
            
        
    
        
        
            
                "salary_max": 9000000.0,
            
        
    
        
        
            
                "description": "Support sellers, monitor orders, and handle quality checks.",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "posted_at": new Date('2026-06-03T09:00:00Z'),
            
        
    
        
        
            
                "closes_at": new Date('2026-06-30T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "Content Verification Analyst",
            
        
    
        
        
            
                "employment_type": "full_time",
            
        
    
        
        
            
                "work_mode": "remote",
            
        
    
        
        
            
                "location_text": "Indonesia",
            
        
    
        
        
            
                "salary_min": 5000000.0,
            
        
    
        
        
            
                "salary_max": 8000000.0,
            
        
    
        
        
            
                "description": "Review citations and validate deep dive link submissions.",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "posted_at": new Date('2026-06-05T09:00:00Z'),
            
        
    
        
        
            
                "closes_at": new Date('2026-06-25T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "Creator Partnerships Associate",
            
        
    
        
        
            
                "employment_type": "part_time",
            
        
    
        
        
            
                "work_mode": "on_site",
            
        
    
        
        
            
                "location_text": "Jakarta",
            
        
    
        
        
            
                "salary_min": 7000000.0,
            
        
    
        
        
            
                "salary_max": 11000000.0,
            
        
    
        
        
            
                "description": "Recruit verified creators and manage reward programs.",
            
        
    
        
        
            
                "status": "paused",
            
        
    
        
        
            
                "posted_at": new Date('2026-05-25T09:00:00Z'),
            
        
    
        
        
            
                "closes_at": new Date('2026-06-20T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "Warehouse Assistant",
            
        
    
        
        
            
                "employment_type": "freelance",
            
        
    
        
        
            
                "work_mode": "remote",
            
        
    
        
        
            
                "location_text": "Kota Bogor",
            
        
    
        
        
            
                "salary_min": 2500000.0,
            
        
    
        
        
            
                "salary_max": 3500000.0,
            
        
    
        
        
            
                "description": "Assist with packing and inventory for local orders.",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "posted_at": new Date('2026-06-10T09:00:00Z'),
            
        
    
        
        
            
                "closes_at": new Date('2026-07-10T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const JobApplicationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "interview",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "cover_letter": "I have experience building secure payment and identity systems with Node and React.",
            
        
    
        
        
            
                "applied_at": new Date('2026-06-02T10:00:00Z'),
            
        
    
        
        
            
                "last_updated_at": new Date('2026-06-02T10:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "cover_letter": "I am eager to learn marketplace operations and can work on site in Bogor Barat.",
            
        
    
        
        
            
                "applied_at": new Date('2026-06-06T10:00:00Z'),
            
        
    
        
        
            
                "last_updated_at": new Date('2026-06-06T10:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "cover_letter": "I can validate sources and produce clear summaries with consistent citation mapping.",
            
        
    
        
        
            
                "applied_at": new Date('2026-06-06T12:00:00Z'),
            
        
    
        
        
            
                "last_updated_at": new Date('2026-06-07T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "shortlisted",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "cover_letter": "Withdrew due to schedule constraints.",
            
        
    
        
        
            
                "applied_at": new Date('2026-05-28T09:00:00Z'),
            
        
    
        
        
            
                "last_updated_at": new Date('2026-06-01T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "cover_letter": "I have product operations background and want to transition into tech.",
            
        
    
        
        
            
                "applied_at": new Date('2026-06-04T09:00:00Z'),
            
        
    
        
        
            
                "last_updated_at": new Date('2026-06-09T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const UserCredentialsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "credential_type": "work_experience",
            
        
    
        
        
            
                "title_text": "Bachelor of Information Systems",
            
        
    
        
        
            
                "issuer_name": "Universitas Indonesia",
            
        
    
        
        
            
                "issued_at": new Date('2019-08-01T00:00:00Z'),
            
        
    
        
        
            
                "valid_until": new Date('2030-08-01T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_status": "unverified",
            
        
    
        
        
            
                "notes": "Degree verified against provided documentation",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "credential_type": "portfolio",
            
        
    
        
        
            
                "title_text": "Digital Content Ethics Certificate",
            
        
    
        
        
            
                "issuer_name": "Accredited Training Center",
            
        
    
        
        
            
                "issued_at": new Date('2024-01-10T00:00:00Z'),
            
        
    
        
        
            
                "valid_until": new Date('2029-01-10T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_status": "unverified",
            
        
    
        
        
            
                "notes": "Certificate validated",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "credential_type": "education",
            
        
    
        
        
            
                "title_text": "Retail Operations Lead",
            
        
    
        
        
            
                "issuer_name": "Nadia Retail Group",
            
        
    
        
        
            
                "issued_at": new Date('2021-01-01T00:00:00Z'),
            
        
    
        
        
            
                "valid_until": new Date('2026-01-01T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_status": "verified",
            
        
    
        
        
            
                "notes": "Experience under review",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "credential_type": "education",
            
        
    
        
        
            
                "title_text": "Vorta Universe MVP Architecture",
            
        
    
        
        
            
                "issuer_name": "Vorta Labs",
            
        
    
        
        
            
                "issued_at": new Date('2026-05-01T00:00:00Z'),
            
        
    
        
        
            
                "valid_until": new Date('2027-05-01T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_status": "unverified",
            
        
    
        
        
            
                "notes": "Internal review completed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "credential_type": "certificate",
            
        
    
        
        
            
                "title_text": "Small Business Permit Draft",
            
        
    
        
        
            
                "issuer_name": "Local Authority",
            
        
    
        
        
            
                "issued_at": new Date('2026-06-01T00:00:00Z'),
            
        
    
        
        
            
                "valid_until": new Date('2027-06-01T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_status": "pending",
            
        
    
        
        
            
                "notes": "Awaiting official issuance",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AffiliateProgramsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "program_name": "Bogor Local Reseller 30 Profit",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "terms_text": "Commission is calculated on profit and paid after order completion.",
            
        
    
        
        
            
                "min_trust_score_to_join": 50,
            
        
    
        
        
            
                "starts_at": new Date('2026-05-01T00:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-12-31T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "program_name": "Pilot Accessories Affiliate",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "terms_text": "Standard 30 profit commission protocol for eligible orders.",
            
        
    
        
        
            
                "min_trust_score_to_join": 31,
            
        
    
        
        
            
                "starts_at": new Date('2026-05-15T00:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-12-31T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "program_name": "Digital Guides Partner Program",
            
        
    
        
        
            
                "status": "paused",
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "terms_text": "Referral commission paid after successful payment capture.",
            
        
    
        
        
            
                "min_trust_score_to_join": 31,
            
        
    
        
        
            
                "starts_at": new Date('2026-06-01T00:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-12-31T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "program_name": "Research Services Referral",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "terms_text": "Limited slots. Commission on profit for completed sessions only.",
            
        
    
        
        
            
                "min_trust_score_to_join": 60,
            
        
    
        
        
            
                "starts_at": new Date('2026-05-20T00:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-10-01T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "program_name": "Starter Shop Affiliate",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "terms_text": "Program will launch after store verification is complete.",
            
        
    
        
        
            
                "min_trust_score_to_join": 31,
            
        
    
        
        
            
                "starts_at": new Date('2026-06-15T00:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-12-31T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AffiliateMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "applied",
            
        
    
        
        
            
                "applied_at": new Date('2026-05-02T09:00:00Z'),
            
        
    
        
        
            
                "approved_at": new Date('2026-05-03T09:00:00Z'),
            
        
    
        
        
            
                "referral_code": "REF-FAJAR-BOGOR30",
            
        
    
        
        
            
                "notes": "Approved based on verified trust score",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "left",
            
        
    
        
        
            
                "applied_at": new Date('2026-05-20T10:00:00Z'),
            
        
    
        
        
            
                "approved_at": new Date('2026-05-21T10:00:00Z'),
            
        
    
        
        
            
                "referral_code": "REF-RAHMA-ACC30",
            
        
    
        
        
            
                "notes": "Good standing member",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "applied_at": new Date('2026-06-02T11:00:00Z'),
            
        
    
        
        
            
                "approved_at": new Date('2026-06-03T11:00:00Z'),
            
        
    
        
        
            
                "referral_code": "REF-NADIA-DIG30",
            
        
    
        
        
            
                "notes": "Seller joining partner program",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "applied",
            
        
    
        
        
            
                "applied_at": new Date('2026-05-22T09:00:00Z'),
            
        
    
        
        
            
                "approved_at": new Date('2026-05-22T09:00:00Z'),
            
        
    
        
        
            
                "referral_code": "REF-RAKA-RSRCH",
            
        
    
        
        
            
                "notes": "Pending due to paused program",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "applied",
            
        
    
        
        
            
                "applied_at": new Date('2026-06-10T09:00:00Z'),
            
        
    
        
        
            
                "approved_at": new Date('2026-06-10T09:00:00Z'),
            
        
    
        
        
            
                "referral_code": "REF-DIMAS-TRY",
            
        
    
        
        
            
                "notes": "Rejected because trust score below minimum",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CommissionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "gross_profit_amount": 85000.0,
            
        
    
        
        
            
                "commission_amount": 25500.0,
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "earned_at": new Date('2026-06-02T12:35:00Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-06-03T14:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "payable",
            
        
    
        
        
            
                "gross_profit_amount": 350000.0,
            
        
    
        
        
            
                "commission_amount": 105000.0,
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "earned_at": new Date('2026-05-20T11:00:00Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-06-03T14:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "payable",
            
        
    
        
        
            
                "gross_profit_amount": 44000.0,
            
        
    
        
        
            
                "commission_amount": 13200.0,
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "earned_at": new Date('2026-06-08T16:15:00Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-06-08T16:15:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "gross_profit_amount": 14000.0,
            
        
    
        
        
            
                "commission_amount": 4200.0,
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "earned_at": new Date('2026-06-06T12:00:00Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-06-06T12:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "reversed",
            
        
    
        
        
            
                "gross_profit_amount": 33000.0,
            
        
    
        
        
            
                "commission_amount": 9900.0,
            
        
    
        
        
            
                "commission_rate_percent": 30.0,
            
        
    
        
        
            
                "earned_at": new Date('2026-06-07T16:10:00Z'),
            
        
    
        
        
            
                "paid_at": new Date('2026-06-07T16:10:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GeoRulesData = [
    
    {
    
        
        
            
                "rule_name": "Bogor Barat Pulse Geofence",
            
        
    
        
        
            
                "rule_type": "supply_routing",
            
        
    
        
        
            
                "center_latitude": -6.5695,
            
        
    
        
        
            
                "center_longitude": 106.7367,
            
        
    
        
        
            
                "radius_meters": 5000,
            
        
    
        
        
            
                "status": "inactive",
            
        
    
        
        
            
                "notes": "Pulse access boundary for Bogor Barat",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "rule_name": "Local Priority Bogor Products",
            
        
    
        
        
            
                "rule_type": "geofence_access",
            
        
    
        
        
            
                "center_latitude": -6.5671,
            
        
    
        
        
            
                "center_longitude": 106.7412,
            
        
    
        
        
            
                "radius_meters": 8000,
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "notes": "Prioritize nearby sellers for physical goods",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "rule_name": "Jaksel Pulse Geofence",
            
        
    
        
        
            
                "rule_type": "supply_routing",
            
        
    
        
        
            
                "center_latitude": -6.2277,
            
        
    
        
        
            
                "center_longitude": 106.809,
            
        
    
        
        
            
                "radius_meters": 6000,
            
        
    
        
        
            
                "status": "inactive",
            
        
    
        
        
            
                "notes": "Pulse access boundary for Jakarta Selatan",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "rule_name": "Depok Research Space Rule",
            
        
    
        
        
            
                "rule_type": "local_priority",
            
        
    
        
        
            
                "center_latitude": -6.3741,
            
        
    
        
        
            
                "center_longitude": 106.8317,
            
        
    
        
        
            
                "radius_meters": 15000,
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "notes": "Optional geofence for professional research discussions",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "rule_name": "Supply Routing Bogor Radius",
            
        
    
        
        
            
                "rule_type": "geofence_access",
            
        
    
        
        
            
                "center_latitude": -6.5562,
            
        
    
        
        
            
                "center_longitude": 106.7815,
            
        
    
        
        
            
                "radius_meters": 12000,
            
        
    
        
        
            
                "status": "inactive",
            
        
    
        
        
            
                "notes": "Prefer nearest warehouse for reduced shipping",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const FactaQueriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "query_text": "What are reliable methods to evaluate misinformation claims online",
            
        
    
        
        
            
                "mode": "hybrid",
            
        
    
        
        
            
                "sensitivity": "professional",
            
        
    
        
        
            
                "queried_at": new Date('2026-06-05T18:10:00Z'),
            
        
    
        
        
            
                "is_history_saved": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "query_text": "Summarize consumer guidance from OJK about financial fraud prevention",
            
        
    
        
        
            
                "mode": "hybrid",
            
        
    
        
        
            
                "sensitivity": "general",
            
        
    
        
        
            
                "queried_at": new Date('2026-06-01T07:10:00Z'),
            
        
    
        
        
            
                "is_history_saved": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "query_text": "Privacy by design practices for messaging encryption",
            
        
    
        
        
            
                "mode": "hybrid",
            
        
    
        
        
            
                "sensitivity": "general",
            
        
    
        
        
            
                "queried_at": new Date('2026-06-07T10:40:00Z'),
            
        
    
        
        
            
                "is_history_saved": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "query_text": "Best practices for packaging fragile goods in small retail logistics",
            
        
    
        
        
            
                "mode": "database_search",
            
        
    
        
        
            
                "sensitivity": "high_stakes",
            
        
    
        
        
            
                "queried_at": new Date('2026-06-03T09:10:00Z'),
            
        
    
        
        
            
                "is_history_saved": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "query_text": "How to complete KTP and biometric verification safely",
            
        
    
        
        
            
                "mode": "web_search",
            
        
    
        
        
            
                "sensitivity": "high_stakes",
            
        
    
        
        
            
                "queried_at": new Date('2026-06-11T08:20:00Z'),
            
        
    
        
        
            
                "is_history_saved": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const FactaAnswersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "executive_summary": "Use a repeatable checklist: confirm primary source, check publisher credibility, validate dates, and compare independent references.",
            
        
    
        
        
            
                "truth_score_percent": 96.0,
            
        
    
        
        
            
                "verification_status": "unverified",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "ready_to_cite_text": "A structured verification checklist improves accuracy in evaluating online claims by emphasizing primary sources and cross validation.",
            
        
    
        
        
            
                "neutral_perspective": "Verification should be methodical and source based, regardless of topic.",
            
        
    
        
        
            
                "pro_perspective": "Citation mapping increases transparency and repeatability for readers.",
            
        
    
        
        
            
                "contra_perspective": "Overreliance on formal sources may miss emerging evidence early.",
            
        
    
        
        
            
                "generated_at": new Date('2026-06-05T18:11:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "executive_summary": "OJK encourages consumers to verify licensed providers, be cautious with unrealistic returns, and report suspicious activity through official channels.",
            
        
    
        
        
            
                "truth_score_percent": 94.0,
            
        
    
        
        
            
                "verification_status": "verified",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "ready_to_cite_text": "OJK guidance emphasizes verifying licensed financial providers and remaining vigilant to common fraud signals such as unrealistic returns.",
            
        
    
        
        
            
                "neutral_perspective": "Consumer education focuses on verification and reporting mechanisms.",
            
        
    
        
        
            
                "pro_perspective": "Official channels provide consistent public protection messaging.",
            
        
    
        
        
            
                "contra_perspective": "Guidance may be high level and not cover all scam variants.",
            
        
    
        
        
            
                "generated_at": new Date('2026-06-01T07:11:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "executive_summary": "Privacy by design includes data minimization, encryption at rest and transit, strong access control, and auditability for sensitive actions.",
            
        
    
        
        
            
                "truth_score_percent": 92.0,
            
        
    
        
        
            
                "verification_status": "verified",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "ready_to_cite_text": "Privacy by design practices include encryption, access control, and auditable governance for sensitive data processing.",
            
        
    
        
        
            
                "neutral_perspective": "Security should be balanced with usability and transparency.",
            
        
    
        
        
            
                "pro_perspective": "End to end encryption reduces exposure risk for message content.",
            
        
    
        
        
            
                "contra_perspective": "Operational metadata can still create privacy concerns if not minimized.",
            
        
    
        
        
            
                "generated_at": new Date('2026-06-07T10:41:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "executive_summary": "Use consistent packaging standards, document handling steps, and test drop resistance to reduce product damage.",
            
        
    
        
        
            
                "truth_score_percent": 88.0,
            
        
    
        
        
            
                "verification_status": "unverified",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "ready_to_cite_text": "Documented packaging and handling procedures reduce damage risk during delivery for fragile items.",
            
        
    
        
        
            
                "neutral_perspective": "Packaging choices depend on item fragility and courier handling.",
            
        
    
        
        
            
                "pro_perspective": "Standardization reduces variability and disputes.",
            
        
    
        
        
            
                "contra_perspective": "Costs can increase for higher grade materials.",
            
        
    
        
        
            
                "generated_at": new Date('2026-06-03T09:11:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "executive_summary": "Complete identity checks only in the official app, ensure adequate lighting for selfie capture, and avoid sharing verification codes.",
            
        
    
        
        
            
                "truth_score_percent": 80.0,
            
        
    
        
        
            
                "verification_status": "verified",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "ready_to_cite_text": "Follow official in app steps and protect verification codes to reduce fraud risks during identity checks.",
            
        
    
        
        
            
                "neutral_perspective": "Onboarding should be simple yet secure for new users.",
            
        
    
        
        
            
                "pro_perspective": "Biometric liveness checks reduce fake account creation.",
            
        
    
        
        
            
                "contra_perspective": "Users may face accessibility issues without good camera conditions.",
            
        
    
        
        
            
                "generated_at": new Date('2026-06-11T08:21:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SubscriptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "plan": "free",
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "started_at": new Date('2026-04-01T00:00:00Z'),
            
        
    
        
        
            
                "renews_at": new Date('2027-04-01T00:00:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-04-01T00:00:00Z'),
            
        
    
        
        
            
                "price_amount": 0.0,
            
        
    
        
        
            
                "billing_cycle": "annual",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "plan": "facta_academic",
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "started_at": new Date('2026-05-01T00:00:00Z'),
            
        
    
        
        
            
                "renews_at": new Date('2026-06-01T00:00:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-05-01T00:00:00Z'),
            
        
    
        
        
            
                "price_amount": 149000.0,
            
        
    
        
        
            
                "billing_cycle": "monthly",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "plan": "facta_academic",
            
        
    
        
        
            
                "status": "past_due",
            
        
    
        
        
            
                "started_at": new Date('2026-05-15T00:00:00Z'),
            
        
    
        
        
            
                "renews_at": new Date('2026-06-15T00:00:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-05-15T00:00:00Z'),
            
        
    
        
        
            
                "price_amount": 99000.0,
            
        
    
        
        
            
                "billing_cycle": "monthly",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "plan": "facta_pro",
            
        
    
        
        
            
                "status": "past_due",
            
        
    
        
        
            
                "started_at": new Date('2026-06-01T00:00:00Z'),
            
        
    
        
        
            
                "renews_at": new Date('2026-07-01T00:00:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-06-01T00:00:00Z'),
            
        
    
        
        
            
                "price_amount": 79000.0,
            
        
    
        
        
            
                "billing_cycle": "monthly",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "plan": "free",
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "started_at": new Date('2026-06-01T00:00:00Z'),
            
        
    
        
        
            
                "renews_at": new Date('2027-06-01T00:00:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-06-01T00:00:00Z'),
            
        
    
        
        
            
                "price_amount": 0.0,
            
        
    
        
        
            
                "billing_cycle": "annual",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApiClientsData = [
    
    {
    
        
        
            
                "client_name": "Bogor City University",
            
        
    
        
        
            
                "client_type": "enterprise",
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "contact_email": "it@bogoruni.example",
            
        
    
        
        
            
                "contact_phone": "+622511234567",
            
        
    
        
        
            
                "api_key_label": "bogoruni-facta-key",
            
        
    
        
        
            
                "issued_at": new Date('2026-05-01T00:00:00Z'),
            
        
    
        
        
            
                "last_used_at": new Date('2026-06-10T10:00:00Z'),
            
        
    
        
        
            
                "notes": "Facta.AI research integration pilot",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "client_name": "West Java Cooperative Office",
            
        
    
        
        
            
                "client_type": "enterprise",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "contact_email": "digital@jabarcoops.example",
            
        
    
        
        
            
                "contact_phone": "+622112223333",
            
        
    
        
        
            
                "api_key_label": "jabarcoops-verify-key",
            
        
    
        
        
            
                "issued_at": new Date('2026-05-10T00:00:00Z'),
            
        
    
        
        
            
                "last_used_at": new Date('2026-06-09T08:00:00Z'),
            
        
    
        
        
            
                "notes": "Identity verification API for SME programs",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "client_name": "Nusantara Logistics Partner",
            
        
    
        
        
            
                "client_type": "government",
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "contact_email": "api@nusantaralogistics.example",
            
        
    
        
        
            
                "contact_phone": "+622188877766",
            
        
    
        
        
            
                "api_key_label": "nlp-shipping-key",
            
        
    
        
        
            
                "issued_at": new Date('2026-05-20T00:00:00Z'),
            
        
    
        
        
            
                "last_used_at": new Date('2026-06-11T07:00:00Z'),
            
        
    
        
        
            
                "notes": "Shipping rate and tracking integration",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "client_name": "Enterprise Retail Consortium",
            
        
    
        
        
            
                "client_type": "partner",
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "contact_email": "security@erc.example",
            
        
    
        
        
            
                "contact_phone": "+622199988877",
            
        
    
        
        
            
                "api_key_label": "erc-wallet-key",
            
        
    
        
        
            
                "issued_at": new Date('2026-04-15T00:00:00Z'),
            
        
    
        
        
            
                "last_used_at": new Date('2026-05-30T09:00:00Z'),
            
        
    
        
        
            
                "notes": "Suspended due to key rotation requirement",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "client_name": "Bogor Health Institute",
            
        
    
        
        
            
                "client_type": "partner",
            
        
    
        
        
            
                "status": "suspended",
            
        
    
        
        
            
                "contact_email": "compliance@bogorhealth.example",
            
        
    
        
        
            
                "contact_phone": "+622155566677",
            
        
    
        
        
            
                "api_key_label": "bhi-revoked-key",
            
        
    
        
        
            
                "issued_at": new Date('2026-03-01T00:00:00Z'),
            
        
    
        
        
            
                "last_used_at": new Date('2026-04-01T09:00:00Z'),
            
        
    
        
        
            
                "notes": "Revoked after contract ended",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AuditEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "payment_settled",
            
        
    
        
        
            
                "entity_name": "users",
            
        
    
        
        
            
                "entity_key": "raka.pratama",
            
        
    
        
        
            
                "ip_address": "203.0.113.10",
            
        
    
        
        
            
                "user_agent": "Chrome on Windows",
            
        
    
        
        
            
                "occurred_at": new Date('2026-06-11T06:55:00Z'),
            
        
    
        
        
            
                "details_json": "{result:success}",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "verification_reviewed",
            
        
    
        
        
            
                "entity_name": "identity_verifications",
            
        
    
        
        
            
                "entity_key": "KTP-3276011001000005",
            
        
    
        
        
            
                "ip_address": "203.0.113.44",
            
        
    
        
        
            
                "user_agent": "Chrome on Android",
            
        
    
        
        
            
                "occurred_at": new Date('2026-06-10T15:00:00Z'),
            
        
    
        
        
            
                "details_json": "{type:ktp}",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "payment_settled",
            
        
    
        
        
            
                "entity_name": "identity_verifications",
            
        
    
        
        
            
                "entity_key": "NIB-2026-0001122",
            
        
    
        
        
            
                "ip_address": "203.0.113.10",
            
        
    
        
        
            
                "user_agent": "Chrome on Windows",
            
        
    
        
        
            
                "occurred_at": new Date('2026-04-21T12:00:00Z'),
            
        
    
        
        
            
                "details_json": "{status:approved}",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "payment_settled",
            
        
    
        
        
            
                "entity_name": "payments",
            
        
    
        
        
            
                "entity_key": "PAY-ORD-BOG-10001",
            
        
    
        
        
            
                "ip_address": "203.0.113.21",
            
        
    
        
        
            
                "user_agent": "Safari on iOS",
            
        
    
        
        
            
                "occurred_at": new Date('2026-06-02T08:11:00Z'),
            
        
    
        
        
            
                "details_json": "{amount:275000}",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "verification_reviewed",
            
        
    
        
        
            
                "entity_name": "posts",
            
        
    
        
        
            
                "entity_key": "post-1",
            
        
    
        
        
            
                "ip_address": "203.0.113.33",
            
        
    
        
        
            
                "user_agent": "Chrome on Mac",
            
        
    
        
        
            
                "occurred_at": new Date('2026-06-01T07:00:00Z'),
            
        
    
        
        
            
                "details_json": "{post_type:short_video}",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            
            async function associateUserWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User0 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (User0?.setOrganization)
                {
                    await
                    User0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User1 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (User1?.setOrganization)
                {
                    await
                    User1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User2 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (User2?.setOrganization)
                {
                    await
                    User2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User3 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (User3?.setOrganization)
                {
                    await
                    User3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User4 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (User4?.setOrganization)
                {
                    await
                    User4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
    
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTrustProfileWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TrustProfile0 = await TrustProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TrustProfile0?.setOrganization)
                {
                    await
                    TrustProfile0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TrustProfile1 = await TrustProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TrustProfile1?.setOrganization)
                {
                    await
                    TrustProfile1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TrustProfile2 = await TrustProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TrustProfile2?.setOrganization)
                {
                    await
                    TrustProfile2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TrustProfile3 = await TrustProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TrustProfile3?.setOrganization)
                {
                    await
                    TrustProfile3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TrustProfile4 = await TrustProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TrustProfile4?.setOrganization)
                {
                    await
                    TrustProfile4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateIdentityVerificationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const IdentityVerification0 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (IdentityVerification0?.setUser)
                {
                    await
                    IdentityVerification0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const IdentityVerification1 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (IdentityVerification1?.setUser)
                {
                    await
                    IdentityVerification1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const IdentityVerification2 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (IdentityVerification2?.setUser)
                {
                    await
                    IdentityVerification2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const IdentityVerification3 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (IdentityVerification3?.setUser)
                {
                    await
                    IdentityVerification3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const IdentityVerification4 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (IdentityVerification4?.setUser)
                {
                    await
                    IdentityVerification4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateIdentityVerificationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdentityVerification0 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (IdentityVerification0?.setOrganization)
                {
                    await
                    IdentityVerification0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdentityVerification1 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (IdentityVerification1?.setOrganization)
                {
                    await
                    IdentityVerification1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdentityVerification2 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (IdentityVerification2?.setOrganization)
                {
                    await
                    IdentityVerification2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdentityVerification3 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (IdentityVerification3?.setOrganization)
                {
                    await
                    IdentityVerification3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdentityVerification4 = await IdentityVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (IdentityVerification4?.setOrganization)
                {
                    await
                    IdentityVerification4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateWalletWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Wallet0 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Wallet0?.setOwner)
                {
                    await
                    Wallet0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Wallet1 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Wallet1?.setOwner)
                {
                    await
                    Wallet1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Wallet2 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Wallet2?.setOwner)
                {
                    await
                    Wallet2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Wallet3 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Wallet3?.setOwner)
                {
                    await
                    Wallet3.
                    setOwner(relatedOwner3);
                }
            
                const relatedOwner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Wallet4 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Wallet4?.setOwner)
                {
                    await
                    Wallet4.
                    setOwner(relatedOwner4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateWalletWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Wallet0 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Wallet0?.setOrganization)
                {
                    await
                    Wallet0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Wallet1 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Wallet1?.setOrganization)
                {
                    await
                    Wallet1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Wallet2 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Wallet2?.setOrganization)
                {
                    await
                    Wallet2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Wallet3 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Wallet3?.setOrganization)
                {
                    await
                    Wallet3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Wallet4 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Wallet4?.setOrganization)
                {
                    await
                    Wallet4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateWalletTransactionWithWallet() {
            
                const relatedWallet0 = await Wallets.findOne({
                    offset: Math.floor(Math.random() * (await Wallets.count())),
                });
                const WalletTransaction0 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WalletTransaction0?.setWallet)
                {
                    await
                    WalletTransaction0.
                    setWallet(relatedWallet0);
                }
            
                const relatedWallet1 = await Wallets.findOne({
                    offset: Math.floor(Math.random() * (await Wallets.count())),
                });
                const WalletTransaction1 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WalletTransaction1?.setWallet)
                {
                    await
                    WalletTransaction1.
                    setWallet(relatedWallet1);
                }
            
                const relatedWallet2 = await Wallets.findOne({
                    offset: Math.floor(Math.random() * (await Wallets.count())),
                });
                const WalletTransaction2 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WalletTransaction2?.setWallet)
                {
                    await
                    WalletTransaction2.
                    setWallet(relatedWallet2);
                }
            
                const relatedWallet3 = await Wallets.findOne({
                    offset: Math.floor(Math.random() * (await Wallets.count())),
                });
                const WalletTransaction3 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WalletTransaction3?.setWallet)
                {
                    await
                    WalletTransaction3.
                    setWallet(relatedWallet3);
                }
            
                const relatedWallet4 = await Wallets.findOne({
                    offset: Math.floor(Math.random() * (await Wallets.count())),
                });
                const WalletTransaction4 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WalletTransaction4?.setWallet)
                {
                    await
                    WalletTransaction4.
                    setWallet(relatedWallet4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateWalletTransactionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WalletTransaction0 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WalletTransaction0?.setOrganization)
                {
                    await
                    WalletTransaction0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WalletTransaction1 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WalletTransaction1?.setOrganization)
                {
                    await
                    WalletTransaction1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WalletTransaction2 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WalletTransaction2?.setOrganization)
                {
                    await
                    WalletTransaction2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WalletTransaction3 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WalletTransaction3?.setOrganization)
                {
                    await
                    WalletTransaction3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WalletTransaction4 = await WalletTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WalletTransaction4?.setOrganization)
                {
                    await
                    WalletTransaction4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    
        
            
            async function associateChatWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Chat0 = await Chats.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Chat0?.setOrganization)
                {
                    await
                    Chat0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Chat1 = await Chats.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Chat1?.setOrganization)
                {
                    await
                    Chat1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Chat2 = await Chats.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Chat2?.setOrganization)
                {
                    await
                    Chat2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Chat3 = await Chats.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Chat3?.setOrganization)
                {
                    await
                    Chat3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Chat4 = await Chats.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Chat4?.setOrganization)
                {
                    await
                    Chat4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateChatParticipantWithChat() {
            
                const relatedChat0 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const ChatParticipant0 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatParticipant0?.setChat)
                {
                    await
                    ChatParticipant0.
                    setChat(relatedChat0);
                }
            
                const relatedChat1 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const ChatParticipant1 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatParticipant1?.setChat)
                {
                    await
                    ChatParticipant1.
                    setChat(relatedChat1);
                }
            
                const relatedChat2 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const ChatParticipant2 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatParticipant2?.setChat)
                {
                    await
                    ChatParticipant2.
                    setChat(relatedChat2);
                }
            
                const relatedChat3 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const ChatParticipant3 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatParticipant3?.setChat)
                {
                    await
                    ChatParticipant3.
                    setChat(relatedChat3);
                }
            
                const relatedChat4 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const ChatParticipant4 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatParticipant4?.setChat)
                {
                    await
                    ChatParticipant4.
                    setChat(relatedChat4);
                }
            
        }
        
    
        
            
            async function associateChatParticipantWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant0 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatParticipant0?.setUser)
                {
                    await
                    ChatParticipant0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant1 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatParticipant1?.setUser)
                {
                    await
                    ChatParticipant1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant2 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatParticipant2?.setUser)
                {
                    await
                    ChatParticipant2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant3 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatParticipant3?.setUser)
                {
                    await
                    ChatParticipant3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant4 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatParticipant4?.setUser)
                {
                    await
                    ChatParticipant4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateChatParticipantWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatParticipant0 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatParticipant0?.setOrganization)
                {
                    await
                    ChatParticipant0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatParticipant1 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatParticipant1?.setOrganization)
                {
                    await
                    ChatParticipant1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatParticipant2 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatParticipant2?.setOrganization)
                {
                    await
                    ChatParticipant2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatParticipant3 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatParticipant3?.setOrganization)
                {
                    await
                    ChatParticipant3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatParticipant4 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatParticipant4?.setOrganization)
                {
                    await
                    ChatParticipant4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMessageWithChat() {
            
                const relatedChat0 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setChat)
                {
                    await
                    Message0.
                    setChat(relatedChat0);
                }
            
                const relatedChat1 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setChat)
                {
                    await
                    Message1.
                    setChat(relatedChat1);
                }
            
                const relatedChat2 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setChat)
                {
                    await
                    Message2.
                    setChat(relatedChat2);
                }
            
                const relatedChat3 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setChat)
                {
                    await
                    Message3.
                    setChat(relatedChat3);
                }
            
                const relatedChat4 = await Chats.findOne({
                    offset: Math.floor(Math.random() * (await Chats.count())),
                });
                const Message4 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Message4?.setChat)
                {
                    await
                    Message4.
                    setChat(relatedChat4);
                }
            
        }
        
    
        
            
            async function associateMessageWithSender() {
            
                const relatedSender0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setSender)
                {
                    await
                    Message0.
                    setSender(relatedSender0);
                }
            
                const relatedSender1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setSender)
                {
                    await
                    Message1.
                    setSender(relatedSender1);
                }
            
                const relatedSender2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setSender)
                {
                    await
                    Message2.
                    setSender(relatedSender2);
                }
            
                const relatedSender3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setSender)
                {
                    await
                    Message3.
                    setSender(relatedSender3);
                }
            
                const relatedSender4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message4 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Message4?.setSender)
                {
                    await
                    Message4.
                    setSender(relatedSender4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMessageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setOrganization)
                {
                    await
                    Message0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setOrganization)
                {
                    await
                    Message1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setOrganization)
                {
                    await
                    Message2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setOrganization)
                {
                    await
                    Message3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message4 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Message4?.setOrganization)
                {
                    await
                    Message4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateStoreWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Store0 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Store0?.setOwner)
                {
                    await
                    Store0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Store1 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Store1?.setOwner)
                {
                    await
                    Store1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Store2 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Store2?.setOwner)
                {
                    await
                    Store2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Store3 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Store3?.setOwner)
                {
                    await
                    Store3.
                    setOwner(relatedOwner3);
                }
            
                const relatedOwner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Store4 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Store4?.setOwner)
                {
                    await
                    Store4.
                    setOwner(relatedOwner4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateStoreWithPrimary_addres() {
            
                const relatedPrimary_addres0 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Store0 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Store0?.setPrimary_addres)
                {
                    await
                    Store0.
                    setPrimary_addres(relatedPrimary_addres0);
                }
            
                const relatedPrimary_addres1 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Store1 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Store1?.setPrimary_addres)
                {
                    await
                    Store1.
                    setPrimary_addres(relatedPrimary_addres1);
                }
            
                const relatedPrimary_addres2 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Store2 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Store2?.setPrimary_addres)
                {
                    await
                    Store2.
                    setPrimary_addres(relatedPrimary_addres2);
                }
            
                const relatedPrimary_addres3 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Store3 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Store3?.setPrimary_addres)
                {
                    await
                    Store3.
                    setPrimary_addres(relatedPrimary_addres3);
                }
            
                const relatedPrimary_addres4 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Store4 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Store4?.setPrimary_addres)
                {
                    await
                    Store4.
                    setPrimary_addres(relatedPrimary_addres4);
                }
            
        }
        
    
        
            
            async function associateStoreWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Store0 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Store0?.setOrganization)
                {
                    await
                    Store0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Store1 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Store1?.setOrganization)
                {
                    await
                    Store1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Store2 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Store2?.setOrganization)
                {
                    await
                    Store2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Store3 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Store3?.setOrganization)
                {
                    await
                    Store3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Store4 = await Stores.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Store4?.setOrganization)
                {
                    await
                    Store4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAddressWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address0 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Address0?.setUser)
                {
                    await
                    Address0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address1 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Address1?.setUser)
                {
                    await
                    Address1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address2 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Address2?.setUser)
                {
                    await
                    Address2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address3 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Address3?.setUser)
                {
                    await
                    Address3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address4 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Address4?.setUser)
                {
                    await
                    Address4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAddressWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Address0 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Address0?.setOrganization)
                {
                    await
                    Address0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Address1 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Address1?.setOrganization)
                {
                    await
                    Address1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Address2 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Address2?.setOrganization)
                {
                    await
                    Address2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Address3 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Address3?.setOrganization)
                {
                    await
                    Address3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Address4 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Address4?.setOrganization)
                {
                    await
                    Address4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateProductCategoryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductCategory0 = await ProductCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductCategory0?.setOrganization)
                {
                    await
                    ProductCategory0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductCategory1 = await ProductCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductCategory1?.setOrganization)
                {
                    await
                    ProductCategory1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductCategory2 = await ProductCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductCategory2?.setOrganization)
                {
                    await
                    ProductCategory2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductCategory3 = await ProductCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductCategory3?.setOrganization)
                {
                    await
                    ProductCategory3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductCategory4 = await ProductCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductCategory4?.setOrganization)
                {
                    await
                    ProductCategory4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateProductWithStore() {
            
                const relatedStore0 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setStore)
                {
                    await
                    Product0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setStore)
                {
                    await
                    Product1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setStore)
                {
                    await
                    Product2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setStore)
                {
                    await
                    Product3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Product4 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Product4?.setStore)
                {
                    await
                    Product4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
            
            async function associateProductWithCategory() {
            
                const relatedCategory0 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setCategory)
                {
                    await
                    Product0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setCategory)
                {
                    await
                    Product1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setCategory)
                {
                    await
                    Product2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setCategory)
                {
                    await
                    Product3.
                    setCategory(relatedCategory3);
                }
            
                const relatedCategory4 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product4 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Product4?.setCategory)
                {
                    await
                    Product4.
                    setCategory(relatedCategory4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProductWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setOrganization)
                {
                    await
                    Product0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setOrganization)
                {
                    await
                    Product1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setOrganization)
                {
                    await
                    Product2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setOrganization)
                {
                    await
                    Product3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Product4 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Product4?.setOrganization)
                {
                    await
                    Product4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateOrderWithBuyer() {
            
                const relatedBuyer0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setBuyer)
                {
                    await
                    Order0.
                    setBuyer(relatedBuyer0);
                }
            
                const relatedBuyer1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setBuyer)
                {
                    await
                    Order1.
                    setBuyer(relatedBuyer1);
                }
            
                const relatedBuyer2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setBuyer)
                {
                    await
                    Order2.
                    setBuyer(relatedBuyer2);
                }
            
                const relatedBuyer3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setBuyer)
                {
                    await
                    Order3.
                    setBuyer(relatedBuyer3);
                }
            
                const relatedBuyer4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setBuyer)
                {
                    await
                    Order4.
                    setBuyer(relatedBuyer4);
                }
            
        }
        
    
        
            
            async function associateOrderWithStore() {
            
                const relatedStore0 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setStore)
                {
                    await
                    Order0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setStore)
                {
                    await
                    Order1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setStore)
                {
                    await
                    Order2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setStore)
                {
                    await
                    Order3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setStore)
                {
                    await
                    Order4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateOrderWithShipping_addres() {
            
                const relatedShipping_addres0 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setShipping_addres)
                {
                    await
                    Order0.
                    setShipping_addres(relatedShipping_addres0);
                }
            
                const relatedShipping_addres1 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setShipping_addres)
                {
                    await
                    Order1.
                    setShipping_addres(relatedShipping_addres1);
                }
            
                const relatedShipping_addres2 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setShipping_addres)
                {
                    await
                    Order2.
                    setShipping_addres(relatedShipping_addres2);
                }
            
                const relatedShipping_addres3 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setShipping_addres)
                {
                    await
                    Order3.
                    setShipping_addres(relatedShipping_addres3);
                }
            
                const relatedShipping_addres4 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setShipping_addres)
                {
                    await
                    Order4.
                    setShipping_addres(relatedShipping_addres4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateOrderWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setOrganization)
                {
                    await
                    Order0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setOrganization)
                {
                    await
                    Order1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setOrganization)
                {
                    await
                    Order2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setOrganization)
                {
                    await
                    Order3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setOrganization)
                {
                    await
                    Order4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateOrderItemWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem0 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrderItem0?.setOrder)
                {
                    await
                    OrderItem0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem1 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrderItem1?.setOrder)
                {
                    await
                    OrderItem1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem2 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrderItem2?.setOrder)
                {
                    await
                    OrderItem2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem3 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrderItem3?.setOrder)
                {
                    await
                    OrderItem3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem4 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (OrderItem4?.setOrder)
                {
                    await
                    OrderItem4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
            
            async function associateOrderItemWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem0 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrderItem0?.setProduct)
                {
                    await
                    OrderItem0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem1 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrderItem1?.setProduct)
                {
                    await
                    OrderItem1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem2 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrderItem2?.setProduct)
                {
                    await
                    OrderItem2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem3 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrderItem3?.setProduct)
                {
                    await
                    OrderItem3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem4 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (OrderItem4?.setProduct)
                {
                    await
                    OrderItem4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateOrderItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OrderItem0 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrderItem0?.setOrganization)
                {
                    await
                    OrderItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OrderItem1 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrderItem1?.setOrganization)
                {
                    await
                    OrderItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OrderItem2 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrderItem2?.setOrganization)
                {
                    await
                    OrderItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OrderItem3 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrderItem3?.setOrganization)
                {
                    await
                    OrderItem3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OrderItem4 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (OrderItem4?.setOrganization)
                {
                    await
                    OrderItem4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePaymentWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setOrder)
                {
                    await
                    Payment0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setOrder)
                {
                    await
                    Payment1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setOrder)
                {
                    await
                    Payment2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setOrder)
                {
                    await
                    Payment3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setOrder)
                {
                    await
                    Payment4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
            
            async function associatePaymentWithPayer() {
            
                const relatedPayer0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setPayer)
                {
                    await
                    Payment0.
                    setPayer(relatedPayer0);
                }
            
                const relatedPayer1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setPayer)
                {
                    await
                    Payment1.
                    setPayer(relatedPayer1);
                }
            
                const relatedPayer2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setPayer)
                {
                    await
                    Payment2.
                    setPayer(relatedPayer2);
                }
            
                const relatedPayer3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setPayer)
                {
                    await
                    Payment3.
                    setPayer(relatedPayer3);
                }
            
                const relatedPayer4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setPayer)
                {
                    await
                    Payment4.
                    setPayer(relatedPayer4);
                }
            
        }
        
    
        
            
            async function associatePaymentWithWallet_transaction() {
            
                const relatedWallet_transaction0 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setWallet_transaction)
                {
                    await
                    Payment0.
                    setWallet_transaction(relatedWallet_transaction0);
                }
            
                const relatedWallet_transaction1 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setWallet_transaction)
                {
                    await
                    Payment1.
                    setWallet_transaction(relatedWallet_transaction1);
                }
            
                const relatedWallet_transaction2 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setWallet_transaction)
                {
                    await
                    Payment2.
                    setWallet_transaction(relatedWallet_transaction2);
                }
            
                const relatedWallet_transaction3 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setWallet_transaction)
                {
                    await
                    Payment3.
                    setWallet_transaction(relatedWallet_transaction3);
                }
            
                const relatedWallet_transaction4 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setWallet_transaction)
                {
                    await
                    Payment4.
                    setWallet_transaction(relatedWallet_transaction4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePaymentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setOrganization)
                {
                    await
                    Payment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setOrganization)
                {
                    await
                    Payment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setOrganization)
                {
                    await
                    Payment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setOrganization)
                {
                    await
                    Payment3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setOrganization)
                {
                    await
                    Payment4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateProductReviewWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview0 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductReview0?.setProduct)
                {
                    await
                    ProductReview0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview1 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductReview1?.setProduct)
                {
                    await
                    ProductReview1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview2 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductReview2?.setProduct)
                {
                    await
                    ProductReview2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview3 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductReview3?.setProduct)
                {
                    await
                    ProductReview3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview4 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductReview4?.setProduct)
                {
                    await
                    ProductReview4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
            
            async function associateProductReviewWithBuyer() {
            
                const relatedBuyer0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview0 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductReview0?.setBuyer)
                {
                    await
                    ProductReview0.
                    setBuyer(relatedBuyer0);
                }
            
                const relatedBuyer1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview1 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductReview1?.setBuyer)
                {
                    await
                    ProductReview1.
                    setBuyer(relatedBuyer1);
                }
            
                const relatedBuyer2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview2 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductReview2?.setBuyer)
                {
                    await
                    ProductReview2.
                    setBuyer(relatedBuyer2);
                }
            
                const relatedBuyer3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview3 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductReview3?.setBuyer)
                {
                    await
                    ProductReview3.
                    setBuyer(relatedBuyer3);
                }
            
                const relatedBuyer4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview4 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductReview4?.setBuyer)
                {
                    await
                    ProductReview4.
                    setBuyer(relatedBuyer4);
                }
            
        }
        
    
        
            
            async function associateProductReviewWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const ProductReview0 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductReview0?.setOrder)
                {
                    await
                    ProductReview0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const ProductReview1 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductReview1?.setOrder)
                {
                    await
                    ProductReview1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const ProductReview2 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductReview2?.setOrder)
                {
                    await
                    ProductReview2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const ProductReview3 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductReview3?.setOrder)
                {
                    await
                    ProductReview3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const ProductReview4 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductReview4?.setOrder)
                {
                    await
                    ProductReview4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProductReviewWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductReview0 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductReview0?.setOrganization)
                {
                    await
                    ProductReview0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductReview1 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductReview1?.setOrganization)
                {
                    await
                    ProductReview1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductReview2 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductReview2?.setOrganization)
                {
                    await
                    ProductReview2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductReview3 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductReview3?.setOrganization)
                {
                    await
                    ProductReview3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProductReview4 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductReview4?.setOrganization)
                {
                    await
                    ProductReview4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateShipmentWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment0 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Shipment0?.setOrder)
                {
                    await
                    Shipment0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment1 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Shipment1?.setOrder)
                {
                    await
                    Shipment1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment2 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Shipment2?.setOrder)
                {
                    await
                    Shipment2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment3 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Shipment3?.setOrder)
                {
                    await
                    Shipment3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment4 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Shipment4?.setOrder)
                {
                    await
                    Shipment4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateShipmentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Shipment0 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Shipment0?.setOrganization)
                {
                    await
                    Shipment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Shipment1 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Shipment1?.setOrganization)
                {
                    await
                    Shipment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Shipment2 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Shipment2?.setOrganization)
                {
                    await
                    Shipment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Shipment3 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Shipment3?.setOrganization)
                {
                    await
                    Shipment3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Shipment4 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Shipment4?.setOrganization)
                {
                    await
                    Shipment4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePostWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Post0 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Post0?.setAuthor)
                {
                    await
                    Post0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Post1 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Post1?.setAuthor)
                {
                    await
                    Post1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Post2 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Post2?.setAuthor)
                {
                    await
                    Post2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Post3 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Post3?.setAuthor)
                {
                    await
                    Post3.
                    setAuthor(relatedAuthor3);
                }
            
                const relatedAuthor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Post4 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Post4?.setAuthor)
                {
                    await
                    Post4.
                    setAuthor(relatedAuthor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePostWithDeep_dive_link() {
            
                const relatedDeep_dive_link0 = await DeepDiveLinks.findOne({
                    offset: Math.floor(Math.random() * (await DeepDiveLinks.count())),
                });
                const Post0 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Post0?.setDeep_dive_link)
                {
                    await
                    Post0.
                    setDeep_dive_link(relatedDeep_dive_link0);
                }
            
                const relatedDeep_dive_link1 = await DeepDiveLinks.findOne({
                    offset: Math.floor(Math.random() * (await DeepDiveLinks.count())),
                });
                const Post1 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Post1?.setDeep_dive_link)
                {
                    await
                    Post1.
                    setDeep_dive_link(relatedDeep_dive_link1);
                }
            
                const relatedDeep_dive_link2 = await DeepDiveLinks.findOne({
                    offset: Math.floor(Math.random() * (await DeepDiveLinks.count())),
                });
                const Post2 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Post2?.setDeep_dive_link)
                {
                    await
                    Post2.
                    setDeep_dive_link(relatedDeep_dive_link2);
                }
            
                const relatedDeep_dive_link3 = await DeepDiveLinks.findOne({
                    offset: Math.floor(Math.random() * (await DeepDiveLinks.count())),
                });
                const Post3 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Post3?.setDeep_dive_link)
                {
                    await
                    Post3.
                    setDeep_dive_link(relatedDeep_dive_link3);
                }
            
                const relatedDeep_dive_link4 = await DeepDiveLinks.findOne({
                    offset: Math.floor(Math.random() * (await DeepDiveLinks.count())),
                });
                const Post4 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Post4?.setDeep_dive_link)
                {
                    await
                    Post4.
                    setDeep_dive_link(relatedDeep_dive_link4);
                }
            
        }
        
    
        
            
            async function associatePostWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Post0 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Post0?.setOrganization)
                {
                    await
                    Post0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Post1 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Post1?.setOrganization)
                {
                    await
                    Post1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Post2 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Post2?.setOrganization)
                {
                    await
                    Post2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Post3 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Post3?.setOrganization)
                {
                    await
                    Post3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Post4 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Post4?.setOrganization)
                {
                    await
                    Post4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDeepDiveLinkWithCreator() {
            
                const relatedCreator0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeepDiveLink0 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DeepDiveLink0?.setCreator)
                {
                    await
                    DeepDiveLink0.
                    setCreator(relatedCreator0);
                }
            
                const relatedCreator1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeepDiveLink1 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DeepDiveLink1?.setCreator)
                {
                    await
                    DeepDiveLink1.
                    setCreator(relatedCreator1);
                }
            
                const relatedCreator2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeepDiveLink2 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DeepDiveLink2?.setCreator)
                {
                    await
                    DeepDiveLink2.
                    setCreator(relatedCreator2);
                }
            
                const relatedCreator3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeepDiveLink3 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DeepDiveLink3?.setCreator)
                {
                    await
                    DeepDiveLink3.
                    setCreator(relatedCreator3);
                }
            
                const relatedCreator4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeepDiveLink4 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DeepDiveLink4?.setCreator)
                {
                    await
                    DeepDiveLink4.
                    setCreator(relatedCreator4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    
        
            
            async function associateDeepDiveLinkWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DeepDiveLink0 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DeepDiveLink0?.setOrganization)
                {
                    await
                    DeepDiveLink0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DeepDiveLink1 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DeepDiveLink1?.setOrganization)
                {
                    await
                    DeepDiveLink1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DeepDiveLink2 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DeepDiveLink2?.setOrganization)
                {
                    await
                    DeepDiveLink2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DeepDiveLink3 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DeepDiveLink3?.setOrganization)
                {
                    await
                    DeepDiveLink3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DeepDiveLink4 = await DeepDiveLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DeepDiveLink4?.setOrganization)
                {
                    await
                    DeepDiveLink4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCitationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Citation0 = await Citations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Citation0?.setOrganization)
                {
                    await
                    Citation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Citation1 = await Citations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Citation1?.setOrganization)
                {
                    await
                    Citation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Citation2 = await Citations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Citation2?.setOrganization)
                {
                    await
                    Citation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Citation3 = await Citations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Citation3?.setOrganization)
                {
                    await
                    Citation3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Citation4 = await Citations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Citation4?.setOrganization)
                {
                    await
                    Citation4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePostEngagementWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostEngagement0 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostEngagement0?.setPost)
                {
                    await
                    PostEngagement0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostEngagement1 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostEngagement1?.setPost)
                {
                    await
                    PostEngagement1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostEngagement2 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostEngagement2?.setPost)
                {
                    await
                    PostEngagement2.
                    setPost(relatedPost2);
                }
            
                const relatedPost3 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostEngagement3 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostEngagement3?.setPost)
                {
                    await
                    PostEngagement3.
                    setPost(relatedPost3);
                }
            
                const relatedPost4 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostEngagement4 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PostEngagement4?.setPost)
                {
                    await
                    PostEngagement4.
                    setPost(relatedPost4);
                }
            
        }
        
    
        
            
            async function associatePostEngagementWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostEngagement0 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostEngagement0?.setUser)
                {
                    await
                    PostEngagement0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostEngagement1 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostEngagement1?.setUser)
                {
                    await
                    PostEngagement1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostEngagement2 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostEngagement2?.setUser)
                {
                    await
                    PostEngagement2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostEngagement3 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostEngagement3?.setUser)
                {
                    await
                    PostEngagement3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostEngagement4 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PostEngagement4?.setUser)
                {
                    await
                    PostEngagement4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePostEngagementWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PostEngagement0 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostEngagement0?.setOrganization)
                {
                    await
                    PostEngagement0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PostEngagement1 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostEngagement1?.setOrganization)
                {
                    await
                    PostEngagement1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PostEngagement2 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostEngagement2?.setOrganization)
                {
                    await
                    PostEngagement2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PostEngagement3 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostEngagement3?.setOrganization)
                {
                    await
                    PostEngagement3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PostEngagement4 = await PostEngagements.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PostEngagement4?.setOrganization)
                {
                    await
                    PostEngagement4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRewardWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reward0 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Reward0?.setUser)
                {
                    await
                    Reward0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reward1 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Reward1?.setUser)
                {
                    await
                    Reward1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reward2 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Reward2?.setUser)
                {
                    await
                    Reward2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reward3 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Reward3?.setUser)
                {
                    await
                    Reward3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reward4 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Reward4?.setUser)
                {
                    await
                    Reward4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRewardWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Reward0 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Reward0?.setOrganization)
                {
                    await
                    Reward0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Reward1 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Reward1?.setOrganization)
                {
                    await
                    Reward1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Reward2 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Reward2?.setOrganization)
                {
                    await
                    Reward2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Reward3 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Reward3?.setOrganization)
                {
                    await
                    Reward3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Reward4 = await Rewards.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Reward4?.setOrganization)
                {
                    await
                    Reward4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateForumSpaceWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumSpace0 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ForumSpace0?.setOwner)
                {
                    await
                    ForumSpace0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumSpace1 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ForumSpace1?.setOwner)
                {
                    await
                    ForumSpace1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumSpace2 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ForumSpace2?.setOwner)
                {
                    await
                    ForumSpace2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumSpace3 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ForumSpace3?.setOwner)
                {
                    await
                    ForumSpace3.
                    setOwner(relatedOwner3);
                }
            
                const relatedOwner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumSpace4 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ForumSpace4?.setOwner)
                {
                    await
                    ForumSpace4.
                    setOwner(relatedOwner4);
                }
            
        }
        
    
        
            
            async function associateForumSpaceWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumSpace0 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ForumSpace0?.setOrganization)
                {
                    await
                    ForumSpace0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumSpace1 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ForumSpace1?.setOrganization)
                {
                    await
                    ForumSpace1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumSpace2 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ForumSpace2?.setOrganization)
                {
                    await
                    ForumSpace2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumSpace3 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ForumSpace3?.setOrganization)
                {
                    await
                    ForumSpace3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumSpace4 = await ForumSpaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ForumSpace4?.setOrganization)
                {
                    await
                    ForumSpace4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateForumThreadWithSpace() {
            
                const relatedSpace0 = await ForumSpaces.findOne({
                    offset: Math.floor(Math.random() * (await ForumSpaces.count())),
                });
                const ForumThread0 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ForumThread0?.setSpace)
                {
                    await
                    ForumThread0.
                    setSpace(relatedSpace0);
                }
            
                const relatedSpace1 = await ForumSpaces.findOne({
                    offset: Math.floor(Math.random() * (await ForumSpaces.count())),
                });
                const ForumThread1 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ForumThread1?.setSpace)
                {
                    await
                    ForumThread1.
                    setSpace(relatedSpace1);
                }
            
                const relatedSpace2 = await ForumSpaces.findOne({
                    offset: Math.floor(Math.random() * (await ForumSpaces.count())),
                });
                const ForumThread2 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ForumThread2?.setSpace)
                {
                    await
                    ForumThread2.
                    setSpace(relatedSpace2);
                }
            
                const relatedSpace3 = await ForumSpaces.findOne({
                    offset: Math.floor(Math.random() * (await ForumSpaces.count())),
                });
                const ForumThread3 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ForumThread3?.setSpace)
                {
                    await
                    ForumThread3.
                    setSpace(relatedSpace3);
                }
            
                const relatedSpace4 = await ForumSpaces.findOne({
                    offset: Math.floor(Math.random() * (await ForumSpaces.count())),
                });
                const ForumThread4 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ForumThread4?.setSpace)
                {
                    await
                    ForumThread4.
                    setSpace(relatedSpace4);
                }
            
        }
        
    
        
            
            async function associateForumThreadWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumThread0 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ForumThread0?.setAuthor)
                {
                    await
                    ForumThread0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumThread1 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ForumThread1?.setAuthor)
                {
                    await
                    ForumThread1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumThread2 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ForumThread2?.setAuthor)
                {
                    await
                    ForumThread2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumThread3 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ForumThread3?.setAuthor)
                {
                    await
                    ForumThread3.
                    setAuthor(relatedAuthor3);
                }
            
                const relatedAuthor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumThread4 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ForumThread4?.setAuthor)
                {
                    await
                    ForumThread4.
                    setAuthor(relatedAuthor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateForumThreadWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumThread0 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ForumThread0?.setOrganization)
                {
                    await
                    ForumThread0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumThread1 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ForumThread1?.setOrganization)
                {
                    await
                    ForumThread1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumThread2 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ForumThread2?.setOrganization)
                {
                    await
                    ForumThread2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumThread3 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ForumThread3?.setOrganization)
                {
                    await
                    ForumThread3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumThread4 = await ForumThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ForumThread4?.setOrganization)
                {
                    await
                    ForumThread4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateForumPostWithThread() {
            
                const relatedThread0 = await ForumThreads.findOne({
                    offset: Math.floor(Math.random() * (await ForumThreads.count())),
                });
                const ForumPost0 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ForumPost0?.setThread)
                {
                    await
                    ForumPost0.
                    setThread(relatedThread0);
                }
            
                const relatedThread1 = await ForumThreads.findOne({
                    offset: Math.floor(Math.random() * (await ForumThreads.count())),
                });
                const ForumPost1 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ForumPost1?.setThread)
                {
                    await
                    ForumPost1.
                    setThread(relatedThread1);
                }
            
                const relatedThread2 = await ForumThreads.findOne({
                    offset: Math.floor(Math.random() * (await ForumThreads.count())),
                });
                const ForumPost2 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ForumPost2?.setThread)
                {
                    await
                    ForumPost2.
                    setThread(relatedThread2);
                }
            
                const relatedThread3 = await ForumThreads.findOne({
                    offset: Math.floor(Math.random() * (await ForumThreads.count())),
                });
                const ForumPost3 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ForumPost3?.setThread)
                {
                    await
                    ForumPost3.
                    setThread(relatedThread3);
                }
            
                const relatedThread4 = await ForumThreads.findOne({
                    offset: Math.floor(Math.random() * (await ForumThreads.count())),
                });
                const ForumPost4 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ForumPost4?.setThread)
                {
                    await
                    ForumPost4.
                    setThread(relatedThread4);
                }
            
        }
        
    
        
            
            async function associateForumPostWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumPost0 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ForumPost0?.setAuthor)
                {
                    await
                    ForumPost0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumPost1 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ForumPost1?.setAuthor)
                {
                    await
                    ForumPost1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumPost2 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ForumPost2?.setAuthor)
                {
                    await
                    ForumPost2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumPost3 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ForumPost3?.setAuthor)
                {
                    await
                    ForumPost3.
                    setAuthor(relatedAuthor3);
                }
            
                const relatedAuthor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ForumPost4 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ForumPost4?.setAuthor)
                {
                    await
                    ForumPost4.
                    setAuthor(relatedAuthor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateForumPostWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumPost0 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ForumPost0?.setOrganization)
                {
                    await
                    ForumPost0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumPost1 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ForumPost1?.setOrganization)
                {
                    await
                    ForumPost1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumPost2 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ForumPost2?.setOrganization)
                {
                    await
                    ForumPost2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumPost3 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ForumPost3?.setOrganization)
                {
                    await
                    ForumPost3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ForumPost4 = await ForumPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ForumPost4?.setOrganization)
                {
                    await
                    ForumPost4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateJobCompanyWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobCompany0 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobCompany0?.setOwner)
                {
                    await
                    JobCompany0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobCompany1 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobCompany1?.setOwner)
                {
                    await
                    JobCompany1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobCompany2 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobCompany2?.setOwner)
                {
                    await
                    JobCompany2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobCompany3 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobCompany3?.setOwner)
                {
                    await
                    JobCompany3.
                    setOwner(relatedOwner3);
                }
            
                const relatedOwner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobCompany4 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobCompany4?.setOwner)
                {
                    await
                    JobCompany4.
                    setOwner(relatedOwner4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateJobCompanyWithHq_addres() {
            
                const relatedHq_addres0 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const JobCompany0 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobCompany0?.setHq_addres)
                {
                    await
                    JobCompany0.
                    setHq_addres(relatedHq_addres0);
                }
            
                const relatedHq_addres1 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const JobCompany1 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobCompany1?.setHq_addres)
                {
                    await
                    JobCompany1.
                    setHq_addres(relatedHq_addres1);
                }
            
                const relatedHq_addres2 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const JobCompany2 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobCompany2?.setHq_addres)
                {
                    await
                    JobCompany2.
                    setHq_addres(relatedHq_addres2);
                }
            
                const relatedHq_addres3 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const JobCompany3 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobCompany3?.setHq_addres)
                {
                    await
                    JobCompany3.
                    setHq_addres(relatedHq_addres3);
                }
            
                const relatedHq_addres4 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const JobCompany4 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobCompany4?.setHq_addres)
                {
                    await
                    JobCompany4.
                    setHq_addres(relatedHq_addres4);
                }
            
        }
        
    
        
            
            async function associateJobCompanyWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobCompany0 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobCompany0?.setOrganization)
                {
                    await
                    JobCompany0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobCompany1 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobCompany1?.setOrganization)
                {
                    await
                    JobCompany1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobCompany2 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobCompany2?.setOrganization)
                {
                    await
                    JobCompany2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobCompany3 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobCompany3?.setOrganization)
                {
                    await
                    JobCompany3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobCompany4 = await JobCompanies.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobCompany4?.setOrganization)
                {
                    await
                    JobCompany4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateJobListingWithCompany() {
            
                const relatedCompany0 = await JobCompanies.findOne({
                    offset: Math.floor(Math.random() * (await JobCompanies.count())),
                });
                const JobListing0 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobListing0?.setCompany)
                {
                    await
                    JobListing0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await JobCompanies.findOne({
                    offset: Math.floor(Math.random() * (await JobCompanies.count())),
                });
                const JobListing1 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobListing1?.setCompany)
                {
                    await
                    JobListing1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await JobCompanies.findOne({
                    offset: Math.floor(Math.random() * (await JobCompanies.count())),
                });
                const JobListing2 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobListing2?.setCompany)
                {
                    await
                    JobListing2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await JobCompanies.findOne({
                    offset: Math.floor(Math.random() * (await JobCompanies.count())),
                });
                const JobListing3 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobListing3?.setCompany)
                {
                    await
                    JobListing3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await JobCompanies.findOne({
                    offset: Math.floor(Math.random() * (await JobCompanies.count())),
                });
                const JobListing4 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobListing4?.setCompany)
                {
                    await
                    JobListing4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateJobListingWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobListing0 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobListing0?.setOrganization)
                {
                    await
                    JobListing0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobListing1 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobListing1?.setOrganization)
                {
                    await
                    JobListing1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobListing2 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobListing2?.setOrganization)
                {
                    await
                    JobListing2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobListing3 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobListing3?.setOrganization)
                {
                    await
                    JobListing3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobListing4 = await JobListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobListing4?.setOrganization)
                {
                    await
                    JobListing4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateJobApplicationWithJob_listing() {
            
                const relatedJob_listing0 = await JobListings.findOne({
                    offset: Math.floor(Math.random() * (await JobListings.count())),
                });
                const JobApplication0 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobApplication0?.setJob_listing)
                {
                    await
                    JobApplication0.
                    setJob_listing(relatedJob_listing0);
                }
            
                const relatedJob_listing1 = await JobListings.findOne({
                    offset: Math.floor(Math.random() * (await JobListings.count())),
                });
                const JobApplication1 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobApplication1?.setJob_listing)
                {
                    await
                    JobApplication1.
                    setJob_listing(relatedJob_listing1);
                }
            
                const relatedJob_listing2 = await JobListings.findOne({
                    offset: Math.floor(Math.random() * (await JobListings.count())),
                });
                const JobApplication2 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobApplication2?.setJob_listing)
                {
                    await
                    JobApplication2.
                    setJob_listing(relatedJob_listing2);
                }
            
                const relatedJob_listing3 = await JobListings.findOne({
                    offset: Math.floor(Math.random() * (await JobListings.count())),
                });
                const JobApplication3 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobApplication3?.setJob_listing)
                {
                    await
                    JobApplication3.
                    setJob_listing(relatedJob_listing3);
                }
            
                const relatedJob_listing4 = await JobListings.findOne({
                    offset: Math.floor(Math.random() * (await JobListings.count())),
                });
                const JobApplication4 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobApplication4?.setJob_listing)
                {
                    await
                    JobApplication4.
                    setJob_listing(relatedJob_listing4);
                }
            
        }
        
    
        
            
            async function associateJobApplicationWithApplicant() {
            
                const relatedApplicant0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobApplication0 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobApplication0?.setApplicant)
                {
                    await
                    JobApplication0.
                    setApplicant(relatedApplicant0);
                }
            
                const relatedApplicant1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobApplication1 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobApplication1?.setApplicant)
                {
                    await
                    JobApplication1.
                    setApplicant(relatedApplicant1);
                }
            
                const relatedApplicant2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobApplication2 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobApplication2?.setApplicant)
                {
                    await
                    JobApplication2.
                    setApplicant(relatedApplicant2);
                }
            
                const relatedApplicant3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobApplication3 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobApplication3?.setApplicant)
                {
                    await
                    JobApplication3.
                    setApplicant(relatedApplicant3);
                }
            
                const relatedApplicant4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobApplication4 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobApplication4?.setApplicant)
                {
                    await
                    JobApplication4.
                    setApplicant(relatedApplicant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateJobApplicationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobApplication0 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobApplication0?.setOrganization)
                {
                    await
                    JobApplication0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobApplication1 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobApplication1?.setOrganization)
                {
                    await
                    JobApplication1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobApplication2 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobApplication2?.setOrganization)
                {
                    await
                    JobApplication2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobApplication3 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobApplication3?.setOrganization)
                {
                    await
                    JobApplication3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const JobApplication4 = await JobApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobApplication4?.setOrganization)
                {
                    await
                    JobApplication4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateUserCredentialWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserCredential0 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserCredential0?.setUser)
                {
                    await
                    UserCredential0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserCredential1 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserCredential1?.setUser)
                {
                    await
                    UserCredential1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserCredential2 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserCredential2?.setUser)
                {
                    await
                    UserCredential2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserCredential3 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserCredential3?.setUser)
                {
                    await
                    UserCredential3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserCredential4 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserCredential4?.setUser)
                {
                    await
                    UserCredential4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateUserCredentialWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserCredential0 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserCredential0?.setOrganization)
                {
                    await
                    UserCredential0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserCredential1 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserCredential1?.setOrganization)
                {
                    await
                    UserCredential1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserCredential2 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserCredential2?.setOrganization)
                {
                    await
                    UserCredential2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserCredential3 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserCredential3?.setOrganization)
                {
                    await
                    UserCredential3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserCredential4 = await UserCredentials.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserCredential4?.setOrganization)
                {
                    await
                    UserCredential4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAffiliateProgramWithProducer_store() {
            
                const relatedProducer_store0 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const AffiliateProgram0 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AffiliateProgram0?.setProducer_store)
                {
                    await
                    AffiliateProgram0.
                    setProducer_store(relatedProducer_store0);
                }
            
                const relatedProducer_store1 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const AffiliateProgram1 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AffiliateProgram1?.setProducer_store)
                {
                    await
                    AffiliateProgram1.
                    setProducer_store(relatedProducer_store1);
                }
            
                const relatedProducer_store2 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const AffiliateProgram2 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AffiliateProgram2?.setProducer_store)
                {
                    await
                    AffiliateProgram2.
                    setProducer_store(relatedProducer_store2);
                }
            
                const relatedProducer_store3 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const AffiliateProgram3 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AffiliateProgram3?.setProducer_store)
                {
                    await
                    AffiliateProgram3.
                    setProducer_store(relatedProducer_store3);
                }
            
                const relatedProducer_store4 = await Stores.findOne({
                    offset: Math.floor(Math.random() * (await Stores.count())),
                });
                const AffiliateProgram4 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AffiliateProgram4?.setProducer_store)
                {
                    await
                    AffiliateProgram4.
                    setProducer_store(relatedProducer_store4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAffiliateProgramWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateProgram0 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AffiliateProgram0?.setOrganization)
                {
                    await
                    AffiliateProgram0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateProgram1 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AffiliateProgram1?.setOrganization)
                {
                    await
                    AffiliateProgram1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateProgram2 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AffiliateProgram2?.setOrganization)
                {
                    await
                    AffiliateProgram2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateProgram3 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AffiliateProgram3?.setOrganization)
                {
                    await
                    AffiliateProgram3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateProgram4 = await AffiliatePrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AffiliateProgram4?.setOrganization)
                {
                    await
                    AffiliateProgram4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAffiliateMembershipWithProgram() {
            
                const relatedProgram0 = await AffiliatePrograms.findOne({
                    offset: Math.floor(Math.random() * (await AffiliatePrograms.count())),
                });
                const AffiliateMembership0 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AffiliateMembership0?.setProgram)
                {
                    await
                    AffiliateMembership0.
                    setProgram(relatedProgram0);
                }
            
                const relatedProgram1 = await AffiliatePrograms.findOne({
                    offset: Math.floor(Math.random() * (await AffiliatePrograms.count())),
                });
                const AffiliateMembership1 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AffiliateMembership1?.setProgram)
                {
                    await
                    AffiliateMembership1.
                    setProgram(relatedProgram1);
                }
            
                const relatedProgram2 = await AffiliatePrograms.findOne({
                    offset: Math.floor(Math.random() * (await AffiliatePrograms.count())),
                });
                const AffiliateMembership2 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AffiliateMembership2?.setProgram)
                {
                    await
                    AffiliateMembership2.
                    setProgram(relatedProgram2);
                }
            
                const relatedProgram3 = await AffiliatePrograms.findOne({
                    offset: Math.floor(Math.random() * (await AffiliatePrograms.count())),
                });
                const AffiliateMembership3 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AffiliateMembership3?.setProgram)
                {
                    await
                    AffiliateMembership3.
                    setProgram(relatedProgram3);
                }
            
                const relatedProgram4 = await AffiliatePrograms.findOne({
                    offset: Math.floor(Math.random() * (await AffiliatePrograms.count())),
                });
                const AffiliateMembership4 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AffiliateMembership4?.setProgram)
                {
                    await
                    AffiliateMembership4.
                    setProgram(relatedProgram4);
                }
            
        }
        
    
        
            
            async function associateAffiliateMembershipWithMember() {
            
                const relatedMember0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AffiliateMembership0 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AffiliateMembership0?.setMember)
                {
                    await
                    AffiliateMembership0.
                    setMember(relatedMember0);
                }
            
                const relatedMember1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AffiliateMembership1 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AffiliateMembership1?.setMember)
                {
                    await
                    AffiliateMembership1.
                    setMember(relatedMember1);
                }
            
                const relatedMember2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AffiliateMembership2 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AffiliateMembership2?.setMember)
                {
                    await
                    AffiliateMembership2.
                    setMember(relatedMember2);
                }
            
                const relatedMember3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AffiliateMembership3 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AffiliateMembership3?.setMember)
                {
                    await
                    AffiliateMembership3.
                    setMember(relatedMember3);
                }
            
                const relatedMember4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AffiliateMembership4 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AffiliateMembership4?.setMember)
                {
                    await
                    AffiliateMembership4.
                    setMember(relatedMember4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAffiliateMembershipWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateMembership0 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AffiliateMembership0?.setOrganization)
                {
                    await
                    AffiliateMembership0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateMembership1 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AffiliateMembership1?.setOrganization)
                {
                    await
                    AffiliateMembership1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateMembership2 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AffiliateMembership2?.setOrganization)
                {
                    await
                    AffiliateMembership2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateMembership3 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AffiliateMembership3?.setOrganization)
                {
                    await
                    AffiliateMembership3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AffiliateMembership4 = await AffiliateMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AffiliateMembership4?.setOrganization)
                {
                    await
                    AffiliateMembership4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCommissionWithMembership() {
            
                const relatedMembership0 = await AffiliateMemberships.findOne({
                    offset: Math.floor(Math.random() * (await AffiliateMemberships.count())),
                });
                const Commission0 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Commission0?.setMembership)
                {
                    await
                    Commission0.
                    setMembership(relatedMembership0);
                }
            
                const relatedMembership1 = await AffiliateMemberships.findOne({
                    offset: Math.floor(Math.random() * (await AffiliateMemberships.count())),
                });
                const Commission1 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Commission1?.setMembership)
                {
                    await
                    Commission1.
                    setMembership(relatedMembership1);
                }
            
                const relatedMembership2 = await AffiliateMemberships.findOne({
                    offset: Math.floor(Math.random() * (await AffiliateMemberships.count())),
                });
                const Commission2 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Commission2?.setMembership)
                {
                    await
                    Commission2.
                    setMembership(relatedMembership2);
                }
            
                const relatedMembership3 = await AffiliateMemberships.findOne({
                    offset: Math.floor(Math.random() * (await AffiliateMemberships.count())),
                });
                const Commission3 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Commission3?.setMembership)
                {
                    await
                    Commission3.
                    setMembership(relatedMembership3);
                }
            
                const relatedMembership4 = await AffiliateMemberships.findOne({
                    offset: Math.floor(Math.random() * (await AffiliateMemberships.count())),
                });
                const Commission4 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Commission4?.setMembership)
                {
                    await
                    Commission4.
                    setMembership(relatedMembership4);
                }
            
        }
        
    
        
            
            async function associateCommissionWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Commission0 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Commission0?.setOrder)
                {
                    await
                    Commission0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Commission1 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Commission1?.setOrder)
                {
                    await
                    Commission1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Commission2 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Commission2?.setOrder)
                {
                    await
                    Commission2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Commission3 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Commission3?.setOrder)
                {
                    await
                    Commission3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Commission4 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Commission4?.setOrder)
                {
                    await
                    Commission4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
            
            async function associateCommissionWithWallet_transaction() {
            
                const relatedWallet_transaction0 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Commission0 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Commission0?.setWallet_transaction)
                {
                    await
                    Commission0.
                    setWallet_transaction(relatedWallet_transaction0);
                }
            
                const relatedWallet_transaction1 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Commission1 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Commission1?.setWallet_transaction)
                {
                    await
                    Commission1.
                    setWallet_transaction(relatedWallet_transaction1);
                }
            
                const relatedWallet_transaction2 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Commission2 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Commission2?.setWallet_transaction)
                {
                    await
                    Commission2.
                    setWallet_transaction(relatedWallet_transaction2);
                }
            
                const relatedWallet_transaction3 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Commission3 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Commission3?.setWallet_transaction)
                {
                    await
                    Commission3.
                    setWallet_transaction(relatedWallet_transaction3);
                }
            
                const relatedWallet_transaction4 = await WalletTransactions.findOne({
                    offset: Math.floor(Math.random() * (await WalletTransactions.count())),
                });
                const Commission4 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Commission4?.setWallet_transaction)
                {
                    await
                    Commission4.
                    setWallet_transaction(relatedWallet_transaction4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCommissionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Commission0 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Commission0?.setOrganization)
                {
                    await
                    Commission0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Commission1 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Commission1?.setOrganization)
                {
                    await
                    Commission1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Commission2 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Commission2?.setOrganization)
                {
                    await
                    Commission2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Commission3 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Commission3?.setOrganization)
                {
                    await
                    Commission3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Commission4 = await Commissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Commission4?.setOrganization)
                {
                    await
                    Commission4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateGeoRuleWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GeoRule0 = await GeoRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GeoRule0?.setOrganization)
                {
                    await
                    GeoRule0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GeoRule1 = await GeoRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GeoRule1?.setOrganization)
                {
                    await
                    GeoRule1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GeoRule2 = await GeoRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GeoRule2?.setOrganization)
                {
                    await
                    GeoRule2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GeoRule3 = await GeoRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GeoRule3?.setOrganization)
                {
                    await
                    GeoRule3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GeoRule4 = await GeoRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GeoRule4?.setOrganization)
                {
                    await
                    GeoRule4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateFactaQueryWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FactaQuery0 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FactaQuery0?.setUser)
                {
                    await
                    FactaQuery0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FactaQuery1 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FactaQuery1?.setUser)
                {
                    await
                    FactaQuery1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FactaQuery2 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FactaQuery2?.setUser)
                {
                    await
                    FactaQuery2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FactaQuery3 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FactaQuery3?.setUser)
                {
                    await
                    FactaQuery3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FactaQuery4 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FactaQuery4?.setUser)
                {
                    await
                    FactaQuery4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFactaQueryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaQuery0 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FactaQuery0?.setOrganization)
                {
                    await
                    FactaQuery0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaQuery1 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FactaQuery1?.setOrganization)
                {
                    await
                    FactaQuery1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaQuery2 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FactaQuery2?.setOrganization)
                {
                    await
                    FactaQuery2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaQuery3 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FactaQuery3?.setOrganization)
                {
                    await
                    FactaQuery3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaQuery4 = await FactaQueries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FactaQuery4?.setOrganization)
                {
                    await
                    FactaQuery4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateFactaAnswerWithFacta_query() {
            
                const relatedFacta_query0 = await FactaQueries.findOne({
                    offset: Math.floor(Math.random() * (await FactaQueries.count())),
                });
                const FactaAnswer0 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FactaAnswer0?.setFacta_query)
                {
                    await
                    FactaAnswer0.
                    setFacta_query(relatedFacta_query0);
                }
            
                const relatedFacta_query1 = await FactaQueries.findOne({
                    offset: Math.floor(Math.random() * (await FactaQueries.count())),
                });
                const FactaAnswer1 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FactaAnswer1?.setFacta_query)
                {
                    await
                    FactaAnswer1.
                    setFacta_query(relatedFacta_query1);
                }
            
                const relatedFacta_query2 = await FactaQueries.findOne({
                    offset: Math.floor(Math.random() * (await FactaQueries.count())),
                });
                const FactaAnswer2 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FactaAnswer2?.setFacta_query)
                {
                    await
                    FactaAnswer2.
                    setFacta_query(relatedFacta_query2);
                }
            
                const relatedFacta_query3 = await FactaQueries.findOne({
                    offset: Math.floor(Math.random() * (await FactaQueries.count())),
                });
                const FactaAnswer3 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FactaAnswer3?.setFacta_query)
                {
                    await
                    FactaAnswer3.
                    setFacta_query(relatedFacta_query3);
                }
            
                const relatedFacta_query4 = await FactaQueries.findOne({
                    offset: Math.floor(Math.random() * (await FactaQueries.count())),
                });
                const FactaAnswer4 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FactaAnswer4?.setFacta_query)
                {
                    await
                    FactaAnswer4.
                    setFacta_query(relatedFacta_query4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFactaAnswerWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaAnswer0 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FactaAnswer0?.setOrganization)
                {
                    await
                    FactaAnswer0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaAnswer1 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FactaAnswer1?.setOrganization)
                {
                    await
                    FactaAnswer1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaAnswer2 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FactaAnswer2?.setOrganization)
                {
                    await
                    FactaAnswer2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaAnswer3 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FactaAnswer3?.setOrganization)
                {
                    await
                    FactaAnswer3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FactaAnswer4 = await FactaAnswers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FactaAnswer4?.setOrganization)
                {
                    await
                    FactaAnswer4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

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

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateApiClientWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApiClient0 = await ApiClients.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApiClient0?.setOrganization)
                {
                    await
                    ApiClient0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApiClient1 = await ApiClients.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApiClient1?.setOrganization)
                {
                    await
                    ApiClient1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApiClient2 = await ApiClients.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApiClient2?.setOrganization)
                {
                    await
                    ApiClient2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApiClient3 = await ApiClients.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApiClient3?.setOrganization)
                {
                    await
                    ApiClient3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApiClient4 = await ApiClients.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApiClient4?.setOrganization)
                {
                    await
                    ApiClient4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAuditEventWithActor() {
            
                const relatedActor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setActor)
                {
                    await
                    AuditEvent0.
                    setActor(relatedActor0);
                }
            
                const relatedActor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setActor)
                {
                    await
                    AuditEvent1.
                    setActor(relatedActor1);
                }
            
                const relatedActor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setActor)
                {
                    await
                    AuditEvent2.
                    setActor(relatedActor2);
                }
            
                const relatedActor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent3 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditEvent3?.setActor)
                {
                    await
                    AuditEvent3.
                    setActor(relatedActor3);
                }
            
                const relatedActor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent4 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditEvent4?.setActor)
                {
                    await
                    AuditEvent4.
                    setActor(relatedActor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAuditEventWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setOrganization)
                {
                    await
                    AuditEvent0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setOrganization)
                {
                    await
                    AuditEvent1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setOrganization)
                {
                    await
                    AuditEvent2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent3 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditEvent3?.setOrganization)
                {
                    await
                    AuditEvent3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent4 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditEvent4?.setOrganization)
                {
                    await
                    AuditEvent4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await TrustProfiles.bulkCreate(TrustProfilesData);
                
            
            
                
                await IdentityVerifications.bulkCreate(IdentityVerificationsData);
                
            
            
                
                await Wallets.bulkCreate(WalletsData);
                
            
            
                
                await WalletTransactions.bulkCreate(WalletTransactionsData);
                
            
            
                
                await Chats.bulkCreate(ChatsData);
                
            
            
                
                await ChatParticipants.bulkCreate(ChatParticipantsData);
                
            
            
                
                await Messages.bulkCreate(MessagesData);
                
            
            
                
                await Stores.bulkCreate(StoresData);
                
            
            
                
                await Addresses.bulkCreate(AddressesData);
                
            
            
                
                await ProductCategories.bulkCreate(ProductCategoriesData);
                
            
            
                
                await Products.bulkCreate(ProductsData);
                
            
            
                
                await Orders.bulkCreate(OrdersData);
                
            
            
                
                await OrderItems.bulkCreate(OrderItemsData);
                
            
            
                
                await Payments.bulkCreate(PaymentsData);
                
            
            
                
                await ProductReviews.bulkCreate(ProductReviewsData);
                
            
            
                
                await Shipments.bulkCreate(ShipmentsData);
                
            
            
                
                await Posts.bulkCreate(PostsData);
                
            
            
                
                await DeepDiveLinks.bulkCreate(DeepDiveLinksData);
                
            
            
                
                await Citations.bulkCreate(CitationsData);
                
            
            
                
                await PostEngagements.bulkCreate(PostEngagementsData);
                
            
            
                
                await Rewards.bulkCreate(RewardsData);
                
            
            
                
                await ForumSpaces.bulkCreate(ForumSpacesData);
                
            
            
                
                await ForumThreads.bulkCreate(ForumThreadsData);
                
            
            
                
                await ForumPosts.bulkCreate(ForumPostsData);
                
            
            
                
                await JobCompanies.bulkCreate(JobCompaniesData);
                
            
            
                
                await JobListings.bulkCreate(JobListingsData);
                
            
            
                
                await JobApplications.bulkCreate(JobApplicationsData);
                
            
            
                
                await UserCredentials.bulkCreate(UserCredentialsData);
                
            
            
                
                await AffiliatePrograms.bulkCreate(AffiliateProgramsData);
                
            
            
                
                await AffiliateMemberships.bulkCreate(AffiliateMembershipsData);
                
            
            
                
                await Commissions.bulkCreate(CommissionsData);
                
            
            
                
                await GeoRules.bulkCreate(GeoRulesData);
                
            
            
                
                await FactaQueries.bulkCreate(FactaQueriesData);
                
            
            
                
                await FactaAnswers.bulkCreate(FactaAnswersData);
                
            
            
                
                await Subscriptions.bulkCreate(SubscriptionsData);
                
            
            
                
                await ApiClients.bulkCreate(ApiClientsData);
                
            
            
                
                await AuditEvents.bulkCreate(AuditEventsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTrustProfileWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateIdentityVerificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateIdentityVerificationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateWalletWithOwner(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWalletWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateWalletTransactionWithWallet(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWalletTransactionWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
                    
                        
                        await associateChatWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateChatParticipantWithChat(),
                    
                
                    
                        
                        await associateChatParticipantWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateChatParticipantWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMessageWithChat(),
                    
                
                    
                        
                        await associateMessageWithSender(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMessageWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateStoreWithOwner(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateStoreWithPrimary_addres(),
                    
                
                    
                        
                        await associateStoreWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAddressWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAddressWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProductCategoryWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateProductWithStore(),
                    
                
                    
                        
                        await associateProductWithCategory(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProductWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateOrderWithBuyer(),
                    
                
                    
                        
                        await associateOrderWithStore(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOrderWithShipping_addres(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOrderWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateOrderItemWithOrder(),
                    
                
                    
                        
                        await associateOrderItemWithProduct(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOrderItemWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePaymentWithOrder(),
                    
                
                    
                        
                        await associatePaymentWithPayer(),
                    
                
                    
                        
                        await associatePaymentWithWallet_transaction(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePaymentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateProductReviewWithProduct(),
                    
                
                    
                        
                        await associateProductReviewWithBuyer(),
                    
                
                    
                        
                        await associateProductReviewWithOrder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProductReviewWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateShipmentWithOrder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateShipmentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePostWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePostWithDeep_dive_link(),
                    
                
                    
                        
                        await associatePostWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDeepDiveLinkWithCreator(),
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
                    
                        
                        await associateDeepDiveLinkWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCitationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePostEngagementWithPost(),
                    
                
                    
                        
                        await associatePostEngagementWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePostEngagementWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRewardWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRewardWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateForumSpaceWithOwner(),
                    
                
                    
                        
                        await associateForumSpaceWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateForumThreadWithSpace(),
                    
                
                    
                        
                        await associateForumThreadWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateForumThreadWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateForumPostWithThread(),
                    
                
                    
                        
                        await associateForumPostWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateForumPostWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateJobCompanyWithOwner(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateJobCompanyWithHq_addres(),
                    
                
                    
                        
                        await associateJobCompanyWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateJobListingWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateJobListingWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateJobApplicationWithJob_listing(),
                    
                
                    
                        
                        await associateJobApplicationWithApplicant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateJobApplicationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateUserCredentialWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateUserCredentialWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAffiliateProgramWithProducer_store(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAffiliateProgramWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAffiliateMembershipWithProgram(),
                    
                
                    
                        
                        await associateAffiliateMembershipWithMember(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAffiliateMembershipWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCommissionWithMembership(),
                    
                
                    
                        
                        await associateCommissionWithOrder(),
                    
                
                    
                        
                        await associateCommissionWithWallet_transaction(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCommissionWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateGeoRuleWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateFactaQueryWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFactaQueryWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateFactaAnswerWithFacta_query(),
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFactaAnswerWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSubscriptionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSubscriptionWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApiClientWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAuditEventWithActor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAuditEventWithOrganization(),
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('trust_profiles', null, {});
            
            
            await queryInterface.bulkDelete('identity_verifications', null, {});
            
            
            await queryInterface.bulkDelete('wallets', null, {});
            
            
            await queryInterface.bulkDelete('wallet_transactions', null, {});
            
            
            await queryInterface.bulkDelete('chats', null, {});
            
            
            await queryInterface.bulkDelete('chat_participants', null, {});
            
            
            await queryInterface.bulkDelete('messages', null, {});
            
            
            await queryInterface.bulkDelete('stores', null, {});
            
            
            await queryInterface.bulkDelete('addresses', null, {});
            
            
            await queryInterface.bulkDelete('product_categories', null, {});
            
            
            await queryInterface.bulkDelete('products', null, {});
            
            
            await queryInterface.bulkDelete('orders', null, {});
            
            
            await queryInterface.bulkDelete('order_items', null, {});
            
            
            await queryInterface.bulkDelete('payments', null, {});
            
            
            await queryInterface.bulkDelete('product_reviews', null, {});
            
            
            await queryInterface.bulkDelete('shipments', null, {});
            
            
            await queryInterface.bulkDelete('posts', null, {});
            
            
            await queryInterface.bulkDelete('deep_dive_links', null, {});
            
            
            await queryInterface.bulkDelete('citations', null, {});
            
            
            await queryInterface.bulkDelete('post_engagements', null, {});
            
            
            await queryInterface.bulkDelete('rewards', null, {});
            
            
            await queryInterface.bulkDelete('forum_spaces', null, {});
            
            
            await queryInterface.bulkDelete('forum_threads', null, {});
            
            
            await queryInterface.bulkDelete('forum_posts', null, {});
            
            
            await queryInterface.bulkDelete('job_companies', null, {});
            
            
            await queryInterface.bulkDelete('job_listings', null, {});
            
            
            await queryInterface.bulkDelete('job_applications', null, {});
            
            
            await queryInterface.bulkDelete('user_credentials', null, {});
            
            
            await queryInterface.bulkDelete('affiliate_programs', null, {});
            
            
            await queryInterface.bulkDelete('affiliate_memberships', null, {});
            
            
            await queryInterface.bulkDelete('commissions', null, {});
            
            
            await queryInterface.bulkDelete('geo_rules', null, {});
            
            
            await queryInterface.bulkDelete('facta_queries', null, {});
            
            
            await queryInterface.bulkDelete('facta_answers', null, {});
            
            
            await queryInterface.bulkDelete('subscriptions', null, {});
            
            
            await queryInterface.bulkDelete('api_clients', null, {});
            
            
            await queryInterface.bulkDelete('audit_events', null, {});
            
        
    },
};