





















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






const Organizations = db.organizations;

const Workspaces = db.workspaces;

const UserSettings = db.user_settings;

const AssistantProfiles = db.assistant_profiles;

const Conversations = db.conversations;

const Messages = db.messages;

const VoiceSessions = db.voice_sessions;

const ToolProviders = db.tool_providers;

const Tools = db.tools;

const ToolActions = db.tool_actions;

const Integrations = db.integrations;

const MemoryItems = db.memory_items;

const Tasks = db.tasks;

const TaskSteps = db.task_steps;

const ToolRuns = db.tool_runs;

const Confirmations = db.confirmations;

const Meetings = db.meetings;

const CalendarEvents = db.calendar_events;

const Contacts = db.contacts;

const OutboundMessages = db.outbound_messages;

const TravelRequests = db.travel_requests;

const TravelBookings = db.travel_bookings;

const PaymentTransactions = db.payment_transactions;

const NativeAppChecks = db.native_app_checks;

const AuditLogs = db.audit_logs;







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



const WorkspacesData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "plan": "pro",
            
        
    
        
        
            
                "demo_mode_enabled": false,
            
        
    
        
        
            
                "trial_ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "billing_email": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "plan": "enterprise",
            
        
    
        
        
            
                "demo_mode_enabled": true,
            
        
    
        
        
            
                "trial_ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "billing_email": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "plan": "pro",
            
        
    
        
        
            
                "demo_mode_enabled": false,
            
        
    
        
        
            
                "trial_ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "billing_email": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "plan": "free",
            
        
    
        
        
            
                "demo_mode_enabled": true,
            
        
    
        
        
            
                "trial_ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "billing_email": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "plan": "enterprise",
            
        
    
        
        
            
                "demo_mode_enabled": false,
            
        
    
        
        
            
                "trial_ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "billing_email": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const UserSettingsData = [
    
    {
    
        
        
            
                "time_zone": "Ada Lovelace",
            
        
    
        
        
            
                "locale": "Grace Hopper",
            
        
    
        
        
            
                "theme": "system",
            
        
    
        
        
            
                "default_entry_mode": "voice",
            
        
    
        
        
            
                "voice_mode_enabled": false,
            
        
    
        
        
            
                "preferred_voice": "Ada Lovelace",
            
        
    
        
        
            
                "speech_rate": 6.87,
            
        
    
        
        
            
                "speech_pitch": 7.06,
            
        
    
        
        
            
                "safe_confirmations_enabled": true,
            
        
    
        
        
            
                "auto_archive_days": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "time_zone": "Ada Lovelace",
            
        
    
        
        
            
                "locale": "Alan Turing",
            
        
    
        
        
            
                "theme": "dark",
            
        
    
        
        
            
                "default_entry_mode": "voice",
            
        
    
        
        
            
                "voice_mode_enabled": false,
            
        
    
        
        
            
                "preferred_voice": "Alan Turing",
            
        
    
        
        
            
                "speech_rate": 9.23,
            
        
    
        
        
            
                "speech_pitch": 2.32,
            
        
    
        
        
            
                "safe_confirmations_enabled": false,
            
        
    
        
        
            
                "auto_archive_days": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "time_zone": "Ada Lovelace",
            
        
    
        
        
            
                "locale": "Marie Curie",
            
        
    
        
        
            
                "theme": "system",
            
        
    
        
        
            
                "default_entry_mode": "chat",
            
        
    
        
        
            
                "voice_mode_enabled": true,
            
        
    
        
        
            
                "preferred_voice": "Marie Curie",
            
        
    
        
        
            
                "speech_rate": 8.61,
            
        
    
        
        
            
                "speech_pitch": 5.82,
            
        
    
        
        
            
                "safe_confirmations_enabled": false,
            
        
    
        
        
            
                "auto_archive_days": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "time_zone": "Marie Curie",
            
        
    
        
        
            
                "locale": "Alan Turing",
            
        
    
        
        
            
                "theme": "light",
            
        
    
        
        
            
                "default_entry_mode": "chat",
            
        
    
        
        
            
                "voice_mode_enabled": true,
            
        
    
        
        
            
                "preferred_voice": "Marie Curie",
            
        
    
        
        
            
                "speech_rate": 1.84,
            
        
    
        
        
            
                "speech_pitch": 1.58,
            
        
    
        
        
            
                "safe_confirmations_enabled": false,
            
        
    
        
        
            
                "auto_archive_days": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "time_zone": "Ada Lovelace",
            
        
    
        
        
            
                "locale": "Ada Lovelace",
            
        
    
        
        
            
                "theme": "system",
            
        
    
        
        
            
                "default_entry_mode": "chat",
            
        
    
        
        
            
                "voice_mode_enabled": true,
            
        
    
        
        
            
                "preferred_voice": "Alan Turing",
            
        
    
        
        
            
                "speech_rate": 4.17,
            
        
    
        
        
            
                "speech_pitch": 4.29,
            
        
    
        
        
            
                "safe_confirmations_enabled": true,
            
        
    
        
        
            
                "auto_archive_days": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AssistantProfilesData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "system_prompt": "Grace Hopper",
            
        
    
        
        
            
                "model_family": "openai",
            
        
    
        
        
            
                "model_name": "Grace Hopper",
            
        
    
        
        
            
                "temperature": 0.09,
            
        
    
        
        
            
                "max_output_tokens": 7,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "system_prompt": "Alan Turing",
            
        
    
        
        
            
                "model_family": "mock",
            
        
    
        
        
            
                "model_name": "Marie Curie",
            
        
    
        
        
            
                "temperature": 2.76,
            
        
    
        
        
            
                "max_output_tokens": 8,
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "system_prompt": "Ada Lovelace",
            
        
    
        
        
            
                "model_family": "google",
            
        
    
        
        
            
                "model_name": "Grace Hopper",
            
        
    
        
        
            
                "temperature": 6.98,
            
        
    
        
        
            
                "max_output_tokens": 3,
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "system_prompt": "Ada Lovelace",
            
        
    
        
        
            
                "model_family": "anthropic",
            
        
    
        
        
            
                "model_name": "Grace Hopper",
            
        
    
        
        
            
                "temperature": 7.66,
            
        
    
        
        
            
                "max_output_tokens": 6,
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "system_prompt": "Marie Curie",
            
        
    
        
        
            
                "model_family": "openai",
            
        
    
        
        
            
                "model_name": "Alan Turing",
            
        
    
        
        
            
                "temperature": 0.31,
            
        
    
        
        
            
                "max_output_tokens": 6,
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ConversationsData = [
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "mode": "chat",
            
        
    
        
        
            
                "status": "deleted",
            
        
    
        
        
            
                "demo_mode": true,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "mode": "voice",
            
        
    
        
        
            
                "status": "deleted",
            
        
    
        
        
            
                "demo_mode": false,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "mode": "voice",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "demo_mode": false,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "mode": "chat",
            
        
    
        
        
            
                "status": "deleted",
            
        
    
        
        
            
                "demo_mode": true,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "mode": "voice",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "demo_mode": true,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "tool",
            
        
    
        
        
            
                "content": "Ada Lovelace",
            
        
    
        
        
            
                "content_format": "Ada Lovelace",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "tool_name": "Grace Hopper",
            
        
    
        
        
            
                "tool_call_key": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "tool",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "content_format": "Grace Hopper",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "tool_name": "Marie Curie",
            
        
    
        
        
            
                "tool_call_key": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "user",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                "content_format": "Ada Lovelace",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "tool_name": "Ada Lovelace",
            
        
    
        
        
            
                "tool_call_key": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "assistant",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "content_format": "Marie Curie",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "tool_name": "Marie Curie",
            
        
    
        
        
            
                "tool_call_key": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "tool",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                "content_format": "Ada Lovelace",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "tool_name": "Alan Turing",
            
        
    
        
        
            
                "tool_call_key": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const VoiceSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "error",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "stt_provider": "Ada Lovelace",
            
        
    
        
        
            
                "tts_provider": "Ada Lovelace",
            
        
    
        
        
            
                "detected_language": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "last_error": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "speaking",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "stt_provider": "Ada Lovelace",
            
        
    
        
        
            
                "tts_provider": "Marie Curie",
            
        
    
        
        
            
                "detected_language": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "last_error": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "error",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "stt_provider": "Ada Lovelace",
            
        
    
        
        
            
                "tts_provider": "Marie Curie",
            
        
    
        
        
            
                "detected_language": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "last_error": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "listening",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "stt_provider": "Grace Hopper",
            
        
    
        
        
            
                "tts_provider": "Grace Hopper",
            
        
    
        
        
            
                "detected_language": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "last_error": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "processing",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "stt_provider": "Grace Hopper",
            
        
    
        
        
            
                "tts_provider": "Alan Turing",
            
        
    
        
        
            
                "detected_language": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "last_error": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ToolProvidersData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "kind": "api",
            
        
    
        
        
            
                "base_url": "Grace Hopper",
            
        
    
        
        
            
                "supports_oauth": true,
            
        
    
        
        
            
                "supports_webhook": false,
            
        
    
        
        
            
                "docs_url": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "kind": "browser_automation",
            
        
    
        
        
            
                "base_url": "Grace Hopper",
            
        
    
        
        
            
                "supports_oauth": false,
            
        
    
        
        
            
                "supports_webhook": false,
            
        
    
        
        
            
                "docs_url": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "kind": "api",
            
        
    
        
        
            
                "base_url": "Marie Curie",
            
        
    
        
        
            
                "supports_oauth": false,
            
        
    
        
        
            
                "supports_webhook": false,
            
        
    
        
        
            
                "docs_url": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "kind": "sandbox",
            
        
    
        
        
            
                "base_url": "Grace Hopper",
            
        
    
        
        
            
                "supports_oauth": false,
            
        
    
        
        
            
                "supports_webhook": true,
            
        
    
        
        
            
                "docs_url": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "kind": "api",
            
        
    
        
        
            
                "base_url": "Grace Hopper",
            
        
    
        
        
            
                "supports_oauth": false,
            
        
    
        
        
            
                "supports_webhook": false,
            
        
    
        
        
            
                "docs_url": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ToolsData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "category": "custom",
            
        
    
        
        
            
                "execution_preference": "api_first",
            
        
    
        
        
            
                "requires_confirmation": false,
            
        
    
        
        
            
                "is_demo_supported": true,
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "category": "calendar",
            
        
    
        
        
            
                "execution_preference": "automation_first",
            
        
    
        
        
            
                "requires_confirmation": false,
            
        
    
        
        
            
                "is_demo_supported": true,
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "category": "meetings",
            
        
    
        
        
            
                "execution_preference": "automation_first",
            
        
    
        
        
            
                "requires_confirmation": true,
            
        
    
        
        
            
                "is_demo_supported": false,
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "category": "email",
            
        
    
        
        
            
                "execution_preference": "native_first",
            
        
    
        
        
            
                "requires_confirmation": false,
            
        
    
        
        
            
                "is_demo_supported": false,
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "category": "calendar",
            
        
    
        
        
            
                "execution_preference": "native_first",
            
        
    
        
        
            
                "requires_confirmation": false,
            
        
    
        
        
            
                "is_demo_supported": false,
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ToolActionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "action_key": "Ada Lovelace",
            
        
    
        
        
            
                "input_schema": "Alan Turing",
            
        
    
        
        
            
                "output_schema": "Grace Hopper",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "is_dangerous": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "action_key": "Ada Lovelace",
            
        
    
        
        
            
                "input_schema": "Alan Turing",
            
        
    
        
        
            
                "output_schema": "Grace Hopper",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "is_dangerous": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "action_key": "Alan Turing",
            
        
    
        
        
            
                "input_schema": "Grace Hopper",
            
        
    
        
        
            
                "output_schema": "Ada Lovelace",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "is_dangerous": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "action_key": "Alan Turing",
            
        
    
        
        
            
                "input_schema": "Alan Turing",
            
        
    
        
        
            
                "output_schema": "Ada Lovelace",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "is_dangerous": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "action_key": "Marie Curie",
            
        
    
        
        
            
                "input_schema": "Ada Lovelace",
            
        
    
        
        
            
                "output_schema": "Grace Hopper",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "is_dangerous": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const IntegrationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "service": "google_calendar",
            
        
    
        
        
            
                "auth_type": "mock",
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "account_label": "Ada Lovelace",
            
        
    
        
        
            
                "scopes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "service": "google_calendar",
            
        
    
        
        
            
                "auth_type": "api_key",
            
        
    
        
        
            
                "status": "error",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "account_label": "Marie Curie",
            
        
    
        
        
            
                "scopes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "service": "google_calendar",
            
        
    
        
        
            
                "auth_type": "mock",
            
        
    
        
        
            
                "status": "disconnected",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "account_label": "Ada Lovelace",
            
        
    
        
        
            
                "scopes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "service": "gmail",
            
        
    
        
        
            
                "auth_type": "api_key",
            
        
    
        
        
            
                "status": "error",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "account_label": "Ada Lovelace",
            
        
    
        
        
            
                "scopes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "service": "gmail",
            
        
    
        
        
            
                "auth_type": "mock",
            
        
    
        
        
            
                "status": "connected",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "account_label": "Marie Curie",
            
        
    
        
        
            
                "scopes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MemoryItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "payment",
            
        
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "value": "Ada Lovelace",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "confidence": 7.92,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "use_count": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "payment",
            
        
    
        
        
            
                "key": "Alan Turing",
            
        
    
        
        
            
                "value": "Alan Turing",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "confidence": 6.48,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "use_count": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "airline",
            
        
    
        
        
            
                "key": "Alan Turing",
            
        
    
        
        
            
                "value": "Ada Lovelace",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "confidence": 6.68,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "use_count": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "payment",
            
        
    
        
        
            
                "key": "Alan Turing",
            
        
    
        
        
            
                "value": "Marie Curie",
            
        
    
        
        
            
                "visibility": "workspace",
            
        
    
        
        
            
                "confidence": 3.0,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "use_count": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "payment",
            
        
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "value": "Grace Hopper",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "confidence": 9.21,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "use_count": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TasksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "goal": "Grace Hopper",
            
        
    
        
        
            
                "status": "needs_info",
            
        
    
        
        
            
                "priority": "urgent",
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_confirmation": true,
            
        
    
        
        
            
                "demo_mode": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "goal": "Grace Hopper",
            
        
    
        
        
            
                "status": "planned",
            
        
    
        
        
            
                "priority": "normal",
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_confirmation": true,
            
        
    
        
        
            
                "demo_mode": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "goal": "Ada Lovelace",
            
        
    
        
        
            
                "status": "waiting_confirmation",
            
        
    
        
        
            
                "priority": "low",
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_confirmation": true,
            
        
    
        
        
            
                "demo_mode": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "goal": "Alan Turing",
            
        
    
        
        
            
                "status": "waiting_confirmation",
            
        
    
        
        
            
                "priority": "urgent",
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_confirmation": true,
            
        
    
        
        
            
                "demo_mode": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "goal": "Marie Curie",
            
        
    
        
        
            
                "status": "needs_info",
            
        
    
        
        
            
                "priority": "high",
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_confirmation": true,
            
        
    
        
        
            
                "demo_mode": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TaskStepsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_number": 1,
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "input_payload": "Marie Curie",
            
        
    
        
        
            
                "output_payload": "Ada Lovelace",
            
        
    
        
        
            
                "error_message": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_number": 1,
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "input_payload": "Alan Turing",
            
        
    
        
        
            
                "output_payload": "Marie Curie",
            
        
    
        
        
            
                "error_message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_number": 5,
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "status": "done",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "input_payload": "Marie Curie",
            
        
    
        
        
            
                "output_payload": "Alan Turing",
            
        
    
        
        
            
                "error_message": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_number": 1,
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "status": "blocked",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "input_payload": "Ada Lovelace",
            
        
    
        
        
            
                "output_payload": "Marie Curie",
            
        
    
        
        
            
                "error_message": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_number": 4,
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
        
        
            
                "status": "blocked",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "input_payload": "Marie Curie",
            
        
    
        
        
            
                "output_payload": "Alan Turing",
            
        
    
        
        
            
                "error_message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ToolRunsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "running",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "input_payload": "Alan Turing",
            
        
    
        
        
            
                "output_payload": "Alan Turing",
            
        
    
        
        
            
                "logs": "Grace Hopper",
            
        
    
        
        
            
                "error_message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "succeeded",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "input_payload": "Grace Hopper",
            
        
    
        
        
            
                "output_payload": "Ada Lovelace",
            
        
    
        
        
            
                "logs": "Alan Turing",
            
        
    
        
        
            
                "error_message": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "input_payload": "Grace Hopper",
            
        
    
        
        
            
                "output_payload": "Ada Lovelace",
            
        
    
        
        
            
                "logs": "Marie Curie",
            
        
    
        
        
            
                "error_message": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "input_payload": "Marie Curie",
            
        
    
        
        
            
                "output_payload": "Ada Lovelace",
            
        
    
        
        
            
                "logs": "Grace Hopper",
            
        
    
        
        
            
                "error_message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "input_payload": "Ada Lovelace",
            
        
    
        
        
            
                "output_payload": "Marie Curie",
            
        
    
        
        
            
                "logs": "Grace Hopper",
            
        
    
        
        
            
                "error_message": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ConfirmationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "requested",
            
        
    
        
        
            
                "summary": "Grace Hopper",
            
        
    
        
        
            
                "risk_notes": "Grace Hopper",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
        
        
            
                "user_response": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "requested",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                "risk_notes": "Ada Lovelace",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
        
        
            
                "user_response": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "requested",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                "risk_notes": "Ada Lovelace",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
        
        
            
                "user_response": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "approved",
            
        
    
        
        
            
                "summary": "Grace Hopper",
            
        
    
        
        
            
                "risk_notes": "Marie Curie",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
        
        
            
                "user_response": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "approved",
            
        
    
        
        
            
                "summary": "Ada Lovelace",
            
        
    
        
        
            
                "risk_notes": "Ada Lovelace",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
        
        
            
                "user_response": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MeetingsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "platform": "google_meet",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "join_url": "Marie Curie",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "ended",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "transcript": "Grace Hopper",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "platform": "teams",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "join_url": "Alan Turing",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "joining",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "transcript": "Ada Lovelace",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "platform": "other",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "join_url": "Marie Curie",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "ended",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "transcript": "Ada Lovelace",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "platform": "zoom",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "join_url": "Grace Hopper",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "recording",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "transcript": "Grace Hopper",
            
        
    
        
        
            
                "summary": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "platform": "teams",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "join_url": "Grace Hopper",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "joining",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "transcript": "Grace Hopper",
            
        
    
        
        
            
                "summary": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CalendarEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "external_event_key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "location": "Marie Curie",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "external_event_key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "location": "Marie Curie",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "external_event_key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "location": "Grace Hopper",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "tentative",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "external_event_key": "Alan Turing",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "location": "Marie Curie",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "external_event_key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "location": "Grace Hopper",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "status": "tentative",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContactsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Marie Curie",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "time_zone": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_favorite": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Grace Hopper",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "time_zone": "Alan Turing",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_favorite": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "time_zone": "Marie Curie",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_favorite": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "time_zone": "Marie Curie",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_favorite": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "time_zone": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "is_favorite": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const OutboundMessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "sms",
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_message_key": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "email",
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_message_key": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "sms",
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_message_key": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "sms",
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_message_key": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "channel": "slack",
            
        
    
        
        
            
                "subject": "Grace Hopper",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_message_key": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TravelRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "origin": "Marie Curie",
            
        
    
        
        
            
                "destination": "Alan Turing",
            
        
    
        
        
            
                "depart_at": new Date(Date.now()),
            
        
    
        
        
            
                "return_at": new Date(Date.now()),
            
        
    
        
        
            
                "trip_type": "multi_city",
            
        
    
        
        
            
                "cabin": "first",
            
        
    
        
        
            
                "travelers_count": 1,
            
        
    
        
        
            
                "max_budget": 1.29,
            
        
    
        
        
            
                "preferences": "Ada Lovelace",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "origin": "Marie Curie",
            
        
    
        
        
            
                "destination": "Grace Hopper",
            
        
    
        
        
            
                "depart_at": new Date(Date.now()),
            
        
    
        
        
            
                "return_at": new Date(Date.now()),
            
        
    
        
        
            
                "trip_type": "multi_city",
            
        
    
        
        
            
                "cabin": "business",
            
        
    
        
        
            
                "travelers_count": 7,
            
        
    
        
        
            
                "max_budget": 6.56,
            
        
    
        
        
            
                "preferences": "Grace Hopper",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "origin": "Ada Lovelace",
            
        
    
        
        
            
                "destination": "Alan Turing",
            
        
    
        
        
            
                "depart_at": new Date(Date.now()),
            
        
    
        
        
            
                "return_at": new Date(Date.now()),
            
        
    
        
        
            
                "trip_type": "one_way",
            
        
    
        
        
            
                "cabin": "business",
            
        
    
        
        
            
                "travelers_count": 3,
            
        
    
        
        
            
                "max_budget": 0.1,
            
        
    
        
        
            
                "preferences": "Alan Turing",
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "origin": "Grace Hopper",
            
        
    
        
        
            
                "destination": "Marie Curie",
            
        
    
        
        
            
                "depart_at": new Date(Date.now()),
            
        
    
        
        
            
                "return_at": new Date(Date.now()),
            
        
    
        
        
            
                "trip_type": "round_trip",
            
        
    
        
        
            
                "cabin": "business",
            
        
    
        
        
            
                "travelers_count": 4,
            
        
    
        
        
            
                "max_budget": 9.81,
            
        
    
        
        
            
                "preferences": "Marie Curie",
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "origin": "Alan Turing",
            
        
    
        
        
            
                "destination": "Marie Curie",
            
        
    
        
        
            
                "depart_at": new Date(Date.now()),
            
        
    
        
        
            
                "return_at": new Date(Date.now()),
            
        
    
        
        
            
                "trip_type": "round_trip",
            
        
    
        
        
            
                "cabin": "premium_economy",
            
        
    
        
        
            
                "travelers_count": 2,
            
        
    
        
        
            
                "max_budget": 8.05,
            
        
    
        
        
            
                "preferences": "Alan Turing",
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TravelBookingsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "booking_type": "car",
            
        
    
        
        
            
                "provider": "Grace Hopper",
            
        
    
        
        
            
                "external_booking_key": "Grace Hopper",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "amount": 9.29,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "booked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "booking_type": "car",
            
        
    
        
        
            
                "provider": "Marie Curie",
            
        
    
        
        
            
                "external_booking_key": "Grace Hopper",
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "amount": 4.17,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "booked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "booking_type": "hotel",
            
        
    
        
        
            
                "provider": "Ada Lovelace",
            
        
    
        
        
            
                "external_booking_key": "Grace Hopper",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "amount": 8.49,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "booked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "booking_type": "hotel",
            
        
    
        
        
            
                "provider": "Grace Hopper",
            
        
    
        
        
            
                "external_booking_key": "Alan Turing",
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "amount": 9.51,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "booked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "booking_type": "car",
            
        
    
        
        
            
                "provider": "Alan Turing",
            
        
    
        
        
            
                "external_booking_key": "Grace Hopper",
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "amount": 3.62,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "booked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PaymentTransactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "amount": 9.44,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "payment_method_type": "bank",
            
        
    
        
        
            
                "merchant": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "demo_mode": false,
            
        
    
        
        
            
                "external_transaction_key": "Marie Curie",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "amount": 1.81,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "payment_method_type": "wallet",
            
        
    
        
        
            
                "merchant": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "demo_mode": false,
            
        
    
        
        
            
                "external_transaction_key": "Grace Hopper",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "authorized",
            
        
    
        
        
            
                "amount": 5.76,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "payment_method_type": "sandbox",
            
        
    
        
        
            
                "merchant": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "demo_mode": true,
            
        
    
        
        
            
                "external_transaction_key": "Grace Hopper",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "authorized",
            
        
    
        
        
            
                "amount": 2.23,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "payment_method_type": "bank",
            
        
    
        
        
            
                "merchant": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "demo_mode": false,
            
        
    
        
        
            
                "external_transaction_key": "Ada Lovelace",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "captured",
            
        
    
        
        
            
                "amount": 0.92,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "payment_method_type": "sandbox",
            
        
    
        
        
            
                "merchant": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "demo_mode": false,
            
        
    
        
        
            
                "external_transaction_key": "Grace Hopper",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const NativeAppChecksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "app_kind": "google_calendar",
            
        
    
        
        
            
                "is_available": true,
            
        
    
        
        
            
                "platform": "Marie Curie",
            
        
    
        
        
            
                "checked_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "app_kind": "gmail",
            
        
    
        
        
            
                "is_available": false,
            
        
    
        
        
            
                "platform": "Alan Turing",
            
        
    
        
        
            
                "checked_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "app_kind": "google_calendar",
            
        
    
        
        
            
                "is_available": false,
            
        
    
        
        
            
                "platform": "Ada Lovelace",
            
        
    
        
        
            
                "checked_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "app_kind": "google_meet",
            
        
    
        
        
            
                "is_available": false,
            
        
    
        
        
            
                "platform": "Marie Curie",
            
        
    
        
        
            
                "checked_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "app_kind": "travel",
            
        
    
        
        
            
                "is_available": false,
            
        
    
        
        
            
                "platform": "Alan Turing",
            
        
    
        
        
            
                "checked_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AuditLogsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "tool_run_finished",
            
        
    
        
        
            
                "event_summary": "Marie Curie",
            
        
    
        
        
            
                "event_payload": "Alan Turing",
            
        
    
        
        
            
                "ip_address": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "payment_completed",
            
        
    
        
        
            
                "event_summary": "Grace Hopper",
            
        
    
        
        
            
                "event_payload": "Alan Turing",
            
        
    
        
        
            
                "ip_address": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "payment_initiated",
            
        
    
        
        
            
                "event_summary": "Marie Curie",
            
        
    
        
        
            
                "event_payload": "Ada Lovelace",
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "booking_created",
            
        
    
        
        
            
                "event_summary": "Alan Turing",
            
        
    
        
        
            
                "event_payload": "Marie Curie",
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "tool_run_finished",
            
        
    
        
        
            
                "event_summary": "Alan Turing",
            
        
    
        
        
            
                "event_payload": "Grace Hopper",
            
        
    
        
        
            
                "ip_address": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];




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

    
    
    
    
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateWorkspaceWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Workspace0 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Workspace0?.setOwner)
                {
                    await
                    Workspace0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Workspace1 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Workspace1?.setOwner)
                {
                    await
                    Workspace1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Workspace2 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Workspace2?.setOwner)
                {
                    await
                    Workspace2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Workspace3 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Workspace3?.setOwner)
                {
                    await
                    Workspace3.
                    setOwner(relatedOwner3);
                }
            
                const relatedOwner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Workspace4 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Workspace4?.setOwner)
                {
                    await
                    Workspace4.
                    setOwner(relatedOwner4);
                }
            
        }
        
    
        
            
            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);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Workspace4 = await Workspaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Workspace4?.setOrganization)
                {
                    await
                    Workspace4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateUserSettingWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserSetting0 = await UserSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserSetting0?.setOrganization)
                {
                    await
                    UserSetting0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserSetting1 = await UserSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserSetting1?.setOrganization)
                {
                    await
                    UserSetting1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserSetting2 = await UserSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserSetting2?.setOrganization)
                {
                    await
                    UserSetting2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserSetting3 = await UserSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserSetting3?.setOrganization)
                {
                    await
                    UserSetting3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserSetting4 = await UserSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserSetting4?.setOrganization)
                {
                    await
                    UserSetting4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAssistantProfileWithWorkspace() {
            
                const relatedWorkspace0 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AssistantProfile0 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AssistantProfile0?.setWorkspace)
                {
                    await
                    AssistantProfile0.
                    setWorkspace(relatedWorkspace0);
                }
            
                const relatedWorkspace1 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AssistantProfile1 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AssistantProfile1?.setWorkspace)
                {
                    await
                    AssistantProfile1.
                    setWorkspace(relatedWorkspace1);
                }
            
                const relatedWorkspace2 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AssistantProfile2 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AssistantProfile2?.setWorkspace)
                {
                    await
                    AssistantProfile2.
                    setWorkspace(relatedWorkspace2);
                }
            
                const relatedWorkspace3 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AssistantProfile3 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AssistantProfile3?.setWorkspace)
                {
                    await
                    AssistantProfile3.
                    setWorkspace(relatedWorkspace3);
                }
            
                const relatedWorkspace4 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AssistantProfile4 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AssistantProfile4?.setWorkspace)
                {
                    await
                    AssistantProfile4.
                    setWorkspace(relatedWorkspace4);
                }
            
        }
        
    
        
            
            async function associateAssistantProfileWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AssistantProfile0 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AssistantProfile0?.setOrganization)
                {
                    await
                    AssistantProfile0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AssistantProfile1 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AssistantProfile1?.setOrganization)
                {
                    await
                    AssistantProfile1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AssistantProfile2 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AssistantProfile2?.setOrganization)
                {
                    await
                    AssistantProfile2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AssistantProfile3 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AssistantProfile3?.setOrganization)
                {
                    await
                    AssistantProfile3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AssistantProfile4 = await AssistantProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AssistantProfile4?.setOrganization)
                {
                    await
                    AssistantProfile4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateConversationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation0 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Conversation0?.setUser)
                {
                    await
                    Conversation0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation1 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Conversation1?.setUser)
                {
                    await
                    Conversation1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation2 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Conversation2?.setUser)
                {
                    await
                    Conversation2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation3 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Conversation3?.setUser)
                {
                    await
                    Conversation3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation4 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Conversation4?.setUser)
                {
                    await
                    Conversation4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateConversationWithAssistant_profile() {
            
                const relatedAssistant_profile0 = await AssistantProfiles.findOne({
                    offset: Math.floor(Math.random() * (await AssistantProfiles.count())),
                });
                const Conversation0 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Conversation0?.setAssistant_profile)
                {
                    await
                    Conversation0.
                    setAssistant_profile(relatedAssistant_profile0);
                }
            
                const relatedAssistant_profile1 = await AssistantProfiles.findOne({
                    offset: Math.floor(Math.random() * (await AssistantProfiles.count())),
                });
                const Conversation1 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Conversation1?.setAssistant_profile)
                {
                    await
                    Conversation1.
                    setAssistant_profile(relatedAssistant_profile1);
                }
            
                const relatedAssistant_profile2 = await AssistantProfiles.findOne({
                    offset: Math.floor(Math.random() * (await AssistantProfiles.count())),
                });
                const Conversation2 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Conversation2?.setAssistant_profile)
                {
                    await
                    Conversation2.
                    setAssistant_profile(relatedAssistant_profile2);
                }
            
                const relatedAssistant_profile3 = await AssistantProfiles.findOne({
                    offset: Math.floor(Math.random() * (await AssistantProfiles.count())),
                });
                const Conversation3 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Conversation3?.setAssistant_profile)
                {
                    await
                    Conversation3.
                    setAssistant_profile(relatedAssistant_profile3);
                }
            
                const relatedAssistant_profile4 = await AssistantProfiles.findOne({
                    offset: Math.floor(Math.random() * (await AssistantProfiles.count())),
                });
                const Conversation4 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Conversation4?.setAssistant_profile)
                {
                    await
                    Conversation4.
                    setAssistant_profile(relatedAssistant_profile4);
                }
            
        }
        
    
        
            
            async function associateConversationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Conversation0 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Conversation0?.setOrganization)
                {
                    await
                    Conversation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Conversation1 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Conversation1?.setOrganization)
                {
                    await
                    Conversation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Conversation2 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Conversation2?.setOrganization)
                {
                    await
                    Conversation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Conversation3 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Conversation3?.setOrganization)
                {
                    await
                    Conversation3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Conversation4 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Conversation4?.setOrganization)
                {
                    await
                    Conversation4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMessageWithConversation() {
            
                const relatedConversation0 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setConversation)
                {
                    await
                    Message0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setConversation)
                {
                    await
                    Message1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setConversation)
                {
                    await
                    Message2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setConversation)
                {
                    await
                    Message3.
                    setConversation(relatedConversation3);
                }
            
                const relatedConversation4 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message4 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Message4?.setConversation)
                {
                    await
                    Message4.
                    setConversation(relatedConversation4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMessageWithVoice_session() {
            
                const relatedVoice_session0 = await VoiceSessions.findOne({
                    offset: Math.floor(Math.random() * (await VoiceSessions.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setVoice_session)
                {
                    await
                    Message0.
                    setVoice_session(relatedVoice_session0);
                }
            
                const relatedVoice_session1 = await VoiceSessions.findOne({
                    offset: Math.floor(Math.random() * (await VoiceSessions.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setVoice_session)
                {
                    await
                    Message1.
                    setVoice_session(relatedVoice_session1);
                }
            
                const relatedVoice_session2 = await VoiceSessions.findOne({
                    offset: Math.floor(Math.random() * (await VoiceSessions.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setVoice_session)
                {
                    await
                    Message2.
                    setVoice_session(relatedVoice_session2);
                }
            
                const relatedVoice_session3 = await VoiceSessions.findOne({
                    offset: Math.floor(Math.random() * (await VoiceSessions.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setVoice_session)
                {
                    await
                    Message3.
                    setVoice_session(relatedVoice_session3);
                }
            
                const relatedVoice_session4 = await VoiceSessions.findOne({
                    offset: Math.floor(Math.random() * (await VoiceSessions.count())),
                });
                const Message4 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Message4?.setVoice_session)
                {
                    await
                    Message4.
                    setVoice_session(relatedVoice_session4);
                }
            
        }
        
    
        
            
            async function associateMessageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setOrganization)
                {
                    await
                    Message0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setOrganization)
                {
                    await
                    Message1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setOrganization)
                {
                    await
                    Message2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setOrganization)
                {
                    await
                    Message3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Message4 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Message4?.setOrganization)
                {
                    await
                    Message4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateVoiceSessionWithConversation() {
            
                const relatedConversation0 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const VoiceSession0 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VoiceSession0?.setConversation)
                {
                    await
                    VoiceSession0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const VoiceSession1 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VoiceSession1?.setConversation)
                {
                    await
                    VoiceSession1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const VoiceSession2 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VoiceSession2?.setConversation)
                {
                    await
                    VoiceSession2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const VoiceSession3 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VoiceSession3?.setConversation)
                {
                    await
                    VoiceSession3.
                    setConversation(relatedConversation3);
                }
            
                const relatedConversation4 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const VoiceSession4 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VoiceSession4?.setConversation)
                {
                    await
                    VoiceSession4.
                    setConversation(relatedConversation4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateVoiceSessionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VoiceSession0 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VoiceSession0?.setOrganization)
                {
                    await
                    VoiceSession0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VoiceSession1 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VoiceSession1?.setOrganization)
                {
                    await
                    VoiceSession1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VoiceSession2 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VoiceSession2?.setOrganization)
                {
                    await
                    VoiceSession2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VoiceSession3 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VoiceSession3?.setOrganization)
                {
                    await
                    VoiceSession3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VoiceSession4 = await VoiceSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VoiceSession4?.setOrganization)
                {
                    await
                    VoiceSession4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateToolProviderWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolProvider0 = await ToolProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ToolProvider0?.setOrganization)
                {
                    await
                    ToolProvider0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolProvider1 = await ToolProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ToolProvider1?.setOrganization)
                {
                    await
                    ToolProvider1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolProvider2 = await ToolProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ToolProvider2?.setOrganization)
                {
                    await
                    ToolProvider2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolProvider3 = await ToolProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ToolProvider3?.setOrganization)
                {
                    await
                    ToolProvider3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolProvider4 = await ToolProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ToolProvider4?.setOrganization)
                {
                    await
                    ToolProvider4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateToolWithProvider() {
            
                const relatedProvider0 = await ToolProviders.findOne({
                    offset: Math.floor(Math.random() * (await ToolProviders.count())),
                });
                const Tool0 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Tool0?.setProvider)
                {
                    await
                    Tool0.
                    setProvider(relatedProvider0);
                }
            
                const relatedProvider1 = await ToolProviders.findOne({
                    offset: Math.floor(Math.random() * (await ToolProviders.count())),
                });
                const Tool1 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Tool1?.setProvider)
                {
                    await
                    Tool1.
                    setProvider(relatedProvider1);
                }
            
                const relatedProvider2 = await ToolProviders.findOne({
                    offset: Math.floor(Math.random() * (await ToolProviders.count())),
                });
                const Tool2 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Tool2?.setProvider)
                {
                    await
                    Tool2.
                    setProvider(relatedProvider2);
                }
            
                const relatedProvider3 = await ToolProviders.findOne({
                    offset: Math.floor(Math.random() * (await ToolProviders.count())),
                });
                const Tool3 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Tool3?.setProvider)
                {
                    await
                    Tool3.
                    setProvider(relatedProvider3);
                }
            
                const relatedProvider4 = await ToolProviders.findOne({
                    offset: Math.floor(Math.random() * (await ToolProviders.count())),
                });
                const Tool4 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Tool4?.setProvider)
                {
                    await
                    Tool4.
                    setProvider(relatedProvider4);
                }
            
        }
        
    
        
            
            async function associateToolWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tool0 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Tool0?.setOrganization)
                {
                    await
                    Tool0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tool1 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Tool1?.setOrganization)
                {
                    await
                    Tool1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tool2 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Tool2?.setOrganization)
                {
                    await
                    Tool2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tool3 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Tool3?.setOrganization)
                {
                    await
                    Tool3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tool4 = await Tools.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Tool4?.setOrganization)
                {
                    await
                    Tool4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateToolActionWithTool() {
            
                const relatedTool0 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolAction0 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ToolAction0?.setTool)
                {
                    await
                    ToolAction0.
                    setTool(relatedTool0);
                }
            
                const relatedTool1 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolAction1 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ToolAction1?.setTool)
                {
                    await
                    ToolAction1.
                    setTool(relatedTool1);
                }
            
                const relatedTool2 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolAction2 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ToolAction2?.setTool)
                {
                    await
                    ToolAction2.
                    setTool(relatedTool2);
                }
            
                const relatedTool3 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolAction3 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ToolAction3?.setTool)
                {
                    await
                    ToolAction3.
                    setTool(relatedTool3);
                }
            
                const relatedTool4 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolAction4 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ToolAction4?.setTool)
                {
                    await
                    ToolAction4.
                    setTool(relatedTool4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateToolActionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolAction0 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ToolAction0?.setOrganization)
                {
                    await
                    ToolAction0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolAction1 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ToolAction1?.setOrganization)
                {
                    await
                    ToolAction1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolAction2 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ToolAction2?.setOrganization)
                {
                    await
                    ToolAction2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolAction3 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ToolAction3?.setOrganization)
                {
                    await
                    ToolAction3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolAction4 = await ToolActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ToolAction4?.setOrganization)
                {
                    await
                    ToolAction4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateIntegrationWithWorkspace() {
            
                const relatedWorkspace0 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Integration0 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Integration0?.setWorkspace)
                {
                    await
                    Integration0.
                    setWorkspace(relatedWorkspace0);
                }
            
                const relatedWorkspace1 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Integration1 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Integration1?.setWorkspace)
                {
                    await
                    Integration1.
                    setWorkspace(relatedWorkspace1);
                }
            
                const relatedWorkspace2 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Integration2 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Integration2?.setWorkspace)
                {
                    await
                    Integration2.
                    setWorkspace(relatedWorkspace2);
                }
            
                const relatedWorkspace3 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Integration3 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Integration3?.setWorkspace)
                {
                    await
                    Integration3.
                    setWorkspace(relatedWorkspace3);
                }
            
                const relatedWorkspace4 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const Integration4 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Integration4?.setWorkspace)
                {
                    await
                    Integration4.
                    setWorkspace(relatedWorkspace4);
                }
            
        }
        
    
        
            
            async function associateIntegrationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Integration0 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Integration0?.setUser)
                {
                    await
                    Integration0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Integration1 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Integration1?.setUser)
                {
                    await
                    Integration1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Integration2 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Integration2?.setUser)
                {
                    await
                    Integration2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Integration3 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Integration3?.setUser)
                {
                    await
                    Integration3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Integration4 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Integration4?.setUser)
                {
                    await
                    Integration4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateIntegrationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration0 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Integration0?.setOrganization)
                {
                    await
                    Integration0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration1 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Integration1?.setOrganization)
                {
                    await
                    Integration1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration2 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Integration2?.setOrganization)
                {
                    await
                    Integration2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration3 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Integration3?.setOrganization)
                {
                    await
                    Integration3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration4 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Integration4?.setOrganization)
                {
                    await
                    Integration4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMemoryItemWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MemoryItem0 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MemoryItem0?.setUser)
                {
                    await
                    MemoryItem0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MemoryItem1 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MemoryItem1?.setUser)
                {
                    await
                    MemoryItem1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MemoryItem2 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MemoryItem2?.setUser)
                {
                    await
                    MemoryItem2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MemoryItem3 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MemoryItem3?.setUser)
                {
                    await
                    MemoryItem3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MemoryItem4 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (MemoryItem4?.setUser)
                {
                    await
                    MemoryItem4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMemoryItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MemoryItem0 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MemoryItem0?.setOrganization)
                {
                    await
                    MemoryItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MemoryItem1 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MemoryItem1?.setOrganization)
                {
                    await
                    MemoryItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MemoryItem2 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MemoryItem2?.setOrganization)
                {
                    await
                    MemoryItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MemoryItem3 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MemoryItem3?.setOrganization)
                {
                    await
                    MemoryItem3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MemoryItem4 = await MemoryItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (MemoryItem4?.setOrganization)
                {
                    await
                    MemoryItem4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTaskWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Task0 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Task0?.setUser)
                {
                    await
                    Task0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Task1 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Task1?.setUser)
                {
                    await
                    Task1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Task2 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Task2?.setUser)
                {
                    await
                    Task2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Task3 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Task3?.setUser)
                {
                    await
                    Task3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Task4 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Task4?.setUser)
                {
                    await
                    Task4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateTaskWithConversation() {
            
                const relatedConversation0 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Task0 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Task0?.setConversation)
                {
                    await
                    Task0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Task1 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Task1?.setConversation)
                {
                    await
                    Task1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Task2 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Task2?.setConversation)
                {
                    await
                    Task2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Task3 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Task3?.setConversation)
                {
                    await
                    Task3.
                    setConversation(relatedConversation3);
                }
            
                const relatedConversation4 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Task4 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Task4?.setConversation)
                {
                    await
                    Task4.
                    setConversation(relatedConversation4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTaskWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Task0 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Task0?.setOrganization)
                {
                    await
                    Task0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Task1 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Task1?.setOrganization)
                {
                    await
                    Task1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Task2 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Task2?.setOrganization)
                {
                    await
                    Task2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Task3 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Task3?.setOrganization)
                {
                    await
                    Task3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Task4 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Task4?.setOrganization)
                {
                    await
                    Task4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTaskStepWithTask() {
            
                const relatedTask0 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const TaskStep0 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TaskStep0?.setTask)
                {
                    await
                    TaskStep0.
                    setTask(relatedTask0);
                }
            
                const relatedTask1 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const TaskStep1 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TaskStep1?.setTask)
                {
                    await
                    TaskStep1.
                    setTask(relatedTask1);
                }
            
                const relatedTask2 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const TaskStep2 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TaskStep2?.setTask)
                {
                    await
                    TaskStep2.
                    setTask(relatedTask2);
                }
            
                const relatedTask3 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const TaskStep3 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TaskStep3?.setTask)
                {
                    await
                    TaskStep3.
                    setTask(relatedTask3);
                }
            
                const relatedTask4 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const TaskStep4 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TaskStep4?.setTask)
                {
                    await
                    TaskStep4.
                    setTask(relatedTask4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTaskStepWithTool_action() {
            
                const relatedTool_action0 = await ToolActions.findOne({
                    offset: Math.floor(Math.random() * (await ToolActions.count())),
                });
                const TaskStep0 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TaskStep0?.setTool_action)
                {
                    await
                    TaskStep0.
                    setTool_action(relatedTool_action0);
                }
            
                const relatedTool_action1 = await ToolActions.findOne({
                    offset: Math.floor(Math.random() * (await ToolActions.count())),
                });
                const TaskStep1 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TaskStep1?.setTool_action)
                {
                    await
                    TaskStep1.
                    setTool_action(relatedTool_action1);
                }
            
                const relatedTool_action2 = await ToolActions.findOne({
                    offset: Math.floor(Math.random() * (await ToolActions.count())),
                });
                const TaskStep2 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TaskStep2?.setTool_action)
                {
                    await
                    TaskStep2.
                    setTool_action(relatedTool_action2);
                }
            
                const relatedTool_action3 = await ToolActions.findOne({
                    offset: Math.floor(Math.random() * (await ToolActions.count())),
                });
                const TaskStep3 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TaskStep3?.setTool_action)
                {
                    await
                    TaskStep3.
                    setTool_action(relatedTool_action3);
                }
            
                const relatedTool_action4 = await ToolActions.findOne({
                    offset: Math.floor(Math.random() * (await ToolActions.count())),
                });
                const TaskStep4 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TaskStep4?.setTool_action)
                {
                    await
                    TaskStep4.
                    setTool_action(relatedTool_action4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateTaskStepWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaskStep0 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TaskStep0?.setOrganization)
                {
                    await
                    TaskStep0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaskStep1 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TaskStep1?.setOrganization)
                {
                    await
                    TaskStep1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaskStep2 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TaskStep2?.setOrganization)
                {
                    await
                    TaskStep2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaskStep3 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TaskStep3?.setOrganization)
                {
                    await
                    TaskStep3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TaskStep4 = await TaskSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TaskStep4?.setOrganization)
                {
                    await
                    TaskStep4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateToolRunWithTask_step() {
            
                const relatedTask_step0 = await TaskSteps.findOne({
                    offset: Math.floor(Math.random() * (await TaskSteps.count())),
                });
                const ToolRun0 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ToolRun0?.setTask_step)
                {
                    await
                    ToolRun0.
                    setTask_step(relatedTask_step0);
                }
            
                const relatedTask_step1 = await TaskSteps.findOne({
                    offset: Math.floor(Math.random() * (await TaskSteps.count())),
                });
                const ToolRun1 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ToolRun1?.setTask_step)
                {
                    await
                    ToolRun1.
                    setTask_step(relatedTask_step1);
                }
            
                const relatedTask_step2 = await TaskSteps.findOne({
                    offset: Math.floor(Math.random() * (await TaskSteps.count())),
                });
                const ToolRun2 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ToolRun2?.setTask_step)
                {
                    await
                    ToolRun2.
                    setTask_step(relatedTask_step2);
                }
            
                const relatedTask_step3 = await TaskSteps.findOne({
                    offset: Math.floor(Math.random() * (await TaskSteps.count())),
                });
                const ToolRun3 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ToolRun3?.setTask_step)
                {
                    await
                    ToolRun3.
                    setTask_step(relatedTask_step3);
                }
            
                const relatedTask_step4 = await TaskSteps.findOne({
                    offset: Math.floor(Math.random() * (await TaskSteps.count())),
                });
                const ToolRun4 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ToolRun4?.setTask_step)
                {
                    await
                    ToolRun4.
                    setTask_step(relatedTask_step4);
                }
            
        }
        
    
        
            
            async function associateToolRunWithTool() {
            
                const relatedTool0 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolRun0 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ToolRun0?.setTool)
                {
                    await
                    ToolRun0.
                    setTool(relatedTool0);
                }
            
                const relatedTool1 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolRun1 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ToolRun1?.setTool)
                {
                    await
                    ToolRun1.
                    setTool(relatedTool1);
                }
            
                const relatedTool2 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolRun2 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ToolRun2?.setTool)
                {
                    await
                    ToolRun2.
                    setTool(relatedTool2);
                }
            
                const relatedTool3 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolRun3 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ToolRun3?.setTool)
                {
                    await
                    ToolRun3.
                    setTool(relatedTool3);
                }
            
                const relatedTool4 = await Tools.findOne({
                    offset: Math.floor(Math.random() * (await Tools.count())),
                });
                const ToolRun4 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ToolRun4?.setTool)
                {
                    await
                    ToolRun4.
                    setTool(relatedTool4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateToolRunWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolRun0 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ToolRun0?.setOrganization)
                {
                    await
                    ToolRun0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolRun1 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ToolRun1?.setOrganization)
                {
                    await
                    ToolRun1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolRun2 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ToolRun2?.setOrganization)
                {
                    await
                    ToolRun2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolRun3 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ToolRun3?.setOrganization)
                {
                    await
                    ToolRun3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ToolRun4 = await ToolRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ToolRun4?.setOrganization)
                {
                    await
                    ToolRun4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateConfirmationWithTask() {
            
                const relatedTask0 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const Confirmation0 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Confirmation0?.setTask)
                {
                    await
                    Confirmation0.
                    setTask(relatedTask0);
                }
            
                const relatedTask1 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const Confirmation1 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Confirmation1?.setTask)
                {
                    await
                    Confirmation1.
                    setTask(relatedTask1);
                }
            
                const relatedTask2 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const Confirmation2 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Confirmation2?.setTask)
                {
                    await
                    Confirmation2.
                    setTask(relatedTask2);
                }
            
                const relatedTask3 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const Confirmation3 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Confirmation3?.setTask)
                {
                    await
                    Confirmation3.
                    setTask(relatedTask3);
                }
            
                const relatedTask4 = await Tasks.findOne({
                    offset: Math.floor(Math.random() * (await Tasks.count())),
                });
                const Confirmation4 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Confirmation4?.setTask)
                {
                    await
                    Confirmation4.
                    setTask(relatedTask4);
                }
            
        }
        
    
        
            
            async function associateConfirmationWithTool_run() {
            
                const relatedTool_run0 = await ToolRuns.findOne({
                    offset: Math.floor(Math.random() * (await ToolRuns.count())),
                });
                const Confirmation0 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Confirmation0?.setTool_run)
                {
                    await
                    Confirmation0.
                    setTool_run(relatedTool_run0);
                }
            
                const relatedTool_run1 = await ToolRuns.findOne({
                    offset: Math.floor(Math.random() * (await ToolRuns.count())),
                });
                const Confirmation1 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Confirmation1?.setTool_run)
                {
                    await
                    Confirmation1.
                    setTool_run(relatedTool_run1);
                }
            
                const relatedTool_run2 = await ToolRuns.findOne({
                    offset: Math.floor(Math.random() * (await ToolRuns.count())),
                });
                const Confirmation2 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Confirmation2?.setTool_run)
                {
                    await
                    Confirmation2.
                    setTool_run(relatedTool_run2);
                }
            
                const relatedTool_run3 = await ToolRuns.findOne({
                    offset: Math.floor(Math.random() * (await ToolRuns.count())),
                });
                const Confirmation3 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Confirmation3?.setTool_run)
                {
                    await
                    Confirmation3.
                    setTool_run(relatedTool_run3);
                }
            
                const relatedTool_run4 = await ToolRuns.findOne({
                    offset: Math.floor(Math.random() * (await ToolRuns.count())),
                });
                const Confirmation4 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Confirmation4?.setTool_run)
                {
                    await
                    Confirmation4.
                    setTool_run(relatedTool_run4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateConfirmationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Confirmation0 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Confirmation0?.setOrganization)
                {
                    await
                    Confirmation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Confirmation1 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Confirmation1?.setOrganization)
                {
                    await
                    Confirmation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Confirmation2 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Confirmation2?.setOrganization)
                {
                    await
                    Confirmation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Confirmation3 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Confirmation3?.setOrganization)
                {
                    await
                    Confirmation3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Confirmation4 = await Confirmations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Confirmation4?.setOrganization)
                {
                    await
                    Confirmation4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMeetingWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Meeting0 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Meeting0?.setUser)
                {
                    await
                    Meeting0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Meeting1 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Meeting1?.setUser)
                {
                    await
                    Meeting1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Meeting2 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Meeting2?.setUser)
                {
                    await
                    Meeting2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Meeting3 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Meeting3?.setUser)
                {
                    await
                    Meeting3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Meeting4 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Meeting4?.setUser)
                {
                    await
                    Meeting4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMeetingWithConversation() {
            
                const relatedConversation0 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Meeting0 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Meeting0?.setConversation)
                {
                    await
                    Meeting0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Meeting1 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Meeting1?.setConversation)
                {
                    await
                    Meeting1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Meeting2 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Meeting2?.setConversation)
                {
                    await
                    Meeting2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Meeting3 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Meeting3?.setConversation)
                {
                    await
                    Meeting3.
                    setConversation(relatedConversation3);
                }
            
                const relatedConversation4 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Meeting4 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Meeting4?.setConversation)
                {
                    await
                    Meeting4.
                    setConversation(relatedConversation4);
                }
            
        }
        
    
        
            
            async function associateMeetingWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Meeting0 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Meeting0?.setOrganization)
                {
                    await
                    Meeting0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Meeting1 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Meeting1?.setOrganization)
                {
                    await
                    Meeting1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Meeting2 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Meeting2?.setOrganization)
                {
                    await
                    Meeting2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Meeting3 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Meeting3?.setOrganization)
                {
                    await
                    Meeting3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Meeting4 = await Meetings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Meeting4?.setOrganization)
                {
                    await
                    Meeting4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCalendarEventWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CalendarEvent0 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CalendarEvent0?.setUser)
                {
                    await
                    CalendarEvent0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CalendarEvent1 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CalendarEvent1?.setUser)
                {
                    await
                    CalendarEvent1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CalendarEvent2 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CalendarEvent2?.setUser)
                {
                    await
                    CalendarEvent2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CalendarEvent3 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CalendarEvent3?.setUser)
                {
                    await
                    CalendarEvent3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CalendarEvent4 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CalendarEvent4?.setUser)
                {
                    await
                    CalendarEvent4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCalendarEventWithIntegration() {
            
                const relatedIntegration0 = await Integrations.findOne({
                    offset: Math.floor(Math.random() * (await Integrations.count())),
                });
                const CalendarEvent0 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CalendarEvent0?.setIntegration)
                {
                    await
                    CalendarEvent0.
                    setIntegration(relatedIntegration0);
                }
            
                const relatedIntegration1 = await Integrations.findOne({
                    offset: Math.floor(Math.random() * (await Integrations.count())),
                });
                const CalendarEvent1 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CalendarEvent1?.setIntegration)
                {
                    await
                    CalendarEvent1.
                    setIntegration(relatedIntegration1);
                }
            
                const relatedIntegration2 = await Integrations.findOne({
                    offset: Math.floor(Math.random() * (await Integrations.count())),
                });
                const CalendarEvent2 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CalendarEvent2?.setIntegration)
                {
                    await
                    CalendarEvent2.
                    setIntegration(relatedIntegration2);
                }
            
                const relatedIntegration3 = await Integrations.findOne({
                    offset: Math.floor(Math.random() * (await Integrations.count())),
                });
                const CalendarEvent3 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CalendarEvent3?.setIntegration)
                {
                    await
                    CalendarEvent3.
                    setIntegration(relatedIntegration3);
                }
            
                const relatedIntegration4 = await Integrations.findOne({
                    offset: Math.floor(Math.random() * (await Integrations.count())),
                });
                const CalendarEvent4 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CalendarEvent4?.setIntegration)
                {
                    await
                    CalendarEvent4.
                    setIntegration(relatedIntegration4);
                }
            
        }
        
    
        
            
            async function associateCalendarEventWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CalendarEvent0 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CalendarEvent0?.setOrganization)
                {
                    await
                    CalendarEvent0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CalendarEvent1 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CalendarEvent1?.setOrganization)
                {
                    await
                    CalendarEvent1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CalendarEvent2 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CalendarEvent2?.setOrganization)
                {
                    await
                    CalendarEvent2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CalendarEvent3 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CalendarEvent3?.setOrganization)
                {
                    await
                    CalendarEvent3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CalendarEvent4 = await CalendarEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CalendarEvent4?.setOrganization)
                {
                    await
                    CalendarEvent4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateContactWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Contact0 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contact0?.setUser)
                {
                    await
                    Contact0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Contact1 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contact1?.setUser)
                {
                    await
                    Contact1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Contact2 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contact2?.setUser)
                {
                    await
                    Contact2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Contact3 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contact3?.setUser)
                {
                    await
                    Contact3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Contact4 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contact4?.setUser)
                {
                    await
                    Contact4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateContactWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contact0 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contact0?.setOrganization)
                {
                    await
                    Contact0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contact1 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contact1?.setOrganization)
                {
                    await
                    Contact1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contact2 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contact2?.setOrganization)
                {
                    await
                    Contact2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contact3 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contact3?.setOrganization)
                {
                    await
                    Contact3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contact4 = await Contacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contact4?.setOrganization)
                {
                    await
                    Contact4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateOutboundMessageWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OutboundMessage0 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OutboundMessage0?.setUser)
                {
                    await
                    OutboundMessage0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OutboundMessage1 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OutboundMessage1?.setUser)
                {
                    await
                    OutboundMessage1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OutboundMessage2 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OutboundMessage2?.setUser)
                {
                    await
                    OutboundMessage2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OutboundMessage3 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OutboundMessage3?.setUser)
                {
                    await
                    OutboundMessage3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const OutboundMessage4 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (OutboundMessage4?.setUser)
                {
                    await
                    OutboundMessage4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateOutboundMessageWithContact() {
            
                const relatedContact0 = await Contacts.findOne({
                    offset: Math.floor(Math.random() * (await Contacts.count())),
                });
                const OutboundMessage0 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OutboundMessage0?.setContact)
                {
                    await
                    OutboundMessage0.
                    setContact(relatedContact0);
                }
            
                const relatedContact1 = await Contacts.findOne({
                    offset: Math.floor(Math.random() * (await Contacts.count())),
                });
                const OutboundMessage1 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OutboundMessage1?.setContact)
                {
                    await
                    OutboundMessage1.
                    setContact(relatedContact1);
                }
            
                const relatedContact2 = await Contacts.findOne({
                    offset: Math.floor(Math.random() * (await Contacts.count())),
                });
                const OutboundMessage2 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OutboundMessage2?.setContact)
                {
                    await
                    OutboundMessage2.
                    setContact(relatedContact2);
                }
            
                const relatedContact3 = await Contacts.findOne({
                    offset: Math.floor(Math.random() * (await Contacts.count())),
                });
                const OutboundMessage3 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OutboundMessage3?.setContact)
                {
                    await
                    OutboundMessage3.
                    setContact(relatedContact3);
                }
            
                const relatedContact4 = await Contacts.findOne({
                    offset: Math.floor(Math.random() * (await Contacts.count())),
                });
                const OutboundMessage4 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (OutboundMessage4?.setContact)
                {
                    await
                    OutboundMessage4.
                    setContact(relatedContact4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateOutboundMessageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OutboundMessage0 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OutboundMessage0?.setOrganization)
                {
                    await
                    OutboundMessage0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OutboundMessage1 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OutboundMessage1?.setOrganization)
                {
                    await
                    OutboundMessage1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OutboundMessage2 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OutboundMessage2?.setOrganization)
                {
                    await
                    OutboundMessage2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OutboundMessage3 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OutboundMessage3?.setOrganization)
                {
                    await
                    OutboundMessage3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const OutboundMessage4 = await OutboundMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (OutboundMessage4?.setOrganization)
                {
                    await
                    OutboundMessage4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTravelRequestWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TravelRequest0 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TravelRequest0?.setUser)
                {
                    await
                    TravelRequest0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TravelRequest1 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TravelRequest1?.setUser)
                {
                    await
                    TravelRequest1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TravelRequest2 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TravelRequest2?.setUser)
                {
                    await
                    TravelRequest2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TravelRequest3 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TravelRequest3?.setUser)
                {
                    await
                    TravelRequest3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TravelRequest4 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TravelRequest4?.setUser)
                {
                    await
                    TravelRequest4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTravelRequestWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelRequest0 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TravelRequest0?.setOrganization)
                {
                    await
                    TravelRequest0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelRequest1 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TravelRequest1?.setOrganization)
                {
                    await
                    TravelRequest1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelRequest2 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TravelRequest2?.setOrganization)
                {
                    await
                    TravelRequest2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelRequest3 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TravelRequest3?.setOrganization)
                {
                    await
                    TravelRequest3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelRequest4 = await TravelRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TravelRequest4?.setOrganization)
                {
                    await
                    TravelRequest4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTravelBookingWithTravel_request() {
            
                const relatedTravel_request0 = await TravelRequests.findOne({
                    offset: Math.floor(Math.random() * (await TravelRequests.count())),
                });
                const TravelBooking0 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TravelBooking0?.setTravel_request)
                {
                    await
                    TravelBooking0.
                    setTravel_request(relatedTravel_request0);
                }
            
                const relatedTravel_request1 = await TravelRequests.findOne({
                    offset: Math.floor(Math.random() * (await TravelRequests.count())),
                });
                const TravelBooking1 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TravelBooking1?.setTravel_request)
                {
                    await
                    TravelBooking1.
                    setTravel_request(relatedTravel_request1);
                }
            
                const relatedTravel_request2 = await TravelRequests.findOne({
                    offset: Math.floor(Math.random() * (await TravelRequests.count())),
                });
                const TravelBooking2 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TravelBooking2?.setTravel_request)
                {
                    await
                    TravelBooking2.
                    setTravel_request(relatedTravel_request2);
                }
            
                const relatedTravel_request3 = await TravelRequests.findOne({
                    offset: Math.floor(Math.random() * (await TravelRequests.count())),
                });
                const TravelBooking3 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TravelBooking3?.setTravel_request)
                {
                    await
                    TravelBooking3.
                    setTravel_request(relatedTravel_request3);
                }
            
                const relatedTravel_request4 = await TravelRequests.findOne({
                    offset: Math.floor(Math.random() * (await TravelRequests.count())),
                });
                const TravelBooking4 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TravelBooking4?.setTravel_request)
                {
                    await
                    TravelBooking4.
                    setTravel_request(relatedTravel_request4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTravelBookingWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelBooking0 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TravelBooking0?.setOrganization)
                {
                    await
                    TravelBooking0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelBooking1 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TravelBooking1?.setOrganization)
                {
                    await
                    TravelBooking1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelBooking2 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TravelBooking2?.setOrganization)
                {
                    await
                    TravelBooking2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelBooking3 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TravelBooking3?.setOrganization)
                {
                    await
                    TravelBooking3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TravelBooking4 = await TravelBookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TravelBooking4?.setOrganization)
                {
                    await
                    TravelBooking4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePaymentTransactionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentTransaction0 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentTransaction0?.setUser)
                {
                    await
                    PaymentTransaction0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentTransaction1 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentTransaction1?.setUser)
                {
                    await
                    PaymentTransaction1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentTransaction2 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentTransaction2?.setUser)
                {
                    await
                    PaymentTransaction2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentTransaction3 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentTransaction3?.setUser)
                {
                    await
                    PaymentTransaction3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentTransaction4 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentTransaction4?.setUser)
                {
                    await
                    PaymentTransaction4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePaymentTransactionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentTransaction0 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentTransaction0?.setOrganization)
                {
                    await
                    PaymentTransaction0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentTransaction1 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentTransaction1?.setOrganization)
                {
                    await
                    PaymentTransaction1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentTransaction2 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentTransaction2?.setOrganization)
                {
                    await
                    PaymentTransaction2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentTransaction3 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentTransaction3?.setOrganization)
                {
                    await
                    PaymentTransaction3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentTransaction4 = await PaymentTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentTransaction4?.setOrganization)
                {
                    await
                    PaymentTransaction4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateNativeAppCheckWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NativeAppCheck0 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NativeAppCheck0?.setUser)
                {
                    await
                    NativeAppCheck0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NativeAppCheck1 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NativeAppCheck1?.setUser)
                {
                    await
                    NativeAppCheck1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NativeAppCheck2 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NativeAppCheck2?.setUser)
                {
                    await
                    NativeAppCheck2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NativeAppCheck3 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NativeAppCheck3?.setUser)
                {
                    await
                    NativeAppCheck3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NativeAppCheck4 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NativeAppCheck4?.setUser)
                {
                    await
                    NativeAppCheck4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateNativeAppCheckWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NativeAppCheck0 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NativeAppCheck0?.setOrganization)
                {
                    await
                    NativeAppCheck0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NativeAppCheck1 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NativeAppCheck1?.setOrganization)
                {
                    await
                    NativeAppCheck1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NativeAppCheck2 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NativeAppCheck2?.setOrganization)
                {
                    await
                    NativeAppCheck2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NativeAppCheck3 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NativeAppCheck3?.setOrganization)
                {
                    await
                    NativeAppCheck3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NativeAppCheck4 = await NativeAppChecks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NativeAppCheck4?.setOrganization)
                {
                    await
                    NativeAppCheck4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAuditLogWithWorkspace() {
            
                const relatedWorkspace0 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AuditLog0 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditLog0?.setWorkspace)
                {
                    await
                    AuditLog0.
                    setWorkspace(relatedWorkspace0);
                }
            
                const relatedWorkspace1 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AuditLog1 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditLog1?.setWorkspace)
                {
                    await
                    AuditLog1.
                    setWorkspace(relatedWorkspace1);
                }
            
                const relatedWorkspace2 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AuditLog2 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditLog2?.setWorkspace)
                {
                    await
                    AuditLog2.
                    setWorkspace(relatedWorkspace2);
                }
            
                const relatedWorkspace3 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AuditLog3 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditLog3?.setWorkspace)
                {
                    await
                    AuditLog3.
                    setWorkspace(relatedWorkspace3);
                }
            
                const relatedWorkspace4 = await Workspaces.findOne({
                    offset: Math.floor(Math.random() * (await Workspaces.count())),
                });
                const AuditLog4 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditLog4?.setWorkspace)
                {
                    await
                    AuditLog4.
                    setWorkspace(relatedWorkspace4);
                }
            
        }
        
    
        
            
            async function associateAuditLogWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog0 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditLog0?.setUser)
                {
                    await
                    AuditLog0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog1 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditLog1?.setUser)
                {
                    await
                    AuditLog1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog2 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditLog2?.setUser)
                {
                    await
                    AuditLog2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog3 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditLog3?.setUser)
                {
                    await
                    AuditLog3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog4 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditLog4?.setUser)
                {
                    await
                    AuditLog4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAuditLogWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog0 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditLog0?.setOrganization)
                {
                    await
                    AuditLog0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog1 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditLog1?.setOrganization)
                {
                    await
                    AuditLog1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog2 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditLog2?.setOrganization)
                {
                    await
                    AuditLog2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog3 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditLog3?.setOrganization)
                {
                    await
                    AuditLog3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog4 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditLog4?.setOrganization)
                {
                    await
                    AuditLog4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await Workspaces.bulkCreate(WorkspacesData);
                
            
            
                
                await UserSettings.bulkCreate(UserSettingsData);
                
            
            
                
                await AssistantProfiles.bulkCreate(AssistantProfilesData);
                
            
            
                
                await Conversations.bulkCreate(ConversationsData);
                
            
            
                
                await Messages.bulkCreate(MessagesData);
                
            
            
                
                await VoiceSessions.bulkCreate(VoiceSessionsData);
                
            
            
                
                await ToolProviders.bulkCreate(ToolProvidersData);
                
            
            
                
                await Tools.bulkCreate(ToolsData);
                
            
            
                
                await ToolActions.bulkCreate(ToolActionsData);
                
            
            
                
                await Integrations.bulkCreate(IntegrationsData);
                
            
            
                
                await MemoryItems.bulkCreate(MemoryItemsData);
                
            
            
                
                await Tasks.bulkCreate(TasksData);
                
            
            
                
                await TaskSteps.bulkCreate(TaskStepsData);
                
            
            
                
                await ToolRuns.bulkCreate(ToolRunsData);
                
            
            
                
                await Confirmations.bulkCreate(ConfirmationsData);
                
            
            
                
                await Meetings.bulkCreate(MeetingsData);
                
            
            
                
                await CalendarEvents.bulkCreate(CalendarEventsData);
                
            
            
                
                await Contacts.bulkCreate(ContactsData);
                
            
            
                
                await OutboundMessages.bulkCreate(OutboundMessagesData);
                
            
            
                
                await TravelRequests.bulkCreate(TravelRequestsData);
                
            
            
                
                await TravelBookings.bulkCreate(TravelBookingsData);
                
            
            
                
                await PaymentTransactions.bulkCreate(PaymentTransactionsData);
                
            
            
                
                await NativeAppChecks.bulkCreate(NativeAppChecksData);
                
            
            
                
                await AuditLogs.bulkCreate(AuditLogsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWorkspaceWithOwner(),
                    
                
                    
                        
                        await associateWorkspaceWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateUserSettingWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAssistantProfileWithWorkspace(),
                    
                
                    
                        
                        await associateAssistantProfileWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateConversationWithUser(),
                    
                
                    
                        
                        await associateConversationWithAssistant_profile(),
                    
                
                    
                        
                        await associateConversationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMessageWithConversation(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMessageWithVoice_session(),
                    
                
                    
                        
                        await associateMessageWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateVoiceSessionWithConversation(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateVoiceSessionWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateToolProviderWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateToolWithProvider(),
                    
                
                    
                        
                        await associateToolWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateToolActionWithTool(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateToolActionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateIntegrationWithWorkspace(),
                    
                
                    
                        
                        await associateIntegrationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateIntegrationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMemoryItemWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMemoryItemWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTaskWithUser(),
                    
                
                    
                        
                        await associateTaskWithConversation(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTaskWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTaskStepWithTask(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTaskStepWithTool_action(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTaskStepWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateToolRunWithTask_step(),
                    
                
                    
                        
                        await associateToolRunWithTool(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateToolRunWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateConfirmationWithTask(),
                    
                
                    
                        
                        await associateConfirmationWithTool_run(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateConfirmationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMeetingWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMeetingWithConversation(),
                    
                
                    
                        
                        await associateMeetingWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCalendarEventWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCalendarEventWithIntegration(),
                    
                
                    
                        
                        await associateCalendarEventWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateContactWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContactWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateOutboundMessageWithUser(),
                    
                
                    
                        
                        await associateOutboundMessageWithContact(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOutboundMessageWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTravelRequestWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTravelRequestWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTravelBookingWithTravel_request(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTravelBookingWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePaymentTransactionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePaymentTransactionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateNativeAppCheckWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateNativeAppCheckWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAuditLogWithWorkspace(),
                    
                
                    
                        
                        await associateAuditLogWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAuditLogWithOrganization(),
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('workspaces', null, {});
            
            
            await queryInterface.bulkDelete('user_settings', null, {});
            
            
            await queryInterface.bulkDelete('assistant_profiles', null, {});
            
            
            await queryInterface.bulkDelete('conversations', null, {});
            
            
            await queryInterface.bulkDelete('messages', null, {});
            
            
            await queryInterface.bulkDelete('voice_sessions', null, {});
            
            
            await queryInterface.bulkDelete('tool_providers', null, {});
            
            
            await queryInterface.bulkDelete('tools', null, {});
            
            
            await queryInterface.bulkDelete('tool_actions', null, {});
            
            
            await queryInterface.bulkDelete('integrations', null, {});
            
            
            await queryInterface.bulkDelete('memory_items', null, {});
            
            
            await queryInterface.bulkDelete('tasks', null, {});
            
            
            await queryInterface.bulkDelete('task_steps', null, {});
            
            
            await queryInterface.bulkDelete('tool_runs', null, {});
            
            
            await queryInterface.bulkDelete('confirmations', null, {});
            
            
            await queryInterface.bulkDelete('meetings', null, {});
            
            
            await queryInterface.bulkDelete('calendar_events', null, {});
            
            
            await queryInterface.bulkDelete('contacts', null, {});
            
            
            await queryInterface.bulkDelete('outbound_messages', null, {});
            
            
            await queryInterface.bulkDelete('travel_requests', null, {});
            
            
            await queryInterface.bulkDelete('travel_bookings', null, {});
            
            
            await queryInterface.bulkDelete('payment_transactions', null, {});
            
            
            await queryInterface.bulkDelete('native_app_checks', null, {});
            
            
            await queryInterface.bulkDelete('audit_logs', null, {});
            
        
    },
};