





















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






const Organizations = db.organizations;

const OauthAccounts = db.oauth_accounts;

const ArtistProfiles = db.artist_profiles;

const Teams = db.teams;

const TeamMemberships = db.team_memberships;

const Plans = db.plans;

const Subscriptions = db.subscriptions;

const DistributionPlatforms = db.distribution_platforms;

const Genres = db.genres;

const Releases = db.releases;

const Tracks = db.tracks;

const TrackContributors = db.track_contributors;

const ReleaseDeliveries = db.release_deliveries;

const SmartLinks = db.smart_links;

const SmartLinkDestinations = db.smart_link_destinations;

const SmartLinkClicks = db.smart_link_clicks;

const Playlists = db.playlists;

const PitchRequests = db.pitch_requests;

const PlaylistPlacements = db.playlist_placements;

const RoyaltyReports = db.royalty_reports;

const RoyaltyLines = db.royalty_lines;

const Wallets = db.wallets;

const WalletTransactions = db.wallet_transactions;

const PayoutMethods = db.payout_methods;

const WithdrawalRequests = db.withdrawal_requests;

const TaxDocuments = db.tax_documents;

const AnalyticsDaily = db.analytics_daily;

const Notifications = db.notifications;

const NotificationPreferences = db.notification_preferences;

const ApiKeys = db.api_keys;

const DashboardWidgets = db.dashboard_widgets;

const ActivityEvents = db.activity_events;

const BlogPosts = db.blog_posts;

const FaqItems = db.faq_items;

const ContactMessages = db.contact_messages;

const ReferralPrograms = db.referral_programs;

const ReferralLinks = db.referral_links;

const ReferralConversions = db.referral_conversions;







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



const OauthAccountsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "apple",
            
        
    
        
        
            
                "provider_user_key": "Marie Curie",
            
        
    
        
        
            
                "access_token": "Alan Turing",
            
        
    
        
        
            
                "refresh_token": "Marie Curie",
            
        
    
        
        
            
                "token_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "yandex",
            
        
    
        
        
            
                "provider_user_key": "Ada Lovelace",
            
        
    
        
        
            
                "access_token": "Alan Turing",
            
        
    
        
        
            
                "refresh_token": "Ada Lovelace",
            
        
    
        
        
            
                "token_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "vk",
            
        
    
        
        
            
                "provider_user_key": "Ada Lovelace",
            
        
    
        
        
            
                "access_token": "Ada Lovelace",
            
        
    
        
        
            
                "refresh_token": "Ada Lovelace",
            
        
    
        
        
            
                "token_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "vk",
            
        
    
        
        
            
                "provider_user_key": "Alan Turing",
            
        
    
        
        
            
                "access_token": "Marie Curie",
            
        
    
        
        
            
                "refresh_token": "Grace Hopper",
            
        
    
        
        
            
                "token_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ArtistProfilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "artist_name": "Ada Lovelace",
            
        
    
        
        
            
                "profile_type": "solo_artist",
            
        
    
        
        
            
                "legal_name": "Alan Turing",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "tax_residency": "Grace Hopper",
            
        
    
        
        
            
                "payout_currency": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "bio": "Marie Curie",
            
        
    
        
        
            
                "website_url": "Marie Curie",
            
        
    
        
        
            
                "vk_url": "Grace Hopper",
            
        
    
        
        
            
                "youtube_url": "Alan Turing",
            
        
    
        
        
            
                "tiktok_url": "Ada Lovelace",
            
        
    
        
        
            
                "instagram_url": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "artist_name": "Alan Turing",
            
        
    
        
        
            
                "profile_type": "label",
            
        
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "tax_residency": "Ada Lovelace",
            
        
    
        
        
            
                "payout_currency": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "bio": "Alan Turing",
            
        
    
        
        
            
                "website_url": "Alan Turing",
            
        
    
        
        
            
                "vk_url": "Marie Curie",
            
        
    
        
        
            
                "youtube_url": "Ada Lovelace",
            
        
    
        
        
            
                "tiktok_url": "Alan Turing",
            
        
    
        
        
            
                "instagram_url": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "artist_name": "Ada Lovelace",
            
        
    
        
        
            
                "profile_type": "solo_artist",
            
        
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "tax_residency": "Alan Turing",
            
        
    
        
        
            
                "payout_currency": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "bio": "Grace Hopper",
            
        
    
        
        
            
                "website_url": "Alan Turing",
            
        
    
        
        
            
                "vk_url": "Marie Curie",
            
        
    
        
        
            
                "youtube_url": "Ada Lovelace",
            
        
    
        
        
            
                "tiktok_url": "Ada Lovelace",
            
        
    
        
        
            
                "instagram_url": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "artist_name": "Alan Turing",
            
        
    
        
        
            
                "profile_type": "solo_artist",
            
        
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "tax_residency": "Ada Lovelace",
            
        
    
        
        
            
                "payout_currency": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "bio": "Grace Hopper",
            
        
    
        
        
            
                "website_url": "Alan Turing",
            
        
    
        
        
            
                "vk_url": "Marie Curie",
            
        
    
        
        
            
                "youtube_url": "Marie Curie",
            
        
    
        
        
            
                "tiktok_url": "Marie Curie",
            
        
    
        
        
            
                "instagram_url": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



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



const TeamMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "editor",
            
        
    
        
        
            
                "status": "invited",
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "owner",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "editor",
            
        
    
        
        
            
                "status": "invited",
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "status": "invited",
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PlansData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "plan_code": "pro",
            
        
    
        
        
            
                "price_amount": 0.86,
            
        
    
        
        
            
                "price_currency": "Grace Hopper",
            
        
    
        
        
            
                "billing_period": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "features": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "plan_code": "basic",
            
        
    
        
        
            
                "price_amount": 8.41,
            
        
    
        
        
            
                "price_currency": "Marie Curie",
            
        
    
        
        
            
                "billing_period": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "features": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "plan_code": "basic",
            
        
    
        
        
            
                "price_amount": 0.1,
            
        
    
        
        
            
                "price_currency": "Grace Hopper",
            
        
    
        
        
            
                "billing_period": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "features": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "plan_code": "label",
            
        
    
        
        
            
                "price_amount": 5.11,
            
        
    
        
        
            
                "price_currency": "Ada Lovelace",
            
        
    
        
        
            
                "billing_period": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "features": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SubscriptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "trialing",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_renew": true,
            
        
    
        
        
            
                "external_billing_key": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "trialing",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_renew": true,
            
        
    
        
        
            
                "external_billing_key": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_renew": true,
            
        
    
        
        
            
                "external_billing_key": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_renew": true,
            
        
    
        
        
            
                "external_billing_key": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DistributionPlatformsData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "category": "streaming",
            
        
    
        
        
            
                "website_url": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "category": "other",
            
        
    
        
        
            
                "website_url": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "category": "streaming",
            
        
    
        
        
            
                "website_url": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "category": "other",
            
        
    
        
        
            
                "website_url": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GenresData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ReleasesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "release_type": "podcast",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "language": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "label_name": "Ada Lovelace",
            
        
    
        
        
            
                "copyright_notice": "Alan Turing",
            
        
    
        
        
            
                "production_notice": "Alan Turing",
            
        
    
        
        
            
                "upc_code": "Grace Hopper",
            
        
    
        
        
            
                "upc_source": "auto",
            
        
    
        
        
            
                "release_date": new Date(Date.now()),
            
        
    
        
        
            
                "original_release_date": new Date(Date.now()),
            
        
    
        
        
            
                "moderation_status": "takedown_completed",
            
        
    
        
        
            
                "moderation_notes": "Ada Lovelace",
            
        
    
        
        
            
                "explicit_content": true,
            
        
    
        
        
            
                "license_accepted": true,
            
        
    
        
        
            
                "content_id_enabled": false,
            
        
    
        
        
            
                "content_match_enabled": false,
            
        
    
        
        
            
                "internal_catalog_code": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "release_type": "album",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "language": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "label_name": "Alan Turing",
            
        
    
        
        
            
                "copyright_notice": "Marie Curie",
            
        
    
        
        
            
                "production_notice": "Alan Turing",
            
        
    
        
        
            
                "upc_code": "Marie Curie",
            
        
    
        
        
            
                "upc_source": "manual",
            
        
    
        
        
            
                "release_date": new Date(Date.now()),
            
        
    
        
        
            
                "original_release_date": new Date(Date.now()),
            
        
    
        
        
            
                "moderation_status": "approved",
            
        
    
        
        
            
                "moderation_notes": "Marie Curie",
            
        
    
        
        
            
                "explicit_content": false,
            
        
    
        
        
            
                "license_accepted": false,
            
        
    
        
        
            
                "content_id_enabled": true,
            
        
    
        
        
            
                "content_match_enabled": false,
            
        
    
        
        
            
                "internal_catalog_code": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "release_type": "podcast",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "language": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "label_name": "Marie Curie",
            
        
    
        
        
            
                "copyright_notice": "Ada Lovelace",
            
        
    
        
        
            
                "production_notice": "Grace Hopper",
            
        
    
        
        
            
                "upc_code": "Alan Turing",
            
        
    
        
        
            
                "upc_source": "auto",
            
        
    
        
        
            
                "release_date": new Date(Date.now()),
            
        
    
        
        
            
                "original_release_date": new Date(Date.now()),
            
        
    
        
        
            
                "moderation_status": "takedown_requested",
            
        
    
        
        
            
                "moderation_notes": "Ada Lovelace",
            
        
    
        
        
            
                "explicit_content": false,
            
        
    
        
        
            
                "license_accepted": true,
            
        
    
        
        
            
                "content_id_enabled": true,
            
        
    
        
        
            
                "content_match_enabled": true,
            
        
    
        
        
            
                "internal_catalog_code": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "release_type": "ep",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "language": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "label_name": "Alan Turing",
            
        
    
        
        
            
                "copyright_notice": "Alan Turing",
            
        
    
        
        
            
                "production_notice": "Marie Curie",
            
        
    
        
        
            
                "upc_code": "Alan Turing",
            
        
    
        
        
            
                "upc_source": "auto",
            
        
    
        
        
            
                "release_date": new Date(Date.now()),
            
        
    
        
        
            
                "original_release_date": new Date(Date.now()),
            
        
    
        
        
            
                "moderation_status": "rejected",
            
        
    
        
        
            
                "moderation_notes": "Marie Curie",
            
        
    
        
        
            
                "explicit_content": false,
            
        
    
        
        
            
                "license_accepted": true,
            
        
    
        
        
            
                "content_id_enabled": true,
            
        
    
        
        
            
                "content_match_enabled": false,
            
        
    
        
        
            
                "internal_catalog_code": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TracksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "track_number": 9,
            
        
    
        
        
            
                "version": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isrc_code": "Alan Turing",
            
        
    
        
        
            
                "isrc_source": "auto",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "duration_seconds": 1,
            
        
    
        
        
            
                "sample_rate_hz": 9,
            
        
    
        
        
            
                "bitrate_kbps": 3,
            
        
    
        
        
            
                "audio_format": "wav",
            
        
    
        
        
            
                "explicit_content": false,
            
        
    
        
        
            
                "lyrics": "Ada Lovelace",
            
        
    
        
        
            
                "audio_fingerprint": "Grace Hopper",
            
        
    
        
        
            
                "quality_status": "failed",
            
        
    
        
        
            
                "quality_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "track_number": 7,
            
        
    
        
        
            
                "version": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isrc_code": "Grace Hopper",
            
        
    
        
        
            
                "isrc_source": "auto",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "duration_seconds": 6,
            
        
    
        
        
            
                "sample_rate_hz": 4,
            
        
    
        
        
            
                "bitrate_kbps": 1,
            
        
    
        
        
            
                "audio_format": "wav",
            
        
    
        
        
            
                "explicit_content": true,
            
        
    
        
        
            
                "lyrics": "Ada Lovelace",
            
        
    
        
        
            
                "audio_fingerprint": "Alan Turing",
            
        
    
        
        
            
                "quality_status": "pending",
            
        
    
        
        
            
                "quality_notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "track_number": 5,
            
        
    
        
        
            
                "version": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isrc_code": "Ada Lovelace",
            
        
    
        
        
            
                "isrc_source": "manual",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "duration_seconds": 2,
            
        
    
        
        
            
                "sample_rate_hz": 9,
            
        
    
        
        
            
                "bitrate_kbps": 9,
            
        
    
        
        
            
                "audio_format": "mp3",
            
        
    
        
        
            
                "explicit_content": false,
            
        
    
        
        
            
                "lyrics": "Ada Lovelace",
            
        
    
        
        
            
                "audio_fingerprint": "Grace Hopper",
            
        
    
        
        
            
                "quality_status": "failed",
            
        
    
        
        
            
                "quality_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "track_number": 8,
            
        
    
        
        
            
                "version": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isrc_code": "Grace Hopper",
            
        
    
        
        
            
                "isrc_source": "auto",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "duration_seconds": 4,
            
        
    
        
        
            
                "sample_rate_hz": 5,
            
        
    
        
        
            
                "bitrate_kbps": 1,
            
        
    
        
        
            
                "audio_format": "wav",
            
        
    
        
        
            
                "explicit_content": true,
            
        
    
        
        
            
                "lyrics": "Marie Curie",
            
        
    
        
        
            
                "audio_fingerprint": "Ada Lovelace",
            
        
    
        
        
            
                "quality_status": "needs_attention",
            
        
    
        
        
            
                "quality_notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TrackContributorsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "role": "mastering_engineer",
            
        
    
        
        
            
                "spotify_artist_url": "Marie Curie",
            
        
    
        
        
            
                "apple_artist_url": "Grace Hopper",
            
        
    
        
        
            
                "society_identifier": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "role": "primary_artist",
            
        
    
        
        
            
                "spotify_artist_url": "Ada Lovelace",
            
        
    
        
        
            
                "apple_artist_url": "Marie Curie",
            
        
    
        
        
            
                "society_identifier": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "role": "session_musician",
            
        
    
        
        
            
                "spotify_artist_url": "Ada Lovelace",
            
        
    
        
        
            
                "apple_artist_url": "Grace Hopper",
            
        
    
        
        
            
                "society_identifier": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "role": "mastering_engineer",
            
        
    
        
        
            
                "spotify_artist_url": "Ada Lovelace",
            
        
    
        
        
            
                "apple_artist_url": "Marie Curie",
            
        
    
        
        
            
                "society_identifier": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ReleaseDeliveriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "failed",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "platform_release_url": "Marie Curie",
            
        
    
        
        
            
                "external_reference": "Alan Turing",
            
        
    
        
        
            
                "error_message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "processing",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "platform_release_url": "Alan Turing",
            
        
    
        
        
            
                "external_reference": "Marie Curie",
            
        
    
        
        
            
                "error_message": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "delivered",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "platform_release_url": "Ada Lovelace",
            
        
    
        
        
            
                "external_reference": "Marie Curie",
            
        
    
        
        
            
                "error_message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "processing",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "platform_release_url": "Grace Hopper",
            
        
    
        
        
            
                "external_reference": "Ada Lovelace",
            
        
    
        
        
            
                "error_message": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SmartLinksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "page_title": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "custom_text": "Grace Hopper",
            
        
    
        
        
            
                "theme_color": "Grace Hopper",
            
        
    
        
        
            
                "is_public": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "page_title": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "custom_text": "Alan Turing",
            
        
    
        
        
            
                "theme_color": "Grace Hopper",
            
        
    
        
        
            
                "is_public": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "page_title": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "custom_text": "Alan Turing",
            
        
    
        
        
            
                "theme_color": "Ada Lovelace",
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "page_title": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "custom_text": "Grace Hopper",
            
        
    
        
        
            
                "theme_color": "Alan Turing",
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SmartLinkDestinationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "destination_url": "Marie Curie",
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                "is_primary": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "destination_url": "Ada Lovelace",
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
        
        
            
                "is_primary": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "destination_url": "Marie Curie",
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
        
        
            
                "is_primary": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "destination_url": "Marie Curie",
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
        
        
            
                "is_primary": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SmartLinkClicksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "clicked_at": new Date(Date.now()),
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "referrer": "Alan Turing",
            
        
    
        
        
            
                "utm_source": "Grace Hopper",
            
        
    
        
        
            
                "utm_campaign": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "clicked_at": new Date(Date.now()),
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "referrer": "Alan Turing",
            
        
    
        
        
            
                "utm_source": "Alan Turing",
            
        
    
        
        
            
                "utm_campaign": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "clicked_at": new Date(Date.now()),
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "referrer": "Alan Turing",
            
        
    
        
        
            
                "utm_source": "Grace Hopper",
            
        
    
        
        
            
                "utm_campaign": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "clicked_at": new Date(Date.now()),
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "referrer": "Marie Curie",
            
        
    
        
        
            
                "utm_source": "Alan Turing",
            
        
    
        
        
            
                "utm_campaign": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PlaylistsData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "playlist_type": "partner_curator",
            
        
    
        
        
            
                "curator_name": "Marie Curie",
            
        
    
        
        
            
                "playlist_url": "Ada Lovelace",
            
        
    
        
        
            
                "genre_focus": "Alan Turing",
            
        
    
        
        
            
                "mood_tags": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "playlist_type": "partner_curator",
            
        
    
        
        
            
                "curator_name": "Grace Hopper",
            
        
    
        
        
            
                "playlist_url": "Marie Curie",
            
        
    
        
        
            
                "genre_focus": "Grace Hopper",
            
        
    
        
        
            
                "mood_tags": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "playlist_type": "partner_curator",
            
        
    
        
        
            
                "curator_name": "Alan Turing",
            
        
    
        
        
            
                "playlist_url": "Grace Hopper",
            
        
    
        
        
            
                "genre_focus": "Ada Lovelace",
            
        
    
        
        
            
                "mood_tags": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "playlist_type": "user",
            
        
    
        
        
            
                "curator_name": "Ada Lovelace",
            
        
    
        
        
            
                "playlist_url": "Ada Lovelace",
            
        
    
        
        
            
                "genre_focus": "Alan Turing",
            
        
    
        
        
            
                "mood_tags": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PitchRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "pitch_title": "Marie Curie",
            
        
    
        
        
            
                "pitch_text": "Grace Hopper",
            
        
    
        
        
            
                "mood": "Alan Turing",
            
        
    
        
        
            
                "similar_artists": "Alan Turing",
            
        
    
        
        
            
                "achievements": "Alan Turing",
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "decision_notes": "Alan Turing",
            
        
    
        
        
            
                // 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_many" field
            
        
    
        
        
            
                "pitch_title": "Marie Curie",
            
        
    
        
        
            
                "pitch_text": "Alan Turing",
            
        
    
        
        
            
                "mood": "Alan Turing",
            
        
    
        
        
            
                "similar_artists": "Grace Hopper",
            
        
    
        
        
            
                "achievements": "Marie Curie",
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "decision_notes": "Alan Turing",
            
        
    
        
        
            
                // 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_many" field
            
        
    
        
        
            
                "pitch_title": "Ada Lovelace",
            
        
    
        
        
            
                "pitch_text": "Marie Curie",
            
        
    
        
        
            
                "mood": "Alan Turing",
            
        
    
        
        
            
                "similar_artists": "Ada Lovelace",
            
        
    
        
        
            
                "achievements": "Grace Hopper",
            
        
    
        
        
            
                "status": "accepted",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "decision_notes": "Grace Hopper",
            
        
    
        
        
            
                // 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_many" field
            
        
    
        
        
            
                "pitch_title": "Alan Turing",
            
        
    
        
        
            
                "pitch_text": "Grace Hopper",
            
        
    
        
        
            
                "mood": "Ada Lovelace",
            
        
    
        
        
            
                "similar_artists": "Marie Curie",
            
        
    
        
        
            
                "achievements": "Grace Hopper",
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "decision_notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PlaylistPlacementsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "removed_at": new Date(Date.now()),
            
        
    
        
        
            
                "position": 2,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "removed_at": new Date(Date.now()),
            
        
    
        
        
            
                "position": 3,
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "removed_at": new Date(Date.now()),
            
        
    
        
        
            
                "position": 2,
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "removed_at": new Date(Date.now()),
            
        
    
        
        
            
                "position": 4,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RoyaltyReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "source_type": "xml",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "source_reference": "Grace Hopper",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "error_details": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "source_type": "manual",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "source_reference": "Alan Turing",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "error_details": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "source_type": "manual",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "source_reference": "Ada Lovelace",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "error_details": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "period_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "period_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "source_type": "manual",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "source_reference": "Ada Lovelace",
            
        
    
        
        
            
                "status": "processing",
            
        
    
        
        
            
                "error_details": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RoyaltyLinesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "territory": "Alan Turing",
            
        
    
        
        
            
                "store_name": "Alan Turing",
            
        
    
        
        
            
                "quantity": 4,
            
        
    
        
        
            
                "unit_rate": 5.03,
            
        
    
        
        
            
                "gross_amount": 6.04,
            
        
    
        
        
            
                "net_amount": 5.35,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "usage_type": "download",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "territory": "Alan Turing",
            
        
    
        
        
            
                "store_name": "Ada Lovelace",
            
        
    
        
        
            
                "quantity": 2,
            
        
    
        
        
            
                "unit_rate": 9.94,
            
        
    
        
        
            
                "gross_amount": 3.09,
            
        
    
        
        
            
                "net_amount": 6.65,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "usage_type": "ugc",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "territory": "Ada Lovelace",
            
        
    
        
        
            
                "store_name": "Grace Hopper",
            
        
    
        
        
            
                "quantity": 6,
            
        
    
        
        
            
                "unit_rate": 2.94,
            
        
    
        
        
            
                "gross_amount": 8.0,
            
        
    
        
        
            
                "net_amount": 1.48,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "usage_type": "download",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "territory": "Grace Hopper",
            
        
    
        
        
            
                "store_name": "Marie Curie",
            
        
    
        
        
            
                "quantity": 5,
            
        
    
        
        
            
                "unit_rate": 7.94,
            
        
    
        
        
            
                "gross_amount": 5.04,
            
        
    
        
        
            
                "net_amount": 9.31,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "usage_type": "video",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const WalletsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "available_balance": 9.31,
            
        
    
        
        
            
                "pending_balance": 5.82,
            
        
    
        
        
            
                "lifetime_earned": 0.35,
            
        
    
        
        
            
                "lifetime_paid_out": 1.48,
            
        
    
        
        
            
                "minimum_withdrawal_amount": 9.43,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "available_balance": 2.29,
            
        
    
        
        
            
                "pending_balance": 8.7,
            
        
    
        
        
            
                "lifetime_earned": 0.44,
            
        
    
        
        
            
                "lifetime_paid_out": 0.72,
            
        
    
        
        
            
                "minimum_withdrawal_amount": 5.67,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "available_balance": 5.62,
            
        
    
        
        
            
                "pending_balance": 2.23,
            
        
    
        
        
            
                "lifetime_earned": 6.93,
            
        
    
        
        
            
                "lifetime_paid_out": 6.68,
            
        
    
        
        
            
                "minimum_withdrawal_amount": 2.54,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "available_balance": 9.47,
            
        
    
        
        
            
                "pending_balance": 3.28,
            
        
    
        
        
            
                "lifetime_earned": 5.95,
            
        
    
        
        
            
                "lifetime_paid_out": 6.48,
            
        
    
        
        
            
                "minimum_withdrawal_amount": 1.42,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const WalletTransactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transaction_type": "withdrawal_paid",
            
        
    
        
        
            
                "amount": 4.5,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "external_reference": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transaction_type": "fee",
            
        
    
        
        
            
                "amount": 8.83,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "external_reference": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transaction_type": "refund",
            
        
    
        
        
            
                "amount": 0.72,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "external_reference": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transaction_type": "refund",
            
        
    
        
        
            
                "amount": 1.74,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "external_reference": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PayoutMethodsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method_type": "paypal",
            
        
    
        
        
            
                "method_label": "Grace Hopper",
            
        
    
        
        
            
                "account_identifier": "Grace Hopper",
            
        
    
        
        
            
                "holder_name": "Marie Curie",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                "status": "disabled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method_type": "robokassa",
            
        
    
        
        
            
                "method_label": "Marie Curie",
            
        
    
        
        
            
                "account_identifier": "Ada Lovelace",
            
        
    
        
        
            
                "holder_name": "Alan Turing",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method_type": "yookassa",
            
        
    
        
        
            
                "method_label": "Marie Curie",
            
        
    
        
        
            
                "account_identifier": "Marie Curie",
            
        
    
        
        
            
                "holder_name": "Marie Curie",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method_type": "crypto",
            
        
    
        
        
            
                "method_label": "Ada Lovelace",
            
        
    
        
        
            
                "account_identifier": "Alan Turing",
            
        
    
        
        
            
                "holder_name": "Ada Lovelace",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                "status": "needs_verification",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const WithdrawalRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 0.58,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "processor_reference": "Alan Turing",
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 1.4,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "processor_reference": "Marie Curie",
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 0.92,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "processor_reference": "Ada Lovelace",
            
        
    
        
        
            
                "failure_reason": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 1.83,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "processor_reference": "Marie Curie",
            
        
    
        
        
            
                "failure_reason": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TaxDocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "ndfl_2",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "vat_statement",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "invoice",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "invoice",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AnalyticsDailyData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "metric_date": new Date(Date.now()),
            
        
    
        
        
            
                "streams": 9,
            
        
    
        
        
            
                "unique_listeners": 5,
            
        
    
        
        
            
                "saves": 8,
            
        
    
        
        
            
                "likes": 9,
            
        
    
        
        
            
                "shares": 4,
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "traffic_source": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "metric_date": new Date(Date.now()),
            
        
    
        
        
            
                "streams": 2,
            
        
    
        
        
            
                "unique_listeners": 4,
            
        
    
        
        
            
                "saves": 3,
            
        
    
        
        
            
                "likes": 3,
            
        
    
        
        
            
                "shares": 9,
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "traffic_source": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "metric_date": new Date(Date.now()),
            
        
    
        
        
            
                "streams": 6,
            
        
    
        
        
            
                "unique_listeners": 9,
            
        
    
        
        
            
                "saves": 7,
            
        
    
        
        
            
                "likes": 7,
            
        
    
        
        
            
                "shares": 6,
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "traffic_source": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "metric_date": new Date(Date.now()),
            
        
    
        
        
            
                "streams": 1,
            
        
    
        
        
            
                "unique_listeners": 2,
            
        
    
        
        
            
                "saves": 7,
            
        
    
        
        
            
                "likes": 6,
            
        
    
        
        
            
                "shares": 7,
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "traffic_source": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "in_app",
            
        
    
        
        
            
                "event_type": "royalty_accrual",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "provider_reference": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "in_app",
            
        
    
        
        
            
                "event_type": "moderation_status_changed",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "provider_reference": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "in_app",
            
        
    
        
        
            
                "event_type": "release_published",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "provider_reference": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "email",
            
        
    
        
        
            
                "event_type": "release_published",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "provider_reference": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const NotificationPreferencesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "email_enabled": true,
            
        
    
        
        
            
                "push_enabled": true,
            
        
    
        
        
            
                "telegram_enabled": false,
            
        
    
        
        
            
                "sms_enabled": true,
            
        
    
        
        
            
                "in_app_enabled": false,
            
        
    
        
        
            
                "release_updates_enabled": true,
            
        
    
        
        
            
                "finance_updates_enabled": false,
            
        
    
        
        
            
                "playlist_updates_enabled": false,
            
        
    
        
        
            
                "marketing_updates_enabled": true,
            
        
    
        
        
            
                "quiet_hours": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "email_enabled": true,
            
        
    
        
        
            
                "push_enabled": true,
            
        
    
        
        
            
                "telegram_enabled": true,
            
        
    
        
        
            
                "sms_enabled": true,
            
        
    
        
        
            
                "in_app_enabled": true,
            
        
    
        
        
            
                "release_updates_enabled": true,
            
        
    
        
        
            
                "finance_updates_enabled": false,
            
        
    
        
        
            
                "playlist_updates_enabled": true,
            
        
    
        
        
            
                "marketing_updates_enabled": true,
            
        
    
        
        
            
                "quiet_hours": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "email_enabled": true,
            
        
    
        
        
            
                "push_enabled": false,
            
        
    
        
        
            
                "telegram_enabled": false,
            
        
    
        
        
            
                "sms_enabled": false,
            
        
    
        
        
            
                "in_app_enabled": false,
            
        
    
        
        
            
                "release_updates_enabled": false,
            
        
    
        
        
            
                "finance_updates_enabled": false,
            
        
    
        
        
            
                "playlist_updates_enabled": true,
            
        
    
        
        
            
                "marketing_updates_enabled": true,
            
        
    
        
        
            
                "quiet_hours": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "email_enabled": false,
            
        
    
        
        
            
                "push_enabled": false,
            
        
    
        
        
            
                "telegram_enabled": false,
            
        
    
        
        
            
                "sms_enabled": true,
            
        
    
        
        
            
                "in_app_enabled": true,
            
        
    
        
        
            
                "release_updates_enabled": false,
            
        
    
        
        
            
                "finance_updates_enabled": true,
            
        
    
        
        
            
                "playlist_updates_enabled": true,
            
        
    
        
        
            
                "marketing_updates_enabled": true,
            
        
    
        
        
            
                "quiet_hours": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApiKeysData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "key_prefix": "Grace Hopper",
            
        
    
        
        
            
                "key_hash": "Alan Turing",
            
        
    
        
        
            
                "scopes": "Ada Lovelace",
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key_prefix": "Grace Hopper",
            
        
    
        
        
            
                "key_hash": "Alan Turing",
            
        
    
        
        
            
                "scopes": "Ada Lovelace",
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "key_prefix": "Grace Hopper",
            
        
    
        
        
            
                "key_hash": "Alan Turing",
            
        
    
        
        
            
                "scopes": "Grace Hopper",
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "key_prefix": "Marie Curie",
            
        
    
        
        
            
                "key_hash": "Alan Turing",
            
        
    
        
        
            
                "scopes": "Ada Lovelace",
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DashboardWidgetsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "widget_type": "revenue_by_platform",
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                "is_visible": false,
            
        
    
        
        
            
                "settings_json": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "widget_type": "kpi_cards",
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                "is_visible": true,
            
        
    
        
        
            
                "settings_json": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "widget_type": "streams_chart",
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                "is_visible": true,
            
        
    
        
        
            
                "settings_json": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "widget_type": "activity_feed",
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                "is_visible": false,
            
        
    
        
        
            
                "settings_json": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ActivityEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_kind": "milestone",
            
        
    
        
        
            
                "headline": "Grace Hopper",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "entity_name": "Ada Lovelace",
            
        
    
        
        
            
                "entity_key": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_kind": "security",
            
        
    
        
        
            
                "headline": "Marie Curie",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "entity_name": "Marie Curie",
            
        
    
        
        
            
                "entity_key": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_kind": "milestone",
            
        
    
        
        
            
                "headline": "Ada Lovelace",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "entity_name": "Marie Curie",
            
        
    
        
        
            
                "entity_key": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_kind": "moderation",
            
        
    
        
        
            
                "headline": "Marie Curie",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "entity_name": "Marie Curie",
            
        
    
        
        
            
                "entity_key": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BlogPostsData = [
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "category": "platform_updates",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "excerpt": "Alan Turing",
            
        
    
        
        
            
                "content": "Ada Lovelace",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "seo_title": "Grace Hopper",
            
        
    
        
        
            
                "seo_description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "category": "industry_news",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "excerpt": "Ada Lovelace",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "seo_title": "Ada Lovelace",
            
        
    
        
        
            
                "seo_description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "category": "success_stories",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "excerpt": "Alan Turing",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "seo_title": "Marie Curie",
            
        
    
        
        
            
                "seo_description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "category": "guides",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "excerpt": "Alan Turing",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "seo_title": "Marie Curie",
            
        
    
        
        
            
                "seo_description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const FaqItemsData = [
    
    {
    
        
        
            
                "category": "general",
            
        
    
        
        
            
                "question": "Marie Curie",
            
        
    
        
        
            
                "answer": "Marie Curie",
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category": "technical",
            
        
    
        
        
            
                "question": "Grace Hopper",
            
        
    
        
        
            
                "answer": "Ada Lovelace",
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category": "uploading",
            
        
    
        
        
            
                "question": "Marie Curie",
            
        
    
        
        
            
                "answer": "Marie Curie",
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category": "general",
            
        
    
        
        
            
                "question": "Alan Turing",
            
        
    
        
        
            
                "answer": "Ada Lovelace",
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContactMessagesData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "status": "spam",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "subject": "Marie Curie",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "status": "new",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "status": "spam",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ReferralProgramsData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "commission_percent": 5.97,
            
        
    
        
        
            
                "validity_days": 2,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "commission_percent": 4.6,
            
        
    
        
        
            
                "validity_days": 3,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "commission_percent": 6.73,
            
        
    
        
        
            
                "validity_days": 1,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "commission_percent": 8.57,
            
        
    
        
        
            
                "validity_days": 3,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ReferralLinksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "landing_url": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "created_on": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "landing_url": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "created_on": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "landing_url": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "created_on": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "landing_url": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "created_on": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ReferralConversionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "converted_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "qualified",
            
        
    
        
        
            
                "commission_amount": 2.61,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "converted_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "disqualified",
            
        
    
        
        
            
                "commission_amount": 6.43,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "converted_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "qualified",
            
        
    
        
        
            
                "commission_amount": 8.11,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "converted_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "qualified",
            
        
    
        
        
            
                "commission_amount": 5.0,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];




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

    
    
    
    
    
        
    

    
    
    
        
            
            async function associateOauthAccountWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OauthAccount0 = await OauthAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OauthAccount0?.setUser)
                {
                    await
                    OauthAccount0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OauthAccount1 = await OauthAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OauthAccount1?.setUser)
                {
                    await
                    OauthAccount1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OauthAccount2 = await OauthAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OauthAccount2?.setUser)
                {
                    await
                    OauthAccount2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OauthAccount3 = await OauthAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OauthAccount3?.setUser)
                {
                    await
                    OauthAccount3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateOauthAccountWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OauthAccount0 = await OauthAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OauthAccount0?.setOrganization)
                {
                    await
                    OauthAccount0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OauthAccount1 = await OauthAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OauthAccount1?.setOrganization)
                {
                    await
                    OauthAccount1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OauthAccount2 = await OauthAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OauthAccount2?.setOrganization)
                {
                    await
                    OauthAccount2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OauthAccount3 = await OauthAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OauthAccount3?.setOrganization)
                {
                    await
                    OauthAccount3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateArtistProfileWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ArtistProfile0 = await ArtistProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ArtistProfile0?.setUser)
                {
                    await
                    ArtistProfile0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ArtistProfile1 = await ArtistProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ArtistProfile1?.setUser)
                {
                    await
                    ArtistProfile1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ArtistProfile2 = await ArtistProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ArtistProfile2?.setUser)
                {
                    await
                    ArtistProfile2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ArtistProfile3 = await ArtistProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ArtistProfile3?.setUser)
                {
                    await
                    ArtistProfile3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateArtistProfileWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ArtistProfile0 = await ArtistProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ArtistProfile0?.setOrganization)
                {
                    await
                    ArtistProfile0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ArtistProfile1 = await ArtistProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ArtistProfile1?.setOrganization)
                {
                    await
                    ArtistProfile1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ArtistProfile2 = await ArtistProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ArtistProfile2?.setOrganization)
                {
                    await
                    ArtistProfile2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ArtistProfile3 = await ArtistProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ArtistProfile3?.setOrganization)
                {
                    await
                    ArtistProfile3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTeamWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Team0 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Team0?.setOwner)
                {
                    await
                    Team0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Team1 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Team1?.setOwner)
                {
                    await
                    Team1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Team2 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Team2?.setOwner)
                {
                    await
                    Team2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Team3 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Team3?.setOwner)
                {
                    await
                    Team3.
                    setOwner(relatedOwner3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateTeamWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team0 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Team0?.setOrganization)
                {
                    await
                    Team0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team1 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Team1?.setOrganization)
                {
                    await
                    Team1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team2 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Team2?.setOrganization)
                {
                    await
                    Team2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team3 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Team3?.setOrganization)
                {
                    await
                    Team3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTeamMembershipWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const TeamMembership0 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TeamMembership0?.setTeam)
                {
                    await
                    TeamMembership0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const TeamMembership1 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TeamMembership1?.setTeam)
                {
                    await
                    TeamMembership1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const TeamMembership2 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TeamMembership2?.setTeam)
                {
                    await
                    TeamMembership2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const TeamMembership3 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TeamMembership3?.setTeam)
                {
                    await
                    TeamMembership3.
                    setTeam(relatedTeam3);
                }
            
        }
        
    
        
            
            async function associateTeamMembershipWithMember_user() {
            
                const relatedMember_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TeamMembership0 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TeamMembership0?.setMember_user)
                {
                    await
                    TeamMembership0.
                    setMember_user(relatedMember_user0);
                }
            
                const relatedMember_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TeamMembership1 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TeamMembership1?.setMember_user)
                {
                    await
                    TeamMembership1.
                    setMember_user(relatedMember_user1);
                }
            
                const relatedMember_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TeamMembership2 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TeamMembership2?.setMember_user)
                {
                    await
                    TeamMembership2.
                    setMember_user(relatedMember_user2);
                }
            
                const relatedMember_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TeamMembership3 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TeamMembership3?.setMember_user)
                {
                    await
                    TeamMembership3.
                    setMember_user(relatedMember_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTeamMembershipWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TeamMembership0 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TeamMembership0?.setOrganization)
                {
                    await
                    TeamMembership0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TeamMembership1 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TeamMembership1?.setOrganization)
                {
                    await
                    TeamMembership1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TeamMembership2 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TeamMembership2?.setOrganization)
                {
                    await
                    TeamMembership2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TeamMembership3 = await TeamMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TeamMembership3?.setOrganization)
                {
                    await
                    TeamMembership3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePlanWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Plan0 = await Plans.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Plan0?.setOrganization)
                {
                    await
                    Plan0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Plan1 = await Plans.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Plan1?.setOrganization)
                {
                    await
                    Plan1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Plan2 = await Plans.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Plan2?.setOrganization)
                {
                    await
                    Plan2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Plan3 = await Plans.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Plan3?.setOrganization)
                {
                    await
                    Plan3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
            
            async function associateSubscriptionWithPlan() {
            
                const relatedPlan0 = await Plans.findOne({
                    offset: Math.floor(Math.random() * (await Plans.count())),
                });
                const Subscription0 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Subscription0?.setPlan)
                {
                    await
                    Subscription0.
                    setPlan(relatedPlan0);
                }
            
                const relatedPlan1 = await Plans.findOne({
                    offset: Math.floor(Math.random() * (await Plans.count())),
                });
                const Subscription1 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Subscription1?.setPlan)
                {
                    await
                    Subscription1.
                    setPlan(relatedPlan1);
                }
            
                const relatedPlan2 = await Plans.findOne({
                    offset: Math.floor(Math.random() * (await Plans.count())),
                });
                const Subscription2 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Subscription2?.setPlan)
                {
                    await
                    Subscription2.
                    setPlan(relatedPlan2);
                }
            
                const relatedPlan3 = await Plans.findOne({
                    offset: Math.floor(Math.random() * (await Plans.count())),
                });
                const Subscription3 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Subscription3?.setPlan)
                {
                    await
                    Subscription3.
                    setPlan(relatedPlan3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            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);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDistributionPlatformWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DistributionPlatform0 = await DistributionPlatforms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DistributionPlatform0?.setOrganization)
                {
                    await
                    DistributionPlatform0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DistributionPlatform1 = await DistributionPlatforms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DistributionPlatform1?.setOrganization)
                {
                    await
                    DistributionPlatform1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DistributionPlatform2 = await DistributionPlatforms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DistributionPlatform2?.setOrganization)
                {
                    await
                    DistributionPlatform2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DistributionPlatform3 = await DistributionPlatforms.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DistributionPlatform3?.setOrganization)
                {
                    await
                    DistributionPlatform3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
            
            async function associateGenreWithParent_genre() {
            
                const relatedParent_genre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Genre0 = await Genres.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Genre0?.setParent_genre)
                {
                    await
                    Genre0.
                    setParent_genre(relatedParent_genre0);
                }
            
                const relatedParent_genre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Genre1 = await Genres.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Genre1?.setParent_genre)
                {
                    await
                    Genre1.
                    setParent_genre(relatedParent_genre1);
                }
            
                const relatedParent_genre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Genre2 = await Genres.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Genre2?.setParent_genre)
                {
                    await
                    Genre2.
                    setParent_genre(relatedParent_genre2);
                }
            
                const relatedParent_genre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Genre3 = await Genres.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Genre3?.setParent_genre)
                {
                    await
                    Genre3.
                    setParent_genre(relatedParent_genre3);
                }
            
        }
        
    
        
    
        
            
            async function associateGenreWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Genre0 = await Genres.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Genre0?.setOrganization)
                {
                    await
                    Genre0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Genre1 = await Genres.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Genre1?.setOrganization)
                {
                    await
                    Genre1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Genre2 = await Genres.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Genre2?.setOrganization)
                {
                    await
                    Genre2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Genre3 = await Genres.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Genre3?.setOrganization)
                {
                    await
                    Genre3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateReleasWithArtist_profile() {
            
                const relatedArtist_profile0 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const Releas0 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Releas0?.setArtist_profile)
                {
                    await
                    Releas0.
                    setArtist_profile(relatedArtist_profile0);
                }
            
                const relatedArtist_profile1 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const Releas1 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Releas1?.setArtist_profile)
                {
                    await
                    Releas1.
                    setArtist_profile(relatedArtist_profile1);
                }
            
                const relatedArtist_profile2 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const Releas2 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Releas2?.setArtist_profile)
                {
                    await
                    Releas2.
                    setArtist_profile(relatedArtist_profile2);
                }
            
                const relatedArtist_profile3 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const Releas3 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Releas3?.setArtist_profile)
                {
                    await
                    Releas3.
                    setArtist_profile(relatedArtist_profile3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateReleasWithPrimary_genre() {
            
                const relatedPrimary_genre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Releas0 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Releas0?.setPrimary_genre)
                {
                    await
                    Releas0.
                    setPrimary_genre(relatedPrimary_genre0);
                }
            
                const relatedPrimary_genre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Releas1 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Releas1?.setPrimary_genre)
                {
                    await
                    Releas1.
                    setPrimary_genre(relatedPrimary_genre1);
                }
            
                const relatedPrimary_genre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Releas2 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Releas2?.setPrimary_genre)
                {
                    await
                    Releas2.
                    setPrimary_genre(relatedPrimary_genre2);
                }
            
                const relatedPrimary_genre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Releas3 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Releas3?.setPrimary_genre)
                {
                    await
                    Releas3.
                    setPrimary_genre(relatedPrimary_genre3);
                }
            
        }
        
    
        
            
            async function associateReleasWithSecondary_genre() {
            
                const relatedSecondary_genre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Releas0 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Releas0?.setSecondary_genre)
                {
                    await
                    Releas0.
                    setSecondary_genre(relatedSecondary_genre0);
                }
            
                const relatedSecondary_genre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Releas1 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Releas1?.setSecondary_genre)
                {
                    await
                    Releas1.
                    setSecondary_genre(relatedSecondary_genre1);
                }
            
                const relatedSecondary_genre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Releas2 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Releas2?.setSecondary_genre)
                {
                    await
                    Releas2.
                    setSecondary_genre(relatedSecondary_genre2);
                }
            
                const relatedSecondary_genre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Releas3 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Releas3?.setSecondary_genre)
                {
                    await
                    Releas3.
                    setSecondary_genre(relatedSecondary_genre3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            
            async function associateReleasWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Releas0 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Releas0?.setOrganization)
                {
                    await
                    Releas0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Releas1 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Releas1?.setOrganization)
                {
                    await
                    Releas1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Releas2 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Releas2?.setOrganization)
                {
                    await
                    Releas2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Releas3 = await Releases.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Releas3?.setOrganization)
                {
                    await
                    Releas3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTrackWithRelease() {
            
                const relatedRelease0 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const Track0 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Track0?.setRelease)
                {
                    await
                    Track0.
                    setRelease(relatedRelease0);
                }
            
                const relatedRelease1 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const Track1 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Track1?.setRelease)
                {
                    await
                    Track1.
                    setRelease(relatedRelease1);
                }
            
                const relatedRelease2 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const Track2 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Track2?.setRelease)
                {
                    await
                    Track2.
                    setRelease(relatedRelease2);
                }
            
                const relatedRelease3 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const Track3 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Track3?.setRelease)
                {
                    await
                    Track3.
                    setRelease(relatedRelease3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateTrackWithGenre() {
            
                const relatedGenre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Track0 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Track0?.setGenre)
                {
                    await
                    Track0.
                    setGenre(relatedGenre0);
                }
            
                const relatedGenre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Track1 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Track1?.setGenre)
                {
                    await
                    Track1.
                    setGenre(relatedGenre1);
                }
            
                const relatedGenre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Track2 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Track2?.setGenre)
                {
                    await
                    Track2.
                    setGenre(relatedGenre2);
                }
            
                const relatedGenre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Track3 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Track3?.setGenre)
                {
                    await
                    Track3.
                    setGenre(relatedGenre3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTrackWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Track0 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Track0?.setOrganization)
                {
                    await
                    Track0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Track1 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Track1?.setOrganization)
                {
                    await
                    Track1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Track2 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Track2?.setOrganization)
                {
                    await
                    Track2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Track3 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Track3?.setOrganization)
                {
                    await
                    Track3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTrackContributorWithTrack() {
            
                const relatedTrack0 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const TrackContributor0 = await TrackContributors.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TrackContributor0?.setTrack)
                {
                    await
                    TrackContributor0.
                    setTrack(relatedTrack0);
                }
            
                const relatedTrack1 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const TrackContributor1 = await TrackContributors.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TrackContributor1?.setTrack)
                {
                    await
                    TrackContributor1.
                    setTrack(relatedTrack1);
                }
            
                const relatedTrack2 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const TrackContributor2 = await TrackContributors.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TrackContributor2?.setTrack)
                {
                    await
                    TrackContributor2.
                    setTrack(relatedTrack2);
                }
            
                const relatedTrack3 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const TrackContributor3 = await TrackContributors.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TrackContributor3?.setTrack)
                {
                    await
                    TrackContributor3.
                    setTrack(relatedTrack3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTrackContributorWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TrackContributor0 = await TrackContributors.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TrackContributor0?.setOrganization)
                {
                    await
                    TrackContributor0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TrackContributor1 = await TrackContributors.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TrackContributor1?.setOrganization)
                {
                    await
                    TrackContributor1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TrackContributor2 = await TrackContributors.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TrackContributor2?.setOrganization)
                {
                    await
                    TrackContributor2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TrackContributor3 = await TrackContributors.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TrackContributor3?.setOrganization)
                {
                    await
                    TrackContributor3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateReleaseDeliveryWithRelease() {
            
                const relatedRelease0 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const ReleaseDelivery0 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReleaseDelivery0?.setRelease)
                {
                    await
                    ReleaseDelivery0.
                    setRelease(relatedRelease0);
                }
            
                const relatedRelease1 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const ReleaseDelivery1 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReleaseDelivery1?.setRelease)
                {
                    await
                    ReleaseDelivery1.
                    setRelease(relatedRelease1);
                }
            
                const relatedRelease2 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const ReleaseDelivery2 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReleaseDelivery2?.setRelease)
                {
                    await
                    ReleaseDelivery2.
                    setRelease(relatedRelease2);
                }
            
                const relatedRelease3 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const ReleaseDelivery3 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReleaseDelivery3?.setRelease)
                {
                    await
                    ReleaseDelivery3.
                    setRelease(relatedRelease3);
                }
            
        }
        
    
        
            
            async function associateReleaseDeliveryWithPlatform() {
            
                const relatedPlatform0 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const ReleaseDelivery0 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReleaseDelivery0?.setPlatform)
                {
                    await
                    ReleaseDelivery0.
                    setPlatform(relatedPlatform0);
                }
            
                const relatedPlatform1 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const ReleaseDelivery1 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReleaseDelivery1?.setPlatform)
                {
                    await
                    ReleaseDelivery1.
                    setPlatform(relatedPlatform1);
                }
            
                const relatedPlatform2 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const ReleaseDelivery2 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReleaseDelivery2?.setPlatform)
                {
                    await
                    ReleaseDelivery2.
                    setPlatform(relatedPlatform2);
                }
            
                const relatedPlatform3 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const ReleaseDelivery3 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReleaseDelivery3?.setPlatform)
                {
                    await
                    ReleaseDelivery3.
                    setPlatform(relatedPlatform3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateReleaseDeliveryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReleaseDelivery0 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReleaseDelivery0?.setOrganization)
                {
                    await
                    ReleaseDelivery0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReleaseDelivery1 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReleaseDelivery1?.setOrganization)
                {
                    await
                    ReleaseDelivery1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReleaseDelivery2 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReleaseDelivery2?.setOrganization)
                {
                    await
                    ReleaseDelivery2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReleaseDelivery3 = await ReleaseDeliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReleaseDelivery3?.setOrganization)
                {
                    await
                    ReleaseDelivery3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSmartLinkWithRelease() {
            
                const relatedRelease0 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const SmartLink0 = await SmartLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SmartLink0?.setRelease)
                {
                    await
                    SmartLink0.
                    setRelease(relatedRelease0);
                }
            
                const relatedRelease1 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const SmartLink1 = await SmartLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SmartLink1?.setRelease)
                {
                    await
                    SmartLink1.
                    setRelease(relatedRelease1);
                }
            
                const relatedRelease2 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const SmartLink2 = await SmartLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SmartLink2?.setRelease)
                {
                    await
                    SmartLink2.
                    setRelease(relatedRelease2);
                }
            
                const relatedRelease3 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const SmartLink3 = await SmartLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SmartLink3?.setRelease)
                {
                    await
                    SmartLink3.
                    setRelease(relatedRelease3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSmartLinkWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLink0 = await SmartLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SmartLink0?.setOrganization)
                {
                    await
                    SmartLink0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLink1 = await SmartLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SmartLink1?.setOrganization)
                {
                    await
                    SmartLink1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLink2 = await SmartLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SmartLink2?.setOrganization)
                {
                    await
                    SmartLink2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLink3 = await SmartLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SmartLink3?.setOrganization)
                {
                    await
                    SmartLink3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSmartLinkDestinationWithSmart_link() {
            
                const relatedSmart_link0 = await SmartLinks.findOne({
                    offset: Math.floor(Math.random() * (await SmartLinks.count())),
                });
                const SmartLinkDestination0 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SmartLinkDestination0?.setSmart_link)
                {
                    await
                    SmartLinkDestination0.
                    setSmart_link(relatedSmart_link0);
                }
            
                const relatedSmart_link1 = await SmartLinks.findOne({
                    offset: Math.floor(Math.random() * (await SmartLinks.count())),
                });
                const SmartLinkDestination1 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SmartLinkDestination1?.setSmart_link)
                {
                    await
                    SmartLinkDestination1.
                    setSmart_link(relatedSmart_link1);
                }
            
                const relatedSmart_link2 = await SmartLinks.findOne({
                    offset: Math.floor(Math.random() * (await SmartLinks.count())),
                });
                const SmartLinkDestination2 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SmartLinkDestination2?.setSmart_link)
                {
                    await
                    SmartLinkDestination2.
                    setSmart_link(relatedSmart_link2);
                }
            
                const relatedSmart_link3 = await SmartLinks.findOne({
                    offset: Math.floor(Math.random() * (await SmartLinks.count())),
                });
                const SmartLinkDestination3 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SmartLinkDestination3?.setSmart_link)
                {
                    await
                    SmartLinkDestination3.
                    setSmart_link(relatedSmart_link3);
                }
            
        }
        
    
        
            
            async function associateSmartLinkDestinationWithPlatform() {
            
                const relatedPlatform0 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const SmartLinkDestination0 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SmartLinkDestination0?.setPlatform)
                {
                    await
                    SmartLinkDestination0.
                    setPlatform(relatedPlatform0);
                }
            
                const relatedPlatform1 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const SmartLinkDestination1 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SmartLinkDestination1?.setPlatform)
                {
                    await
                    SmartLinkDestination1.
                    setPlatform(relatedPlatform1);
                }
            
                const relatedPlatform2 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const SmartLinkDestination2 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SmartLinkDestination2?.setPlatform)
                {
                    await
                    SmartLinkDestination2.
                    setPlatform(relatedPlatform2);
                }
            
                const relatedPlatform3 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const SmartLinkDestination3 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SmartLinkDestination3?.setPlatform)
                {
                    await
                    SmartLinkDestination3.
                    setPlatform(relatedPlatform3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateSmartLinkDestinationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLinkDestination0 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SmartLinkDestination0?.setOrganization)
                {
                    await
                    SmartLinkDestination0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLinkDestination1 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SmartLinkDestination1?.setOrganization)
                {
                    await
                    SmartLinkDestination1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLinkDestination2 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SmartLinkDestination2?.setOrganization)
                {
                    await
                    SmartLinkDestination2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLinkDestination3 = await SmartLinkDestinations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SmartLinkDestination3?.setOrganization)
                {
                    await
                    SmartLinkDestination3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSmartLinkClickWithSmart_link() {
            
                const relatedSmart_link0 = await SmartLinks.findOne({
                    offset: Math.floor(Math.random() * (await SmartLinks.count())),
                });
                const SmartLinkClick0 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SmartLinkClick0?.setSmart_link)
                {
                    await
                    SmartLinkClick0.
                    setSmart_link(relatedSmart_link0);
                }
            
                const relatedSmart_link1 = await SmartLinks.findOne({
                    offset: Math.floor(Math.random() * (await SmartLinks.count())),
                });
                const SmartLinkClick1 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SmartLinkClick1?.setSmart_link)
                {
                    await
                    SmartLinkClick1.
                    setSmart_link(relatedSmart_link1);
                }
            
                const relatedSmart_link2 = await SmartLinks.findOne({
                    offset: Math.floor(Math.random() * (await SmartLinks.count())),
                });
                const SmartLinkClick2 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SmartLinkClick2?.setSmart_link)
                {
                    await
                    SmartLinkClick2.
                    setSmart_link(relatedSmart_link2);
                }
            
                const relatedSmart_link3 = await SmartLinks.findOne({
                    offset: Math.floor(Math.random() * (await SmartLinks.count())),
                });
                const SmartLinkClick3 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SmartLinkClick3?.setSmart_link)
                {
                    await
                    SmartLinkClick3.
                    setSmart_link(relatedSmart_link3);
                }
            
        }
        
    
        
            
            async function associateSmartLinkClickWithPlatform() {
            
                const relatedPlatform0 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const SmartLinkClick0 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SmartLinkClick0?.setPlatform)
                {
                    await
                    SmartLinkClick0.
                    setPlatform(relatedPlatform0);
                }
            
                const relatedPlatform1 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const SmartLinkClick1 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SmartLinkClick1?.setPlatform)
                {
                    await
                    SmartLinkClick1.
                    setPlatform(relatedPlatform1);
                }
            
                const relatedPlatform2 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const SmartLinkClick2 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SmartLinkClick2?.setPlatform)
                {
                    await
                    SmartLinkClick2.
                    setPlatform(relatedPlatform2);
                }
            
                const relatedPlatform3 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const SmartLinkClick3 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SmartLinkClick3?.setPlatform)
                {
                    await
                    SmartLinkClick3.
                    setPlatform(relatedPlatform3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSmartLinkClickWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLinkClick0 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SmartLinkClick0?.setOrganization)
                {
                    await
                    SmartLinkClick0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLinkClick1 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SmartLinkClick1?.setOrganization)
                {
                    await
                    SmartLinkClick1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLinkClick2 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SmartLinkClick2?.setOrganization)
                {
                    await
                    SmartLinkClick2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SmartLinkClick3 = await SmartLinkClicks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SmartLinkClick3?.setOrganization)
                {
                    await
                    SmartLinkClick3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
            
            async function associatePlaylistWithPlatform() {
            
                const relatedPlatform0 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const Playlist0 = await Playlists.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Playlist0?.setPlatform)
                {
                    await
                    Playlist0.
                    setPlatform(relatedPlatform0);
                }
            
                const relatedPlatform1 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const Playlist1 = await Playlists.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Playlist1?.setPlatform)
                {
                    await
                    Playlist1.
                    setPlatform(relatedPlatform1);
                }
            
                const relatedPlatform2 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const Playlist2 = await Playlists.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Playlist2?.setPlatform)
                {
                    await
                    Playlist2.
                    setPlatform(relatedPlatform2);
                }
            
                const relatedPlatform3 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const Playlist3 = await Playlists.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Playlist3?.setPlatform)
                {
                    await
                    Playlist3.
                    setPlatform(relatedPlatform3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePlaylistWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Playlist0 = await Playlists.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Playlist0?.setOrganization)
                {
                    await
                    Playlist0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Playlist1 = await Playlists.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Playlist1?.setOrganization)
                {
                    await
                    Playlist1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Playlist2 = await Playlists.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Playlist2?.setOrganization)
                {
                    await
                    Playlist2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Playlist3 = await Playlists.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Playlist3?.setOrganization)
                {
                    await
                    Playlist3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePitchRequestWithTrack() {
            
                const relatedTrack0 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const PitchRequest0 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PitchRequest0?.setTrack)
                {
                    await
                    PitchRequest0.
                    setTrack(relatedTrack0);
                }
            
                const relatedTrack1 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const PitchRequest1 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PitchRequest1?.setTrack)
                {
                    await
                    PitchRequest1.
                    setTrack(relatedTrack1);
                }
            
                const relatedTrack2 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const PitchRequest2 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PitchRequest2?.setTrack)
                {
                    await
                    PitchRequest2.
                    setTrack(relatedTrack2);
                }
            
                const relatedTrack3 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const PitchRequest3 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PitchRequest3?.setTrack)
                {
                    await
                    PitchRequest3.
                    setTrack(relatedTrack3);
                }
            
        }
        
    
        
            
            async function associatePitchRequestWithArtist_profile() {
            
                const relatedArtist_profile0 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const PitchRequest0 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PitchRequest0?.setArtist_profile)
                {
                    await
                    PitchRequest0.
                    setArtist_profile(relatedArtist_profile0);
                }
            
                const relatedArtist_profile1 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const PitchRequest1 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PitchRequest1?.setArtist_profile)
                {
                    await
                    PitchRequest1.
                    setArtist_profile(relatedArtist_profile1);
                }
            
                const relatedArtist_profile2 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const PitchRequest2 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PitchRequest2?.setArtist_profile)
                {
                    await
                    PitchRequest2.
                    setArtist_profile(relatedArtist_profile2);
                }
            
                const relatedArtist_profile3 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const PitchRequest3 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PitchRequest3?.setArtist_profile)
                {
                    await
                    PitchRequest3.
                    setArtist_profile(relatedArtist_profile3);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePitchRequestWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PitchRequest0 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PitchRequest0?.setOrganization)
                {
                    await
                    PitchRequest0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PitchRequest1 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PitchRequest1?.setOrganization)
                {
                    await
                    PitchRequest1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PitchRequest2 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PitchRequest2?.setOrganization)
                {
                    await
                    PitchRequest2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PitchRequest3 = await PitchRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PitchRequest3?.setOrganization)
                {
                    await
                    PitchRequest3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePlaylistPlacementWithTrack() {
            
                const relatedTrack0 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const PlaylistPlacement0 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PlaylistPlacement0?.setTrack)
                {
                    await
                    PlaylistPlacement0.
                    setTrack(relatedTrack0);
                }
            
                const relatedTrack1 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const PlaylistPlacement1 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PlaylistPlacement1?.setTrack)
                {
                    await
                    PlaylistPlacement1.
                    setTrack(relatedTrack1);
                }
            
                const relatedTrack2 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const PlaylistPlacement2 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PlaylistPlacement2?.setTrack)
                {
                    await
                    PlaylistPlacement2.
                    setTrack(relatedTrack2);
                }
            
                const relatedTrack3 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const PlaylistPlacement3 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PlaylistPlacement3?.setTrack)
                {
                    await
                    PlaylistPlacement3.
                    setTrack(relatedTrack3);
                }
            
        }
        
    
        
            
            async function associatePlaylistPlacementWithPlaylist() {
            
                const relatedPlaylist0 = await Playlists.findOne({
                    offset: Math.floor(Math.random() * (await Playlists.count())),
                });
                const PlaylistPlacement0 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PlaylistPlacement0?.setPlaylist)
                {
                    await
                    PlaylistPlacement0.
                    setPlaylist(relatedPlaylist0);
                }
            
                const relatedPlaylist1 = await Playlists.findOne({
                    offset: Math.floor(Math.random() * (await Playlists.count())),
                });
                const PlaylistPlacement1 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PlaylistPlacement1?.setPlaylist)
                {
                    await
                    PlaylistPlacement1.
                    setPlaylist(relatedPlaylist1);
                }
            
                const relatedPlaylist2 = await Playlists.findOne({
                    offset: Math.floor(Math.random() * (await Playlists.count())),
                });
                const PlaylistPlacement2 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PlaylistPlacement2?.setPlaylist)
                {
                    await
                    PlaylistPlacement2.
                    setPlaylist(relatedPlaylist2);
                }
            
                const relatedPlaylist3 = await Playlists.findOne({
                    offset: Math.floor(Math.random() * (await Playlists.count())),
                });
                const PlaylistPlacement3 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PlaylistPlacement3?.setPlaylist)
                {
                    await
                    PlaylistPlacement3.
                    setPlaylist(relatedPlaylist3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePlaylistPlacementWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PlaylistPlacement0 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PlaylistPlacement0?.setOrganization)
                {
                    await
                    PlaylistPlacement0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PlaylistPlacement1 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PlaylistPlacement1?.setOrganization)
                {
                    await
                    PlaylistPlacement1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PlaylistPlacement2 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PlaylistPlacement2?.setOrganization)
                {
                    await
                    PlaylistPlacement2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PlaylistPlacement3 = await PlaylistPlacements.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PlaylistPlacement3?.setOrganization)
                {
                    await
                    PlaylistPlacement3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRoyaltyReportWithArtist_profile() {
            
                const relatedArtist_profile0 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const RoyaltyReport0 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoyaltyReport0?.setArtist_profile)
                {
                    await
                    RoyaltyReport0.
                    setArtist_profile(relatedArtist_profile0);
                }
            
                const relatedArtist_profile1 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const RoyaltyReport1 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoyaltyReport1?.setArtist_profile)
                {
                    await
                    RoyaltyReport1.
                    setArtist_profile(relatedArtist_profile1);
                }
            
                const relatedArtist_profile2 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const RoyaltyReport2 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoyaltyReport2?.setArtist_profile)
                {
                    await
                    RoyaltyReport2.
                    setArtist_profile(relatedArtist_profile2);
                }
            
                const relatedArtist_profile3 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const RoyaltyReport3 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RoyaltyReport3?.setArtist_profile)
                {
                    await
                    RoyaltyReport3.
                    setArtist_profile(relatedArtist_profile3);
                }
            
        }
        
    
        
            
            async function associateRoyaltyReportWithPlatform() {
            
                const relatedPlatform0 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const RoyaltyReport0 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoyaltyReport0?.setPlatform)
                {
                    await
                    RoyaltyReport0.
                    setPlatform(relatedPlatform0);
                }
            
                const relatedPlatform1 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const RoyaltyReport1 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoyaltyReport1?.setPlatform)
                {
                    await
                    RoyaltyReport1.
                    setPlatform(relatedPlatform1);
                }
            
                const relatedPlatform2 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const RoyaltyReport2 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoyaltyReport2?.setPlatform)
                {
                    await
                    RoyaltyReport2.
                    setPlatform(relatedPlatform2);
                }
            
                const relatedPlatform3 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const RoyaltyReport3 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RoyaltyReport3?.setPlatform)
                {
                    await
                    RoyaltyReport3.
                    setPlatform(relatedPlatform3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRoyaltyReportWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoyaltyReport0 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoyaltyReport0?.setOrganization)
                {
                    await
                    RoyaltyReport0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoyaltyReport1 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoyaltyReport1?.setOrganization)
                {
                    await
                    RoyaltyReport1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoyaltyReport2 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoyaltyReport2?.setOrganization)
                {
                    await
                    RoyaltyReport2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoyaltyReport3 = await RoyaltyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RoyaltyReport3?.setOrganization)
                {
                    await
                    RoyaltyReport3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRoyaltyLineWithRoyalty_report() {
            
                const relatedRoyalty_report0 = await RoyaltyReports.findOne({
                    offset: Math.floor(Math.random() * (await RoyaltyReports.count())),
                });
                const RoyaltyLine0 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoyaltyLine0?.setRoyalty_report)
                {
                    await
                    RoyaltyLine0.
                    setRoyalty_report(relatedRoyalty_report0);
                }
            
                const relatedRoyalty_report1 = await RoyaltyReports.findOne({
                    offset: Math.floor(Math.random() * (await RoyaltyReports.count())),
                });
                const RoyaltyLine1 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoyaltyLine1?.setRoyalty_report)
                {
                    await
                    RoyaltyLine1.
                    setRoyalty_report(relatedRoyalty_report1);
                }
            
                const relatedRoyalty_report2 = await RoyaltyReports.findOne({
                    offset: Math.floor(Math.random() * (await RoyaltyReports.count())),
                });
                const RoyaltyLine2 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoyaltyLine2?.setRoyalty_report)
                {
                    await
                    RoyaltyLine2.
                    setRoyalty_report(relatedRoyalty_report2);
                }
            
                const relatedRoyalty_report3 = await RoyaltyReports.findOne({
                    offset: Math.floor(Math.random() * (await RoyaltyReports.count())),
                });
                const RoyaltyLine3 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RoyaltyLine3?.setRoyalty_report)
                {
                    await
                    RoyaltyLine3.
                    setRoyalty_report(relatedRoyalty_report3);
                }
            
        }
        
    
        
            
            async function associateRoyaltyLineWithRelease() {
            
                const relatedRelease0 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const RoyaltyLine0 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoyaltyLine0?.setRelease)
                {
                    await
                    RoyaltyLine0.
                    setRelease(relatedRelease0);
                }
            
                const relatedRelease1 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const RoyaltyLine1 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoyaltyLine1?.setRelease)
                {
                    await
                    RoyaltyLine1.
                    setRelease(relatedRelease1);
                }
            
                const relatedRelease2 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const RoyaltyLine2 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoyaltyLine2?.setRelease)
                {
                    await
                    RoyaltyLine2.
                    setRelease(relatedRelease2);
                }
            
                const relatedRelease3 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const RoyaltyLine3 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RoyaltyLine3?.setRelease)
                {
                    await
                    RoyaltyLine3.
                    setRelease(relatedRelease3);
                }
            
        }
        
    
        
            
            async function associateRoyaltyLineWithTrack() {
            
                const relatedTrack0 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const RoyaltyLine0 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoyaltyLine0?.setTrack)
                {
                    await
                    RoyaltyLine0.
                    setTrack(relatedTrack0);
                }
            
                const relatedTrack1 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const RoyaltyLine1 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoyaltyLine1?.setTrack)
                {
                    await
                    RoyaltyLine1.
                    setTrack(relatedTrack1);
                }
            
                const relatedTrack2 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const RoyaltyLine2 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoyaltyLine2?.setTrack)
                {
                    await
                    RoyaltyLine2.
                    setTrack(relatedTrack2);
                }
            
                const relatedTrack3 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const RoyaltyLine3 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RoyaltyLine3?.setTrack)
                {
                    await
                    RoyaltyLine3.
                    setTrack(relatedTrack3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRoyaltyLineWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoyaltyLine0 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoyaltyLine0?.setOrganization)
                {
                    await
                    RoyaltyLine0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoyaltyLine1 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoyaltyLine1?.setOrganization)
                {
                    await
                    RoyaltyLine1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoyaltyLine2 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoyaltyLine2?.setOrganization)
                {
                    await
                    RoyaltyLine2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoyaltyLine3 = await RoyaltyLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RoyaltyLine3?.setOrganization)
                {
                    await
                    RoyaltyLine3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateWalletWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Wallet0 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Wallet0?.setUser)
                {
                    await
                    Wallet0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Wallet1 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Wallet1?.setUser)
                {
                    await
                    Wallet1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Wallet2 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Wallet2?.setUser)
                {
                    await
                    Wallet2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Wallet3 = await Wallets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Wallet3?.setUser)
                {
                    await
                    Wallet3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            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);
                }
            
        }
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            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);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePayoutMethodWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayoutMethod0 = await PayoutMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PayoutMethod0?.setUser)
                {
                    await
                    PayoutMethod0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayoutMethod1 = await PayoutMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PayoutMethod1?.setUser)
                {
                    await
                    PayoutMethod1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayoutMethod2 = await PayoutMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PayoutMethod2?.setUser)
                {
                    await
                    PayoutMethod2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayoutMethod3 = await PayoutMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PayoutMethod3?.setUser)
                {
                    await
                    PayoutMethod3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePayoutMethodWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PayoutMethod0 = await PayoutMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PayoutMethod0?.setOrganization)
                {
                    await
                    PayoutMethod0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PayoutMethod1 = await PayoutMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PayoutMethod1?.setOrganization)
                {
                    await
                    PayoutMethod1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PayoutMethod2 = await PayoutMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PayoutMethod2?.setOrganization)
                {
                    await
                    PayoutMethod2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PayoutMethod3 = await PayoutMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PayoutMethod3?.setOrganization)
                {
                    await
                    PayoutMethod3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateWithdrawalRequestWithWallet() {
            
                const relatedWallet0 = await Wallets.findOne({
                    offset: Math.floor(Math.random() * (await Wallets.count())),
                });
                const WithdrawalRequest0 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WithdrawalRequest0?.setWallet)
                {
                    await
                    WithdrawalRequest0.
                    setWallet(relatedWallet0);
                }
            
                const relatedWallet1 = await Wallets.findOne({
                    offset: Math.floor(Math.random() * (await Wallets.count())),
                });
                const WithdrawalRequest1 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WithdrawalRequest1?.setWallet)
                {
                    await
                    WithdrawalRequest1.
                    setWallet(relatedWallet1);
                }
            
                const relatedWallet2 = await Wallets.findOne({
                    offset: Math.floor(Math.random() * (await Wallets.count())),
                });
                const WithdrawalRequest2 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WithdrawalRequest2?.setWallet)
                {
                    await
                    WithdrawalRequest2.
                    setWallet(relatedWallet2);
                }
            
                const relatedWallet3 = await Wallets.findOne({
                    offset: Math.floor(Math.random() * (await Wallets.count())),
                });
                const WithdrawalRequest3 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WithdrawalRequest3?.setWallet)
                {
                    await
                    WithdrawalRequest3.
                    setWallet(relatedWallet3);
                }
            
        }
        
    
        
            
            async function associateWithdrawalRequestWithPayout_method() {
            
                const relatedPayout_method0 = await PayoutMethods.findOne({
                    offset: Math.floor(Math.random() * (await PayoutMethods.count())),
                });
                const WithdrawalRequest0 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WithdrawalRequest0?.setPayout_method)
                {
                    await
                    WithdrawalRequest0.
                    setPayout_method(relatedPayout_method0);
                }
            
                const relatedPayout_method1 = await PayoutMethods.findOne({
                    offset: Math.floor(Math.random() * (await PayoutMethods.count())),
                });
                const WithdrawalRequest1 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WithdrawalRequest1?.setPayout_method)
                {
                    await
                    WithdrawalRequest1.
                    setPayout_method(relatedPayout_method1);
                }
            
                const relatedPayout_method2 = await PayoutMethods.findOne({
                    offset: Math.floor(Math.random() * (await PayoutMethods.count())),
                });
                const WithdrawalRequest2 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WithdrawalRequest2?.setPayout_method)
                {
                    await
                    WithdrawalRequest2.
                    setPayout_method(relatedPayout_method2);
                }
            
                const relatedPayout_method3 = await PayoutMethods.findOne({
                    offset: Math.floor(Math.random() * (await PayoutMethods.count())),
                });
                const WithdrawalRequest3 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WithdrawalRequest3?.setPayout_method)
                {
                    await
                    WithdrawalRequest3.
                    setPayout_method(relatedPayout_method3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateWithdrawalRequestWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WithdrawalRequest0 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WithdrawalRequest0?.setOrganization)
                {
                    await
                    WithdrawalRequest0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WithdrawalRequest1 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WithdrawalRequest1?.setOrganization)
                {
                    await
                    WithdrawalRequest1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WithdrawalRequest2 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WithdrawalRequest2?.setOrganization)
                {
                    await
                    WithdrawalRequest2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WithdrawalRequest3 = await WithdrawalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WithdrawalRequest3?.setOrganization)
                {
                    await
                    WithdrawalRequest3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTaxDocumentWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TaxDocument0 = await TaxDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TaxDocument0?.setUser)
                {
                    await
                    TaxDocument0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TaxDocument1 = await TaxDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TaxDocument1?.setUser)
                {
                    await
                    TaxDocument1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TaxDocument2 = await TaxDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TaxDocument2?.setUser)
                {
                    await
                    TaxDocument2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TaxDocument3 = await TaxDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TaxDocument3?.setUser)
                {
                    await
                    TaxDocument3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTaxDocumentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaxDocument0 = await TaxDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TaxDocument0?.setOrganization)
                {
                    await
                    TaxDocument0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaxDocument1 = await TaxDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TaxDocument1?.setOrganization)
                {
                    await
                    TaxDocument1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaxDocument2 = await TaxDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TaxDocument2?.setOrganization)
                {
                    await
                    TaxDocument2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaxDocument3 = await TaxDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TaxDocument3?.setOrganization)
                {
                    await
                    TaxDocument3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAnalyticsDailyWithArtist_profile() {
            
                const relatedArtist_profile0 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const AnalyticsDaily0 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AnalyticsDaily0?.setArtist_profile)
                {
                    await
                    AnalyticsDaily0.
                    setArtist_profile(relatedArtist_profile0);
                }
            
                const relatedArtist_profile1 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const AnalyticsDaily1 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AnalyticsDaily1?.setArtist_profile)
                {
                    await
                    AnalyticsDaily1.
                    setArtist_profile(relatedArtist_profile1);
                }
            
                const relatedArtist_profile2 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const AnalyticsDaily2 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AnalyticsDaily2?.setArtist_profile)
                {
                    await
                    AnalyticsDaily2.
                    setArtist_profile(relatedArtist_profile2);
                }
            
                const relatedArtist_profile3 = await ArtistProfiles.findOne({
                    offset: Math.floor(Math.random() * (await ArtistProfiles.count())),
                });
                const AnalyticsDaily3 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AnalyticsDaily3?.setArtist_profile)
                {
                    await
                    AnalyticsDaily3.
                    setArtist_profile(relatedArtist_profile3);
                }
            
        }
        
    
        
            
            async function associateAnalyticsDailyWithPlatform() {
            
                const relatedPlatform0 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const AnalyticsDaily0 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AnalyticsDaily0?.setPlatform)
                {
                    await
                    AnalyticsDaily0.
                    setPlatform(relatedPlatform0);
                }
            
                const relatedPlatform1 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const AnalyticsDaily1 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AnalyticsDaily1?.setPlatform)
                {
                    await
                    AnalyticsDaily1.
                    setPlatform(relatedPlatform1);
                }
            
                const relatedPlatform2 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const AnalyticsDaily2 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AnalyticsDaily2?.setPlatform)
                {
                    await
                    AnalyticsDaily2.
                    setPlatform(relatedPlatform2);
                }
            
                const relatedPlatform3 = await DistributionPlatforms.findOne({
                    offset: Math.floor(Math.random() * (await DistributionPlatforms.count())),
                });
                const AnalyticsDaily3 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AnalyticsDaily3?.setPlatform)
                {
                    await
                    AnalyticsDaily3.
                    setPlatform(relatedPlatform3);
                }
            
        }
        
    
        
            
            async function associateAnalyticsDailyWithRelease() {
            
                const relatedRelease0 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const AnalyticsDaily0 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AnalyticsDaily0?.setRelease)
                {
                    await
                    AnalyticsDaily0.
                    setRelease(relatedRelease0);
                }
            
                const relatedRelease1 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const AnalyticsDaily1 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AnalyticsDaily1?.setRelease)
                {
                    await
                    AnalyticsDaily1.
                    setRelease(relatedRelease1);
                }
            
                const relatedRelease2 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const AnalyticsDaily2 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AnalyticsDaily2?.setRelease)
                {
                    await
                    AnalyticsDaily2.
                    setRelease(relatedRelease2);
                }
            
                const relatedRelease3 = await Releases.findOne({
                    offset: Math.floor(Math.random() * (await Releases.count())),
                });
                const AnalyticsDaily3 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AnalyticsDaily3?.setRelease)
                {
                    await
                    AnalyticsDaily3.
                    setRelease(relatedRelease3);
                }
            
        }
        
    
        
            
            async function associateAnalyticsDailyWithTrack() {
            
                const relatedTrack0 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const AnalyticsDaily0 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AnalyticsDaily0?.setTrack)
                {
                    await
                    AnalyticsDaily0.
                    setTrack(relatedTrack0);
                }
            
                const relatedTrack1 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const AnalyticsDaily1 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AnalyticsDaily1?.setTrack)
                {
                    await
                    AnalyticsDaily1.
                    setTrack(relatedTrack1);
                }
            
                const relatedTrack2 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const AnalyticsDaily2 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AnalyticsDaily2?.setTrack)
                {
                    await
                    AnalyticsDaily2.
                    setTrack(relatedTrack2);
                }
            
                const relatedTrack3 = await Tracks.findOne({
                    offset: Math.floor(Math.random() * (await Tracks.count())),
                });
                const AnalyticsDaily3 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AnalyticsDaily3?.setTrack)
                {
                    await
                    AnalyticsDaily3.
                    setTrack(relatedTrack3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAnalyticsDailyWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AnalyticsDaily0 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AnalyticsDaily0?.setOrganization)
                {
                    await
                    AnalyticsDaily0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AnalyticsDaily1 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AnalyticsDaily1?.setOrganization)
                {
                    await
                    AnalyticsDaily1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AnalyticsDaily2 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AnalyticsDaily2?.setOrganization)
                {
                    await
                    AnalyticsDaily2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AnalyticsDaily3 = await AnalyticsDaily.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AnalyticsDaily3?.setOrganization)
                {
                    await
                    AnalyticsDaily3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

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

    
    
    
        
            
            async function associateNotificationPreferenceWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NotificationPreference0 = await NotificationPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NotificationPreference0?.setUser)
                {
                    await
                    NotificationPreference0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NotificationPreference1 = await NotificationPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NotificationPreference1?.setUser)
                {
                    await
                    NotificationPreference1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NotificationPreference2 = await NotificationPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NotificationPreference2?.setUser)
                {
                    await
                    NotificationPreference2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NotificationPreference3 = await NotificationPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NotificationPreference3?.setUser)
                {
                    await
                    NotificationPreference3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateNotificationPreferenceWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationPreference0 = await NotificationPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NotificationPreference0?.setOrganization)
                {
                    await
                    NotificationPreference0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationPreference1 = await NotificationPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NotificationPreference1?.setOrganization)
                {
                    await
                    NotificationPreference1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationPreference2 = await NotificationPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NotificationPreference2?.setOrganization)
                {
                    await
                    NotificationPreference2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationPreference3 = await NotificationPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NotificationPreference3?.setOrganization)
                {
                    await
                    NotificationPreference3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateApiKeyWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApiKey0 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApiKey0?.setUser)
                {
                    await
                    ApiKey0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApiKey1 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApiKey1?.setUser)
                {
                    await
                    ApiKey1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApiKey2 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApiKey2?.setUser)
                {
                    await
                    ApiKey2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApiKey3 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApiKey3?.setUser)
                {
                    await
                    ApiKey3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateApiKeyWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApiKey0 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApiKey0?.setOrganization)
                {
                    await
                    ApiKey0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApiKey1 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApiKey1?.setOrganization)
                {
                    await
                    ApiKey1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApiKey2 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApiKey2?.setOrganization)
                {
                    await
                    ApiKey2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApiKey3 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApiKey3?.setOrganization)
                {
                    await
                    ApiKey3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDashboardWidgetWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DashboardWidget0 = await DashboardWidgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DashboardWidget0?.setUser)
                {
                    await
                    DashboardWidget0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DashboardWidget1 = await DashboardWidgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DashboardWidget1?.setUser)
                {
                    await
                    DashboardWidget1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DashboardWidget2 = await DashboardWidgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DashboardWidget2?.setUser)
                {
                    await
                    DashboardWidget2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DashboardWidget3 = await DashboardWidgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DashboardWidget3?.setUser)
                {
                    await
                    DashboardWidget3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDashboardWidgetWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DashboardWidget0 = await DashboardWidgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DashboardWidget0?.setOrganization)
                {
                    await
                    DashboardWidget0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DashboardWidget1 = await DashboardWidgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DashboardWidget1?.setOrganization)
                {
                    await
                    DashboardWidget1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DashboardWidget2 = await DashboardWidgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DashboardWidget2?.setOrganization)
                {
                    await
                    DashboardWidget2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DashboardWidget3 = await DashboardWidgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DashboardWidget3?.setOrganization)
                {
                    await
                    DashboardWidget3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateActivityEventWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ActivityEvent0 = await ActivityEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ActivityEvent0?.setUser)
                {
                    await
                    ActivityEvent0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ActivityEvent1 = await ActivityEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ActivityEvent1?.setUser)
                {
                    await
                    ActivityEvent1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ActivityEvent2 = await ActivityEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ActivityEvent2?.setUser)
                {
                    await
                    ActivityEvent2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ActivityEvent3 = await ActivityEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ActivityEvent3?.setUser)
                {
                    await
                    ActivityEvent3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateActivityEventWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ActivityEvent0 = await ActivityEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ActivityEvent0?.setOrganization)
                {
                    await
                    ActivityEvent0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ActivityEvent1 = await ActivityEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ActivityEvent1?.setOrganization)
                {
                    await
                    ActivityEvent1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ActivityEvent2 = await ActivityEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ActivityEvent2?.setOrganization)
                {
                    await
                    ActivityEvent2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ActivityEvent3 = await ActivityEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ActivityEvent3?.setOrganization)
                {
                    await
                    ActivityEvent3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBlogPostWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BlogPost0 = await BlogPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BlogPost0?.setOrganization)
                {
                    await
                    BlogPost0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BlogPost1 = await BlogPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BlogPost1?.setOrganization)
                {
                    await
                    BlogPost1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BlogPost2 = await BlogPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BlogPost2?.setOrganization)
                {
                    await
                    BlogPost2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BlogPost3 = await BlogPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BlogPost3?.setOrganization)
                {
                    await
                    BlogPost3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFaqItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FaqItem0 = await FaqItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FaqItem0?.setOrganization)
                {
                    await
                    FaqItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FaqItem1 = await FaqItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FaqItem1?.setOrganization)
                {
                    await
                    FaqItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FaqItem2 = await FaqItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FaqItem2?.setOrganization)
                {
                    await
                    FaqItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FaqItem3 = await FaqItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FaqItem3?.setOrganization)
                {
                    await
                    FaqItem3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateContactMessageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContactMessage0 = await ContactMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContactMessage0?.setOrganization)
                {
                    await
                    ContactMessage0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContactMessage1 = await ContactMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContactMessage1?.setOrganization)
                {
                    await
                    ContactMessage1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContactMessage2 = await ContactMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContactMessage2?.setOrganization)
                {
                    await
                    ContactMessage2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContactMessage3 = await ContactMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContactMessage3?.setOrganization)
                {
                    await
                    ContactMessage3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateReferralProgramWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralProgram0 = await ReferralPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReferralProgram0?.setOrganization)
                {
                    await
                    ReferralProgram0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralProgram1 = await ReferralPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReferralProgram1?.setOrganization)
                {
                    await
                    ReferralProgram1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralProgram2 = await ReferralPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReferralProgram2?.setOrganization)
                {
                    await
                    ReferralProgram2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralProgram3 = await ReferralPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReferralProgram3?.setOrganization)
                {
                    await
                    ReferralProgram3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateReferralLinkWithReferrer_user() {
            
                const relatedReferrer_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReferralLink0 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReferralLink0?.setReferrer_user)
                {
                    await
                    ReferralLink0.
                    setReferrer_user(relatedReferrer_user0);
                }
            
                const relatedReferrer_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReferralLink1 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReferralLink1?.setReferrer_user)
                {
                    await
                    ReferralLink1.
                    setReferrer_user(relatedReferrer_user1);
                }
            
                const relatedReferrer_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReferralLink2 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReferralLink2?.setReferrer_user)
                {
                    await
                    ReferralLink2.
                    setReferrer_user(relatedReferrer_user2);
                }
            
                const relatedReferrer_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReferralLink3 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReferralLink3?.setReferrer_user)
                {
                    await
                    ReferralLink3.
                    setReferrer_user(relatedReferrer_user3);
                }
            
        }
        
    
        
            
            async function associateReferralLinkWithProgram() {
            
                const relatedProgram0 = await ReferralPrograms.findOne({
                    offset: Math.floor(Math.random() * (await ReferralPrograms.count())),
                });
                const ReferralLink0 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReferralLink0?.setProgram)
                {
                    await
                    ReferralLink0.
                    setProgram(relatedProgram0);
                }
            
                const relatedProgram1 = await ReferralPrograms.findOne({
                    offset: Math.floor(Math.random() * (await ReferralPrograms.count())),
                });
                const ReferralLink1 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReferralLink1?.setProgram)
                {
                    await
                    ReferralLink1.
                    setProgram(relatedProgram1);
                }
            
                const relatedProgram2 = await ReferralPrograms.findOne({
                    offset: Math.floor(Math.random() * (await ReferralPrograms.count())),
                });
                const ReferralLink2 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReferralLink2?.setProgram)
                {
                    await
                    ReferralLink2.
                    setProgram(relatedProgram2);
                }
            
                const relatedProgram3 = await ReferralPrograms.findOne({
                    offset: Math.floor(Math.random() * (await ReferralPrograms.count())),
                });
                const ReferralLink3 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReferralLink3?.setProgram)
                {
                    await
                    ReferralLink3.
                    setProgram(relatedProgram3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateReferralLinkWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralLink0 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReferralLink0?.setOrganization)
                {
                    await
                    ReferralLink0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralLink1 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReferralLink1?.setOrganization)
                {
                    await
                    ReferralLink1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralLink2 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReferralLink2?.setOrganization)
                {
                    await
                    ReferralLink2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralLink3 = await ReferralLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReferralLink3?.setOrganization)
                {
                    await
                    ReferralLink3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateReferralConversionWithReferral_link() {
            
                const relatedReferral_link0 = await ReferralLinks.findOne({
                    offset: Math.floor(Math.random() * (await ReferralLinks.count())),
                });
                const ReferralConversion0 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReferralConversion0?.setReferral_link)
                {
                    await
                    ReferralConversion0.
                    setReferral_link(relatedReferral_link0);
                }
            
                const relatedReferral_link1 = await ReferralLinks.findOne({
                    offset: Math.floor(Math.random() * (await ReferralLinks.count())),
                });
                const ReferralConversion1 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReferralConversion1?.setReferral_link)
                {
                    await
                    ReferralConversion1.
                    setReferral_link(relatedReferral_link1);
                }
            
                const relatedReferral_link2 = await ReferralLinks.findOne({
                    offset: Math.floor(Math.random() * (await ReferralLinks.count())),
                });
                const ReferralConversion2 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReferralConversion2?.setReferral_link)
                {
                    await
                    ReferralConversion2.
                    setReferral_link(relatedReferral_link2);
                }
            
                const relatedReferral_link3 = await ReferralLinks.findOne({
                    offset: Math.floor(Math.random() * (await ReferralLinks.count())),
                });
                const ReferralConversion3 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReferralConversion3?.setReferral_link)
                {
                    await
                    ReferralConversion3.
                    setReferral_link(relatedReferral_link3);
                }
            
        }
        
    
        
            
            async function associateReferralConversionWithReferred_user() {
            
                const relatedReferred_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReferralConversion0 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReferralConversion0?.setReferred_user)
                {
                    await
                    ReferralConversion0.
                    setReferred_user(relatedReferred_user0);
                }
            
                const relatedReferred_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReferralConversion1 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReferralConversion1?.setReferred_user)
                {
                    await
                    ReferralConversion1.
                    setReferred_user(relatedReferred_user1);
                }
            
                const relatedReferred_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReferralConversion2 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReferralConversion2?.setReferred_user)
                {
                    await
                    ReferralConversion2.
                    setReferred_user(relatedReferred_user2);
                }
            
                const relatedReferred_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReferralConversion3 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReferralConversion3?.setReferred_user)
                {
                    await
                    ReferralConversion3.
                    setReferred_user(relatedReferred_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateReferralConversionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralConversion0 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReferralConversion0?.setOrganization)
                {
                    await
                    ReferralConversion0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralConversion1 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReferralConversion1?.setOrganization)
                {
                    await
                    ReferralConversion1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralConversion2 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReferralConversion2?.setOrganization)
                {
                    await
                    ReferralConversion2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ReferralConversion3 = await ReferralConversions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReferralConversion3?.setOrganization)
                {
                    await
                    ReferralConversion3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await OauthAccounts.bulkCreate(OauthAccountsData);
                
            
            
                
                await ArtistProfiles.bulkCreate(ArtistProfilesData);
                
            
            
                
                await Teams.bulkCreate(TeamsData);
                
            
            
                
                await TeamMemberships.bulkCreate(TeamMembershipsData);
                
            
            
                
                await Plans.bulkCreate(PlansData);
                
            
            
                
                await Subscriptions.bulkCreate(SubscriptionsData);
                
            
            
                
                await DistributionPlatforms.bulkCreate(DistributionPlatformsData);
                
            
            
                
                await Genres.bulkCreate(GenresData);
                
            
            
                
                await Releases.bulkCreate(ReleasesData);
                
            
            
                
                await Tracks.bulkCreate(TracksData);
                
            
            
                
                await TrackContributors.bulkCreate(TrackContributorsData);
                
            
            
                
                await ReleaseDeliveries.bulkCreate(ReleaseDeliveriesData);
                
            
            
                
                await SmartLinks.bulkCreate(SmartLinksData);
                
            
            
                
                await SmartLinkDestinations.bulkCreate(SmartLinkDestinationsData);
                
            
            
                
                await SmartLinkClicks.bulkCreate(SmartLinkClicksData);
                
            
            
                
                await Playlists.bulkCreate(PlaylistsData);
                
            
            
                
                await PitchRequests.bulkCreate(PitchRequestsData);
                
            
            
                
                await PlaylistPlacements.bulkCreate(PlaylistPlacementsData);
                
            
            
                
                await RoyaltyReports.bulkCreate(RoyaltyReportsData);
                
            
            
                
                await RoyaltyLines.bulkCreate(RoyaltyLinesData);
                
            
            
                
                await Wallets.bulkCreate(WalletsData);
                
            
            
                
                await WalletTransactions.bulkCreate(WalletTransactionsData);
                
            
            
                
                await PayoutMethods.bulkCreate(PayoutMethodsData);
                
            
            
                
                await WithdrawalRequests.bulkCreate(WithdrawalRequestsData);
                
            
            
                
                await TaxDocuments.bulkCreate(TaxDocumentsData);
                
            
            
                
                await AnalyticsDaily.bulkCreate(AnalyticsDailyData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            
                
                await NotificationPreferences.bulkCreate(NotificationPreferencesData);
                
            
            
                
                await ApiKeys.bulkCreate(ApiKeysData);
                
            
            
                
                await DashboardWidgets.bulkCreate(DashboardWidgetsData);
                
            
            
                
                await ActivityEvents.bulkCreate(ActivityEventsData);
                
            
            
                
                await BlogPosts.bulkCreate(BlogPostsData);
                
            
            
                
                await FaqItems.bulkCreate(FaqItemsData);
                
            
            
                
                await ContactMessages.bulkCreate(ContactMessagesData);
                
            
            
                
                await ReferralPrograms.bulkCreate(ReferralProgramsData);
                
            
            
                
                await ReferralLinks.bulkCreate(ReferralLinksData);
                
            
            
                
                await ReferralConversions.bulkCreate(ReferralConversionsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                        
                        await associateOauthAccountWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOauthAccountWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateArtistProfileWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateArtistProfileWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTeamWithOwner(),
                    
                
                    
                
                    
                
                    
                        
                        await associateTeamWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTeamMembershipWithTeam(),
                    
                
                    
                        
                        await associateTeamMembershipWithMember_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTeamMembershipWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePlanWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSubscriptionWithUser(),
                    
                
                    
                        
                        await associateSubscriptionWithPlan(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSubscriptionWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDistributionPlatformWithOrganization(),
                    
                
            
                
                
                    
                
                    
                        
                        await associateGenreWithParent_genre(),
                    
                
                    
                
                    
                        
                        await associateGenreWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateReleasWithArtist_profile(),
                    
                
                    
                
                    
                
                    
                        
                        await associateReleasWithPrimary_genre(),
                    
                
                    
                        
                        await associateReleasWithSecondary_genre(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateReleasWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTrackWithRelease(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTrackWithGenre(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTrackWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTrackContributorWithTrack(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTrackContributorWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateReleaseDeliveryWithRelease(),
                    
                
                    
                        
                        await associateReleaseDeliveryWithPlatform(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateReleaseDeliveryWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSmartLinkWithRelease(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSmartLinkWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSmartLinkDestinationWithSmart_link(),
                    
                
                    
                        
                        await associateSmartLinkDestinationWithPlatform(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSmartLinkDestinationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSmartLinkClickWithSmart_link(),
                    
                
                    
                        
                        await associateSmartLinkClickWithPlatform(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSmartLinkClickWithOrganization(),
                    
                
            
                
                
                    
                
                    
                        
                        await associatePlaylistWithPlatform(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePlaylistWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePitchRequestWithTrack(),
                    
                
                    
                        
                        await associatePitchRequestWithArtist_profile(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePitchRequestWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePlaylistPlacementWithTrack(),
                    
                
                    
                        
                        await associatePlaylistPlacementWithPlaylist(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePlaylistPlacementWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRoyaltyReportWithArtist_profile(),
                    
                
                    
                        
                        await associateRoyaltyReportWithPlatform(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRoyaltyReportWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRoyaltyLineWithRoyalty_report(),
                    
                
                    
                        
                        await associateRoyaltyLineWithRelease(),
                    
                
                    
                        
                        await associateRoyaltyLineWithTrack(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRoyaltyLineWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateWalletWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWalletWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateWalletTransactionWithWallet(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWalletTransactionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePayoutMethodWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePayoutMethodWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateWithdrawalRequestWithWallet(),
                    
                
                    
                        
                        await associateWithdrawalRequestWithPayout_method(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWithdrawalRequestWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTaxDocumentWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTaxDocumentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAnalyticsDailyWithArtist_profile(),
                    
                
                    
                        
                        await associateAnalyticsDailyWithPlatform(),
                    
                
                    
                        
                        await associateAnalyticsDailyWithRelease(),
                    
                
                    
                        
                        await associateAnalyticsDailyWithTrack(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAnalyticsDailyWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateNotificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateNotificationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateNotificationPreferenceWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateNotificationPreferenceWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateApiKeyWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApiKeyWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDashboardWidgetWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDashboardWidgetWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateActivityEventWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateActivityEventWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBlogPostWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFaqItemWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContactMessageWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateReferralProgramWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateReferralLinkWithReferrer_user(),
                    
                
                    
                        
                        await associateReferralLinkWithProgram(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateReferralLinkWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateReferralConversionWithReferral_link(),
                    
                
                    
                        
                        await associateReferralConversionWithReferred_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateReferralConversionWithOrganization(),
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('oauth_accounts', null, {});
            
            
            await queryInterface.bulkDelete('artist_profiles', null, {});
            
            
            await queryInterface.bulkDelete('teams', null, {});
            
            
            await queryInterface.bulkDelete('team_memberships', null, {});
            
            
            await queryInterface.bulkDelete('plans', null, {});
            
            
            await queryInterface.bulkDelete('subscriptions', null, {});
            
            
            await queryInterface.bulkDelete('distribution_platforms', null, {});
            
            
            await queryInterface.bulkDelete('genres', null, {});
            
            
            await queryInterface.bulkDelete('releases', null, {});
            
            
            await queryInterface.bulkDelete('tracks', null, {});
            
            
            await queryInterface.bulkDelete('track_contributors', null, {});
            
            
            await queryInterface.bulkDelete('release_deliveries', null, {});
            
            
            await queryInterface.bulkDelete('smart_links', null, {});
            
            
            await queryInterface.bulkDelete('smart_link_destinations', null, {});
            
            
            await queryInterface.bulkDelete('smart_link_clicks', null, {});
            
            
            await queryInterface.bulkDelete('playlists', null, {});
            
            
            await queryInterface.bulkDelete('pitch_requests', null, {});
            
            
            await queryInterface.bulkDelete('playlist_placements', null, {});
            
            
            await queryInterface.bulkDelete('royalty_reports', null, {});
            
            
            await queryInterface.bulkDelete('royalty_lines', null, {});
            
            
            await queryInterface.bulkDelete('wallets', null, {});
            
            
            await queryInterface.bulkDelete('wallet_transactions', null, {});
            
            
            await queryInterface.bulkDelete('payout_methods', null, {});
            
            
            await queryInterface.bulkDelete('withdrawal_requests', null, {});
            
            
            await queryInterface.bulkDelete('tax_documents', null, {});
            
            
            await queryInterface.bulkDelete('analytics_daily', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
            
            await queryInterface.bulkDelete('notification_preferences', null, {});
            
            
            await queryInterface.bulkDelete('api_keys', null, {});
            
            
            await queryInterface.bulkDelete('dashboard_widgets', null, {});
            
            
            await queryInterface.bulkDelete('activity_events', null, {});
            
            
            await queryInterface.bulkDelete('blog_posts', null, {});
            
            
            await queryInterface.bulkDelete('faq_items', null, {});
            
            
            await queryInterface.bulkDelete('contact_messages', null, {});
            
            
            await queryInterface.bulkDelete('referral_programs', null, {});
            
            
            await queryInterface.bulkDelete('referral_links', null, {});
            
            
            await queryInterface.bulkDelete('referral_conversions', null, {});
            
        
    },
};