





















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






const Organizations = db.organizations;

const Workspaces = db.workspaces;

const WorkspaceMemberships = db.workspace_memberships;

const Genres = db.genres;

const Languages = db.languages;

const AiModels = db.ai_models;

const Projects = db.projects;

const ProjectCollaborations = db.project_collaborations;

const Songs = db.songs;

const SongMetadata = db.song_metadata;

const Assets = db.assets;

const RecordingSessions = db.recording_sessions;

const Tracks = db.tracks;

const ArrangementSections = db.arrangement_sections;

const GenerationRequests = db.generation_requests;

const VocalProcessingPresets = db.vocal_processing_presets;

const MasteringPresets = db.mastering_presets;

const MixSessions = db.mix_sessions;

const MasteringSessions = db.mastering_sessions;

const Exports = db.exports;

const CoverArtworks = db.cover_artworks;

const MarketplaceListings = db.marketplace_listings;

const MarketplaceOrders = db.marketplace_orders;







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



const WorkspacesData = [
    
    {
    
        
        
            
                "name": "Ubuntu Sound Lab",
            
        
    
        
        
            
                "slug": "ubuntu-sound-lab",
            
        
    
        
        
            
                "plan": "free",
            
        
    
        
        
            
                "plan_started_at": new Date('2026-01-01T08:00:00Z'),
            
        
    
        
        
            
                "plan_ends_at": new Date('2027-01-01T08:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Jozi Vocal House",
            
        
    
        
        
            
                "slug": "jozi-vocal-house",
            
        
    
        
        
            
                "plan": "enterprise",
            
        
    
        
        
            
                "plan_started_at": new Date('2026-02-01T08:00:00Z'),
            
        
    
        
        
            
                "plan_ends_at": new Date('2027-02-01T08:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Cape Town Mix Room",
            
        
    
        
        
            
                "slug": "cape-town-mix-room",
            
        
    
        
        
            
                "plan": "enterprise",
            
        
    
        
        
            
                "plan_started_at": new Date('2026-03-01T08:00:00Z'),
            
        
    
        
        
            
                "plan_ends_at": new Date('2027-03-01T08:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Durban Label Suite",
            
        
    
        
        
            
                "slug": "durban-label-suite",
            
        
    
        
        
            
                "plan": "free",
            
        
    
        
        
            
                "plan_started_at": new Date('2026-01-15T08:00:00Z'),
            
        
    
        
        
            
                "plan_ends_at": new Date('2027-01-15T08:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const WorkspaceMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "viewer",
            
        
    
        
        
            
                "joined_at": new Date('2026-01-01T08:05:00Z'),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "owner",
            
        
    
        
        
            
                "joined_at": new Date('2026-01-03T09:00:00Z'),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "viewer",
            
        
    
        
        
            
                "joined_at": new Date('2026-02-01T08:05:00Z'),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "owner",
            
        
    
        
        
            
                "joined_at": new Date('2026-01-15T08:05:00Z'),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GenresData = [
    
    {
    
        
        
            
                "name": "Amapiano",
            
        
    
        
        
            
                "origin": "global",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "South African house style with log drum grooves and jazzy chords",
            
        
    
        
        
            
                "typical_bpm_min": 108,
            
        
    
        
        
            
                "typical_bpm_max": 115,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Soulful Amapiano",
            
        
    
        
        
            
                "origin": "south_africa",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Warm pads, emotive chord progressions, smooth percussion and vocal-friendly arrangements",
            
        
    
        
        
            
                "typical_bpm_min": 108,
            
        
    
        
        
            
                "typical_bpm_max": 114,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Gqom",
            
        
    
        
        
            
                "origin": "global",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Hard, minimal Durban club rhythms with punchy kicks and dark textures",
            
        
    
        
        
            
                "typical_bpm_min": 120,
            
        
    
        
        
            
                "typical_bpm_max": 128,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Maskandi",
            
        
    
        
        
            
                "origin": "south_africa",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Zulu guitar-led folk with traditional rhythms and storytelling vocals",
            
        
    
        
        
            
                "typical_bpm_min": 90,
            
        
    
        
        
            
                "typical_bpm_max": 120,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LanguagesData = [
    
    {
    
        
        
            
                "name": "English",
            
        
    
        
        
            
                "iso_code": "en",
            
        
    
        
        
            
                "is_supported": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "isiZulu",
            
        
    
        
        
            
                "iso_code": "zu",
            
        
    
        
        
            
                "is_supported": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Xitsonga",
            
        
    
        
        
            
                "iso_code": "ts",
            
        
    
        
        
            
                "is_supported": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Setswana",
            
        
    
        
        
            
                "iso_code": "tn",
            
        
    
        
        
            
                "is_supported": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AiModelsData = [
    
    {
    
        
        
            
                "name": "SA Genre Composer",
            
        
    
        
        
            
                "model_type": "cover_art",
            
        
    
        
        
            
                "provider": "Internal",
            
        
    
        
        
            
                "version": "1.3.0",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Vocal Polish Pro",
            
        
    
        
        
            
                "model_type": "mastering",
            
        
    
        
        
            
                "provider": "Internal",
            
        
    
        
        
            
                "version": "2.1.0",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Auto Mix Console",
            
        
    
        
        
            
                "model_type": "mastering",
            
        
    
        
        
            
                "provider": "Internal",
            
        
    
        
        
            
                "version": "1.8.2",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Radio Ready Master",
            
        
    
        
        
            
                "model_type": "cover_art",
            
        
    
        
        
            
                "provider": "Internal",
            
        
    
        
        
            
                "version": "1.5.4",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProjectsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Log Drum Nights EP",
            
        
    
        
        
            
                "description": "Amapiano-focused project with vocal collaborations and club-ready masters",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "ready_for_mix",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_bpm": 112,
            
        
    
        
        
            
                "target_key": "F minor",
            
        
    
        
        
            
                "mood": "sad",
            
        
    
        
        
            
                "target_duration_seconds": 240,
            
        
    
        
        
            
                "collaboration_enabled": true,
            
        
    
        
        
            
                "last_opened_at": new Date('2026-04-10T19:30:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Skyline Sessions",
            
        
    
        
        
            
                "description": "Vocal-driven Afro House sketches for live recording and AI mixdown",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_bpm": 122,
            
        
    
        
        
            
                "target_key": "A minor",
            
        
    
        
        
            
                "mood": "chill",
            
        
    
        
        
            
                "target_duration_seconds": 210,
            
        
    
        
        
            
                "collaboration_enabled": true,
            
        
    
        
        
            
                "last_opened_at": new Date('2026-04-09T08:15:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Cape Jazz Fusion Pack",
            
        
    
        
        
            
                "description": "Jazz fusion ideas with clean vocal chains and dynamic mastering",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_bpm": 118,
            
        
    
        
        
            
                "target_key": "D minor",
            
        
    
        
        
            
                "mood": "aggressive",
            
        
    
        
        
            
                "target_duration_seconds": 300,
            
        
    
        
        
            
                "collaboration_enabled": false,
            
        
    
        
        
            
                "last_opened_at": new Date('2026-04-08T16:05:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Durban Club Cuts",
            
        
    
        
        
            
                "description": "Gqom and Afro House singles prepared for radio and streaming delivery",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_bpm": 125,
            
        
    
        
        
            
                "target_key": "G minor",
            
        
    
        
        
            
                "mood": "happy",
            
        
    
        
        
            
                "target_duration_seconds": 195,
            
        
    
        
        
            
                "collaboration_enabled": true,
            
        
    
        
        
            
                "last_opened_at": new Date('2026-04-11T11:45:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProjectCollaborationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "permission_level": "comment",
            
        
    
        
        
            
                "invited_at": new Date('2026-04-01T10:00:00Z'),
            
        
    
        
        
            
                "accepted_at": new Date('2026-04-01T12:30:00Z'),
            
        
    
        
        
            
                "invite_status": "accepted",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "permission_level": "comment",
            
        
    
        
        
            
                "invited_at": new Date('2026-04-02T09:10:00Z'),
            
        
    
        
        
            
                "accepted_at": new Date('2026-04-02T10:05:00Z'),
            
        
    
        
        
            
                "invite_status": "pending",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "permission_level": "admin",
            
        
    
        
        
            
                "invited_at": new Date('2026-04-03T14:20:00Z'),
            
        
    
        
        
            
                "accepted_at": new Date('2026-04-03T16:00:00Z'),
            
        
    
        
        
            
                "invite_status": "declined",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "permission_level": "view",
            
        
    
        
        
            
                "invited_at": new Date('2026-04-05T08:40:00Z'),
            
        
    
        
        
            
                "accepted_at": new Date('2026-04-05T09:00:00Z'),
            
        
    
        
        
            
                "invite_status": "pending",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SongsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Midnight Groove",
            
        
    
        
        
            
                "artist_display": "Thando Keys feat Lerato Sky",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bpm": 112,
            
        
    
        
        
            
                "key_signature": "F minor",
            
        
    
        
        
            
                "mood": "spiritual",
            
        
    
        
        
            
                "duration_seconds": 242,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "explicit_content": true,
            
        
    
        
        
            
                "lyrics": "Late night lights and steady moves",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "City Halo",
            
        
    
        
        
            
                "artist_display": "Lerato Sky",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bpm": 122,
            
        
    
        
        
            
                "key_signature": "A minor",
            
        
    
        
        
            
                "mood": "sad",
            
        
    
        
        
            
                "duration_seconds": 214,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "explicit_content": false,
            
        
    
        
        
            
                "lyrics": "Over the skyline we rise",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Harbour Lines",
            
        
    
        
        
            
                "artist_display": "Sifiso Mix",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bpm": 118,
            
        
    
        
        
            
                "key_signature": "D minor",
            
        
    
        
        
            
                "mood": "chill",
            
        
    
        
        
            
                "duration_seconds": 305,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "explicit_content": false,
            
        
    
        
        
            
                "lyrics": "Smooth waves and brass tones",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Night Taxi",
            
        
    
        
        
            
                "artist_display": "Ayesha N Presents",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bpm": 126,
            
        
    
        
        
            
                "key_signature": "G minor",
            
        
    
        
        
            
                "mood": "sad",
            
        
    
        
        
            
                "duration_seconds": 198,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "explicit_content": false,
            
        
    
        
        
            
                "lyrics": "Fast lanes and heavy kicks",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SongMetadataData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isrc": "ZA9AA2600001",
            
        
    
        
        
            
                "upc": "6001234567001",
            
        
    
        
        
            
                "release_title": "Midnight Groove",
            
        
    
        
        
            
                "release_date": new Date('2026-06-01T00:00:00Z'),
            
        
    
        
        
            
                "label_name": "Ubuntu Sound Lab",
            
        
    
        
        
            
                "publisher": "Ubuntu Publishing",
            
        
    
        
        
            
                "copyright_notice": "2026 Ubuntu Sound Lab",
            
        
    
        
        
            
                "distribution_status": "submitted",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isrc": "ZA9AA2600002",
            
        
    
        
        
            
                "upc": "6001234567002",
            
        
    
        
        
            
                "release_title": "City Halo",
            
        
    
        
        
            
                "release_date": new Date('2026-05-15T00:00:00Z'),
            
        
    
        
        
            
                "label_name": "Independent",
            
        
    
        
        
            
                "publisher": "Skyline Works",
            
        
    
        
        
            
                "copyright_notice": "2026 Lerato Sky",
            
        
    
        
        
            
                "distribution_status": "ready",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isrc": "ZA9AA2600003",
            
        
    
        
        
            
                "upc": "6001234567003",
            
        
    
        
        
            
                "release_title": "Harbour Lines",
            
        
    
        
        
            
                "release_date": new Date('2026-07-10T00:00:00Z'),
            
        
    
        
        
            
                "label_name": "Cape Town Mix Room",
            
        
    
        
        
            
                "publisher": "Cape Fusion",
            
        
    
        
        
            
                "copyright_notice": "2026 Cape Town Mix Room",
            
        
    
        
        
            
                "distribution_status": "ready",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isrc": "ZA9AA2600004",
            
        
    
        
        
            
                "upc": "6001234567004",
            
        
    
        
        
            
                "release_title": "Night Taxi",
            
        
    
        
        
            
                "release_date": new Date('2026-04-30T00:00:00Z'),
            
        
    
        
        
            
                "label_name": "Durban Label Suite",
            
        
    
        
        
            
                "publisher": "Durban Label Publishing",
            
        
    
        
        
            
                "copyright_notice": "2026 Durban Label Suite",
            
        
    
        
        
            
                "distribution_status": "distributed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AssetsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "asset_type": "document",
            
        
    
        
        
            
                "audio_role": "instrumental",
            
        
    
        
        
            
                "name": "Midnight Groove Instrumental v1",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "duration_seconds": 242.0,
            
        
    
        
        
            
                "sample_rate_hz": 48000,
            
        
    
        
        
            
                "bit_depth": 24,
            
        
    
        
        
            
                "is_stereo": true,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "asset_type": "image",
            
        
    
        
        
            
                "audio_role": "mix",
            
        
    
        
        
            
                "name": "Lerato Sky Lead Vocal Raw",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "duration_seconds": 240.5,
            
        
    
        
        
            
                "sample_rate_hz": 48000,
            
        
    
        
        
            
                "bit_depth": 24,
            
        
    
        
        
            
                "is_stereo": true,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "asset_type": "audio",
            
        
    
        
        
            
                "audio_role": "vocal_raw",
            
        
    
        
        
            
                "name": "Harbour Lines Mix v2",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "duration_seconds": 305.0,
            
        
    
        
        
            
                "sample_rate_hz": 48000,
            
        
    
        
        
            
                "bit_depth": 24,
            
        
    
        
        
            
                "is_stereo": true,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "asset_type": "image",
            
        
    
        
        
            
                "audio_role": "stem",
            
        
    
        
        
            
                "name": "Night Taxi Club Master",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "duration_seconds": 198.0,
            
        
    
        
        
            
                "sample_rate_hz": 44100,
            
        
    
        
        
            
                "bit_depth": 16,
            
        
    
        
        
            
                "is_stereo": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RecordingSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "planned",
            
        
    
        
        
            
                "started_at": new Date('2026-04-04T18:00:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-04-04T20:15:00Z'),
            
        
    
        
        
            
                "input_channels": 2,
            
        
    
        
        
            
                "sample_rate_hz": 48000,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "recording",
            
        
    
        
        
            
                "started_at": new Date('2026-04-10T17:30:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-04-10T19:00:00Z'),
            
        
    
        
        
            
                "input_channels": 1,
            
        
    
        
        
            
                "sample_rate_hz": 48000,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "planned",
            
        
    
        
        
            
                "started_at": new Date('2026-04-15T09:00:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-04-15T12:00:00Z'),
            
        
    
        
        
            
                "input_channels": 4,
            
        
    
        
        
            
                "sample_rate_hz": 48000,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "recording",
            
        
    
        
        
            
                "started_at": new Date('2026-03-28T14:00:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-03-28T15:10:00Z'),
            
        
    
        
        
            
                "input_channels": 2,
            
        
    
        
        
            
                "sample_rate_hz": 44100,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TracksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Log Drum",
            
        
    
        
        
            
                "track_type": "fx",
            
        
    
        
        
            
                "instrument": "synth",
            
        
    
        
        
            
                "volume_db": -6.0,
            
        
    
        
        
            
                "pan": 0.0,
            
        
    
        
        
            
                "mute": false,
            
        
    
        
        
            
                "solo": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Lead Vocal",
            
        
    
        
        
            
                "track_type": "drums",
            
        
    
        
        
            
                "instrument": "traditional_drums",
            
        
    
        
        
            
                "volume_db": -8.5,
            
        
    
        
        
            
                "pan": 0.0,
            
        
    
        
        
            
                "mute": true,
            
        
    
        
        
            
                "solo": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Main Drums",
            
        
    
        
        
            
                "track_type": "fx",
            
        
    
        
        
            
                "instrument": "traditional_drums",
            
        
    
        
        
            
                "volume_db": -7.0,
            
        
    
        
        
            
                "pan": 0.0,
            
        
    
        
        
            
                "mute": true,
            
        
    
        
        
            
                "solo": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Brass Section",
            
        
    
        
        
            
                "track_type": "drums",
            
        
    
        
        
            
                "instrument": "piano",
            
        
    
        
        
            
                "volume_db": -10.0,
            
        
    
        
        
            
                "pan": -0.2,
            
        
    
        
        
            
                "mute": true,
            
        
    
        
        
            
                "solo": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ArrangementSectionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "section_type": "outro",
            
        
    
        
        
            
                "label": "Intro",
            
        
    
        
        
            
                "start_bar": 1,
            
        
    
        
        
            
                "bar_length": 8,
            
        
    
        
        
            
                "order_index": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "section_type": "intro",
            
        
    
        
        
            
                "label": "Verse 1",
            
        
    
        
        
            
                "start_bar": 9,
            
        
    
        
        
            
                "bar_length": 16,
            
        
    
        
        
            
                "order_index": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "section_type": "breakdown",
            
        
    
        
        
            
                "label": "Chorus",
            
        
    
        
        
            
                "start_bar": 25,
            
        
    
        
        
            
                "bar_length": 16,
            
        
    
        
        
            
                "order_index": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "section_type": "drop",
            
        
    
        
        
            
                "label": "Bridge",
            
        
    
        
        
            
                "start_bar": 33,
            
        
    
        
        
            
                "bar_length": 8,
            
        
    
        
        
            
                "order_index": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GenerationRequestsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "request_type": "generate_beat_from_text",
            
        
    
        
        
            
                "prompt_text": "Soulful Amapiano with warm chords and clean log drum groove",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_bpm": 112,
            
        
    
        
        
            
                "target_key": "F minor",
            
        
    
        
        
            
                "mood": "aggressive",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "queued_at": new Date('2026-04-01T09:00:00Z'),
            
        
    
        
        
            
                "started_at": new Date('2026-04-01T09:01:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-01T09:04:00Z'),
            
        
    
        
        
            
                "error_message": "None",
            
        
    
        
        
            
                "compute_seconds": 180,
            
        
    
        
        
            
                "estimated_cost": 0.85,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "song_naming",
            
        
    
        
        
            
                "prompt_text": "Clean up noise, gentle pitch correction, add subtle harmonies",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_bpm": 112,
            
        
    
        
        
            
                "target_key": "F minor",
            
        
    
        
        
            
                "mood": "chill",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "queued_at": new Date('2026-04-04T20:30:00Z'),
            
        
    
        
        
            
                "started_at": new Date('2026-04-04T20:31:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-04T20:50:00Z'),
            
        
    
        
        
            
                "error_message": "None",
            
        
    
        
        
            
                "compute_seconds": 1140,
            
        
    
        
        
            
                "estimated_cost": 1.6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "metadata_tagging",
            
        
    
        
        
            
                "prompt_text": "Club loud master with tight low end and clear highs",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_bpm": 126,
            
        
    
        
        
            
                "target_key": "G minor",
            
        
    
        
        
            
                "mood": "sad",
            
        
    
        
        
            
                "status": "succeeded",
            
        
    
        
        
            
                "queued_at": new Date('2026-04-02T11:00:00Z'),
            
        
    
        
        
            
                "started_at": new Date('2026-04-02T11:01:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-02T11:03:00Z'),
            
        
    
        
        
            
                "error_message": "None",
            
        
    
        
        
            
                "compute_seconds": 120,
            
        
    
        
        
            
                "estimated_cost": 0.55,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "metadata_tagging",
            
        
    
        
        
            
                "prompt_text": "Detect vibe and suggest best SA genre match",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_bpm": 110,
            
        
    
        
        
            
                "target_key": "E minor",
            
        
    
        
        
            
                "mood": "energetic",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "queued_at": new Date('2026-04-06T08:00:00Z'),
            
        
    
        
        
            
                "started_at": new Date('2026-04-06T08:00:30Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-06T08:00:40Z'),
            
        
    
        
        
            
                "error_message": "None",
            
        
    
        
        
            
                "compute_seconds": 10,
            
        
    
        
        
            
                "estimated_cost": 0.05,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const VocalProcessingPresetsData = [
    
    {
    
        
        
            
                "name": "Clean SA Pop Vocal",
            
        
    
        
        
            
                "preset_type": "harmony_generation",
            
        
    
        
        
            
                "description": "Noise reduction, gentle de-ess, light pitch correction, vocal EQ and compression",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "intensity": 0.45,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Amapiano Airy Lead",
            
        
    
        
        
            
                "preset_type": "de_essing",
            
        
    
        
        
            
                "description": "Smooth pitch correction with bright top end and subtle harmonies",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "intensity": 0.55,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Gospel Clarity Chain",
            
        
    
        
        
            
                "preset_type": "harmony_generation",
            
        
    
        
        
            
                "description": "Warm EQ, controlled sibilance and natural dynamics for powerful vocals",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "intensity": 0.4,
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Drill Tight Vocal",
            
        
    
        
        
            
                "preset_type": "layering",
            
        
    
        
        
            
                "description": "Tighter compression, focused mids, stronger de-ess and modern tuning",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "intensity": 0.7,
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MasteringPresetsData = [
    
    {
    
        
        
            
                "name": "Streaming Balanced",
            
        
    
        
        
            
                "target": "radio_broadcast",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lufs_target": -14.0,
            
        
    
        
        
            
                "true_peak_db": -1.0,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Radio Broadcast Clean",
            
        
    
        
        
            
                "target": "genre_aware",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lufs_target": -12.0,
            
        
    
        
        
            
                "true_peak_db": -1.0,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Club Amapiano Loud",
            
        
    
        
        
            
                "target": "radio_broadcast",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lufs_target": -9.5,
            
        
    
        
        
            
                "true_peak_db": -0.8,
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Gqom Punch Master",
            
        
    
        
        
            
                "target": "club_loud",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lufs_target": -10.0,
            
        
    
        
        
            
                "true_peak_db": -0.8,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MixSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mix_type": "auto_mix",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "stereo_widening_amount": 0.25,
            
        
    
        
        
            
                "compression_amount": 0.35,
            
        
    
        
        
            
                "eq_amount": 0.3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date('2026-04-05T09:00:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-05T09:06:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mix_type": "assisted_mix",
            
        
    
        
        
            
                "status": "running",
            
        
    
        
        
            
                "stereo_widening_amount": 0.3,
            
        
    
        
        
            
                "compression_amount": 0.25,
            
        
    
        
        
            
                "eq_amount": 0.35,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date('2026-04-10T19:10:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-10T19:30:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mix_type": "assisted_mix",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "stereo_widening_amount": 0.15,
            
        
    
        
        
            
                "compression_amount": 0.2,
            
        
    
        
        
            
                "eq_amount": 0.2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date('2026-04-08T12:00:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-08T12:02:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mix_type": "auto_mix",
            
        
    
        
        
            
                "status": "running",
            
        
    
        
        
            
                "stereo_widening_amount": 0.1,
            
        
    
        
        
            
                "compression_amount": 0.4,
            
        
    
        
        
            
                "eq_amount": 0.25,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "started_at": new Date('2026-03-29T10:00:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-03-29T10:05:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MasteringSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lufs_measured": -9.6,
            
        
    
        
        
            
                "true_peak_measured_db": -0.9,
            
        
    
        
        
            
                "started_at": new Date('2026-04-06T10:00:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-06T10:00:10Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lufs_measured": -13.8,
            
        
    
        
        
            
                "true_peak_measured_db": -1.1,
            
        
    
        
        
            
                "started_at": new Date('2026-04-10T20:00:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-10T20:00:30Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "running",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lufs_measured": -15.2,
            
        
    
        
        
            
                "true_peak_measured_db": -1.3,
            
        
    
        
        
            
                "started_at": new Date('2026-04-08T14:00:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-04-08T14:03:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lufs_measured": -10.1,
            
        
    
        
        
            
                "true_peak_measured_db": -0.8,
            
        
    
        
        
            
                "started_at": new Date('2026-03-30T09:00:00Z'),
            
        
    
        
        
            
                "finished_at": new Date('2026-03-30T09:02:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ExportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "format": "wav",
            
        
    
        
        
            
                "quality": "studio",
            
        
    
        
        
            
                "include_stems": true,
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date('2026-04-06T11:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-04-06T11:10:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "format": "mp3",
            
        
    
        
        
            
                "quality": "draft",
            
        
    
        
        
            
                "include_stems": false,
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date('2026-04-10T21:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-04-10T21:02:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "format": "wav",
            
        
    
        
        
            
                "quality": "standard",
            
        
    
        
        
            
                "include_stems": true,
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date('2026-04-08T15:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-04-08T15:00:10Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "format": "mp3",
            
        
    
        
        
            
                "quality": "draft",
            
        
    
        
        
            
                "include_stems": true,
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date('2026-03-30T10:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-03-30T10:01:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CoverArtworksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Neon city reflections with musical energy",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Soft sunrise gradient over abstract skyline",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Minimal waves and brass geometric shapes",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "selected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "prompt": "Dark street motion blur with bold accents",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MarketplaceListingsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "listing_type": "preset_pack",
            
        
    
        
        
            
                "title": "Soulful Amapiano Starter Beat",
            
        
    
        
        
            
                "description": "Warm chords, clean drums and a groovy log drum pattern for vocalists",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "price": 399.0,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "published_at": new Date('2026-04-01T12:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "listing_type": "beat",
            
        
    
        
        
            
                "title": "Vocal Polish Preset Pack",
            
        
    
        
        
            
                "description": "A set of vocal chains for clean pop, gospel clarity and modern tuning",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "price": 249.0,
            
        
    
        
        
            
                "currency": "ZAR",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "published_at": new Date('2026-04-02T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "listing_type": "beat",
            
        
    
        
        
            
                "title": "Traditional Perc Stem Pack",
            
        
    
        
        
            
                "description": "Traditional drum and percussion stems designed for house and fusion tracks",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "price": 299.0,
            
        
    
        
        
            
                "currency": "ZAR",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "sold_out",
            
        
    
        
        
            
                "published_at": new Date('2026-04-12T08:30:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "listing_type": "preset_pack",
            
        
    
        
        
            
                "title": "Durban Gqom Club Loop",
            
        
    
        
        
            
                "description": "Hard kick, dark textures and clean arrangement for quick club edits",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "price": 199.0,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "published_at": new Date('2026-03-29T12:00:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MarketplaceOrdersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 399.0,
            
        
    
        
        
            
                "currency": "ZAR",
            
        
    
        
        
            
                "status": "fulfilled",
            
        
    
        
        
            
                "ordered_at": new Date('2026-04-03T10:10:00Z'),
            
        
    
        
        
            
                "fulfilled_at": new Date('2026-04-03T10:12:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 249.0,
            
        
    
        
        
            
                "currency": "EUR",
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "ordered_at": new Date('2026-04-04T09:40:00Z'),
            
        
    
        
        
            
                "fulfilled_at": new Date('2026-04-04T09:45:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 199.0,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "fulfilled",
            
        
    
        
        
            
                "ordered_at": new Date('2026-04-01T16:30:00Z'),
            
        
    
        
        
            
                "fulfilled_at": new Date('2026-04-01T16:35:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 349.0,
            
        
    
        
        
            
                "currency": "ZAR",
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "ordered_at": new Date('2026-04-06T11:05:00Z'),
            
        
    
        
        
            
                "fulfilled_at": new Date('2026-04-06T11:06:00Z'),
            
        
    
        
        
            
                // 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 associateWorkspaceWithOwner_user() {
            
                const relatedOwner_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Workspace0 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Workspace0?.setOwner_user)
                {
                    await
                    Workspace0.
                    setOwner_user(relatedOwner_user0);
                }
            
                const relatedOwner_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Workspace1 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Workspace1?.setOwner_user)
                {
                    await
                    Workspace1.
                    setOwner_user(relatedOwner_user1);
                }
            
                const relatedOwner_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Workspace2 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Workspace2?.setOwner_user)
                {
                    await
                    Workspace2.
                    setOwner_user(relatedOwner_user2);
                }
            
                const relatedOwner_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Workspace3 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Workspace3?.setOwner_user)
                {
                    await
                    Workspace3.
                    setOwner_user(relatedOwner_user3);
                }
            
        }
        
    
        
    
        
            
            async function associateWorkspaceWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Workspace0 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Workspace0?.setOrganization)
                {
                    await
                    Workspace0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Workspace1 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Workspace1?.setOrganization)
                {
                    await
                    Workspace1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Workspace2 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Workspace2?.setOrganization)
                {
                    await
                    Workspace2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Workspace3 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Workspace3?.setOrganization)
                {
                    await
                    Workspace3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateWorkspaceMembershipWithWorkspace() {
            
                const relatedWorkspace0 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const WorkspaceMembership0 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorkspaceMembership0?.setWorkspace)
                {
                    await
                    WorkspaceMembership0.
                    setWorkspace(relatedWorkspace0);
                }
            
                const relatedWorkspace1 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const WorkspaceMembership1 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorkspaceMembership1?.setWorkspace)
                {
                    await
                    WorkspaceMembership1.
                    setWorkspace(relatedWorkspace1);
                }
            
                const relatedWorkspace2 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const WorkspaceMembership2 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorkspaceMembership2?.setWorkspace)
                {
                    await
                    WorkspaceMembership2.
                    setWorkspace(relatedWorkspace2);
                }
            
                const relatedWorkspace3 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const WorkspaceMembership3 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorkspaceMembership3?.setWorkspace)
                {
                    await
                    WorkspaceMembership3.
                    setWorkspace(relatedWorkspace3);
                }
            
        }
        
    
        
            
            async function associateWorkspaceMembershipWithMember_user() {
            
                const relatedMember_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WorkspaceMembership0 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorkspaceMembership0?.setMember_user)
                {
                    await
                    WorkspaceMembership0.
                    setMember_user(relatedMember_user0);
                }
            
                const relatedMember_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WorkspaceMembership1 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorkspaceMembership1?.setMember_user)
                {
                    await
                    WorkspaceMembership1.
                    setMember_user(relatedMember_user1);
                }
            
                const relatedMember_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WorkspaceMembership2 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorkspaceMembership2?.setMember_user)
                {
                    await
                    WorkspaceMembership2.
                    setMember_user(relatedMember_user2);
                }
            
                const relatedMember_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WorkspaceMembership3 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorkspaceMembership3?.setMember_user)
                {
                    await
                    WorkspaceMembership3.
                    setMember_user(relatedMember_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateWorkspaceMembershipWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkspaceMembership0 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorkspaceMembership0?.setOrganization)
                {
                    await
                    WorkspaceMembership0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkspaceMembership1 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorkspaceMembership1?.setOrganization)
                {
                    await
                    WorkspaceMembership1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkspaceMembership2 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorkspaceMembership2?.setOrganization)
                {
                    await
                    WorkspaceMembership2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkspaceMembership3 = await WorkspaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorkspaceMembership3?.setOrganization)
                {
                    await
                    WorkspaceMembership3.
                    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 associateLanguageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Language0 = await Languages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Language0?.setOrganization)
                {
                    await
                    Language0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Language1 = await Languages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Language1?.setOrganization)
                {
                    await
                    Language1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Language2 = await Languages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Language2?.setOrganization)
                {
                    await
                    Language2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Language3 = await Languages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Language3?.setOrganization)
                {
                    await
                    Language3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAiModelWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiModel0 = await AiModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiModel0?.setOrganization)
                {
                    await
                    AiModel0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiModel1 = await AiModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiModel1?.setOrganization)
                {
                    await
                    AiModel1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiModel2 = await AiModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiModel2?.setOrganization)
                {
                    await
                    AiModel2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiModel3 = await AiModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiModel3?.setOrganization)
                {
                    await
                    AiModel3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateProjectWithWorkspace() {
            
                const relatedWorkspace0 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setWorkspace)
                {
                    await
                    Project0.
                    setWorkspace(relatedWorkspace0);
                }
            
                const relatedWorkspace1 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setWorkspace)
                {
                    await
                    Project1.
                    setWorkspace(relatedWorkspace1);
                }
            
                const relatedWorkspace2 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setWorkspace)
                {
                    await
                    Project2.
                    setWorkspace(relatedWorkspace2);
                }
            
                const relatedWorkspace3 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setWorkspace)
                {
                    await
                    Project3.
                    setWorkspace(relatedWorkspace3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateProjectWithCreated_user() {
            
                const relatedCreated_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setCreated_user)
                {
                    await
                    Project0.
                    setCreated_user(relatedCreated_user0);
                }
            
                const relatedCreated_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setCreated_user)
                {
                    await
                    Project1.
                    setCreated_user(relatedCreated_user1);
                }
            
                const relatedCreated_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setCreated_user)
                {
                    await
                    Project2.
                    setCreated_user(relatedCreated_user2);
                }
            
                const relatedCreated_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setCreated_user)
                {
                    await
                    Project3.
                    setCreated_user(relatedCreated_user3);
                }
            
        }
        
    
        
    
        
            
            async function associateProjectWithPrimary_genre() {
            
                const relatedPrimary_genre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setPrimary_genre)
                {
                    await
                    Project0.
                    setPrimary_genre(relatedPrimary_genre0);
                }
            
                const relatedPrimary_genre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setPrimary_genre)
                {
                    await
                    Project1.
                    setPrimary_genre(relatedPrimary_genre1);
                }
            
                const relatedPrimary_genre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setPrimary_genre)
                {
                    await
                    Project2.
                    setPrimary_genre(relatedPrimary_genre2);
                }
            
                const relatedPrimary_genre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setPrimary_genre)
                {
                    await
                    Project3.
                    setPrimary_genre(relatedPrimary_genre3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProjectWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setOrganization)
                {
                    await
                    Project0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setOrganization)
                {
                    await
                    Project1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setOrganization)
                {
                    await
                    Project2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setOrganization)
                {
                    await
                    Project3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateProjectCollaborationWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const ProjectCollaboration0 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProjectCollaboration0?.setProject)
                {
                    await
                    ProjectCollaboration0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const ProjectCollaboration1 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProjectCollaboration1?.setProject)
                {
                    await
                    ProjectCollaboration1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const ProjectCollaboration2 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProjectCollaboration2?.setProject)
                {
                    await
                    ProjectCollaboration2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const ProjectCollaboration3 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProjectCollaboration3?.setProject)
                {
                    await
                    ProjectCollaboration3.
                    setProject(relatedProject3);
                }
            
        }
        
    
        
            
            async function associateProjectCollaborationWithCollaborator_user() {
            
                const relatedCollaborator_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProjectCollaboration0 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProjectCollaboration0?.setCollaborator_user)
                {
                    await
                    ProjectCollaboration0.
                    setCollaborator_user(relatedCollaborator_user0);
                }
            
                const relatedCollaborator_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProjectCollaboration1 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProjectCollaboration1?.setCollaborator_user)
                {
                    await
                    ProjectCollaboration1.
                    setCollaborator_user(relatedCollaborator_user1);
                }
            
                const relatedCollaborator_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProjectCollaboration2 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProjectCollaboration2?.setCollaborator_user)
                {
                    await
                    ProjectCollaboration2.
                    setCollaborator_user(relatedCollaborator_user2);
                }
            
                const relatedCollaborator_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProjectCollaboration3 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProjectCollaboration3?.setCollaborator_user)
                {
                    await
                    ProjectCollaboration3.
                    setCollaborator_user(relatedCollaborator_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProjectCollaborationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProjectCollaboration0 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProjectCollaboration0?.setOrganization)
                {
                    await
                    ProjectCollaboration0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProjectCollaboration1 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProjectCollaboration1?.setOrganization)
                {
                    await
                    ProjectCollaboration1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProjectCollaboration2 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProjectCollaboration2?.setOrganization)
                {
                    await
                    ProjectCollaboration2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProjectCollaboration3 = await ProjectCollaborations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProjectCollaboration3?.setOrganization)
                {
                    await
                    ProjectCollaboration3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSongWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Song0 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Song0?.setProject)
                {
                    await
                    Song0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Song1 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Song1?.setProject)
                {
                    await
                    Song1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Song2 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Song2?.setProject)
                {
                    await
                    Song2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Song3 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Song3?.setProject)
                {
                    await
                    Song3.
                    setProject(relatedProject3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateSongWithGenre() {
            
                const relatedGenre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Song0 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Song0?.setGenre)
                {
                    await
                    Song0.
                    setGenre(relatedGenre0);
                }
            
                const relatedGenre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Song1 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Song1?.setGenre)
                {
                    await
                    Song1.
                    setGenre(relatedGenre1);
                }
            
                const relatedGenre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Song2 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Song2?.setGenre)
                {
                    await
                    Song2.
                    setGenre(relatedGenre2);
                }
            
                const relatedGenre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const Song3 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Song3?.setGenre)
                {
                    await
                    Song3.
                    setGenre(relatedGenre3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSongWithVocal_language() {
            
                const relatedVocal_language0 = await Languages.findOne({
                    offset: Math.floor(Math.random() * (await Languages.count())),
                });
                const Song0 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Song0?.setVocal_language)
                {
                    await
                    Song0.
                    setVocal_language(relatedVocal_language0);
                }
            
                const relatedVocal_language1 = await Languages.findOne({
                    offset: Math.floor(Math.random() * (await Languages.count())),
                });
                const Song1 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Song1?.setVocal_language)
                {
                    await
                    Song1.
                    setVocal_language(relatedVocal_language1);
                }
            
                const relatedVocal_language2 = await Languages.findOne({
                    offset: Math.floor(Math.random() * (await Languages.count())),
                });
                const Song2 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Song2?.setVocal_language)
                {
                    await
                    Song2.
                    setVocal_language(relatedVocal_language2);
                }
            
                const relatedVocal_language3 = await Languages.findOne({
                    offset: Math.floor(Math.random() * (await Languages.count())),
                });
                const Song3 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Song3?.setVocal_language)
                {
                    await
                    Song3.
                    setVocal_language(relatedVocal_language3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateSongWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Song0 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Song0?.setOrganization)
                {
                    await
                    Song0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Song1 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Song1?.setOrganization)
                {
                    await
                    Song1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Song2 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Song2?.setOrganization)
                {
                    await
                    Song2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Song3 = await Songs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Song3?.setOrganization)
                {
                    await
                    Song3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSongMetadataWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const SongMetadata0 = await SongMetadata.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SongMetadata0?.setSong)
                {
                    await
                    SongMetadata0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const SongMetadata1 = await SongMetadata.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SongMetadata1?.setSong)
                {
                    await
                    SongMetadata1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const SongMetadata2 = await SongMetadata.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SongMetadata2?.setSong)
                {
                    await
                    SongMetadata2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const SongMetadata3 = await SongMetadata.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SongMetadata3?.setSong)
                {
                    await
                    SongMetadata3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSongMetadataWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SongMetadata0 = await SongMetadata.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SongMetadata0?.setOrganization)
                {
                    await
                    SongMetadata0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SongMetadata1 = await SongMetadata.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SongMetadata1?.setOrganization)
                {
                    await
                    SongMetadata1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SongMetadata2 = await SongMetadata.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SongMetadata2?.setOrganization)
                {
                    await
                    SongMetadata2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SongMetadata3 = await SongMetadata.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SongMetadata3?.setOrganization)
                {
                    await
                    SongMetadata3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAssetWithWorkspace() {
            
                const relatedWorkspace0 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Asset0 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Asset0?.setWorkspace)
                {
                    await
                    Asset0.
                    setWorkspace(relatedWorkspace0);
                }
            
                const relatedWorkspace1 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Asset1 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Asset1?.setWorkspace)
                {
                    await
                    Asset1.
                    setWorkspace(relatedWorkspace1);
                }
            
                const relatedWorkspace2 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Asset2 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Asset2?.setWorkspace)
                {
                    await
                    Asset2.
                    setWorkspace(relatedWorkspace2);
                }
            
                const relatedWorkspace3 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Asset3 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Asset3?.setWorkspace)
                {
                    await
                    Asset3.
                    setWorkspace(relatedWorkspace3);
                }
            
        }
        
    
        
            
            async function associateAssetWithUploaded_user() {
            
                const relatedUploaded_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Asset0 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Asset0?.setUploaded_user)
                {
                    await
                    Asset0.
                    setUploaded_user(relatedUploaded_user0);
                }
            
                const relatedUploaded_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Asset1 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Asset1?.setUploaded_user)
                {
                    await
                    Asset1.
                    setUploaded_user(relatedUploaded_user1);
                }
            
                const relatedUploaded_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Asset2 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Asset2?.setUploaded_user)
                {
                    await
                    Asset2.
                    setUploaded_user(relatedUploaded_user2);
                }
            
                const relatedUploaded_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Asset3 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Asset3?.setUploaded_user)
                {
                    await
                    Asset3.
                    setUploaded_user(relatedUploaded_user3);
                }
            
        }
        
    
        
            
            async function associateAssetWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Asset0 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Asset0?.setProject)
                {
                    await
                    Asset0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Asset1 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Asset1?.setProject)
                {
                    await
                    Asset1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Asset2 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Asset2?.setProject)
                {
                    await
                    Asset2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Asset3 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Asset3?.setProject)
                {
                    await
                    Asset3.
                    setProject(relatedProject3);
                }
            
        }
        
    
        
            
            async function associateAssetWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Asset0 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Asset0?.setSong)
                {
                    await
                    Asset0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Asset1 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Asset1?.setSong)
                {
                    await
                    Asset1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Asset2 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Asset2?.setSong)
                {
                    await
                    Asset2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Asset3 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Asset3?.setSong)
                {
                    await
                    Asset3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAssetWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Asset0 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Asset0?.setOrganization)
                {
                    await
                    Asset0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Asset1 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Asset1?.setOrganization)
                {
                    await
                    Asset1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Asset2 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Asset2?.setOrganization)
                {
                    await
                    Asset2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Asset3 = await Assets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Asset3?.setOrganization)
                {
                    await
                    Asset3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRecordingSessionWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const RecordingSession0 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecordingSession0?.setProject)
                {
                    await
                    RecordingSession0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const RecordingSession1 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecordingSession1?.setProject)
                {
                    await
                    RecordingSession1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const RecordingSession2 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecordingSession2?.setProject)
                {
                    await
                    RecordingSession2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const RecordingSession3 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecordingSession3?.setProject)
                {
                    await
                    RecordingSession3.
                    setProject(relatedProject3);
                }
            
        }
        
    
        
            
            async function associateRecordingSessionWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const RecordingSession0 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecordingSession0?.setSong)
                {
                    await
                    RecordingSession0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const RecordingSession1 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecordingSession1?.setSong)
                {
                    await
                    RecordingSession1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const RecordingSession2 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecordingSession2?.setSong)
                {
                    await
                    RecordingSession2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const RecordingSession3 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecordingSession3?.setSong)
                {
                    await
                    RecordingSession3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
            
            async function associateRecordingSessionWithStarted_user() {
            
                const relatedStarted_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecordingSession0 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecordingSession0?.setStarted_user)
                {
                    await
                    RecordingSession0.
                    setStarted_user(relatedStarted_user0);
                }
            
                const relatedStarted_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecordingSession1 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecordingSession1?.setStarted_user)
                {
                    await
                    RecordingSession1.
                    setStarted_user(relatedStarted_user1);
                }
            
                const relatedStarted_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecordingSession2 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecordingSession2?.setStarted_user)
                {
                    await
                    RecordingSession2.
                    setStarted_user(relatedStarted_user2);
                }
            
                const relatedStarted_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RecordingSession3 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecordingSession3?.setStarted_user)
                {
                    await
                    RecordingSession3.
                    setStarted_user(relatedStarted_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRecordingSessionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RecordingSession0 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecordingSession0?.setOrganization)
                {
                    await
                    RecordingSession0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RecordingSession1 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecordingSession1?.setOrganization)
                {
                    await
                    RecordingSession1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RecordingSession2 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecordingSession2?.setOrganization)
                {
                    await
                    RecordingSession2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RecordingSession3 = await RecordingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecordingSession3?.setOrganization)
                {
                    await
                    RecordingSession3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTrackWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Track0 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Track0?.setSong)
                {
                    await
                    Track0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Track1 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Track1?.setSong)
                {
                    await
                    Track1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Track2 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Track2?.setSong)
                {
                    await
                    Track2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Track3 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Track3?.setSong)
                {
                    await
                    Track3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTrackWithSource_asset() {
            
                const relatedSource_asset0 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const Track0 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Track0?.setSource_asset)
                {
                    await
                    Track0.
                    setSource_asset(relatedSource_asset0);
                }
            
                const relatedSource_asset1 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const Track1 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Track1?.setSource_asset)
                {
                    await
                    Track1.
                    setSource_asset(relatedSource_asset1);
                }
            
                const relatedSource_asset2 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const Track2 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Track2?.setSource_asset)
                {
                    await
                    Track2.
                    setSource_asset(relatedSource_asset2);
                }
            
                const relatedSource_asset3 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const Track3 = await Tracks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Track3?.setSource_asset)
                {
                    await
                    Track3.
                    setSource_asset(relatedSource_asset3);
                }
            
        }
        
    
        
            
            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 associateArrangementSectionWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const ArrangementSection0 = await ArrangementSections.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ArrangementSection0?.setSong)
                {
                    await
                    ArrangementSection0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const ArrangementSection1 = await ArrangementSections.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ArrangementSection1?.setSong)
                {
                    await
                    ArrangementSection1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const ArrangementSection2 = await ArrangementSections.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ArrangementSection2?.setSong)
                {
                    await
                    ArrangementSection2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const ArrangementSection3 = await ArrangementSections.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ArrangementSection3?.setSong)
                {
                    await
                    ArrangementSection3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateArrangementSectionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ArrangementSection0 = await ArrangementSections.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ArrangementSection0?.setOrganization)
                {
                    await
                    ArrangementSection0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ArrangementSection1 = await ArrangementSections.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ArrangementSection1?.setOrganization)
                {
                    await
                    ArrangementSection1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ArrangementSection2 = await ArrangementSections.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ArrangementSection2?.setOrganization)
                {
                    await
                    ArrangementSection2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ArrangementSection3 = await ArrangementSections.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ArrangementSection3?.setOrganization)
                {
                    await
                    ArrangementSection3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateGenerationRequestWithWorkspace() {
            
                const relatedWorkspace0 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const GenerationRequest0 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GenerationRequest0?.setWorkspace)
                {
                    await
                    GenerationRequest0.
                    setWorkspace(relatedWorkspace0);
                }
            
                const relatedWorkspace1 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const GenerationRequest1 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GenerationRequest1?.setWorkspace)
                {
                    await
                    GenerationRequest1.
                    setWorkspace(relatedWorkspace1);
                }
            
                const relatedWorkspace2 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const GenerationRequest2 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GenerationRequest2?.setWorkspace)
                {
                    await
                    GenerationRequest2.
                    setWorkspace(relatedWorkspace2);
                }
            
                const relatedWorkspace3 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const GenerationRequest3 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GenerationRequest3?.setWorkspace)
                {
                    await
                    GenerationRequest3.
                    setWorkspace(relatedWorkspace3);
                }
            
        }
        
    
        
            
            async function associateGenerationRequestWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const GenerationRequest0 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GenerationRequest0?.setProject)
                {
                    await
                    GenerationRequest0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const GenerationRequest1 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GenerationRequest1?.setProject)
                {
                    await
                    GenerationRequest1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const GenerationRequest2 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GenerationRequest2?.setProject)
                {
                    await
                    GenerationRequest2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const GenerationRequest3 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GenerationRequest3?.setProject)
                {
                    await
                    GenerationRequest3.
                    setProject(relatedProject3);
                }
            
        }
        
    
        
            
            async function associateGenerationRequestWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const GenerationRequest0 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GenerationRequest0?.setSong)
                {
                    await
                    GenerationRequest0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const GenerationRequest1 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GenerationRequest1?.setSong)
                {
                    await
                    GenerationRequest1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const GenerationRequest2 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GenerationRequest2?.setSong)
                {
                    await
                    GenerationRequest2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const GenerationRequest3 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GenerationRequest3?.setSong)
                {
                    await
                    GenerationRequest3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
            
            async function associateGenerationRequestWithRequested_user() {
            
                const relatedRequested_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const GenerationRequest0 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GenerationRequest0?.setRequested_user)
                {
                    await
                    GenerationRequest0.
                    setRequested_user(relatedRequested_user0);
                }
            
                const relatedRequested_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const GenerationRequest1 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GenerationRequest1?.setRequested_user)
                {
                    await
                    GenerationRequest1.
                    setRequested_user(relatedRequested_user1);
                }
            
                const relatedRequested_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const GenerationRequest2 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GenerationRequest2?.setRequested_user)
                {
                    await
                    GenerationRequest2.
                    setRequested_user(relatedRequested_user2);
                }
            
                const relatedRequested_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const GenerationRequest3 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GenerationRequest3?.setRequested_user)
                {
                    await
                    GenerationRequest3.
                    setRequested_user(relatedRequested_user3);
                }
            
        }
        
    
        
            
            async function associateGenerationRequestWithModel() {
            
                const relatedModel0 = await AiModels.findOne({
                    offset: Math.floor(Math.random() * (await AiModels.count())),
                });
                const GenerationRequest0 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GenerationRequest0?.setModel)
                {
                    await
                    GenerationRequest0.
                    setModel(relatedModel0);
                }
            
                const relatedModel1 = await AiModels.findOne({
                    offset: Math.floor(Math.random() * (await AiModels.count())),
                });
                const GenerationRequest1 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GenerationRequest1?.setModel)
                {
                    await
                    GenerationRequest1.
                    setModel(relatedModel1);
                }
            
                const relatedModel2 = await AiModels.findOne({
                    offset: Math.floor(Math.random() * (await AiModels.count())),
                });
                const GenerationRequest2 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GenerationRequest2?.setModel)
                {
                    await
                    GenerationRequest2.
                    setModel(relatedModel2);
                }
            
                const relatedModel3 = await AiModels.findOne({
                    offset: Math.floor(Math.random() * (await AiModels.count())),
                });
                const GenerationRequest3 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GenerationRequest3?.setModel)
                {
                    await
                    GenerationRequest3.
                    setModel(relatedModel3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateGenerationRequestWithInput_asset() {
            
                const relatedInput_asset0 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const GenerationRequest0 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GenerationRequest0?.setInput_asset)
                {
                    await
                    GenerationRequest0.
                    setInput_asset(relatedInput_asset0);
                }
            
                const relatedInput_asset1 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const GenerationRequest1 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GenerationRequest1?.setInput_asset)
                {
                    await
                    GenerationRequest1.
                    setInput_asset(relatedInput_asset1);
                }
            
                const relatedInput_asset2 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const GenerationRequest2 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GenerationRequest2?.setInput_asset)
                {
                    await
                    GenerationRequest2.
                    setInput_asset(relatedInput_asset2);
                }
            
                const relatedInput_asset3 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const GenerationRequest3 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GenerationRequest3?.setInput_asset)
                {
                    await
                    GenerationRequest3.
                    setInput_asset(relatedInput_asset3);
                }
            
        }
        
    
        
            
            async function associateGenerationRequestWithTarget_genre() {
            
                const relatedTarget_genre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const GenerationRequest0 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GenerationRequest0?.setTarget_genre)
                {
                    await
                    GenerationRequest0.
                    setTarget_genre(relatedTarget_genre0);
                }
            
                const relatedTarget_genre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const GenerationRequest1 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GenerationRequest1?.setTarget_genre)
                {
                    await
                    GenerationRequest1.
                    setTarget_genre(relatedTarget_genre1);
                }
            
                const relatedTarget_genre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const GenerationRequest2 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GenerationRequest2?.setTarget_genre)
                {
                    await
                    GenerationRequest2.
                    setTarget_genre(relatedTarget_genre2);
                }
            
                const relatedTarget_genre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const GenerationRequest3 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GenerationRequest3?.setTarget_genre)
                {
                    await
                    GenerationRequest3.
                    setTarget_genre(relatedTarget_genre3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateGenerationRequestWithOutput_asset() {
            
                const relatedOutput_asset0 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const GenerationRequest0 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GenerationRequest0?.setOutput_asset)
                {
                    await
                    GenerationRequest0.
                    setOutput_asset(relatedOutput_asset0);
                }
            
                const relatedOutput_asset1 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const GenerationRequest1 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GenerationRequest1?.setOutput_asset)
                {
                    await
                    GenerationRequest1.
                    setOutput_asset(relatedOutput_asset1);
                }
            
                const relatedOutput_asset2 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const GenerationRequest2 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GenerationRequest2?.setOutput_asset)
                {
                    await
                    GenerationRequest2.
                    setOutput_asset(relatedOutput_asset2);
                }
            
                const relatedOutput_asset3 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const GenerationRequest3 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GenerationRequest3?.setOutput_asset)
                {
                    await
                    GenerationRequest3.
                    setOutput_asset(relatedOutput_asset3);
                }
            
        }
        
    
        
            
            async function associateGenerationRequestWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GenerationRequest0 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GenerationRequest0?.setOrganization)
                {
                    await
                    GenerationRequest0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GenerationRequest1 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GenerationRequest1?.setOrganization)
                {
                    await
                    GenerationRequest1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GenerationRequest2 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GenerationRequest2?.setOrganization)
                {
                    await
                    GenerationRequest2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GenerationRequest3 = await GenerationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GenerationRequest3?.setOrganization)
                {
                    await
                    GenerationRequest3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateVocalProcessingPresetWithRecommended_genre() {
            
                const relatedRecommended_genre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const VocalProcessingPreset0 = await VocalProcessingPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VocalProcessingPreset0?.setRecommended_genre)
                {
                    await
                    VocalProcessingPreset0.
                    setRecommended_genre(relatedRecommended_genre0);
                }
            
                const relatedRecommended_genre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const VocalProcessingPreset1 = await VocalProcessingPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VocalProcessingPreset1?.setRecommended_genre)
                {
                    await
                    VocalProcessingPreset1.
                    setRecommended_genre(relatedRecommended_genre1);
                }
            
                const relatedRecommended_genre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const VocalProcessingPreset2 = await VocalProcessingPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VocalProcessingPreset2?.setRecommended_genre)
                {
                    await
                    VocalProcessingPreset2.
                    setRecommended_genre(relatedRecommended_genre2);
                }
            
                const relatedRecommended_genre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const VocalProcessingPreset3 = await VocalProcessingPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VocalProcessingPreset3?.setRecommended_genre)
                {
                    await
                    VocalProcessingPreset3.
                    setRecommended_genre(relatedRecommended_genre3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateVocalProcessingPresetWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VocalProcessingPreset0 = await VocalProcessingPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VocalProcessingPreset0?.setOrganization)
                {
                    await
                    VocalProcessingPreset0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VocalProcessingPreset1 = await VocalProcessingPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VocalProcessingPreset1?.setOrganization)
                {
                    await
                    VocalProcessingPreset1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VocalProcessingPreset2 = await VocalProcessingPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VocalProcessingPreset2?.setOrganization)
                {
                    await
                    VocalProcessingPreset2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VocalProcessingPreset3 = await VocalProcessingPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VocalProcessingPreset3?.setOrganization)
                {
                    await
                    VocalProcessingPreset3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
            
            async function associateMasteringPresetWithGenre() {
            
                const relatedGenre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const MasteringPreset0 = await MasteringPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MasteringPreset0?.setGenre)
                {
                    await
                    MasteringPreset0.
                    setGenre(relatedGenre0);
                }
            
                const relatedGenre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const MasteringPreset1 = await MasteringPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MasteringPreset1?.setGenre)
                {
                    await
                    MasteringPreset1.
                    setGenre(relatedGenre1);
                }
            
                const relatedGenre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const MasteringPreset2 = await MasteringPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MasteringPreset2?.setGenre)
                {
                    await
                    MasteringPreset2.
                    setGenre(relatedGenre2);
                }
            
                const relatedGenre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const MasteringPreset3 = await MasteringPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MasteringPreset3?.setGenre)
                {
                    await
                    MasteringPreset3.
                    setGenre(relatedGenre3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateMasteringPresetWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MasteringPreset0 = await MasteringPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MasteringPreset0?.setOrganization)
                {
                    await
                    MasteringPreset0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MasteringPreset1 = await MasteringPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MasteringPreset1?.setOrganization)
                {
                    await
                    MasteringPreset1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MasteringPreset2 = await MasteringPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MasteringPreset2?.setOrganization)
                {
                    await
                    MasteringPreset2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MasteringPreset3 = await MasteringPresets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MasteringPreset3?.setOrganization)
                {
                    await
                    MasteringPreset3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMixSessionWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const MixSession0 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MixSession0?.setSong)
                {
                    await
                    MixSession0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const MixSession1 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MixSession1?.setSong)
                {
                    await
                    MixSession1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const MixSession2 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MixSession2?.setSong)
                {
                    await
                    MixSession2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const MixSession3 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MixSession3?.setSong)
                {
                    await
                    MixSession3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
            
            async function associateMixSessionWithRequested_user() {
            
                const relatedRequested_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MixSession0 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MixSession0?.setRequested_user)
                {
                    await
                    MixSession0.
                    setRequested_user(relatedRequested_user0);
                }
            
                const relatedRequested_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MixSession1 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MixSession1?.setRequested_user)
                {
                    await
                    MixSession1.
                    setRequested_user(relatedRequested_user1);
                }
            
                const relatedRequested_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MixSession2 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MixSession2?.setRequested_user)
                {
                    await
                    MixSession2.
                    setRequested_user(relatedRequested_user2);
                }
            
                const relatedRequested_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MixSession3 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MixSession3?.setRequested_user)
                {
                    await
                    MixSession3.
                    setRequested_user(relatedRequested_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMixSessionWithResult_mix_asset() {
            
                const relatedResult_mix_asset0 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MixSession0 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MixSession0?.setResult_mix_asset)
                {
                    await
                    MixSession0.
                    setResult_mix_asset(relatedResult_mix_asset0);
                }
            
                const relatedResult_mix_asset1 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MixSession1 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MixSession1?.setResult_mix_asset)
                {
                    await
                    MixSession1.
                    setResult_mix_asset(relatedResult_mix_asset1);
                }
            
                const relatedResult_mix_asset2 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MixSession2 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MixSession2?.setResult_mix_asset)
                {
                    await
                    MixSession2.
                    setResult_mix_asset(relatedResult_mix_asset2);
                }
            
                const relatedResult_mix_asset3 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MixSession3 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MixSession3?.setResult_mix_asset)
                {
                    await
                    MixSession3.
                    setResult_mix_asset(relatedResult_mix_asset3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateMixSessionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MixSession0 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MixSession0?.setOrganization)
                {
                    await
                    MixSession0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MixSession1 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MixSession1?.setOrganization)
                {
                    await
                    MixSession1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MixSession2 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MixSession2?.setOrganization)
                {
                    await
                    MixSession2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MixSession3 = await MixSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MixSession3?.setOrganization)
                {
                    await
                    MixSession3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMasteringSessionWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const MasteringSession0 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MasteringSession0?.setSong)
                {
                    await
                    MasteringSession0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const MasteringSession1 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MasteringSession1?.setSong)
                {
                    await
                    MasteringSession1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const MasteringSession2 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MasteringSession2?.setSong)
                {
                    await
                    MasteringSession2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const MasteringSession3 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MasteringSession3?.setSong)
                {
                    await
                    MasteringSession3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
            
            async function associateMasteringSessionWithRequested_user() {
            
                const relatedRequested_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MasteringSession0 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MasteringSession0?.setRequested_user)
                {
                    await
                    MasteringSession0.
                    setRequested_user(relatedRequested_user0);
                }
            
                const relatedRequested_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MasteringSession1 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MasteringSession1?.setRequested_user)
                {
                    await
                    MasteringSession1.
                    setRequested_user(relatedRequested_user1);
                }
            
                const relatedRequested_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MasteringSession2 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MasteringSession2?.setRequested_user)
                {
                    await
                    MasteringSession2.
                    setRequested_user(relatedRequested_user2);
                }
            
                const relatedRequested_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MasteringSession3 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MasteringSession3?.setRequested_user)
                {
                    await
                    MasteringSession3.
                    setRequested_user(relatedRequested_user3);
                }
            
        }
        
    
        
            
            async function associateMasteringSessionWithPreset() {
            
                const relatedPreset0 = await MasteringPresets.findOne({
                    offset: Math.floor(Math.random() * (await MasteringPresets.count())),
                });
                const MasteringSession0 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MasteringSession0?.setPreset)
                {
                    await
                    MasteringSession0.
                    setPreset(relatedPreset0);
                }
            
                const relatedPreset1 = await MasteringPresets.findOne({
                    offset: Math.floor(Math.random() * (await MasteringPresets.count())),
                });
                const MasteringSession1 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MasteringSession1?.setPreset)
                {
                    await
                    MasteringSession1.
                    setPreset(relatedPreset1);
                }
            
                const relatedPreset2 = await MasteringPresets.findOne({
                    offset: Math.floor(Math.random() * (await MasteringPresets.count())),
                });
                const MasteringSession2 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MasteringSession2?.setPreset)
                {
                    await
                    MasteringSession2.
                    setPreset(relatedPreset2);
                }
            
                const relatedPreset3 = await MasteringPresets.findOne({
                    offset: Math.floor(Math.random() * (await MasteringPresets.count())),
                });
                const MasteringSession3 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MasteringSession3?.setPreset)
                {
                    await
                    MasteringSession3.
                    setPreset(relatedPreset3);
                }
            
        }
        
    
        
    
        
            
            async function associateMasteringSessionWithInput_mix_asset() {
            
                const relatedInput_mix_asset0 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MasteringSession0 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MasteringSession0?.setInput_mix_asset)
                {
                    await
                    MasteringSession0.
                    setInput_mix_asset(relatedInput_mix_asset0);
                }
            
                const relatedInput_mix_asset1 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MasteringSession1 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MasteringSession1?.setInput_mix_asset)
                {
                    await
                    MasteringSession1.
                    setInput_mix_asset(relatedInput_mix_asset1);
                }
            
                const relatedInput_mix_asset2 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MasteringSession2 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MasteringSession2?.setInput_mix_asset)
                {
                    await
                    MasteringSession2.
                    setInput_mix_asset(relatedInput_mix_asset2);
                }
            
                const relatedInput_mix_asset3 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MasteringSession3 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MasteringSession3?.setInput_mix_asset)
                {
                    await
                    MasteringSession3.
                    setInput_mix_asset(relatedInput_mix_asset3);
                }
            
        }
        
    
        
            
            async function associateMasteringSessionWithResult_master_asset() {
            
                const relatedResult_master_asset0 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MasteringSession0 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MasteringSession0?.setResult_master_asset)
                {
                    await
                    MasteringSession0.
                    setResult_master_asset(relatedResult_master_asset0);
                }
            
                const relatedResult_master_asset1 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MasteringSession1 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MasteringSession1?.setResult_master_asset)
                {
                    await
                    MasteringSession1.
                    setResult_master_asset(relatedResult_master_asset1);
                }
            
                const relatedResult_master_asset2 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MasteringSession2 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MasteringSession2?.setResult_master_asset)
                {
                    await
                    MasteringSession2.
                    setResult_master_asset(relatedResult_master_asset2);
                }
            
                const relatedResult_master_asset3 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MasteringSession3 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MasteringSession3?.setResult_master_asset)
                {
                    await
                    MasteringSession3.
                    setResult_master_asset(relatedResult_master_asset3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMasteringSessionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MasteringSession0 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MasteringSession0?.setOrganization)
                {
                    await
                    MasteringSession0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MasteringSession1 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MasteringSession1?.setOrganization)
                {
                    await
                    MasteringSession1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MasteringSession2 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MasteringSession2?.setOrganization)
                {
                    await
                    MasteringSession2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MasteringSession3 = await MasteringSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MasteringSession3?.setOrganization)
                {
                    await
                    MasteringSession3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateExportWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Export0 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Export0?.setSong)
                {
                    await
                    Export0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Export1 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Export1?.setSong)
                {
                    await
                    Export1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Export2 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Export2?.setSong)
                {
                    await
                    Export2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const Export3 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Export3?.setSong)
                {
                    await
                    Export3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
            
            async function associateExportWithRequested_user() {
            
                const relatedRequested_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Export0 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Export0?.setRequested_user)
                {
                    await
                    Export0.
                    setRequested_user(relatedRequested_user0);
                }
            
                const relatedRequested_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Export1 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Export1?.setRequested_user)
                {
                    await
                    Export1.
                    setRequested_user(relatedRequested_user1);
                }
            
                const relatedRequested_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Export2 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Export2?.setRequested_user)
                {
                    await
                    Export2.
                    setRequested_user(relatedRequested_user2);
                }
            
                const relatedRequested_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Export3 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Export3?.setRequested_user)
                {
                    await
                    Export3.
                    setRequested_user(relatedRequested_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateExportWithExport_asset() {
            
                const relatedExport_asset0 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const Export0 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Export0?.setExport_asset)
                {
                    await
                    Export0.
                    setExport_asset(relatedExport_asset0);
                }
            
                const relatedExport_asset1 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const Export1 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Export1?.setExport_asset)
                {
                    await
                    Export1.
                    setExport_asset(relatedExport_asset1);
                }
            
                const relatedExport_asset2 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const Export2 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Export2?.setExport_asset)
                {
                    await
                    Export2.
                    setExport_asset(relatedExport_asset2);
                }
            
                const relatedExport_asset3 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const Export3 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Export3?.setExport_asset)
                {
                    await
                    Export3.
                    setExport_asset(relatedExport_asset3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateExportWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Export0 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Export0?.setOrganization)
                {
                    await
                    Export0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Export1 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Export1?.setOrganization)
                {
                    await
                    Export1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Export2 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Export2?.setOrganization)
                {
                    await
                    Export2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Export3 = await Exports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Export3?.setOrganization)
                {
                    await
                    Export3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCoverArtworkWithSong() {
            
                const relatedSong0 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const CoverArtwork0 = await CoverArtworks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoverArtwork0?.setSong)
                {
                    await
                    CoverArtwork0.
                    setSong(relatedSong0);
                }
            
                const relatedSong1 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const CoverArtwork1 = await CoverArtworks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoverArtwork1?.setSong)
                {
                    await
                    CoverArtwork1.
                    setSong(relatedSong1);
                }
            
                const relatedSong2 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const CoverArtwork2 = await CoverArtworks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoverArtwork2?.setSong)
                {
                    await
                    CoverArtwork2.
                    setSong(relatedSong2);
                }
            
                const relatedSong3 = await Songs.findOne({
                    offset: Math.floor(Math.random() * (await Songs.count())),
                });
                const CoverArtwork3 = await CoverArtworks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoverArtwork3?.setSong)
                {
                    await
                    CoverArtwork3.
                    setSong(relatedSong3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateCoverArtworkWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoverArtwork0 = await CoverArtworks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoverArtwork0?.setOrganization)
                {
                    await
                    CoverArtwork0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoverArtwork1 = await CoverArtworks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoverArtwork1?.setOrganization)
                {
                    await
                    CoverArtwork1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoverArtwork2 = await CoverArtworks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoverArtwork2?.setOrganization)
                {
                    await
                    CoverArtwork2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CoverArtwork3 = await CoverArtworks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoverArtwork3?.setOrganization)
                {
                    await
                    CoverArtwork3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMarketplaceListingWithSeller_user() {
            
                const relatedSeller_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MarketplaceListing0 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceListing0?.setSeller_user)
                {
                    await
                    MarketplaceListing0.
                    setSeller_user(relatedSeller_user0);
                }
            
                const relatedSeller_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MarketplaceListing1 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceListing1?.setSeller_user)
                {
                    await
                    MarketplaceListing1.
                    setSeller_user(relatedSeller_user1);
                }
            
                const relatedSeller_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MarketplaceListing2 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceListing2?.setSeller_user)
                {
                    await
                    MarketplaceListing2.
                    setSeller_user(relatedSeller_user2);
                }
            
                const relatedSeller_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MarketplaceListing3 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketplaceListing3?.setSeller_user)
                {
                    await
                    MarketplaceListing3.
                    setSeller_user(relatedSeller_user3);
                }
            
        }
        
    
        
            
            async function associateMarketplaceListingWithWorkspace() {
            
                const relatedWorkspace0 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const MarketplaceListing0 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceListing0?.setWorkspace)
                {
                    await
                    MarketplaceListing0.
                    setWorkspace(relatedWorkspace0);
                }
            
                const relatedWorkspace1 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const MarketplaceListing1 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceListing1?.setWorkspace)
                {
                    await
                    MarketplaceListing1.
                    setWorkspace(relatedWorkspace1);
                }
            
                const relatedWorkspace2 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const MarketplaceListing2 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceListing2?.setWorkspace)
                {
                    await
                    MarketplaceListing2.
                    setWorkspace(relatedWorkspace2);
                }
            
                const relatedWorkspace3 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const MarketplaceListing3 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketplaceListing3?.setWorkspace)
                {
                    await
                    MarketplaceListing3.
                    setWorkspace(relatedWorkspace3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateMarketplaceListingWithGenre() {
            
                const relatedGenre0 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const MarketplaceListing0 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceListing0?.setGenre)
                {
                    await
                    MarketplaceListing0.
                    setGenre(relatedGenre0);
                }
            
                const relatedGenre1 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const MarketplaceListing1 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceListing1?.setGenre)
                {
                    await
                    MarketplaceListing1.
                    setGenre(relatedGenre1);
                }
            
                const relatedGenre2 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const MarketplaceListing2 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceListing2?.setGenre)
                {
                    await
                    MarketplaceListing2.
                    setGenre(relatedGenre2);
                }
            
                const relatedGenre3 = await Genres.findOne({
                    offset: Math.floor(Math.random() * (await Genres.count())),
                });
                const MarketplaceListing3 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketplaceListing3?.setGenre)
                {
                    await
                    MarketplaceListing3.
                    setGenre(relatedGenre3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateMarketplaceListingWithPreview_asset() {
            
                const relatedPreview_asset0 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MarketplaceListing0 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceListing0?.setPreview_asset)
                {
                    await
                    MarketplaceListing0.
                    setPreview_asset(relatedPreview_asset0);
                }
            
                const relatedPreview_asset1 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MarketplaceListing1 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceListing1?.setPreview_asset)
                {
                    await
                    MarketplaceListing1.
                    setPreview_asset(relatedPreview_asset1);
                }
            
                const relatedPreview_asset2 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MarketplaceListing2 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceListing2?.setPreview_asset)
                {
                    await
                    MarketplaceListing2.
                    setPreview_asset(relatedPreview_asset2);
                }
            
                const relatedPreview_asset3 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MarketplaceListing3 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketplaceListing3?.setPreview_asset)
                {
                    await
                    MarketplaceListing3.
                    setPreview_asset(relatedPreview_asset3);
                }
            
        }
        
    
        
            
            async function associateMarketplaceListingWithDeliverable_asset() {
            
                const relatedDeliverable_asset0 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MarketplaceListing0 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceListing0?.setDeliverable_asset)
                {
                    await
                    MarketplaceListing0.
                    setDeliverable_asset(relatedDeliverable_asset0);
                }
            
                const relatedDeliverable_asset1 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MarketplaceListing1 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceListing1?.setDeliverable_asset)
                {
                    await
                    MarketplaceListing1.
                    setDeliverable_asset(relatedDeliverable_asset1);
                }
            
                const relatedDeliverable_asset2 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MarketplaceListing2 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceListing2?.setDeliverable_asset)
                {
                    await
                    MarketplaceListing2.
                    setDeliverable_asset(relatedDeliverable_asset2);
                }
            
                const relatedDeliverable_asset3 = await Assets.findOne({
                    offset: Math.floor(Math.random() * (await Assets.count())),
                });
                const MarketplaceListing3 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketplaceListing3?.setDeliverable_asset)
                {
                    await
                    MarketplaceListing3.
                    setDeliverable_asset(relatedDeliverable_asset3);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateMarketplaceListingWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceListing0 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceListing0?.setOrganization)
                {
                    await
                    MarketplaceListing0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceListing1 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceListing1?.setOrganization)
                {
                    await
                    MarketplaceListing1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceListing2 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceListing2?.setOrganization)
                {
                    await
                    MarketplaceListing2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceListing3 = await MarketplaceListings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketplaceListing3?.setOrganization)
                {
                    await
                    MarketplaceListing3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMarketplaceOrderWithListing() {
            
                const relatedListing0 = await MarketplaceListings.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceListings.count())),
                });
                const MarketplaceOrder0 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceOrder0?.setListing)
                {
                    await
                    MarketplaceOrder0.
                    setListing(relatedListing0);
                }
            
                const relatedListing1 = await MarketplaceListings.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceListings.count())),
                });
                const MarketplaceOrder1 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceOrder1?.setListing)
                {
                    await
                    MarketplaceOrder1.
                    setListing(relatedListing1);
                }
            
                const relatedListing2 = await MarketplaceListings.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceListings.count())),
                });
                const MarketplaceOrder2 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceOrder2?.setListing)
                {
                    await
                    MarketplaceOrder2.
                    setListing(relatedListing2);
                }
            
                const relatedListing3 = await MarketplaceListings.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceListings.count())),
                });
                const MarketplaceOrder3 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketplaceOrder3?.setListing)
                {
                    await
                    MarketplaceOrder3.
                    setListing(relatedListing3);
                }
            
        }
        
    
        
            
            async function associateMarketplaceOrderWithBuyer_user() {
            
                const relatedBuyer_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MarketplaceOrder0 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceOrder0?.setBuyer_user)
                {
                    await
                    MarketplaceOrder0.
                    setBuyer_user(relatedBuyer_user0);
                }
            
                const relatedBuyer_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MarketplaceOrder1 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceOrder1?.setBuyer_user)
                {
                    await
                    MarketplaceOrder1.
                    setBuyer_user(relatedBuyer_user1);
                }
            
                const relatedBuyer_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MarketplaceOrder2 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceOrder2?.setBuyer_user)
                {
                    await
                    MarketplaceOrder2.
                    setBuyer_user(relatedBuyer_user2);
                }
            
                const relatedBuyer_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MarketplaceOrder3 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketplaceOrder3?.setBuyer_user)
                {
                    await
                    MarketplaceOrder3.
                    setBuyer_user(relatedBuyer_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMarketplaceOrderWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceOrder0 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceOrder0?.setOrganization)
                {
                    await
                    MarketplaceOrder0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceOrder1 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceOrder1?.setOrganization)
                {
                    await
                    MarketplaceOrder1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceOrder2 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceOrder2?.setOrganization)
                {
                    await
                    MarketplaceOrder2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceOrder3 = await MarketplaceOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketplaceOrder3?.setOrganization)
                {
                    await
                    MarketplaceOrder3.
                    setOrganization(relatedOrganization3);
                }
            
        }
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await Workspaces.bulkCreate(WorkspacesData);
                
            
            
                
                await WorkspaceMemberships.bulkCreate(WorkspaceMembershipsData);
                
            
            
                
                await Genres.bulkCreate(GenresData);
                
            
            
                
                await Languages.bulkCreate(LanguagesData);
                
            
            
                
                await AiModels.bulkCreate(AiModelsData);
                
            
            
                
                await Projects.bulkCreate(ProjectsData);
                
            
            
                
                await ProjectCollaborations.bulkCreate(ProjectCollaborationsData);
                
            
            
                
                await Songs.bulkCreate(SongsData);
                
            
            
                
                await SongMetadata.bulkCreate(SongMetadataData);
                
            
            
                
                await Assets.bulkCreate(AssetsData);
                
            
            
                
                await RecordingSessions.bulkCreate(RecordingSessionsData);
                
            
            
                
                await Tracks.bulkCreate(TracksData);
                
            
            
                
                await ArrangementSections.bulkCreate(ArrangementSectionsData);
                
            
            
                
                await GenerationRequests.bulkCreate(GenerationRequestsData);
                
            
            
                
                await VocalProcessingPresets.bulkCreate(VocalProcessingPresetsData);
                
            
            
                
                await MasteringPresets.bulkCreate(MasteringPresetsData);
                
            
            
                
                await MixSessions.bulkCreate(MixSessionsData);
                
            
            
                
                await MasteringSessions.bulkCreate(MasteringSessionsData);
                
            
            
                
                await Exports.bulkCreate(ExportsData);
                
            
            
                
                await CoverArtworks.bulkCreate(CoverArtworksData);
                
            
            
                
                await MarketplaceListings.bulkCreate(MarketplaceListingsData);
                
            
            
                
                await MarketplaceOrders.bulkCreate(MarketplaceOrdersData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWorkspaceWithOwner_user(),
                    
                
                    
                
                    
                        
                        await associateWorkspaceWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateWorkspaceMembershipWithWorkspace(),
                    
                
                    
                        
                        await associateWorkspaceMembershipWithMember_user(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWorkspaceMembershipWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateGenreWithParent_genre(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateGenreWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLanguageWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAiModelWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateProjectWithWorkspace(),
                    
                
                    
                
                    
                
                    
                        
                        await associateProjectWithCreated_user(),
                    
                
                    
                
                    
                        
                        await associateProjectWithPrimary_genre(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProjectWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateProjectCollaborationWithProject(),
                    
                
                    
                        
                        await associateProjectCollaborationWithCollaborator_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProjectCollaborationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSongWithProject(),
                    
                
                    
                
                    
                
                    
                        
                        await associateSongWithGenre(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSongWithVocal_language(),
                    
                
                    
                
                    
                
                    
                        
                        await associateSongWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSongMetadataWithSong(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSongMetadataWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAssetWithWorkspace(),
                    
                
                    
                        
                        await associateAssetWithUploaded_user(),
                    
                
                    
                        
                        await associateAssetWithProject(),
                    
                
                    
                        
                        await associateAssetWithSong(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAssetWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRecordingSessionWithProject(),
                    
                
                    
                        
                        await associateRecordingSessionWithSong(),
                    
                
                    
                        
                        await associateRecordingSessionWithStarted_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRecordingSessionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTrackWithSong(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTrackWithSource_asset(),
                    
                
                    
                        
                        await associateTrackWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateArrangementSectionWithSong(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateArrangementSectionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateGenerationRequestWithWorkspace(),
                    
                
                    
                        
                        await associateGenerationRequestWithProject(),
                    
                
                    
                        
                        await associateGenerationRequestWithSong(),
                    
                
                    
                        
                        await associateGenerationRequestWithRequested_user(),
                    
                
                    
                        
                        await associateGenerationRequestWithModel(),
                    
                
                    
                
                    
                
                    
                        
                        await associateGenerationRequestWithInput_asset(),
                    
                
                    
                        
                        await associateGenerationRequestWithTarget_genre(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateGenerationRequestWithOutput_asset(),
                    
                
                    
                        
                        await associateGenerationRequestWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateVocalProcessingPresetWithRecommended_genre(),
                    
                
                    
                
                    
                
                    
                        
                        await associateVocalProcessingPresetWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateMasteringPresetWithGenre(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMasteringPresetWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMixSessionWithSong(),
                    
                
                    
                        
                        await associateMixSessionWithRequested_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMixSessionWithResult_mix_asset(),
                    
                
                    
                
                    
                
                    
                        
                        await associateMixSessionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMasteringSessionWithSong(),
                    
                
                    
                        
                        await associateMasteringSessionWithRequested_user(),
                    
                
                    
                        
                        await associateMasteringSessionWithPreset(),
                    
                
                    
                
                    
                        
                        await associateMasteringSessionWithInput_mix_asset(),
                    
                
                    
                        
                        await associateMasteringSessionWithResult_master_asset(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMasteringSessionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateExportWithSong(),
                    
                
                    
                        
                        await associateExportWithRequested_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateExportWithExport_asset(),
                    
                
                    
                
                    
                
                    
                        
                        await associateExportWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCoverArtworkWithSong(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCoverArtworkWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMarketplaceListingWithSeller_user(),
                    
                
                    
                        
                        await associateMarketplaceListingWithWorkspace(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMarketplaceListingWithGenre(),
                    
                
                    
                
                    
                
                    
                        
                        await associateMarketplaceListingWithPreview_asset(),
                    
                
                    
                        
                        await associateMarketplaceListingWithDeliverable_asset(),
                    
                
                    
                
                    
                
                    
                        
                        await associateMarketplaceListingWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMarketplaceOrderWithListing(),
                    
                
                    
                        
                        await associateMarketplaceOrderWithBuyer_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMarketplaceOrderWithOrganization(),
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('workspaces', null, {});
            
            
            await queryInterface.bulkDelete('workspace_memberships', null, {});
            
            
            await queryInterface.bulkDelete('genres', null, {});
            
            
            await queryInterface.bulkDelete('languages', null, {});
            
            
            await queryInterface.bulkDelete('ai_models', null, {});
            
            
            await queryInterface.bulkDelete('projects', null, {});
            
            
            await queryInterface.bulkDelete('project_collaborations', null, {});
            
            
            await queryInterface.bulkDelete('songs', null, {});
            
            
            await queryInterface.bulkDelete('song_metadata', null, {});
            
            
            await queryInterface.bulkDelete('assets', null, {});
            
            
            await queryInterface.bulkDelete('recording_sessions', null, {});
            
            
            await queryInterface.bulkDelete('tracks', null, {});
            
            
            await queryInterface.bulkDelete('arrangement_sections', null, {});
            
            
            await queryInterface.bulkDelete('generation_requests', null, {});
            
            
            await queryInterface.bulkDelete('vocal_processing_presets', null, {});
            
            
            await queryInterface.bulkDelete('mastering_presets', null, {});
            
            
            await queryInterface.bulkDelete('mix_sessions', null, {});
            
            
            await queryInterface.bulkDelete('mastering_sessions', null, {});
            
            
            await queryInterface.bulkDelete('exports', null, {});
            
            
            await queryInterface.bulkDelete('cover_artworks', null, {});
            
            
            await queryInterface.bulkDelete('marketplace_listings', null, {});
            
            
            await queryInterface.bulkDelete('marketplace_orders', null, {});
            
        
    },
};