





















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






const Organizations = db.organizations;

const Tenants = db.tenants;

const Departments = db.departments;

const Teams = db.teams;

const Memberships = db.memberships;

const IdentityProviders = db.identity_providers;

const UserIdentities = db.user_identities;

const PolicyRules = db.policy_rules;

const KmsConfigs = db.kms_configs;

const ConferenceTemplates = db.conference_templates;

const Rooms = db.rooms;

const RoomInvitations = db.room_invitations;

const Conferences = db.conferences;

const Participants = db.participants;

const ConferenceNodes = db.conference_nodes;

const SfuAllocations = db.sfu_allocations;

const BreakoutRooms = db.breakout_rooms;

const ChatChannels = db.chat_channels;

const ChatMessages = db.chat_messages;

const Files = db.files;

const RoomFiles = db.room_files;

const Recordings = db.recordings;

const Transcripts = db.transcripts;

const CanvasDocuments = db.canvas_documents;

const CanvasEvents = db.canvas_events;

const LayoutModels = db.layout_models;

const LayoutPreferences = db.layout_preferences;

const FederatedLearningUpdates = db.federated_learning_updates;

const AiCompanionSessions = db.ai_companion_sessions;

const KnowledgeGraphItems = db.knowledge_graph_items;

const ExternalIntegrations = db.external_integrations;

const Tasks = db.tasks;

const Courses = db.courses;

const CourseEnrollments = db.course_enrollments;

const Assignments = db.assignments;

const Submissions = db.submissions;

const Quizzes = db.quizzes;

const QuizResults = db.quiz_results;

const MarketplaceApps = db.marketplace_apps;

const AppInstallations = db.app_installations;

const AppCrashReports = db.app_crash_reports;

const AuditEvents = db.audit_events;

const DataSubjectRequests = db.data_subject_requests;

const ServiceIncidents = db.service_incidents;

const DeploymentChanges = db.deployment_changes;

const FeatureFlags = db.feature_flags;

const QualityReports = db.quality_reports;

const EventStreams = db.event_streams;

const ConferenceEvents = db.conference_events;







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



const TenantsData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "plan_tier": "enterprise",
            
        
    
        
        
            
                "tenant_status": "active",
            
        
    
        
        
            
                "activated_at": new Date(Date.now()),
            
        
    
        
        
            
                "suspended_at": new Date(Date.now()),
            
        
    
        
        
            
                "default_region": "Alan Turing",
            
        
    
        
        
            
                "e2ee_default_enabled": false,
            
        
    
        
        
            
                "education_module_enabled": false,
            
        
    
        
        
            
                "marketplace_enabled": false,
            
        
    
        
        
            
                "data_retention_policy": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "plan_tier": "business",
            
        
    
        
        
            
                "tenant_status": "past_due",
            
        
    
        
        
            
                "activated_at": new Date(Date.now()),
            
        
    
        
        
            
                "suspended_at": new Date(Date.now()),
            
        
    
        
        
            
                "default_region": "Alan Turing",
            
        
    
        
        
            
                "e2ee_default_enabled": true,
            
        
    
        
        
            
                "education_module_enabled": false,
            
        
    
        
        
            
                "marketplace_enabled": false,
            
        
    
        
        
            
                "data_retention_policy": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "plan_tier": "pro",
            
        
    
        
        
            
                "tenant_status": "active",
            
        
    
        
        
            
                "activated_at": new Date(Date.now()),
            
        
    
        
        
            
                "suspended_at": new Date(Date.now()),
            
        
    
        
        
            
                "default_region": "Marie Curie",
            
        
    
        
        
            
                "e2ee_default_enabled": false,
            
        
    
        
        
            
                "education_module_enabled": true,
            
        
    
        
        
            
                "marketplace_enabled": true,
            
        
    
        
        
            
                "data_retention_policy": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



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



const TeamsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "team_status": "archived",
            
        
    
        
        
            
                "always_on_room_enabled": false,
            
        
    
        
        
            
                "always_on_state_retention_days": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "team_status": "archived",
            
        
    
        
        
            
                "always_on_room_enabled": true,
            
        
    
        
        
            
                "always_on_state_retention_days": 5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "team_status": "archived",
            
        
    
        
        
            
                "always_on_room_enabled": false,
            
        
    
        
        
            
                "always_on_state_retention_days": 4,
            
        
    
    },
    
];



const MembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "membership_status": "left",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "moderator",
            
        
    
        
        
            
                "membership_status": "left",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "moderator",
            
        
    
        
        
            
                "membership_status": "active",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "invited_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const IdentityProvidersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider_type": "oidc",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "issuer_url": "Ada Lovelace",
            
        
    
        
        
            
                "client_id": "Marie Curie",
            
        
    
        
        
            
                "sso_metadata_url": "Grace Hopper",
            
        
    
        
        
            
                "jit_provisioning_enabled": false,
            
        
    
        
        
            
                "scim_enabled": true,
            
        
    
        
        
            
                "idp_status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider_type": "oidc",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "issuer_url": "Ada Lovelace",
            
        
    
        
        
            
                "client_id": "Grace Hopper",
            
        
    
        
        
            
                "sso_metadata_url": "Alan Turing",
            
        
    
        
        
            
                "jit_provisioning_enabled": true,
            
        
    
        
        
            
                "scim_enabled": true,
            
        
    
        
        
            
                "idp_status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider_type": "oidc",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "issuer_url": "Alan Turing",
            
        
    
        
        
            
                "client_id": "Grace Hopper",
            
        
    
        
        
            
                "sso_metadata_url": "Marie Curie",
            
        
    
        
        
            
                "jit_provisioning_enabled": false,
            
        
    
        
        
            
                "scim_enabled": true,
            
        
    
        
        
            
                "idp_status": "disabled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const UserIdentitiesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "external_subject": "Marie Curie",
            
        
    
        
        
            
                "external_email": "Grace Hopper",
            
        
    
        
        
            
                "display_name": "Alan Turing",
            
        
    
        
        
            
                "linked_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
            
        
    
        
        
            
                "external_subject": "Ada Lovelace",
            
        
    
        
        
            
                "external_email": "Alan Turing",
            
        
    
        
        
            
                "display_name": "Marie Curie",
            
        
    
        
        
            
                "linked_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
            
        
    
        
        
            
                "external_subject": "Grace Hopper",
            
        
    
        
        
            
                "external_email": "Marie Curie",
            
        
    
        
        
            
                "display_name": "Grace Hopper",
            
        
    
        
        
            
                "linked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PolicyRulesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "policy_scope": "organization",
            
        
    
        
        
            
                "rego_module": "Grace Hopper",
            
        
    
        
        
            
                "policy_status": "disabled",
            
        
    
        
        
            
                "effective_from": new Date(Date.now()),
            
        
    
        
        
            
                "effective_until": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "policy_scope": "conference",
            
        
    
        
        
            
                "rego_module": "Alan Turing",
            
        
    
        
        
            
                "policy_status": "draft",
            
        
    
        
        
            
                "effective_from": new Date(Date.now()),
            
        
    
        
        
            
                "effective_until": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "policy_scope": "conference",
            
        
    
        
        
            
                "rego_module": "Alan Turing",
            
        
    
        
        
            
                "policy_status": "draft",
            
        
    
        
        
            
                "effective_from": new Date(Date.now()),
            
        
    
        
        
            
                "effective_until": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const KmsConfigsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kms_type": "customer_hsm",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "key_uri": "Marie Curie",
            
        
    
        
        
            
                "kms_status": "error",
            
        
    
        
        
            
                "last_rotated_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_rotate_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kms_type": "customer_hsm",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key_uri": "Marie Curie",
            
        
    
        
        
            
                "kms_status": "disabled",
            
        
    
        
        
            
                "last_rotated_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_rotate_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kms_type": "azure_key_vault",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key_uri": "Alan Turing",
            
        
    
        
        
            
                "kms_status": "active",
            
        
    
        
        
            
                "last_rotated_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_rotate_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ConferenceTemplatesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "e2ee_enabled": false,
            
        
    
        
        
            
                "lobby_enabled": true,
            
        
    
        
        
            
                "recording_enabled": false,
            
        
    
        
        
            
                "transcription_enabled": true,
            
        
    
        
        
            
                "canvas_enabled": true,
            
        
    
        
        
            
                "default_layout_mode": "presentation",
            
        
    
        
        
            
                "max_participants": 4,
            
        
    
        
        
            
                "template_status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "e2ee_enabled": true,
            
        
    
        
        
            
                "lobby_enabled": false,
            
        
    
        
        
            
                "recording_enabled": true,
            
        
    
        
        
            
                "transcription_enabled": true,
            
        
    
        
        
            
                "canvas_enabled": false,
            
        
    
        
        
            
                "default_layout_mode": "auto",
            
        
    
        
        
            
                "max_participants": 4,
            
        
    
        
        
            
                "template_status": "archived",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "e2ee_enabled": false,
            
        
    
        
        
            
                "lobby_enabled": true,
            
        
    
        
        
            
                "recording_enabled": true,
            
        
    
        
        
            
                "transcription_enabled": false,
            
        
    
        
        
            
                "canvas_enabled": true,
            
        
    
        
        
            
                "default_layout_mode": "grid",
            
        
    
        
        
            
                "max_participants": 1,
            
        
    
        
        
            
                "template_status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RoomsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "room_key": "Ada Lovelace",
            
        
    
        
        
            
                "room_type": "classroom_course",
            
        
    
        
        
            
                "access_level": "invite_only",
            
        
    
        
        
            
                "e2ee_enabled": true,
            
        
    
        
        
            
                "recording_enabled": false,
            
        
    
        
        
            
                "transcription_enabled": true,
            
        
    
        
        
            
                "canvas_enabled": false,
            
        
    
        
        
            
                "chat_enabled": false,
            
        
    
        
        
            
                "is_persistent": true,
            
        
    
        
        
            
                "last_active_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
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "room_key": "Alan Turing",
            
        
    
        
        
            
                "room_type": "huddle_always_on",
            
        
    
        
        
            
                "access_level": "open",
            
        
    
        
        
            
                "e2ee_enabled": true,
            
        
    
        
        
            
                "recording_enabled": false,
            
        
    
        
        
            
                "transcription_enabled": true,
            
        
    
        
        
            
                "canvas_enabled": true,
            
        
    
        
        
            
                "chat_enabled": true,
            
        
    
        
        
            
                "is_persistent": false,
            
        
    
        
        
            
                "last_active_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
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "room_key": "Ada Lovelace",
            
        
    
        
        
            
                "room_type": "classroom_course",
            
        
    
        
        
            
                "access_level": "lobby_required",
            
        
    
        
        
            
                "e2ee_enabled": true,
            
        
    
        
        
            
                "recording_enabled": false,
            
        
    
        
        
            
                "transcription_enabled": false,
            
        
    
        
        
            
                "canvas_enabled": false,
            
        
    
        
        
            
                "chat_enabled": true,
            
        
    
        
        
            
                "is_persistent": false,
            
        
    
        
        
            
                "last_active_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RoomInvitationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invitee_email": "Grace Hopper",
            
        
    
        
        
            
                "invite_code": "Marie Curie",
            
        
    
        
        
            
                "invite_role": "guest",
            
        
    
        
        
            
                "invitation_status": "revoked",
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invitee_email": "Alan Turing",
            
        
    
        
        
            
                "invite_code": "Ada Lovelace",
            
        
    
        
        
            
                "invite_role": "guest",
            
        
    
        
        
            
                "invitation_status": "accepted",
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invitee_email": "Grace Hopper",
            
        
    
        
        
            
                "invite_code": "Grace Hopper",
            
        
    
        
        
            
                "invite_role": "member",
            
        
    
        
        
            
                "invitation_status": "revoked",
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ConferencesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "conference_key": "Ada Lovelace",
            
        
    
        
        
            
                "conference_type": "scheduled",
            
        
    
        
        
            
                "conference_status": "failed",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "actual_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "actual_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "e2ee_enabled": false,
            
        
    
        
        
            
                "participant_limit": 9,
            
        
    
        
        
            
                "region_preference": "eu",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "conference_key": "Grace Hopper",
            
        
    
        
        
            
                "conference_type": "ad_hoc",
            
        
    
        
        
            
                "conference_status": "failed",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "actual_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "actual_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "e2ee_enabled": true,
            
        
    
        
        
            
                "participant_limit": 7,
            
        
    
        
        
            
                "region_preference": "sa",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "conference_key": "Marie Curie",
            
        
    
        
        
            
                "conference_type": "scheduled",
            
        
    
        
        
            
                "conference_status": "running",
            
        
    
        
        
            
                "scheduled_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "actual_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "actual_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "e2ee_enabled": true,
            
        
    
        
        
            
                "participant_limit": 4,
            
        
    
        
        
            
                "region_preference": "me",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ParticipantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Ada Lovelace",
            
        
    
        
        
            
                "participant_role": "bot",
            
        
    
        
        
            
                "join_status": "kicked",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
        
        
            
                "is_video_enabled": false,
            
        
    
        
        
            
                "is_screen_sharing": false,
            
        
    
        
        
            
                "network_score": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Ada Lovelace",
            
        
    
        
        
            
                "participant_role": "bot",
            
        
    
        
        
            
                "join_status": "joined",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
        
        
            
                "is_video_enabled": true,
            
        
    
        
        
            
                "is_screen_sharing": true,
            
        
    
        
        
            
                "network_score": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Ada Lovelace",
            
        
    
        
        
            
                "participant_role": "bot",
            
        
    
        
        
            
                "join_status": "kicked",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "left_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
        
        
            
                "is_video_enabled": false,
            
        
    
        
        
            
                "is_screen_sharing": true,
            
        
    
        
        
            
                "network_score": 8,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ConferenceNodesData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "node_type": "sfu",
            
        
    
        
        
            
                "region": "sa",
            
        
    
        
        
            
                "zone": "Alan Turing",
            
        
    
        
        
            
                "endpoint": "Ada Lovelace",
            
        
    
        
        
            
                "health_status": "draining",
            
        
    
        
        
            
                "last_heartbeat_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpu_utilization": 8.91,
            
        
    
        
        
            
                "memory_utilization": 6.48,
            
        
    
        
        
            
                "current_conferences": 8,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "node_type": "ai_service",
            
        
    
        
        
            
                "region": "sa",
            
        
    
        
        
            
                "zone": "Alan Turing",
            
        
    
        
        
            
                "endpoint": "Marie Curie",
            
        
    
        
        
            
                "health_status": "healthy",
            
        
    
        
        
            
                "last_heartbeat_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpu_utilization": 4.91,
            
        
    
        
        
            
                "memory_utilization": 7.08,
            
        
    
        
        
            
                "current_conferences": 8,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "node_type": "ai_service",
            
        
    
        
        
            
                "region": "sa",
            
        
    
        
        
            
                "zone": "Ada Lovelace",
            
        
    
        
        
            
                "endpoint": "Grace Hopper",
            
        
    
        
        
            
                "health_status": "draining",
            
        
    
        
        
            
                "last_heartbeat_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpu_utilization": 9.89,
            
        
    
        
        
            
                "memory_utilization": 5.99,
            
        
    
        
        
            
                "current_conferences": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SfuAllocationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "allocation_role": "cascade_parent",
            
        
    
        
        
            
                "allocated_at": new Date(Date.now()),
            
        
    
        
        
            
                "released_at": new Date(Date.now()),
            
        
    
        
        
            
                "allocation_status": "allocated",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "allocation_role": "cascade_parent",
            
        
    
        
        
            
                "allocated_at": new Date(Date.now()),
            
        
    
        
        
            
                "released_at": new Date(Date.now()),
            
        
    
        
        
            
                "allocation_status": "failed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "allocation_role": "primary",
            
        
    
        
        
            
                "allocated_at": new Date(Date.now()),
            
        
    
        
        
            
                "released_at": new Date(Date.now()),
            
        
    
        
        
            
                "allocation_status": "allocated",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BreakoutRoomsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "breakout_key": "Ada Lovelace",
            
        
    
        
        
            
                "breakout_status": "archived",
            
        
    
        
        
            
                "target_participants": 5,
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "breakout_key": "Ada Lovelace",
            
        
    
        
        
            
                "breakout_status": "archived",
            
        
    
        
        
            
                "target_participants": 7,
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "breakout_key": "Alan Turing",
            
        
    
        
        
            
                "breakout_status": "closed",
            
        
    
        
        
            
                "target_participants": 5,
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ChatChannelsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "channel_type": "general",
            
        
    
        
        
            
                "is_moderated": false,
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "channel_type": "direct",
            
        
    
        
        
            
                "is_moderated": true,
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "channel_type": "team",
            
        
    
        
        
            
                "is_moderated": false,
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ChatMessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "Ada Lovelace",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_deleted": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "Alan Turing",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_deleted": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "Marie Curie",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_deleted": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const FilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "file_name": "Marie Curie",
            
        
    
        
        
            
                "file_kind": "video",
            
        
    
        
        
            
                "size_mb": 9.99,
            
        
    
        
        
            
                "mime_type": "Alan Turing",
            
        
    
        
        
            
                "storage_uri": "Grace Hopper",
            
        
    
        
        
            
                "checksum_sha256": "Marie Curie",
            
        
    
        
        
            
                "scan_status": "infected",
            
        
    
        
        
            
                "uploaded_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
            
        
    
        
        
            
                "file_name": "Grace Hopper",
            
        
    
        
        
            
                "file_kind": "archive",
            
        
    
        
        
            
                "size_mb": 6.6,
            
        
    
        
        
            
                "mime_type": "Marie Curie",
            
        
    
        
        
            
                "storage_uri": "Grace Hopper",
            
        
    
        
        
            
                "checksum_sha256": "Marie Curie",
            
        
    
        
        
            
                "scan_status": "infected",
            
        
    
        
        
            
                "uploaded_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
            
        
    
        
        
            
                "file_name": "Marie Curie",
            
        
    
        
        
            
                "file_kind": "document",
            
        
    
        
        
            
                "size_mb": 9.22,
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "storage_uri": "Ada Lovelace",
            
        
    
        
        
            
                "checksum_sha256": "Grace Hopper",
            
        
    
        
        
            
                "scan_status": "clean",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RoomFilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "moderators_only",
            
        
    
        
        
            
                "added_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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "moderators_only",
            
        
    
        
        
            
                "added_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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "room_members",
            
        
    
        
        
            
                "added_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RecordingsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recording_status": "queued",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "duration_minutes": 5.07,
            
        
    
        
        
            
                "storage_uri": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recording_status": "processing",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "duration_minutes": 0.76,
            
        
    
        
        
            
                "storage_uri": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recording_status": "ready",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "duration_minutes": 9.33,
            
        
    
        
        
            
                "storage_uri": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "failure_reason": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TranscriptsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transcript_status": "disabled",
            
        
    
        
        
            
                "language_code": "Marie Curie",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                "opt_in": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transcript_status": "redacted",
            
        
    
        
        
            
                "language_code": "Alan Turing",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                "opt_in": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transcript_status": "generating",
            
        
    
        
        
            
                "language_code": "Ada Lovelace",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                "opt_in": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CanvasDocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "canvas_status": "archived",
            
        
    
        
        
            
                "last_edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "snapshot_uri": "Grace Hopper",
            
        
    
        
        
            
                "offline_enabled": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "canvas_status": "archived",
            
        
    
        
        
            
                "last_edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "snapshot_uri": "Grace Hopper",
            
        
    
        
        
            
                "offline_enabled": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "canvas_status": "archived",
            
        
    
        
        
            
                "last_edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "snapshot_uri": "Marie Curie",
            
        
    
        
        
            
                "offline_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CanvasEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "stroke_delete",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "payload": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "stroke_delete",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "payload": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "stroke_update",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "payload": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LayoutModelsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "model_type": "engagement_insights",
            
        
    
        
        
            
                "deployment_stage": "stable",
            
        
    
        
        
            
                "model_version": "Alan Turing",
            
        
    
        
        
            
                "artifact_uri": "Alan Turing",
            
        
    
        
        
            
                "trained_at": new Date(Date.now()),
            
        
    
        
        
            
                "deployed_at": new Date(Date.now()),
            
        
    
        
        
            
                "rollback_trigger_rate": 4.55,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "model_type": "engagement_insights",
            
        
    
        
        
            
                "deployment_stage": "canary",
            
        
    
        
        
            
                "model_version": "Marie Curie",
            
        
    
        
        
            
                "artifact_uri": "Marie Curie",
            
        
    
        
        
            
                "trained_at": new Date(Date.now()),
            
        
    
        
        
            
                "deployed_at": new Date(Date.now()),
            
        
    
        
        
            
                "rollback_trigger_rate": 3.39,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "model_type": "layout_engine",
            
        
    
        
        
            
                "deployment_stage": "dev",
            
        
    
        
        
            
                "model_version": "Marie Curie",
            
        
    
        
        
            
                "artifact_uri": "Marie Curie",
            
        
    
        
        
            
                "trained_at": new Date(Date.now()),
            
        
    
        
        
            
                "deployed_at": new Date(Date.now()),
            
        
    
        
        
            
                "rollback_trigger_rate": 4.04,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LayoutPreferencesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "preference_key": "show_self_view",
            
        
    
        
        
            
                "value": "Marie Curie",
            
        
    
        
        
            
                "updated_at_local": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "preference_key": "tile_size",
            
        
    
        
        
            
                "value": "Ada Lovelace",
            
        
    
        
        
            
                "updated_at_local": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "preference_key": "captions_enabled",
            
        
    
        
        
            
                "value": "Alan Turing",
            
        
    
        
        
            
                "updated_at_local": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const FederatedLearningUpdatesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "update_status": "validated",
            
        
    
        
        
            
                "received_at": new Date(Date.now()),
            
        
    
        
        
            
                "privacy_budget": 4.45,
            
        
    
        
        
            
                "gradient_blob_uri": "Marie Curie",
            
        
    
        
        
            
                "validation_notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "update_status": "received",
            
        
    
        
        
            
                "received_at": new Date(Date.now()),
            
        
    
        
        
            
                "privacy_budget": 5.5,
            
        
    
        
        
            
                "gradient_blob_uri": "Marie Curie",
            
        
    
        
        
            
                "validation_notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "update_status": "received",
            
        
    
        
        
            
                "received_at": new Date(Date.now()),
            
        
    
        
        
            
                "privacy_budget": 5.74,
            
        
    
        
        
            
                "gradient_blob_uri": "Grace Hopper",
            
        
    
        
        
            
                "validation_notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AiCompanionSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "companion_status": "active",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_actions_enabled": false,
            
        
    
        
        
            
                "system_prompt_version": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "companion_status": "failed",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_actions_enabled": false,
            
        
    
        
        
            
                "system_prompt_version": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "companion_status": "active",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_actions_enabled": false,
            
        
    
        
        
            
                "system_prompt_version": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const KnowledgeGraphItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_type": "question",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "importance": "medium",
            
        
    
        
        
            
                "item_status": "in_progress",
            
        
    
        
        
            
                "captured_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_type": "action_item",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
        
        
            
                "importance": "high",
            
        
    
        
        
            
                "item_status": "dismissed",
            
        
    
        
        
            
                "captured_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_type": "fact",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "importance": "high",
            
        
    
        
        
            
                "item_status": "done",
            
        
    
        
        
            
                "captured_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ExternalIntegrationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "integration_type": "webhook",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "integration_status": "error",
            
        
    
        
        
            
                "auth_reference": "Grace Hopper",
            
        
    
        
        
            
                "auto_create_tasks_enabled": true,
            
        
    
        
        
            
                "auto_schedule_followups_enabled": true,
            
        
    
        
        
            
                "last_sync_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "integration_type": "asana",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "integration_status": "error",
            
        
    
        
        
            
                "auth_reference": "Alan Turing",
            
        
    
        
        
            
                "auto_create_tasks_enabled": false,
            
        
    
        
        
            
                "auto_schedule_followups_enabled": false,
            
        
    
        
        
            
                "last_sync_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "integration_type": "jira",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "integration_status": "error",
            
        
    
        
        
            
                "auth_reference": "Alan Turing",
            
        
    
        
        
            
                "auto_create_tasks_enabled": false,
            
        
    
        
        
            
                "auto_schedule_followups_enabled": false,
            
        
    
        
        
            
                "last_sync_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TasksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "external_task_key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "task_status": "closed",
            
        
    
        
        
            
                "created_at_remote": new Date(Date.now()),
            
        
    
        
        
            
                "failure_reason": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "external_task_key": "Alan Turing",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "task_status": "closed",
            
        
    
        
        
            
                "created_at_remote": new Date(Date.now()),
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "external_task_key": "Alan Turing",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "task_status": "failed",
            
        
    
        
        
            
                "created_at_remote": new Date(Date.now()),
            
        
    
        
        
            
                "failure_reason": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CoursesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "course_code": "Alan Turing",
            
        
    
        
        
            
                "course_status": "draft",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "course_code": "Ada Lovelace",
            
        
    
        
        
            
                "course_status": "archived",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "course_code": "Alan Turing",
            
        
    
        
        
            
                "course_status": "archived",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CourseEnrollmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "enrollment_role": "assistant",
            
        
    
        
        
            
                "enrollment_status": "active",
            
        
    
        
        
            
                "enrolled_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
            
        
    
        
        
            
                "enrollment_role": "teacher",
            
        
    
        
        
            
                "enrollment_status": "completed",
            
        
    
        
        
            
                "enrolled_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
            
        
    
        
        
            
                "enrollment_role": "student",
            
        
    
        
        
            
                "enrollment_status": "invited",
            
        
    
        
        
            
                "enrolled_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AssignmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "assignment_status": "published",
            
        
    
        
        
            
                "max_score": 8.69,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "instructions": "Alan Turing",
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "assignment_status": "draft",
            
        
    
        
        
            
                "max_score": 4.97,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "instructions": "Ada Lovelace",
            
        
    
        
        
            
                "assigned_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "assignment_status": "closed",
            
        
    
        
        
            
                "max_score": 3.67,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SubmissionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submission_status": "graded",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "student_note": "Ada Lovelace",
            
        
    
        
        
            
                "score": 7.2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submission_status": "submitted",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "student_note": "Ada Lovelace",
            
        
    
        
        
            
                "score": 9.49,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submission_status": "graded",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "student_note": "Grace Hopper",
            
        
    
        
        
            
                "score": 3.41,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QuizzesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "quiz_type": "quiz",
            
        
    
        
        
            
                "quiz_status": "archived",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_grade_enabled": true,
            
        
    
        
        
            
                "h5p_reference": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "quiz_type": "survey",
            
        
    
        
        
            
                "quiz_status": "closed",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_grade_enabled": true,
            
        
    
        
        
            
                "h5p_reference": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "quiz_type": "quiz",
            
        
    
        
        
            
                "quiz_status": "closed",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "closed_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_grade_enabled": true,
            
        
    
        
        
            
                "h5p_reference": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QuizResultsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "result_status": "graded",
            
        
    
        
        
            
                "score": 7.43,
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "answers_payload": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "result_status": "submitted",
            
        
    
        
        
            
                "score": 7.83,
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "answers_payload": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "result_status": "graded",
            
        
    
        
        
            
                "score": 3.83,
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "answers_payload": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MarketplaceAppsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "app_category": "fun",
            
        
    
        
        
            
                "runtime": "wasmtime",
            
        
    
        
        
            
                "version": "Ada Lovelace",
            
        
    
        
        
            
                "wasm_artifact_uri": "Grace Hopper",
            
        
    
        
        
            
                "reliability_score": 3.91,
            
        
    
        
        
            
                "vetting_status": "approved",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "app_category": "devtools",
            
        
    
        
        
            
                "runtime": "wasmedge",
            
        
    
        
        
            
                "version": "Ada Lovelace",
            
        
    
        
        
            
                "wasm_artifact_uri": "Alan Turing",
            
        
    
        
        
            
                "reliability_score": 9.55,
            
        
    
        
        
            
                "vetting_status": "disabled_admin",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "app_category": "devtools",
            
        
    
        
        
            
                "runtime": "wasmtime",
            
        
    
        
        
            
                "version": "Alan Turing",
            
        
    
        
        
            
                "wasm_artifact_uri": "Alan Turing",
            
        
    
        
        
            
                "reliability_score": 5.65,
            
        
    
        
        
            
                "vetting_status": "pending",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AppInstallationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "installation_status": "installed",
            
        
    
        
        
            
                "installed_at": new Date(Date.now()),
            
        
    
        
        
            
                "disabled_at": new Date(Date.now()),
            
        
    
        
        
            
                "disable_reason": "Ada Lovelace",
            
        
    
        
        
            
                "auto_suggest_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "installation_status": "paused",
            
        
    
        
        
            
                "installed_at": new Date(Date.now()),
            
        
    
        
        
            
                "disabled_at": new Date(Date.now()),
            
        
    
        
        
            
                "disable_reason": "Ada Lovelace",
            
        
    
        
        
            
                "auto_suggest_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "installation_status": "disabled",
            
        
    
        
        
            
                "installed_at": new Date(Date.now()),
            
        
    
        
        
            
                "disabled_at": new Date(Date.now()),
            
        
    
        
        
            
                "disable_reason": "Grace Hopper",
            
        
    
        
        
            
                "auto_suggest_enabled": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AppCrashReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "severity": "low",
            
        
    
        
        
            
                "client_platform": "Alan Turing",
            
        
    
        
        
            
                "client_version": "Alan Turing",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "stacktrace": "Marie Curie",
            
        
    
        
        
            
                "context_payload": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "severity": "critical",
            
        
    
        
        
            
                "client_platform": "Ada Lovelace",
            
        
    
        
        
            
                "client_version": "Alan Turing",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "stacktrace": "Grace Hopper",
            
        
    
        
        
            
                "context_payload": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "severity": "low",
            
        
    
        
        
            
                "client_platform": "Ada Lovelace",
            
        
    
        
        
            
                "client_version": "Ada Lovelace",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "stacktrace": "Marie Curie",
            
        
    
        
        
            
                "context_payload": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AuditEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_category": "policy",
            
        
    
        
        
            
                "action": "Alan Turing",
            
        
    
        
        
            
                "target_type": "Grace Hopper",
            
        
    
        
        
            
                "target_key": "Marie Curie",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "legal_hold": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_category": "policy",
            
        
    
        
        
            
                "action": "Ada Lovelace",
            
        
    
        
        
            
                "target_type": "Ada Lovelace",
            
        
    
        
        
            
                "target_key": "Grace Hopper",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Alan Turing",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "legal_hold": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_category": "policy",
            
        
    
        
        
            
                "action": "Ada Lovelace",
            
        
    
        
        
            
                "target_type": "Ada Lovelace",
            
        
    
        
        
            
                "target_key": "Ada Lovelace",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Grace Hopper",
            
        
    
        
        
            
                "user_agent": "Marie Curie",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "legal_hold": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DataSubjectRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "restrict_processing",
            
        
    
        
        
            
                "request_status": "in_progress",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "erase",
            
        
    
        
        
            
                "request_status": "received",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_type": "access",
            
        
    
        
        
            
                "request_status": "rejected",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ServiceIncidentsData = [
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "severity": "sev3",
            
        
    
        
        
            
                "incident_status": "resolved",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                "rca": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "severity": "sev4",
            
        
    
        
        
            
                "incident_status": "investigating",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "summary": "Ada Lovelace",
            
        
    
        
        
            
                "rca": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "severity": "sev4",
            
        
    
        
        
            
                "incident_status": "resolved",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "rca": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DeploymentChangesData = [
    
    {
    
        
        
            
                "service_name": "Ada Lovelace",
            
        
    
        
        
            
                "git_ref": "Alan Turing",
            
        
    
        
        
            
                "change_type": "feature_flag",
            
        
    
        
        
            
                "rollout_stage": "stable",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "diff_summary": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "service_name": "Grace Hopper",
            
        
    
        
        
            
                "git_ref": "Ada Lovelace",
            
        
    
        
        
            
                "change_type": "config_change",
            
        
    
        
        
            
                "rollout_stage": "aborted",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "diff_summary": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "service_name": "Ada Lovelace",
            
        
    
        
        
            
                "git_ref": "Ada Lovelace",
            
        
    
        
        
            
                "change_type": "rollback",
            
        
    
        
        
            
                "rollout_stage": "aborted",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "diff_summary": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const FeatureFlagsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "enabled": false,
            
        
    
        
        
            
                "target_scope": "tenant",
            
        
    
        
        
            
                "rollout_percentage": 4.05,
            
        
    
        
        
            
                "enabled_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "enabled": true,
            
        
    
        
        
            
                "target_scope": "organization",
            
        
    
        
        
            
                "rollout_percentage": 8.11,
            
        
    
        
        
            
                "enabled_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "enabled": false,
            
        
    
        
        
            
                "target_scope": "team",
            
        
    
        
        
            
                "rollout_percentage": 5.72,
            
        
    
        
        
            
                "enabled_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const QualityReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "packet_loss_percent": 4.1,
            
        
    
        
        
            
                "rtt_ms": 1,
            
        
    
        
        
            
                "jitter_ms": 1.26,
            
        
    
        
        
            
                "send_bitrate_kbps": 5.53,
            
        
    
        
        
            
                "recv_bitrate_kbps": 9.67,
            
        
    
        
        
            
                "media_quality": "bad",
            
        
    
        
        
            
                "raw_stats": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "packet_loss_percent": 3.97,
            
        
    
        
        
            
                "rtt_ms": 9,
            
        
    
        
        
            
                "jitter_ms": 4.44,
            
        
    
        
        
            
                "send_bitrate_kbps": 7.18,
            
        
    
        
        
            
                "recv_bitrate_kbps": 6.43,
            
        
    
        
        
            
                "media_quality": "good",
            
        
    
        
        
            
                "raw_stats": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "packet_loss_percent": 5.62,
            
        
    
        
        
            
                "rtt_ms": 6,
            
        
    
        
        
            
                "jitter_ms": 2.15,
            
        
    
        
        
            
                "send_bitrate_kbps": 2.99,
            
        
    
        
        
            
                "recv_bitrate_kbps": 5.22,
            
        
    
        
        
            
                "media_quality": "fair",
            
        
    
        
        
            
                "raw_stats": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const EventStreamsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "stream_type": "nats_subject",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "subject_or_topic": "Alan Turing",
            
        
    
        
        
            
                "retention_policy": "interest",
            
        
    
        
        
            
                "retention_days": 6,
            
        
    
        
        
            
                "stream_status": "paused",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "stream_type": "nats_subject",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "subject_or_topic": "Ada Lovelace",
            
        
    
        
        
            
                "retention_policy": "compact",
            
        
    
        
        
            
                "retention_days": 7,
            
        
    
        
        
            
                "stream_status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "stream_type": "kafka_topic",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "subject_or_topic": "Grace Hopper",
            
        
    
        
        
            
                "retention_policy": "compact",
            
        
    
        
        
            
                "retention_days": 8,
            
        
    
        
        
            
                "stream_status": "paused",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ConferenceEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_kind": "chat",
            
        
    
        
        
            
                "event_key": "Grace Hopper",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "payload": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_kind": "chat",
            
        
    
        
        
            
                "event_key": "Alan Turing",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "payload": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_kind": "system",
            
        
    
        
        
            
                "event_key": "Ada Lovelace",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "payload": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];




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

    
    
    
    
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTenantWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tenant0 = await Tenants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Tenant0?.setOrganization)
                {
                    await
                    Tenant0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tenant1 = await Tenants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Tenant1?.setOrganization)
                {
                    await
                    Tenant1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tenant2 = await Tenants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Tenant2?.setOrganization)
                {
                    await
                    Tenant2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDepartmentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Department0 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Department0?.setOrganization)
                {
                    await
                    Department0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Department1 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Department1?.setOrganization)
                {
                    await
                    Department1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Department2 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Department2?.setOrganization)
                {
                    await
                    Department2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTeamWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team0 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Team0?.setOrganization)
                {
                    await
                    Team0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team1 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Team1?.setOrganization)
                {
                    await
                    Team1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Team2 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Team2?.setOrganization)
                {
                    await
                    Team2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    
        
            
            async function associateTeamWithDepartment() {
            
                const relatedDepartment0 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Team0 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Team0?.setDepartment)
                {
                    await
                    Team0.
                    setDepartment(relatedDepartment0);
                }
            
                const relatedDepartment1 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Team1 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Team1?.setDepartment)
                {
                    await
                    Team1.
                    setDepartment(relatedDepartment1);
                }
            
                const relatedDepartment2 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Team2 = await Teams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Team2?.setDepartment)
                {
                    await
                    Team2.
                    setDepartment(relatedDepartment2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Membership0 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Membership0?.setUser)
                {
                    await
                    Membership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Membership1 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Membership1?.setUser)
                {
                    await
                    Membership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Membership2 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Membership2?.setUser)
                {
                    await
                    Membership2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
            
            async function associateMembershipWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Membership0 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Membership0?.setTeam)
                {
                    await
                    Membership0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Membership1 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Membership1?.setTeam)
                {
                    await
                    Membership1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Membership2 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Membership2?.setTeam)
                {
                    await
                    Membership2.
                    setTeam(relatedTeam2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMembershipWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Membership0 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Membership0?.setOrganization)
                {
                    await
                    Membership0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Membership1 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Membership1?.setOrganization)
                {
                    await
                    Membership1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Membership2 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Membership2?.setOrganization)
                {
                    await
                    Membership2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateIdentityProviderWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const IdentityProvider0 = await IdentityProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (IdentityProvider0?.setTenant)
                {
                    await
                    IdentityProvider0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const IdentityProvider1 = await IdentityProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (IdentityProvider1?.setTenant)
                {
                    await
                    IdentityProvider1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const IdentityProvider2 = await IdentityProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (IdentityProvider2?.setTenant)
                {
                    await
                    IdentityProvider2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateIdentityProviderWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdentityProvider0 = await IdentityProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (IdentityProvider0?.setOrganization)
                {
                    await
                    IdentityProvider0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdentityProvider1 = await IdentityProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (IdentityProvider1?.setOrganization)
                {
                    await
                    IdentityProvider1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdentityProvider2 = await IdentityProviders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (IdentityProvider2?.setOrganization)
                {
                    await
                    IdentityProvider2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateUserIdentityWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserIdentity0 = await UserIdentities.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserIdentity0?.setUser)
                {
                    await
                    UserIdentity0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserIdentity1 = await UserIdentities.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserIdentity1?.setUser)
                {
                    await
                    UserIdentity1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserIdentity2 = await UserIdentities.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserIdentity2?.setUser)
                {
                    await
                    UserIdentity2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
            
            async function associateUserIdentityWithIdentity_provider() {
            
                const relatedIdentity_provider0 = await IdentityProviders.findOne({
                    offset: Math.floor(Math.random() * (await IdentityProviders.count())),
                });
                const UserIdentity0 = await UserIdentities.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserIdentity0?.setIdentity_provider)
                {
                    await
                    UserIdentity0.
                    setIdentity_provider(relatedIdentity_provider0);
                }
            
                const relatedIdentity_provider1 = await IdentityProviders.findOne({
                    offset: Math.floor(Math.random() * (await IdentityProviders.count())),
                });
                const UserIdentity1 = await UserIdentities.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserIdentity1?.setIdentity_provider)
                {
                    await
                    UserIdentity1.
                    setIdentity_provider(relatedIdentity_provider1);
                }
            
                const relatedIdentity_provider2 = await IdentityProviders.findOne({
                    offset: Math.floor(Math.random() * (await IdentityProviders.count())),
                });
                const UserIdentity2 = await UserIdentities.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserIdentity2?.setIdentity_provider)
                {
                    await
                    UserIdentity2.
                    setIdentity_provider(relatedIdentity_provider2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateUserIdentityWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserIdentity0 = await UserIdentities.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserIdentity0?.setOrganization)
                {
                    await
                    UserIdentity0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserIdentity1 = await UserIdentities.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserIdentity1?.setOrganization)
                {
                    await
                    UserIdentity1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserIdentity2 = await UserIdentities.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserIdentity2?.setOrganization)
                {
                    await
                    UserIdentity2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePolicyRuleWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const PolicyRule0 = await PolicyRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PolicyRule0?.setTenant)
                {
                    await
                    PolicyRule0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const PolicyRule1 = await PolicyRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PolicyRule1?.setTenant)
                {
                    await
                    PolicyRule1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const PolicyRule2 = await PolicyRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PolicyRule2?.setTenant)
                {
                    await
                    PolicyRule2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePolicyRuleWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PolicyRule0 = await PolicyRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PolicyRule0?.setOrganization)
                {
                    await
                    PolicyRule0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PolicyRule1 = await PolicyRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PolicyRule1?.setOrganization)
                {
                    await
                    PolicyRule1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PolicyRule2 = await PolicyRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PolicyRule2?.setOrganization)
                {
                    await
                    PolicyRule2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateKmsConfigWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const KmsConfig0 = await KmsConfigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KmsConfig0?.setTenant)
                {
                    await
                    KmsConfig0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const KmsConfig1 = await KmsConfigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KmsConfig1?.setTenant)
                {
                    await
                    KmsConfig1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const KmsConfig2 = await KmsConfigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KmsConfig2?.setTenant)
                {
                    await
                    KmsConfig2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateKmsConfigWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KmsConfig0 = await KmsConfigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KmsConfig0?.setOrganization)
                {
                    await
                    KmsConfig0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KmsConfig1 = await KmsConfigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KmsConfig1?.setOrganization)
                {
                    await
                    KmsConfig1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KmsConfig2 = await KmsConfigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KmsConfig2?.setOrganization)
                {
                    await
                    KmsConfig2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateConferenceTemplateWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ConferenceTemplate0 = await ConferenceTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConferenceTemplate0?.setTenant)
                {
                    await
                    ConferenceTemplate0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ConferenceTemplate1 = await ConferenceTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConferenceTemplate1?.setTenant)
                {
                    await
                    ConferenceTemplate1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ConferenceTemplate2 = await ConferenceTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConferenceTemplate2?.setTenant)
                {
                    await
                    ConferenceTemplate2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
            
            async function associateConferenceTemplateWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ConferenceTemplate0 = await ConferenceTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConferenceTemplate0?.setTeam)
                {
                    await
                    ConferenceTemplate0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ConferenceTemplate1 = await ConferenceTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConferenceTemplate1?.setTeam)
                {
                    await
                    ConferenceTemplate1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ConferenceTemplate2 = await ConferenceTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConferenceTemplate2?.setTeam)
                {
                    await
                    ConferenceTemplate2.
                    setTeam(relatedTeam2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateConferenceTemplateWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ConferenceTemplate0 = await ConferenceTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConferenceTemplate0?.setOrganization)
                {
                    await
                    ConferenceTemplate0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ConferenceTemplate1 = await ConferenceTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConferenceTemplate1?.setOrganization)
                {
                    await
                    ConferenceTemplate1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ConferenceTemplate2 = await ConferenceTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConferenceTemplate2?.setOrganization)
                {
                    await
                    ConferenceTemplate2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRoomWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Room0 = await Rooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Room0?.setTeam)
                {
                    await
                    Room0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Room1 = await Rooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Room1?.setTeam)
                {
                    await
                    Room1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Room2 = await Rooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Room2?.setTeam)
                {
                    await
                    Room2.
                    setTeam(relatedTeam2);
                }
            
        }
        
    
        
            
            async function associateRoomWithConference_template() {
            
                const relatedConference_template0 = await ConferenceTemplates.findOne({
                    offset: Math.floor(Math.random() * (await ConferenceTemplates.count())),
                });
                const Room0 = await Rooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Room0?.setConference_template)
                {
                    await
                    Room0.
                    setConference_template(relatedConference_template0);
                }
            
                const relatedConference_template1 = await ConferenceTemplates.findOne({
                    offset: Math.floor(Math.random() * (await ConferenceTemplates.count())),
                });
                const Room1 = await Rooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Room1?.setConference_template)
                {
                    await
                    Room1.
                    setConference_template(relatedConference_template1);
                }
            
                const relatedConference_template2 = await ConferenceTemplates.findOne({
                    offset: Math.floor(Math.random() * (await ConferenceTemplates.count())),
                });
                const Room2 = await Rooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Room2?.setConference_template)
                {
                    await
                    Room2.
                    setConference_template(relatedConference_template2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRoomWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Room0 = await Rooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Room0?.setOrganization)
                {
                    await
                    Room0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Room1 = await Rooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Room1?.setOrganization)
                {
                    await
                    Room1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Room2 = await Rooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Room2?.setOrganization)
                {
                    await
                    Room2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRoomInvitationWithRoom() {
            
                const relatedRoom0 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const RoomInvitation0 = await RoomInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoomInvitation0?.setRoom)
                {
                    await
                    RoomInvitation0.
                    setRoom(relatedRoom0);
                }
            
                const relatedRoom1 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const RoomInvitation1 = await RoomInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoomInvitation1?.setRoom)
                {
                    await
                    RoomInvitation1.
                    setRoom(relatedRoom1);
                }
            
                const relatedRoom2 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const RoomInvitation2 = await RoomInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoomInvitation2?.setRoom)
                {
                    await
                    RoomInvitation2.
                    setRoom(relatedRoom2);
                }
            
        }
        
    
        
            
            async function associateRoomInvitationWithInvited_by() {
            
                const relatedInvited_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoomInvitation0 = await RoomInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoomInvitation0?.setInvited_by)
                {
                    await
                    RoomInvitation0.
                    setInvited_by(relatedInvited_by0);
                }
            
                const relatedInvited_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoomInvitation1 = await RoomInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoomInvitation1?.setInvited_by)
                {
                    await
                    RoomInvitation1.
                    setInvited_by(relatedInvited_by1);
                }
            
                const relatedInvited_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoomInvitation2 = await RoomInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoomInvitation2?.setInvited_by)
                {
                    await
                    RoomInvitation2.
                    setInvited_by(relatedInvited_by2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRoomInvitationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoomInvitation0 = await RoomInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoomInvitation0?.setOrganization)
                {
                    await
                    RoomInvitation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoomInvitation1 = await RoomInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoomInvitation1?.setOrganization)
                {
                    await
                    RoomInvitation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoomInvitation2 = await RoomInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoomInvitation2?.setOrganization)
                {
                    await
                    RoomInvitation2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateConferenceWithRoom() {
            
                const relatedRoom0 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const Conference0 = await Conferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Conference0?.setRoom)
                {
                    await
                    Conference0.
                    setRoom(relatedRoom0);
                }
            
                const relatedRoom1 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const Conference1 = await Conferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Conference1?.setRoom)
                {
                    await
                    Conference1.
                    setRoom(relatedRoom1);
                }
            
                const relatedRoom2 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const Conference2 = await Conferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Conference2?.setRoom)
                {
                    await
                    Conference2.
                    setRoom(relatedRoom2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateConferenceWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Conference0 = await Conferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Conference0?.setOrganization)
                {
                    await
                    Conference0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Conference1 = await Conferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Conference1?.setOrganization)
                {
                    await
                    Conference1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Conference2 = await Conferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Conference2?.setOrganization)
                {
                    await
                    Conference2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateParticipantWithConference() {
            
                const relatedConference0 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const Participant0 = await Participants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Participant0?.setConference)
                {
                    await
                    Participant0.
                    setConference(relatedConference0);
                }
            
                const relatedConference1 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const Participant1 = await Participants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Participant1?.setConference)
                {
                    await
                    Participant1.
                    setConference(relatedConference1);
                }
            
                const relatedConference2 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const Participant2 = await Participants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Participant2?.setConference)
                {
                    await
                    Participant2.
                    setConference(relatedConference2);
                }
            
        }
        
    
        
            
            async function associateParticipantWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Participant0 = await Participants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Participant0?.setUser)
                {
                    await
                    Participant0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Participant1 = await Participants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Participant1?.setUser)
                {
                    await
                    Participant1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Participant2 = await Participants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Participant2?.setUser)
                {
                    await
                    Participant2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateParticipantWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Participant0 = await Participants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Participant0?.setOrganization)
                {
                    await
                    Participant0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Participant1 = await Participants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Participant1?.setOrganization)
                {
                    await
                    Participant1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Participant2 = await Participants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Participant2?.setOrganization)
                {
                    await
                    Participant2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateConferenceNodeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ConferenceNode0 = await ConferenceNodes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConferenceNode0?.setOrganization)
                {
                    await
                    ConferenceNode0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ConferenceNode1 = await ConferenceNodes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConferenceNode1?.setOrganization)
                {
                    await
                    ConferenceNode1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ConferenceNode2 = await ConferenceNodes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConferenceNode2?.setOrganization)
                {
                    await
                    ConferenceNode2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSfuAllocationWithConference() {
            
                const relatedConference0 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const SfuAllocation0 = await SfuAllocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SfuAllocation0?.setConference)
                {
                    await
                    SfuAllocation0.
                    setConference(relatedConference0);
                }
            
                const relatedConference1 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const SfuAllocation1 = await SfuAllocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SfuAllocation1?.setConference)
                {
                    await
                    SfuAllocation1.
                    setConference(relatedConference1);
                }
            
                const relatedConference2 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const SfuAllocation2 = await SfuAllocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SfuAllocation2?.setConference)
                {
                    await
                    SfuAllocation2.
                    setConference(relatedConference2);
                }
            
        }
        
    
        
            
            async function associateSfuAllocationWithConference_node() {
            
                const relatedConference_node0 = await ConferenceNodes.findOne({
                    offset: Math.floor(Math.random() * (await ConferenceNodes.count())),
                });
                const SfuAllocation0 = await SfuAllocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SfuAllocation0?.setConference_node)
                {
                    await
                    SfuAllocation0.
                    setConference_node(relatedConference_node0);
                }
            
                const relatedConference_node1 = await ConferenceNodes.findOne({
                    offset: Math.floor(Math.random() * (await ConferenceNodes.count())),
                });
                const SfuAllocation1 = await SfuAllocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SfuAllocation1?.setConference_node)
                {
                    await
                    SfuAllocation1.
                    setConference_node(relatedConference_node1);
                }
            
                const relatedConference_node2 = await ConferenceNodes.findOne({
                    offset: Math.floor(Math.random() * (await ConferenceNodes.count())),
                });
                const SfuAllocation2 = await SfuAllocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SfuAllocation2?.setConference_node)
                {
                    await
                    SfuAllocation2.
                    setConference_node(relatedConference_node2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSfuAllocationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SfuAllocation0 = await SfuAllocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SfuAllocation0?.setOrganization)
                {
                    await
                    SfuAllocation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SfuAllocation1 = await SfuAllocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SfuAllocation1?.setOrganization)
                {
                    await
                    SfuAllocation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SfuAllocation2 = await SfuAllocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SfuAllocation2?.setOrganization)
                {
                    await
                    SfuAllocation2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateBreakoutRoomWithConference() {
            
                const relatedConference0 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const BreakoutRoom0 = await BreakoutRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BreakoutRoom0?.setConference)
                {
                    await
                    BreakoutRoom0.
                    setConference(relatedConference0);
                }
            
                const relatedConference1 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const BreakoutRoom1 = await BreakoutRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BreakoutRoom1?.setConference)
                {
                    await
                    BreakoutRoom1.
                    setConference(relatedConference1);
                }
            
                const relatedConference2 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const BreakoutRoom2 = await BreakoutRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BreakoutRoom2?.setConference)
                {
                    await
                    BreakoutRoom2.
                    setConference(relatedConference2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBreakoutRoomWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BreakoutRoom0 = await BreakoutRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BreakoutRoom0?.setOrganization)
                {
                    await
                    BreakoutRoom0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BreakoutRoom1 = await BreakoutRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BreakoutRoom1?.setOrganization)
                {
                    await
                    BreakoutRoom1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BreakoutRoom2 = await BreakoutRooms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BreakoutRoom2?.setOrganization)
                {
                    await
                    BreakoutRoom2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateChatChannelWithConference() {
            
                const relatedConference0 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const ChatChannel0 = await ChatChannels.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatChannel0?.setConference)
                {
                    await
                    ChatChannel0.
                    setConference(relatedConference0);
                }
            
                const relatedConference1 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const ChatChannel1 = await ChatChannels.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatChannel1?.setConference)
                {
                    await
                    ChatChannel1.
                    setConference(relatedConference1);
                }
            
                const relatedConference2 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const ChatChannel2 = await ChatChannels.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatChannel2?.setConference)
                {
                    await
                    ChatChannel2.
                    setConference(relatedConference2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateChatChannelWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatChannel0 = await ChatChannels.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatChannel0?.setOrganization)
                {
                    await
                    ChatChannel0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatChannel1 = await ChatChannels.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatChannel1?.setOrganization)
                {
                    await
                    ChatChannel1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatChannel2 = await ChatChannels.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatChannel2?.setOrganization)
                {
                    await
                    ChatChannel2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateChatMessageWithChat_channel() {
            
                const relatedChat_channel0 = await ChatChannels.findOne({
                    offset: Math.floor(Math.random() * (await ChatChannels.count())),
                });
                const ChatMessage0 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatMessage0?.setChat_channel)
                {
                    await
                    ChatMessage0.
                    setChat_channel(relatedChat_channel0);
                }
            
                const relatedChat_channel1 = await ChatChannels.findOne({
                    offset: Math.floor(Math.random() * (await ChatChannels.count())),
                });
                const ChatMessage1 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatMessage1?.setChat_channel)
                {
                    await
                    ChatMessage1.
                    setChat_channel(relatedChat_channel1);
                }
            
                const relatedChat_channel2 = await ChatChannels.findOne({
                    offset: Math.floor(Math.random() * (await ChatChannels.count())),
                });
                const ChatMessage2 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatMessage2?.setChat_channel)
                {
                    await
                    ChatMessage2.
                    setChat_channel(relatedChat_channel2);
                }
            
        }
        
    
        
            
            async function associateChatMessageWithSender() {
            
                const relatedSender0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage0 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatMessage0?.setSender)
                {
                    await
                    ChatMessage0.
                    setSender(relatedSender0);
                }
            
                const relatedSender1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage1 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatMessage1?.setSender)
                {
                    await
                    ChatMessage1.
                    setSender(relatedSender1);
                }
            
                const relatedSender2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage2 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatMessage2?.setSender)
                {
                    await
                    ChatMessage2.
                    setSender(relatedSender2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateChatMessageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatMessage0 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatMessage0?.setOrganization)
                {
                    await
                    ChatMessage0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatMessage1 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatMessage1?.setOrganization)
                {
                    await
                    ChatMessage1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ChatMessage2 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatMessage2?.setOrganization)
                {
                    await
                    ChatMessage2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateFileWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const File0 = await Files.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (File0?.setTenant)
                {
                    await
                    File0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const File1 = await Files.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (File1?.setTenant)
                {
                    await
                    File1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const File2 = await Files.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (File2?.setTenant)
                {
                    await
                    File2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
            
            async function associateFileWithUploaded_by() {
            
                const relatedUploaded_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const File0 = await Files.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (File0?.setUploaded_by)
                {
                    await
                    File0.
                    setUploaded_by(relatedUploaded_by0);
                }
            
                const relatedUploaded_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const File1 = await Files.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (File1?.setUploaded_by)
                {
                    await
                    File1.
                    setUploaded_by(relatedUploaded_by1);
                }
            
                const relatedUploaded_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const File2 = await Files.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (File2?.setUploaded_by)
                {
                    await
                    File2.
                    setUploaded_by(relatedUploaded_by2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFileWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const File0 = await Files.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (File0?.setOrganization)
                {
                    await
                    File0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const File1 = await Files.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (File1?.setOrganization)
                {
                    await
                    File1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const File2 = await Files.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (File2?.setOrganization)
                {
                    await
                    File2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRoomFileWithRoom() {
            
                const relatedRoom0 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const RoomFile0 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoomFile0?.setRoom)
                {
                    await
                    RoomFile0.
                    setRoom(relatedRoom0);
                }
            
                const relatedRoom1 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const RoomFile1 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoomFile1?.setRoom)
                {
                    await
                    RoomFile1.
                    setRoom(relatedRoom1);
                }
            
                const relatedRoom2 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const RoomFile2 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoomFile2?.setRoom)
                {
                    await
                    RoomFile2.
                    setRoom(relatedRoom2);
                }
            
        }
        
    
        
            
            async function associateRoomFileWithFile() {
            
                const relatedFile0 = await Files.findOne({
                    offset: Math.floor(Math.random() * (await Files.count())),
                });
                const RoomFile0 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoomFile0?.setFile)
                {
                    await
                    RoomFile0.
                    setFile(relatedFile0);
                }
            
                const relatedFile1 = await Files.findOne({
                    offset: Math.floor(Math.random() * (await Files.count())),
                });
                const RoomFile1 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoomFile1?.setFile)
                {
                    await
                    RoomFile1.
                    setFile(relatedFile1);
                }
            
                const relatedFile2 = await Files.findOne({
                    offset: Math.floor(Math.random() * (await Files.count())),
                });
                const RoomFile2 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoomFile2?.setFile)
                {
                    await
                    RoomFile2.
                    setFile(relatedFile2);
                }
            
        }
        
    
        
            
            async function associateRoomFileWithAdded_by() {
            
                const relatedAdded_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoomFile0 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoomFile0?.setAdded_by)
                {
                    await
                    RoomFile0.
                    setAdded_by(relatedAdded_by0);
                }
            
                const relatedAdded_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoomFile1 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoomFile1?.setAdded_by)
                {
                    await
                    RoomFile1.
                    setAdded_by(relatedAdded_by1);
                }
            
                const relatedAdded_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RoomFile2 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoomFile2?.setAdded_by)
                {
                    await
                    RoomFile2.
                    setAdded_by(relatedAdded_by2);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateRoomFileWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoomFile0 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RoomFile0?.setOrganization)
                {
                    await
                    RoomFile0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoomFile1 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RoomFile1?.setOrganization)
                {
                    await
                    RoomFile1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RoomFile2 = await RoomFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RoomFile2?.setOrganization)
                {
                    await
                    RoomFile2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRecordingWithConference() {
            
                const relatedConference0 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const Recording0 = await Recordings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Recording0?.setConference)
                {
                    await
                    Recording0.
                    setConference(relatedConference0);
                }
            
                const relatedConference1 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const Recording1 = await Recordings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Recording1?.setConference)
                {
                    await
                    Recording1.
                    setConference(relatedConference1);
                }
            
                const relatedConference2 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const Recording2 = await Recordings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Recording2?.setConference)
                {
                    await
                    Recording2.
                    setConference(relatedConference2);
                }
            
        }
        
    
        
            
            async function associateRecordingWithRequested_by() {
            
                const relatedRequested_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Recording0 = await Recordings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Recording0?.setRequested_by)
                {
                    await
                    Recording0.
                    setRequested_by(relatedRequested_by0);
                }
            
                const relatedRequested_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Recording1 = await Recordings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Recording1?.setRequested_by)
                {
                    await
                    Recording1.
                    setRequested_by(relatedRequested_by1);
                }
            
                const relatedRequested_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Recording2 = await Recordings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Recording2?.setRequested_by)
                {
                    await
                    Recording2.
                    setRequested_by(relatedRequested_by2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRecordingWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Recording0 = await Recordings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Recording0?.setOrganization)
                {
                    await
                    Recording0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Recording1 = await Recordings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Recording1?.setOrganization)
                {
                    await
                    Recording1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Recording2 = await Recordings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Recording2?.setOrganization)
                {
                    await
                    Recording2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTranscriptWithConference() {
            
                const relatedConference0 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const Transcript0 = await Transcripts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Transcript0?.setConference)
                {
                    await
                    Transcript0.
                    setConference(relatedConference0);
                }
            
                const relatedConference1 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const Transcript1 = await Transcripts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Transcript1?.setConference)
                {
                    await
                    Transcript1.
                    setConference(relatedConference1);
                }
            
                const relatedConference2 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const Transcript2 = await Transcripts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Transcript2?.setConference)
                {
                    await
                    Transcript2.
                    setConference(relatedConference2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTranscriptWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Transcript0 = await Transcripts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Transcript0?.setOrganization)
                {
                    await
                    Transcript0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Transcript1 = await Transcripts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Transcript1?.setOrganization)
                {
                    await
                    Transcript1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Transcript2 = await Transcripts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Transcript2?.setOrganization)
                {
                    await
                    Transcript2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCanvasDocumentWithRoom() {
            
                const relatedRoom0 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const CanvasDocument0 = await CanvasDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CanvasDocument0?.setRoom)
                {
                    await
                    CanvasDocument0.
                    setRoom(relatedRoom0);
                }
            
                const relatedRoom1 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const CanvasDocument1 = await CanvasDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CanvasDocument1?.setRoom)
                {
                    await
                    CanvasDocument1.
                    setRoom(relatedRoom1);
                }
            
                const relatedRoom2 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const CanvasDocument2 = await CanvasDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CanvasDocument2?.setRoom)
                {
                    await
                    CanvasDocument2.
                    setRoom(relatedRoom2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCanvasDocumentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CanvasDocument0 = await CanvasDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CanvasDocument0?.setOrganization)
                {
                    await
                    CanvasDocument0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CanvasDocument1 = await CanvasDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CanvasDocument1?.setOrganization)
                {
                    await
                    CanvasDocument1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CanvasDocument2 = await CanvasDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CanvasDocument2?.setOrganization)
                {
                    await
                    CanvasDocument2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCanvasEventWithCanvas_document() {
            
                const relatedCanvas_document0 = await CanvasDocuments.findOne({
                    offset: Math.floor(Math.random() * (await CanvasDocuments.count())),
                });
                const CanvasEvent0 = await CanvasEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CanvasEvent0?.setCanvas_document)
                {
                    await
                    CanvasEvent0.
                    setCanvas_document(relatedCanvas_document0);
                }
            
                const relatedCanvas_document1 = await CanvasDocuments.findOne({
                    offset: Math.floor(Math.random() * (await CanvasDocuments.count())),
                });
                const CanvasEvent1 = await CanvasEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CanvasEvent1?.setCanvas_document)
                {
                    await
                    CanvasEvent1.
                    setCanvas_document(relatedCanvas_document1);
                }
            
                const relatedCanvas_document2 = await CanvasDocuments.findOne({
                    offset: Math.floor(Math.random() * (await CanvasDocuments.count())),
                });
                const CanvasEvent2 = await CanvasEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CanvasEvent2?.setCanvas_document)
                {
                    await
                    CanvasEvent2.
                    setCanvas_document(relatedCanvas_document2);
                }
            
        }
        
    
        
            
            async function associateCanvasEventWithActor() {
            
                const relatedActor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CanvasEvent0 = await CanvasEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CanvasEvent0?.setActor)
                {
                    await
                    CanvasEvent0.
                    setActor(relatedActor0);
                }
            
                const relatedActor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CanvasEvent1 = await CanvasEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CanvasEvent1?.setActor)
                {
                    await
                    CanvasEvent1.
                    setActor(relatedActor1);
                }
            
                const relatedActor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CanvasEvent2 = await CanvasEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CanvasEvent2?.setActor)
                {
                    await
                    CanvasEvent2.
                    setActor(relatedActor2);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateCanvasEventWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CanvasEvent0 = await CanvasEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CanvasEvent0?.setOrganization)
                {
                    await
                    CanvasEvent0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CanvasEvent1 = await CanvasEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CanvasEvent1?.setOrganization)
                {
                    await
                    CanvasEvent1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CanvasEvent2 = await CanvasEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CanvasEvent2?.setOrganization)
                {
                    await
                    CanvasEvent2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateLayoutModelWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const LayoutModel0 = await LayoutModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LayoutModel0?.setTenant)
                {
                    await
                    LayoutModel0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const LayoutModel1 = await LayoutModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LayoutModel1?.setTenant)
                {
                    await
                    LayoutModel1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const LayoutModel2 = await LayoutModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LayoutModel2?.setTenant)
                {
                    await
                    LayoutModel2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateLayoutModelWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LayoutModel0 = await LayoutModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LayoutModel0?.setOrganization)
                {
                    await
                    LayoutModel0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LayoutModel1 = await LayoutModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LayoutModel1?.setOrganization)
                {
                    await
                    LayoutModel1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LayoutModel2 = await LayoutModels.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LayoutModel2?.setOrganization)
                {
                    await
                    LayoutModel2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateLayoutPreferenceWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LayoutPreference0 = await LayoutPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LayoutPreference0?.setUser)
                {
                    await
                    LayoutPreference0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LayoutPreference1 = await LayoutPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LayoutPreference1?.setUser)
                {
                    await
                    LayoutPreference1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LayoutPreference2 = await LayoutPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LayoutPreference2?.setUser)
                {
                    await
                    LayoutPreference2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateLayoutPreferenceWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LayoutPreference0 = await LayoutPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LayoutPreference0?.setOrganization)
                {
                    await
                    LayoutPreference0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LayoutPreference1 = await LayoutPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LayoutPreference1?.setOrganization)
                {
                    await
                    LayoutPreference1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LayoutPreference2 = await LayoutPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LayoutPreference2?.setOrganization)
                {
                    await
                    LayoutPreference2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateFederatedLearningUpdateWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FederatedLearningUpdate0 = await FederatedLearningUpdates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FederatedLearningUpdate0?.setUser)
                {
                    await
                    FederatedLearningUpdate0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FederatedLearningUpdate1 = await FederatedLearningUpdates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FederatedLearningUpdate1?.setUser)
                {
                    await
                    FederatedLearningUpdate1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FederatedLearningUpdate2 = await FederatedLearningUpdates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FederatedLearningUpdate2?.setUser)
                {
                    await
                    FederatedLearningUpdate2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
            
            async function associateFederatedLearningUpdateWithLayout_model() {
            
                const relatedLayout_model0 = await LayoutModels.findOne({
                    offset: Math.floor(Math.random() * (await LayoutModels.count())),
                });
                const FederatedLearningUpdate0 = await FederatedLearningUpdates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FederatedLearningUpdate0?.setLayout_model)
                {
                    await
                    FederatedLearningUpdate0.
                    setLayout_model(relatedLayout_model0);
                }
            
                const relatedLayout_model1 = await LayoutModels.findOne({
                    offset: Math.floor(Math.random() * (await LayoutModels.count())),
                });
                const FederatedLearningUpdate1 = await FederatedLearningUpdates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FederatedLearningUpdate1?.setLayout_model)
                {
                    await
                    FederatedLearningUpdate1.
                    setLayout_model(relatedLayout_model1);
                }
            
                const relatedLayout_model2 = await LayoutModels.findOne({
                    offset: Math.floor(Math.random() * (await LayoutModels.count())),
                });
                const FederatedLearningUpdate2 = await FederatedLearningUpdates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FederatedLearningUpdate2?.setLayout_model)
                {
                    await
                    FederatedLearningUpdate2.
                    setLayout_model(relatedLayout_model2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFederatedLearningUpdateWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FederatedLearningUpdate0 = await FederatedLearningUpdates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FederatedLearningUpdate0?.setOrganization)
                {
                    await
                    FederatedLearningUpdate0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FederatedLearningUpdate1 = await FederatedLearningUpdates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FederatedLearningUpdate1?.setOrganization)
                {
                    await
                    FederatedLearningUpdate1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FederatedLearningUpdate2 = await FederatedLearningUpdates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FederatedLearningUpdate2?.setOrganization)
                {
                    await
                    FederatedLearningUpdate2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAiCompanionSessionWithConference() {
            
                const relatedConference0 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const AiCompanionSession0 = await AiCompanionSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiCompanionSession0?.setConference)
                {
                    await
                    AiCompanionSession0.
                    setConference(relatedConference0);
                }
            
                const relatedConference1 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const AiCompanionSession1 = await AiCompanionSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiCompanionSession1?.setConference)
                {
                    await
                    AiCompanionSession1.
                    setConference(relatedConference1);
                }
            
                const relatedConference2 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const AiCompanionSession2 = await AiCompanionSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiCompanionSession2?.setConference)
                {
                    await
                    AiCompanionSession2.
                    setConference(relatedConference2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAiCompanionSessionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiCompanionSession0 = await AiCompanionSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiCompanionSession0?.setOrganization)
                {
                    await
                    AiCompanionSession0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiCompanionSession1 = await AiCompanionSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiCompanionSession1?.setOrganization)
                {
                    await
                    AiCompanionSession1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiCompanionSession2 = await AiCompanionSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiCompanionSession2?.setOrganization)
                {
                    await
                    AiCompanionSession2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateKnowledgeGraphItemWithAi_companion_session() {
            
                const relatedAi_companion_session0 = await AiCompanionSessions.findOne({
                    offset: Math.floor(Math.random() * (await AiCompanionSessions.count())),
                });
                const KnowledgeGraphItem0 = await KnowledgeGraphItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KnowledgeGraphItem0?.setAi_companion_session)
                {
                    await
                    KnowledgeGraphItem0.
                    setAi_companion_session(relatedAi_companion_session0);
                }
            
                const relatedAi_companion_session1 = await AiCompanionSessions.findOne({
                    offset: Math.floor(Math.random() * (await AiCompanionSessions.count())),
                });
                const KnowledgeGraphItem1 = await KnowledgeGraphItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KnowledgeGraphItem1?.setAi_companion_session)
                {
                    await
                    KnowledgeGraphItem1.
                    setAi_companion_session(relatedAi_companion_session1);
                }
            
                const relatedAi_companion_session2 = await AiCompanionSessions.findOne({
                    offset: Math.floor(Math.random() * (await AiCompanionSessions.count())),
                });
                const KnowledgeGraphItem2 = await KnowledgeGraphItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KnowledgeGraphItem2?.setAi_companion_session)
                {
                    await
                    KnowledgeGraphItem2.
                    setAi_companion_session(relatedAi_companion_session2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateKnowledgeGraphItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KnowledgeGraphItem0 = await KnowledgeGraphItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (KnowledgeGraphItem0?.setOrganization)
                {
                    await
                    KnowledgeGraphItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KnowledgeGraphItem1 = await KnowledgeGraphItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (KnowledgeGraphItem1?.setOrganization)
                {
                    await
                    KnowledgeGraphItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const KnowledgeGraphItem2 = await KnowledgeGraphItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (KnowledgeGraphItem2?.setOrganization)
                {
                    await
                    KnowledgeGraphItem2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateExternalIntegrationWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ExternalIntegration0 = await ExternalIntegrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ExternalIntegration0?.setTenant)
                {
                    await
                    ExternalIntegration0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ExternalIntegration1 = await ExternalIntegrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ExternalIntegration1?.setTenant)
                {
                    await
                    ExternalIntegration1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ExternalIntegration2 = await ExternalIntegrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ExternalIntegration2?.setTenant)
                {
                    await
                    ExternalIntegration2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateExternalIntegrationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalIntegration0 = await ExternalIntegrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ExternalIntegration0?.setOrganization)
                {
                    await
                    ExternalIntegration0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalIntegration1 = await ExternalIntegrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ExternalIntegration1?.setOrganization)
                {
                    await
                    ExternalIntegration1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExternalIntegration2 = await ExternalIntegrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ExternalIntegration2?.setOrganization)
                {
                    await
                    ExternalIntegration2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTaskWithKnowledge_graph_item() {
            
                const relatedKnowledge_graph_item0 = await KnowledgeGraphItems.findOne({
                    offset: Math.floor(Math.random() * (await KnowledgeGraphItems.count())),
                });
                const Task0 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Task0?.setKnowledge_graph_item)
                {
                    await
                    Task0.
                    setKnowledge_graph_item(relatedKnowledge_graph_item0);
                }
            
                const relatedKnowledge_graph_item1 = await KnowledgeGraphItems.findOne({
                    offset: Math.floor(Math.random() * (await KnowledgeGraphItems.count())),
                });
                const Task1 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Task1?.setKnowledge_graph_item)
                {
                    await
                    Task1.
                    setKnowledge_graph_item(relatedKnowledge_graph_item1);
                }
            
                const relatedKnowledge_graph_item2 = await KnowledgeGraphItems.findOne({
                    offset: Math.floor(Math.random() * (await KnowledgeGraphItems.count())),
                });
                const Task2 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Task2?.setKnowledge_graph_item)
                {
                    await
                    Task2.
                    setKnowledge_graph_item(relatedKnowledge_graph_item2);
                }
            
        }
        
    
        
            
            async function associateTaskWithExternal_integration() {
            
                const relatedExternal_integration0 = await ExternalIntegrations.findOne({
                    offset: Math.floor(Math.random() * (await ExternalIntegrations.count())),
                });
                const Task0 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Task0?.setExternal_integration)
                {
                    await
                    Task0.
                    setExternal_integration(relatedExternal_integration0);
                }
            
                const relatedExternal_integration1 = await ExternalIntegrations.findOne({
                    offset: Math.floor(Math.random() * (await ExternalIntegrations.count())),
                });
                const Task1 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Task1?.setExternal_integration)
                {
                    await
                    Task1.
                    setExternal_integration(relatedExternal_integration1);
                }
            
                const relatedExternal_integration2 = await ExternalIntegrations.findOne({
                    offset: Math.floor(Math.random() * (await ExternalIntegrations.count())),
                });
                const Task2 = await Tasks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Task2?.setExternal_integration)
                {
                    await
                    Task2.
                    setExternal_integration(relatedExternal_integration2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            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);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCoursWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const Cours0 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cours0?.setTenant)
                {
                    await
                    Cours0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const Cours1 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cours1?.setTenant)
                {
                    await
                    Cours1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const Cours2 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cours2?.setTenant)
                {
                    await
                    Cours2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
            
            async function associateCoursWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cours0 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cours0?.setOrganization)
                {
                    await
                    Cours0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cours1 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cours1?.setOrganization)
                {
                    await
                    Cours1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Cours2 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cours2?.setOrganization)
                {
                    await
                    Cours2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCoursWithDefault_room() {
            
                const relatedDefault_room0 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const Cours0 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cours0?.setDefault_room)
                {
                    await
                    Cours0.
                    setDefault_room(relatedDefault_room0);
                }
            
                const relatedDefault_room1 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const Cours1 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cours1?.setDefault_room)
                {
                    await
                    Cours1.
                    setDefault_room(relatedDefault_room1);
                }
            
                const relatedDefault_room2 = await Rooms.findOne({
                    offset: Math.floor(Math.random() * (await Rooms.count())),
                });
                const Cours2 = await Courses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cours2?.setDefault_room)
                {
                    await
                    Cours2.
                    setDefault_room(relatedDefault_room2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCourseEnrollmentWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const CourseEnrollment0 = await CourseEnrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CourseEnrollment0?.setCourse)
                {
                    await
                    CourseEnrollment0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const CourseEnrollment1 = await CourseEnrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CourseEnrollment1?.setCourse)
                {
                    await
                    CourseEnrollment1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const CourseEnrollment2 = await CourseEnrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CourseEnrollment2?.setCourse)
                {
                    await
                    CourseEnrollment2.
                    setCourse(relatedCourse2);
                }
            
        }
        
    
        
            
            async function associateCourseEnrollmentWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CourseEnrollment0 = await CourseEnrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CourseEnrollment0?.setUser)
                {
                    await
                    CourseEnrollment0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CourseEnrollment1 = await CourseEnrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CourseEnrollment1?.setUser)
                {
                    await
                    CourseEnrollment1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CourseEnrollment2 = await CourseEnrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CourseEnrollment2?.setUser)
                {
                    await
                    CourseEnrollment2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateCourseEnrollmentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CourseEnrollment0 = await CourseEnrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CourseEnrollment0?.setOrganization)
                {
                    await
                    CourseEnrollment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CourseEnrollment1 = await CourseEnrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CourseEnrollment1?.setOrganization)
                {
                    await
                    CourseEnrollment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CourseEnrollment2 = await CourseEnrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CourseEnrollment2?.setOrganization)
                {
                    await
                    CourseEnrollment2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAssignmentWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Assignment0 = await Assignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Assignment0?.setCourse)
                {
                    await
                    Assignment0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Assignment1 = await Assignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Assignment1?.setCourse)
                {
                    await
                    Assignment1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Assignment2 = await Assignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Assignment2?.setCourse)
                {
                    await
                    Assignment2.
                    setCourse(relatedCourse2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAssignmentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Assignment0 = await Assignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Assignment0?.setOrganization)
                {
                    await
                    Assignment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Assignment1 = await Assignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Assignment1?.setOrganization)
                {
                    await
                    Assignment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Assignment2 = await Assignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Assignment2?.setOrganization)
                {
                    await
                    Assignment2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSubmissionWithAssignment() {
            
                const relatedAssignment0 = await Assignments.findOne({
                    offset: Math.floor(Math.random() * (await Assignments.count())),
                });
                const Submission0 = await Submissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Submission0?.setAssignment)
                {
                    await
                    Submission0.
                    setAssignment(relatedAssignment0);
                }
            
                const relatedAssignment1 = await Assignments.findOne({
                    offset: Math.floor(Math.random() * (await Assignments.count())),
                });
                const Submission1 = await Submissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Submission1?.setAssignment)
                {
                    await
                    Submission1.
                    setAssignment(relatedAssignment1);
                }
            
                const relatedAssignment2 = await Assignments.findOne({
                    offset: Math.floor(Math.random() * (await Assignments.count())),
                });
                const Submission2 = await Submissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Submission2?.setAssignment)
                {
                    await
                    Submission2.
                    setAssignment(relatedAssignment2);
                }
            
        }
        
    
        
            
            async function associateSubmissionWithStudent() {
            
                const relatedStudent0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Submission0 = await Submissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Submission0?.setStudent)
                {
                    await
                    Submission0.
                    setStudent(relatedStudent0);
                }
            
                const relatedStudent1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Submission1 = await Submissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Submission1?.setStudent)
                {
                    await
                    Submission1.
                    setStudent(relatedStudent1);
                }
            
                const relatedStudent2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Submission2 = await Submissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Submission2?.setStudent)
                {
                    await
                    Submission2.
                    setStudent(relatedStudent2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSubmissionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Submission0 = await Submissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Submission0?.setOrganization)
                {
                    await
                    Submission0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Submission1 = await Submissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Submission1?.setOrganization)
                {
                    await
                    Submission1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Submission2 = await Submissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Submission2?.setOrganization)
                {
                    await
                    Submission2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQuizzeWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Quizze0 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Quizze0?.setCourse)
                {
                    await
                    Quizze0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Quizze1 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Quizze1?.setCourse)
                {
                    await
                    Quizze1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Quizze2 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Quizze2?.setCourse)
                {
                    await
                    Quizze2.
                    setCourse(relatedCourse2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateQuizzeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Quizze0 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Quizze0?.setOrganization)
                {
                    await
                    Quizze0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Quizze1 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Quizze1?.setOrganization)
                {
                    await
                    Quizze1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Quizze2 = await Quizzes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Quizze2?.setOrganization)
                {
                    await
                    Quizze2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQuizResultWithQuiz() {
            
                const relatedQuiz0 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizResult0 = await QuizResults.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizResult0?.setQuiz)
                {
                    await
                    QuizResult0.
                    setQuiz(relatedQuiz0);
                }
            
                const relatedQuiz1 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizResult1 = await QuizResults.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizResult1?.setQuiz)
                {
                    await
                    QuizResult1.
                    setQuiz(relatedQuiz1);
                }
            
                const relatedQuiz2 = await Quizzes.findOne({
                    offset: Math.floor(Math.random() * (await Quizzes.count())),
                });
                const QuizResult2 = await QuizResults.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizResult2?.setQuiz)
                {
                    await
                    QuizResult2.
                    setQuiz(relatedQuiz2);
                }
            
        }
        
    
        
            
            async function associateQuizResultWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizResult0 = await QuizResults.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizResult0?.setUser)
                {
                    await
                    QuizResult0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizResult1 = await QuizResults.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizResult1?.setUser)
                {
                    await
                    QuizResult1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const QuizResult2 = await QuizResults.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizResult2?.setUser)
                {
                    await
                    QuizResult2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateQuizResultWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizResult0 = await QuizResults.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuizResult0?.setOrganization)
                {
                    await
                    QuizResult0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizResult1 = await QuizResults.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuizResult1?.setOrganization)
                {
                    await
                    QuizResult1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QuizResult2 = await QuizResults.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuizResult2?.setOrganization)
                {
                    await
                    QuizResult2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMarketplaceAppWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const MarketplaceApp0 = await MarketplaceApps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceApp0?.setTenant)
                {
                    await
                    MarketplaceApp0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const MarketplaceApp1 = await MarketplaceApps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceApp1?.setTenant)
                {
                    await
                    MarketplaceApp1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const MarketplaceApp2 = await MarketplaceApps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceApp2?.setTenant)
                {
                    await
                    MarketplaceApp2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMarketplaceAppWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceApp0 = await MarketplaceApps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketplaceApp0?.setOrganization)
                {
                    await
                    MarketplaceApp0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceApp1 = await MarketplaceApps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketplaceApp1?.setOrganization)
                {
                    await
                    MarketplaceApp1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const MarketplaceApp2 = await MarketplaceApps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketplaceApp2?.setOrganization)
                {
                    await
                    MarketplaceApp2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAppInstallationWithMarketplace_app() {
            
                const relatedMarketplace_app0 = await MarketplaceApps.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceApps.count())),
                });
                const AppInstallation0 = await AppInstallations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AppInstallation0?.setMarketplace_app)
                {
                    await
                    AppInstallation0.
                    setMarketplace_app(relatedMarketplace_app0);
                }
            
                const relatedMarketplace_app1 = await MarketplaceApps.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceApps.count())),
                });
                const AppInstallation1 = await AppInstallations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AppInstallation1?.setMarketplace_app)
                {
                    await
                    AppInstallation1.
                    setMarketplace_app(relatedMarketplace_app1);
                }
            
                const relatedMarketplace_app2 = await MarketplaceApps.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceApps.count())),
                });
                const AppInstallation2 = await AppInstallations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AppInstallation2?.setMarketplace_app)
                {
                    await
                    AppInstallation2.
                    setMarketplace_app(relatedMarketplace_app2);
                }
            
        }
        
    
        
            
            async function associateAppInstallationWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const AppInstallation0 = await AppInstallations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AppInstallation0?.setTeam)
                {
                    await
                    AppInstallation0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const AppInstallation1 = await AppInstallations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AppInstallation1?.setTeam)
                {
                    await
                    AppInstallation1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const AppInstallation2 = await AppInstallations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AppInstallation2?.setTeam)
                {
                    await
                    AppInstallation2.
                    setTeam(relatedTeam2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAppInstallationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AppInstallation0 = await AppInstallations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AppInstallation0?.setOrganization)
                {
                    await
                    AppInstallation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AppInstallation1 = await AppInstallations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AppInstallation1?.setOrganization)
                {
                    await
                    AppInstallation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AppInstallation2 = await AppInstallations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AppInstallation2?.setOrganization)
                {
                    await
                    AppInstallation2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAppCrashReportWithMarketplace_app() {
            
                const relatedMarketplace_app0 = await MarketplaceApps.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceApps.count())),
                });
                const AppCrashReport0 = await AppCrashReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AppCrashReport0?.setMarketplace_app)
                {
                    await
                    AppCrashReport0.
                    setMarketplace_app(relatedMarketplace_app0);
                }
            
                const relatedMarketplace_app1 = await MarketplaceApps.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceApps.count())),
                });
                const AppCrashReport1 = await AppCrashReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AppCrashReport1?.setMarketplace_app)
                {
                    await
                    AppCrashReport1.
                    setMarketplace_app(relatedMarketplace_app1);
                }
            
                const relatedMarketplace_app2 = await MarketplaceApps.findOne({
                    offset: Math.floor(Math.random() * (await MarketplaceApps.count())),
                });
                const AppCrashReport2 = await AppCrashReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AppCrashReport2?.setMarketplace_app)
                {
                    await
                    AppCrashReport2.
                    setMarketplace_app(relatedMarketplace_app2);
                }
            
        }
        
    
        
            
            async function associateAppCrashReportWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AppCrashReport0 = await AppCrashReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AppCrashReport0?.setUser)
                {
                    await
                    AppCrashReport0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AppCrashReport1 = await AppCrashReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AppCrashReport1?.setUser)
                {
                    await
                    AppCrashReport1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AppCrashReport2 = await AppCrashReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AppCrashReport2?.setUser)
                {
                    await
                    AppCrashReport2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAppCrashReportWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AppCrashReport0 = await AppCrashReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AppCrashReport0?.setOrganization)
                {
                    await
                    AppCrashReport0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AppCrashReport1 = await AppCrashReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AppCrashReport1?.setOrganization)
                {
                    await
                    AppCrashReport1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AppCrashReport2 = await AppCrashReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AppCrashReport2?.setOrganization)
                {
                    await
                    AppCrashReport2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAuditEventWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setTenant)
                {
                    await
                    AuditEvent0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setTenant)
                {
                    await
                    AuditEvent1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setTenant)
                {
                    await
                    AuditEvent2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
            
            async function associateAuditEventWithActor() {
            
                const relatedActor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setActor)
                {
                    await
                    AuditEvent0.
                    setActor(relatedActor0);
                }
            
                const relatedActor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setActor)
                {
                    await
                    AuditEvent1.
                    setActor(relatedActor1);
                }
            
                const relatedActor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setActor)
                {
                    await
                    AuditEvent2.
                    setActor(relatedActor2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAuditEventWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setOrganization)
                {
                    await
                    AuditEvent0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setOrganization)
                {
                    await
                    AuditEvent1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setOrganization)
                {
                    await
                    AuditEvent2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDataSubjectRequestWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const DataSubjectRequest0 = await DataSubjectRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DataSubjectRequest0?.setTenant)
                {
                    await
                    DataSubjectRequest0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const DataSubjectRequest1 = await DataSubjectRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DataSubjectRequest1?.setTenant)
                {
                    await
                    DataSubjectRequest1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const DataSubjectRequest2 = await DataSubjectRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DataSubjectRequest2?.setTenant)
                {
                    await
                    DataSubjectRequest2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
            
            async function associateDataSubjectRequestWithRequested_by() {
            
                const relatedRequested_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DataSubjectRequest0 = await DataSubjectRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DataSubjectRequest0?.setRequested_by)
                {
                    await
                    DataSubjectRequest0.
                    setRequested_by(relatedRequested_by0);
                }
            
                const relatedRequested_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DataSubjectRequest1 = await DataSubjectRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DataSubjectRequest1?.setRequested_by)
                {
                    await
                    DataSubjectRequest1.
                    setRequested_by(relatedRequested_by1);
                }
            
                const relatedRequested_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DataSubjectRequest2 = await DataSubjectRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DataSubjectRequest2?.setRequested_by)
                {
                    await
                    DataSubjectRequest2.
                    setRequested_by(relatedRequested_by2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDataSubjectRequestWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DataSubjectRequest0 = await DataSubjectRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DataSubjectRequest0?.setOrganization)
                {
                    await
                    DataSubjectRequest0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DataSubjectRequest1 = await DataSubjectRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DataSubjectRequest1?.setOrganization)
                {
                    await
                    DataSubjectRequest1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DataSubjectRequest2 = await DataSubjectRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DataSubjectRequest2?.setOrganization)
                {
                    await
                    DataSubjectRequest2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateServiceIncidentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceIncident0 = await ServiceIncidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ServiceIncident0?.setOrganization)
                {
                    await
                    ServiceIncident0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceIncident1 = await ServiceIncidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ServiceIncident1?.setOrganization)
                {
                    await
                    ServiceIncident1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceIncident2 = await ServiceIncidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ServiceIncident2?.setOrganization)
                {
                    await
                    ServiceIncident2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDeploymentChangeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DeploymentChange0 = await DeploymentChanges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DeploymentChange0?.setOrganization)
                {
                    await
                    DeploymentChange0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DeploymentChange1 = await DeploymentChanges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DeploymentChange1?.setOrganization)
                {
                    await
                    DeploymentChange1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DeploymentChange2 = await DeploymentChanges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DeploymentChange2?.setOrganization)
                {
                    await
                    DeploymentChange2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateFeatureFlagWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const FeatureFlag0 = await FeatureFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FeatureFlag0?.setTenant)
                {
                    await
                    FeatureFlag0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const FeatureFlag1 = await FeatureFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FeatureFlag1?.setTenant)
                {
                    await
                    FeatureFlag1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const FeatureFlag2 = await FeatureFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FeatureFlag2?.setTenant)
                {
                    await
                    FeatureFlag2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFeatureFlagWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FeatureFlag0 = await FeatureFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FeatureFlag0?.setOrganization)
                {
                    await
                    FeatureFlag0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FeatureFlag1 = await FeatureFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FeatureFlag1?.setOrganization)
                {
                    await
                    FeatureFlag1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FeatureFlag2 = await FeatureFlags.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FeatureFlag2?.setOrganization)
                {
                    await
                    FeatureFlag2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateQualityReportWithConference() {
            
                const relatedConference0 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const QualityReport0 = await QualityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QualityReport0?.setConference)
                {
                    await
                    QualityReport0.
                    setConference(relatedConference0);
                }
            
                const relatedConference1 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const QualityReport1 = await QualityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QualityReport1?.setConference)
                {
                    await
                    QualityReport1.
                    setConference(relatedConference1);
                }
            
                const relatedConference2 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const QualityReport2 = await QualityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QualityReport2?.setConference)
                {
                    await
                    QualityReport2.
                    setConference(relatedConference2);
                }
            
        }
        
    
        
            
            async function associateQualityReportWithParticipant() {
            
                const relatedParticipant0 = await Participants.findOne({
                    offset: Math.floor(Math.random() * (await Participants.count())),
                });
                const QualityReport0 = await QualityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QualityReport0?.setParticipant)
                {
                    await
                    QualityReport0.
                    setParticipant(relatedParticipant0);
                }
            
                const relatedParticipant1 = await Participants.findOne({
                    offset: Math.floor(Math.random() * (await Participants.count())),
                });
                const QualityReport1 = await QualityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QualityReport1?.setParticipant)
                {
                    await
                    QualityReport1.
                    setParticipant(relatedParticipant1);
                }
            
                const relatedParticipant2 = await Participants.findOne({
                    offset: Math.floor(Math.random() * (await Participants.count())),
                });
                const QualityReport2 = await QualityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QualityReport2?.setParticipant)
                {
                    await
                    QualityReport2.
                    setParticipant(relatedParticipant2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateQualityReportWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QualityReport0 = await QualityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QualityReport0?.setOrganization)
                {
                    await
                    QualityReport0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QualityReport1 = await QualityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QualityReport1?.setOrganization)
                {
                    await
                    QualityReport1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const QualityReport2 = await QualityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QualityReport2?.setOrganization)
                {
                    await
                    QualityReport2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateEventStreamWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const EventStream0 = await EventStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EventStream0?.setTenant)
                {
                    await
                    EventStream0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const EventStream1 = await EventStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EventStream1?.setTenant)
                {
                    await
                    EventStream1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const EventStream2 = await EventStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EventStream2?.setTenant)
                {
                    await
                    EventStream2.
                    setTenant(relatedTenant2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateEventStreamWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const EventStream0 = await EventStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EventStream0?.setOrganization)
                {
                    await
                    EventStream0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const EventStream1 = await EventStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EventStream1?.setOrganization)
                {
                    await
                    EventStream1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const EventStream2 = await EventStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EventStream2?.setOrganization)
                {
                    await
                    EventStream2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateConferenceEventWithConference() {
            
                const relatedConference0 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const ConferenceEvent0 = await ConferenceEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConferenceEvent0?.setConference)
                {
                    await
                    ConferenceEvent0.
                    setConference(relatedConference0);
                }
            
                const relatedConference1 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const ConferenceEvent1 = await ConferenceEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConferenceEvent1?.setConference)
                {
                    await
                    ConferenceEvent1.
                    setConference(relatedConference1);
                }
            
                const relatedConference2 = await Conferences.findOne({
                    offset: Math.floor(Math.random() * (await Conferences.count())),
                });
                const ConferenceEvent2 = await ConferenceEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConferenceEvent2?.setConference)
                {
                    await
                    ConferenceEvent2.
                    setConference(relatedConference2);
                }
            
        }
        
    
        
            
            async function associateConferenceEventWithEvent_stream() {
            
                const relatedEvent_stream0 = await EventStreams.findOne({
                    offset: Math.floor(Math.random() * (await EventStreams.count())),
                });
                const ConferenceEvent0 = await ConferenceEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConferenceEvent0?.setEvent_stream)
                {
                    await
                    ConferenceEvent0.
                    setEvent_stream(relatedEvent_stream0);
                }
            
                const relatedEvent_stream1 = await EventStreams.findOne({
                    offset: Math.floor(Math.random() * (await EventStreams.count())),
                });
                const ConferenceEvent1 = await ConferenceEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConferenceEvent1?.setEvent_stream)
                {
                    await
                    ConferenceEvent1.
                    setEvent_stream(relatedEvent_stream1);
                }
            
                const relatedEvent_stream2 = await EventStreams.findOne({
                    offset: Math.floor(Math.random() * (await EventStreams.count())),
                });
                const ConferenceEvent2 = await ConferenceEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConferenceEvent2?.setEvent_stream)
                {
                    await
                    ConferenceEvent2.
                    setEvent_stream(relatedEvent_stream2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateConferenceEventWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ConferenceEvent0 = await ConferenceEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConferenceEvent0?.setOrganization)
                {
                    await
                    ConferenceEvent0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ConferenceEvent1 = await ConferenceEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConferenceEvent1?.setOrganization)
                {
                    await
                    ConferenceEvent1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ConferenceEvent2 = await ConferenceEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConferenceEvent2?.setOrganization)
                {
                    await
                    ConferenceEvent2.
                    setOrganization(relatedOrganization2);
                }
            
        }
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await Tenants.bulkCreate(TenantsData);
                
            
            
                
                await Departments.bulkCreate(DepartmentsData);
                
            
            
                
                await Teams.bulkCreate(TeamsData);
                
            
            
                
                await Memberships.bulkCreate(MembershipsData);
                
            
            
                
                await IdentityProviders.bulkCreate(IdentityProvidersData);
                
            
            
                
                await UserIdentities.bulkCreate(UserIdentitiesData);
                
            
            
                
                await PolicyRules.bulkCreate(PolicyRulesData);
                
            
            
                
                await KmsConfigs.bulkCreate(KmsConfigsData);
                
            
            
                
                await ConferenceTemplates.bulkCreate(ConferenceTemplatesData);
                
            
            
                
                await Rooms.bulkCreate(RoomsData);
                
            
            
                
                await RoomInvitations.bulkCreate(RoomInvitationsData);
                
            
            
                
                await Conferences.bulkCreate(ConferencesData);
                
            
            
                
                await Participants.bulkCreate(ParticipantsData);
                
            
            
                
                await ConferenceNodes.bulkCreate(ConferenceNodesData);
                
            
            
                
                await SfuAllocations.bulkCreate(SfuAllocationsData);
                
            
            
                
                await BreakoutRooms.bulkCreate(BreakoutRoomsData);
                
            
            
                
                await ChatChannels.bulkCreate(ChatChannelsData);
                
            
            
                
                await ChatMessages.bulkCreate(ChatMessagesData);
                
            
            
                
                await Files.bulkCreate(FilesData);
                
            
            
                
                await RoomFiles.bulkCreate(RoomFilesData);
                
            
            
                
                await Recordings.bulkCreate(RecordingsData);
                
            
            
                
                await Transcripts.bulkCreate(TranscriptsData);
                
            
            
                
                await CanvasDocuments.bulkCreate(CanvasDocumentsData);
                
            
            
                
                await CanvasEvents.bulkCreate(CanvasEventsData);
                
            
            
                
                await LayoutModels.bulkCreate(LayoutModelsData);
                
            
            
                
                await LayoutPreferences.bulkCreate(LayoutPreferencesData);
                
            
            
                
                await FederatedLearningUpdates.bulkCreate(FederatedLearningUpdatesData);
                
            
            
                
                await AiCompanionSessions.bulkCreate(AiCompanionSessionsData);
                
            
            
                
                await KnowledgeGraphItems.bulkCreate(KnowledgeGraphItemsData);
                
            
            
                
                await ExternalIntegrations.bulkCreate(ExternalIntegrationsData);
                
            
            
                
                await Tasks.bulkCreate(TasksData);
                
            
            
                
                await Courses.bulkCreate(CoursesData);
                
            
            
                
                await CourseEnrollments.bulkCreate(CourseEnrollmentsData);
                
            
            
                
                await Assignments.bulkCreate(AssignmentsData);
                
            
            
                
                await Submissions.bulkCreate(SubmissionsData);
                
            
            
                
                await Quizzes.bulkCreate(QuizzesData);
                
            
            
                
                await QuizResults.bulkCreate(QuizResultsData);
                
            
            
                
                await MarketplaceApps.bulkCreate(MarketplaceAppsData);
                
            
            
                
                await AppInstallations.bulkCreate(AppInstallationsData);
                
            
            
                
                await AppCrashReports.bulkCreate(AppCrashReportsData);
                
            
            
                
                await AuditEvents.bulkCreate(AuditEventsData);
                
            
            
                
                await DataSubjectRequests.bulkCreate(DataSubjectRequestsData);
                
            
            
                
                await ServiceIncidents.bulkCreate(ServiceIncidentsData);
                
            
            
                
                await DeploymentChanges.bulkCreate(DeploymentChangesData);
                
            
            
                
                await FeatureFlags.bulkCreate(FeatureFlagsData);
                
            
            
                
                await QualityReports.bulkCreate(QualityReportsData);
                
            
            
                
                await EventStreams.bulkCreate(EventStreamsData);
                
            
            
                
                await ConferenceEvents.bulkCreate(ConferenceEventsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTenantWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDepartmentWithOrganization(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTeamWithOrganization(),
                    
                
                    
                        
                        await associateTeamWithDepartment(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMembershipWithUser(),
                    
                
                    
                        
                        await associateMembershipWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMembershipWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateIdentityProviderWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateIdentityProviderWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateUserIdentityWithUser(),
                    
                
                    
                        
                        await associateUserIdentityWithIdentity_provider(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateUserIdentityWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePolicyRuleWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePolicyRuleWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateKmsConfigWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateKmsConfigWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateConferenceTemplateWithTenant(),
                    
                
                    
                        
                        await associateConferenceTemplateWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateConferenceTemplateWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRoomWithTeam(),
                    
                
                    
                        
                        await associateRoomWithConference_template(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRoomWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRoomInvitationWithRoom(),
                    
                
                    
                        
                        await associateRoomInvitationWithInvited_by(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRoomInvitationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateConferenceWithRoom(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateConferenceWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateParticipantWithConference(),
                    
                
                    
                        
                        await associateParticipantWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateParticipantWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateConferenceNodeWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSfuAllocationWithConference(),
                    
                
                    
                        
                        await associateSfuAllocationWithConference_node(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSfuAllocationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateBreakoutRoomWithConference(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBreakoutRoomWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateChatChannelWithConference(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateChatChannelWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateChatMessageWithChat_channel(),
                    
                
                    
                        
                        await associateChatMessageWithSender(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateChatMessageWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateFileWithTenant(),
                    
                
                    
                        
                        await associateFileWithUploaded_by(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFileWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRoomFileWithRoom(),
                    
                
                    
                        
                        await associateRoomFileWithFile(),
                    
                
                    
                        
                        await associateRoomFileWithAdded_by(),
                    
                
                    
                
                    
                
                    
                        
                        await associateRoomFileWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRecordingWithConference(),
                    
                
                    
                        
                        await associateRecordingWithRequested_by(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRecordingWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTranscriptWithConference(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTranscriptWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCanvasDocumentWithRoom(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCanvasDocumentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCanvasEventWithCanvas_document(),
                    
                
                    
                        
                        await associateCanvasEventWithActor(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCanvasEventWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateLayoutModelWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLayoutModelWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateLayoutPreferenceWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLayoutPreferenceWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateFederatedLearningUpdateWithUser(),
                    
                
                    
                        
                        await associateFederatedLearningUpdateWithLayout_model(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFederatedLearningUpdateWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAiCompanionSessionWithConference(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAiCompanionSessionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateKnowledgeGraphItemWithAi_companion_session(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateKnowledgeGraphItemWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateExternalIntegrationWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateExternalIntegrationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTaskWithKnowledge_graph_item(),
                    
                
                    
                        
                        await associateTaskWithExternal_integration(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTaskWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCoursWithTenant(),
                    
                
                    
                        
                        await associateCoursWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCoursWithDefault_room(),
                    
                
            
                
                
                    
                        
                        await associateCourseEnrollmentWithCourse(),
                    
                
                    
                        
                        await associateCourseEnrollmentWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCourseEnrollmentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAssignmentWithCourse(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAssignmentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSubmissionWithAssignment(),
                    
                
                    
                        
                        await associateSubmissionWithStudent(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSubmissionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQuizzeWithCourse(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizzeWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQuizResultWithQuiz(),
                    
                
                    
                        
                        await associateQuizResultWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuizResultWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMarketplaceAppWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMarketplaceAppWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAppInstallationWithMarketplace_app(),
                    
                
                    
                        
                        await associateAppInstallationWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAppInstallationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAppCrashReportWithMarketplace_app(),
                    
                
                    
                        
                        await associateAppCrashReportWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAppCrashReportWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAuditEventWithTenant(),
                    
                
                    
                        
                        await associateAuditEventWithActor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAuditEventWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDataSubjectRequestWithTenant(),
                    
                
                    
                        
                        await associateDataSubjectRequestWithRequested_by(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDataSubjectRequestWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateServiceIncidentWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDeploymentChangeWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateFeatureFlagWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFeatureFlagWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateQualityReportWithConference(),
                    
                
                    
                        
                        await associateQualityReportWithParticipant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQualityReportWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateEventStreamWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateEventStreamWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateConferenceEventWithConference(),
                    
                
                    
                        
                        await associateConferenceEventWithEvent_stream(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateConferenceEventWithOrganization(),
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('tenants', null, {});
            
            
            await queryInterface.bulkDelete('departments', null, {});
            
            
            await queryInterface.bulkDelete('teams', null, {});
            
            
            await queryInterface.bulkDelete('memberships', null, {});
            
            
            await queryInterface.bulkDelete('identity_providers', null, {});
            
            
            await queryInterface.bulkDelete('user_identities', null, {});
            
            
            await queryInterface.bulkDelete('policy_rules', null, {});
            
            
            await queryInterface.bulkDelete('kms_configs', null, {});
            
            
            await queryInterface.bulkDelete('conference_templates', null, {});
            
            
            await queryInterface.bulkDelete('rooms', null, {});
            
            
            await queryInterface.bulkDelete('room_invitations', null, {});
            
            
            await queryInterface.bulkDelete('conferences', null, {});
            
            
            await queryInterface.bulkDelete('participants', null, {});
            
            
            await queryInterface.bulkDelete('conference_nodes', null, {});
            
            
            await queryInterface.bulkDelete('sfu_allocations', null, {});
            
            
            await queryInterface.bulkDelete('breakout_rooms', null, {});
            
            
            await queryInterface.bulkDelete('chat_channels', null, {});
            
            
            await queryInterface.bulkDelete('chat_messages', null, {});
            
            
            await queryInterface.bulkDelete('files', null, {});
            
            
            await queryInterface.bulkDelete('room_files', null, {});
            
            
            await queryInterface.bulkDelete('recordings', null, {});
            
            
            await queryInterface.bulkDelete('transcripts', null, {});
            
            
            await queryInterface.bulkDelete('canvas_documents', null, {});
            
            
            await queryInterface.bulkDelete('canvas_events', null, {});
            
            
            await queryInterface.bulkDelete('layout_models', null, {});
            
            
            await queryInterface.bulkDelete('layout_preferences', null, {});
            
            
            await queryInterface.bulkDelete('federated_learning_updates', null, {});
            
            
            await queryInterface.bulkDelete('ai_companion_sessions', null, {});
            
            
            await queryInterface.bulkDelete('knowledge_graph_items', null, {});
            
            
            await queryInterface.bulkDelete('external_integrations', null, {});
            
            
            await queryInterface.bulkDelete('tasks', null, {});
            
            
            await queryInterface.bulkDelete('courses', null, {});
            
            
            await queryInterface.bulkDelete('course_enrollments', null, {});
            
            
            await queryInterface.bulkDelete('assignments', null, {});
            
            
            await queryInterface.bulkDelete('submissions', null, {});
            
            
            await queryInterface.bulkDelete('quizzes', null, {});
            
            
            await queryInterface.bulkDelete('quiz_results', null, {});
            
            
            await queryInterface.bulkDelete('marketplace_apps', null, {});
            
            
            await queryInterface.bulkDelete('app_installations', null, {});
            
            
            await queryInterface.bulkDelete('app_crash_reports', null, {});
            
            
            await queryInterface.bulkDelete('audit_events', null, {});
            
            
            await queryInterface.bulkDelete('data_subject_requests', null, {});
            
            
            await queryInterface.bulkDelete('service_incidents', null, {});
            
            
            await queryInterface.bulkDelete('deployment_changes', null, {});
            
            
            await queryInterface.bulkDelete('feature_flags', null, {});
            
            
            await queryInterface.bulkDelete('quality_reports', null, {});
            
            
            await queryInterface.bulkDelete('event_streams', null, {});
            
            
            await queryInterface.bulkDelete('conference_events', null, {});
            
        
    },
};