





















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






const Organizations = db.organizations;

const Teams = db.teams;

const OauthAccounts = db.oauth_accounts;

const Integrations = db.integrations;

const UserStories = db.user_stories;

const AcceptanceCriteria = db.acceptance_criteria;

const Documents = db.documents;

const DocumentFolders = db.document_folders;

const DocumentVersions = db.document_versions;

const StoryDocumentLinks = db.story_document_links;

const CollaborationSessions = db.collaboration_sessions;

const CommentThreads = db.comment_threads;

const Comments = db.comments;

const CommentReactions = db.comment_reactions;

const Mentions = db.mentions;

const ApprovalWorkflows = db.approval_workflows;

const Approvals = db.approvals;

const ApprovalReviewers = db.approval_reviewers;

const AuditEvents = db.audit_events;

const Notifications = db.notifications;

const Sprints = db.sprints;

const SprintItems = db.sprint_items;

const Blockers = db.blockers;

const ActivityFeedItems = db.activity_feed_items;

const AiGenerations = db.ai_generations;







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



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



const OauthAccountsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "google",
            
        
    
        
        
            
                "provider_user_key": "Grace Hopper",
            
        
    
        
        
            
                "linked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "microsoft",
            
        
    
        
        
            
                "provider_user_key": "Grace Hopper",
            
        
    
        
        
            
                "linked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "google",
            
        
    
        
        
            
                "provider_user_key": "Grace Hopper",
            
        
    
        
        
            
                "linked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "microsoft",
            
        
    
        
        
            
                "provider_user_key": "Ada Lovelace",
            
        
    
        
        
            
                "linked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "microsoft",
            
        
    
        
        
            
                "provider_user_key": "Alan Turing",
            
        
    
        
        
            
                "linked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const IntegrationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "azure_devops",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "config_json": "Grace Hopper",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "azure_devops",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "config_json": "Ada Lovelace",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "azure_devops",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "config_json": "Grace Hopper",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "azure_devops",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "config_json": "Ada Lovelace",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "gitlab",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "config_json": "Alan Turing",
            
        
    
        
        
            
                "connected_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const UserStoriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "as_a": "Ada Lovelace",
            
        
    
        
        
            
                "i_want": "Ada Lovelace",
            
        
    
        
        
            
                "so_that": "Marie Curie",
            
        
    
        
        
            
                "template_type": "bug_fix",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "board_column": "review",
            
        
    
        
        
            
                "priority": "medium",
            
        
    
        
        
            
                "quality_score": 7,
            
        
    
        
        
            
                "quality_suggestions": "Marie Curie",
            
        
    
        
        
            
                "tags_csv": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "as_a": "Grace Hopper",
            
        
    
        
        
            
                "i_want": "Ada Lovelace",
            
        
    
        
        
            
                "so_that": "Alan Turing",
            
        
    
        
        
            
                "template_type": "bug_fix",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "board_column": "review",
            
        
    
        
        
            
                "priority": "low",
            
        
    
        
        
            
                "quality_score": 8,
            
        
    
        
        
            
                "quality_suggestions": "Ada Lovelace",
            
        
    
        
        
            
                "tags_csv": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "as_a": "Ada Lovelace",
            
        
    
        
        
            
                "i_want": "Marie Curie",
            
        
    
        
        
            
                "so_that": "Ada Lovelace",
            
        
    
        
        
            
                "template_type": "feature_story",
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "board_column": "in_progress",
            
        
    
        
        
            
                "priority": "critical",
            
        
    
        
        
            
                "quality_score": 7,
            
        
    
        
        
            
                "quality_suggestions": "Ada Lovelace",
            
        
    
        
        
            
                "tags_csv": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "as_a": "Grace Hopper",
            
        
    
        
        
            
                "i_want": "Grace Hopper",
            
        
    
        
        
            
                "so_that": "Ada Lovelace",
            
        
    
        
        
            
                "template_type": "tech_debt",
            
        
    
        
        
            
                "status": "done",
            
        
    
        
        
            
                "board_column": "review",
            
        
    
        
        
            
                "priority": "critical",
            
        
    
        
        
            
                "quality_score": 9,
            
        
    
        
        
            
                "quality_suggestions": "Marie Curie",
            
        
    
        
        
            
                "tags_csv": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "as_a": "Marie Curie",
            
        
    
        
        
            
                "i_want": "Grace Hopper",
            
        
    
        
        
            
                "so_that": "Grace Hopper",
            
        
    
        
        
            
                "template_type": "tech_debt",
            
        
    
        
        
            
                "status": "ready",
            
        
    
        
        
            
                "board_column": "in_progress",
            
        
    
        
        
            
                "priority": "low",
            
        
    
        
        
            
                "quality_score": 1,
            
        
    
        
        
            
                "quality_suggestions": "Marie Curie",
            
        
    
        
        
            
                "tags_csv": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_time": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_time": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AcceptanceCriteriaData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
        
        
            
                "given_text": "Marie Curie",
            
        
    
        
        
            
                "when_text": "Marie Curie",
            
        
    
        
        
            
                "then_text": "Ada Lovelace",
            
        
    
        
        
            
                "is_automatable": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                "given_text": "Grace Hopper",
            
        
    
        
        
            
                "when_text": "Alan Turing",
            
        
    
        
        
            
                "then_text": "Ada Lovelace",
            
        
    
        
        
            
                "is_automatable": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                "given_text": "Alan Turing",
            
        
    
        
        
            
                "when_text": "Marie Curie",
            
        
    
        
        
            
                "then_text": "Ada Lovelace",
            
        
    
        
        
            
                "is_automatable": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
        
        
            
                "given_text": "Alan Turing",
            
        
    
        
        
            
                "when_text": "Grace Hopper",
            
        
    
        
        
            
                "then_text": "Ada Lovelace",
            
        
    
        
        
            
                "is_automatable": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
        
        
            
                "given_text": "Grace Hopper",
            
        
    
        
        
            
                "when_text": "Ada Lovelace",
            
        
    
        
        
            
                "then_text": "Alan Turing",
            
        
    
        
        
            
                "is_automatable": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "content_markdown": "Marie Curie",
            
        
    
        
        
            
                "current_version_number": 8,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_archived": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "content_markdown": "Grace Hopper",
            
        
    
        
        
            
                "current_version_number": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_archived": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "content_markdown": "Ada Lovelace",
            
        
    
        
        
            
                "current_version_number": 8,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_archived": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "content_markdown": "Alan Turing",
            
        
    
        
        
            
                "current_version_number": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_archived": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "content_markdown": "Ada Lovelace",
            
        
    
        
        
            
                "current_version_number": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_edited_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_archived": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DocumentFoldersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DocumentVersionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_number": 8,
            
        
    
        
        
            
                "content_markdown": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "saved_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_number": 9,
            
        
    
        
        
            
                "content_markdown": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "saved_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_number": 7,
            
        
    
        
        
            
                "content_markdown": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "saved_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_number": 1,
            
        
    
        
        
            
                "content_markdown": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "saved_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_number": 1,
            
        
    
        
        
            
                "content_markdown": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "saved_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const StoryDocumentLinksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "link_type": "references",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "link_type": "references",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "link_type": "specifies",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "link_type": "tests",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "link_type": "implements",
            
        
    
        
        
            
                "linked_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CollaborationSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_type": "document_edit",
            
        
    
        
        
            
                "channel_key": "Ada Lovelace",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_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
            
        
    
        
        
            
                "session_type": "story_map",
            
        
    
        
        
            
                "channel_key": "Alan Turing",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_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
            
        
    
        
        
            
                "session_type": "story_map",
            
        
    
        
        
            
                "channel_key": "Ada Lovelace",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_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
            
        
    
        
        
            
                "session_type": "story_map",
            
        
    
        
        
            
                "channel_key": "Ada Lovelace",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_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
            
        
    
        
        
            
                "session_type": "document_edit",
            
        
    
        
        
            
                "channel_key": "Marie Curie",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CommentThreadsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "anchor_key": "Ada Lovelace",
            
        
    
        
        
            
                "anchor_excerpt": "Alan Turing",
            
        
    
        
        
            
                "is_resolved": false,
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_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
            
        
    
        
        
            
                "anchor_key": "Ada Lovelace",
            
        
    
        
        
            
                "anchor_excerpt": "Marie Curie",
            
        
    
        
        
            
                "is_resolved": false,
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_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
            
        
    
        
        
            
                "anchor_key": "Alan Turing",
            
        
    
        
        
            
                "anchor_excerpt": "Ada Lovelace",
            
        
    
        
        
            
                "is_resolved": true,
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_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
            
        
    
        
        
            
                "anchor_key": "Ada Lovelace",
            
        
    
        
        
            
                "anchor_excerpt": "Marie Curie",
            
        
    
        
        
            
                "is_resolved": true,
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_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
            
        
    
        
        
            
                "anchor_key": "Ada Lovelace",
            
        
    
        
        
            
                "anchor_excerpt": "Grace Hopper",
            
        
    
        
        
            
                "is_resolved": true,
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



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



const CommentReactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "emoji": "Marie Curie",
            
        
    
        
        
            
                "reacted_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
            
        
    
        
        
            
                "emoji": "Alan Turing",
            
        
    
        
        
            
                "reacted_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
            
        
    
        
        
            
                "emoji": "Grace Hopper",
            
        
    
        
        
            
                "reacted_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
            
        
    
        
        
            
                "emoji": "Marie Curie",
            
        
    
        
        
            
                "reacted_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
            
        
    
        
        
            
                "emoji": "Marie Curie",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const MentionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "mentioned_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
            
        
    
        
        
            
                "mentioned_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
            
        
    
        
        
            
                "mentioned_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
            
        
    
        
        
            
                "mentioned_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
            
        
    
        
        
            
                "mentioned_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApprovalWorkflowsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "applies_to": "story",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "applies_to": "story",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "applies_to": "document",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "applies_to": "story",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "applies_to": "story",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApprovalsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApprovalReviewersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision": "approved",
            
        
    
        
        
            
                "decided_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
            
        
    
        
        
            
                "decision": "approved",
            
        
    
        
        
            
                "decided_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
            
        
    
        
        
            
                "decision": "approved",
            
        
    
        
        
            
                "decided_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
            
        
    
        
        
            
                "decision": "rejected",
            
        
    
        
        
            
                "decided_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
            
        
    
        
        
            
                "decision": "approved",
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AuditEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entity_type": "user_story",
            
        
    
        
        
            
                "entity_key": "Ada Lovelace",
            
        
    
        
        
            
                "action": "approved",
            
        
    
        
        
            
                "metadata_json": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entity_type": "integration",
            
        
    
        
        
            
                "entity_key": "Grace Hopper",
            
        
    
        
        
            
                "action": "unlinked",
            
        
    
        
        
            
                "metadata_json": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entity_type": "team",
            
        
    
        
        
            
                "entity_key": "Marie Curie",
            
        
    
        
        
            
                "action": "updated",
            
        
    
        
        
            
                "metadata_json": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entity_type": "integration",
            
        
    
        
        
            
                "entity_key": "Ada Lovelace",
            
        
    
        
        
            
                "action": "rejected",
            
        
    
        
        
            
                "metadata_json": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entity_type": "user_story",
            
        
    
        
        
            
                "entity_key": "Ada Lovelace",
            
        
    
        
        
            
                "action": "rejected",
            
        
    
        
        
            
                "metadata_json": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "doc_updated",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "link_path": "Marie Curie",
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "approval_requested",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "link_path": "Marie Curie",
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "comment_reply",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "link_path": "Alan Turing",
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "approval_decided",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "link_path": "Marie Curie",
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "doc_updated",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "link_path": "Alan Turing",
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SprintsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "planned",
            
        
    
        
        
            
                "planned_velocity": 1.88,
            
        
    
        
        
            
                "actual_velocity": 4.93,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "planned_velocity": 2.29,
            
        
    
        
        
            
                "actual_velocity": 1.2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "planned_velocity": 8.18,
            
        
    
        
        
            
                "actual_velocity": 9.67,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "planned_velocity": 5.38,
            
        
    
        
        
            
                "actual_velocity": 1.82,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "planned_velocity": 6.35,
            
        
    
        
        
            
                "actual_velocity": 1.26,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SprintItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "removed",
            
        
    
        
        
            
                "story_points": 9.86,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "committed",
            
        
    
        
        
            
                "story_points": 6.92,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "removed",
            
        
    
        
        
            
                "story_points": 6.88,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "added",
            
        
    
        
        
            
                "story_points": 1.43,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "state": "committed",
            
        
    
        
        
            
                "story_points": 3.52,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BlockersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ActivityFeedItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "sprint",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "link_path": "Alan Turing",
            
        
    
        
        
            
                "happened_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
            
        
    
        
        
            
                "category": "approval",
            
        
    
        
        
            
                "summary": "Ada Lovelace",
            
        
    
        
        
            
                "link_path": "Marie Curie",
            
        
    
        
        
            
                "happened_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
            
        
    
        
        
            
                "category": "approval",
            
        
    
        
        
            
                "summary": "Grace Hopper",
            
        
    
        
        
            
                "link_path": "Ada Lovelace",
            
        
    
        
        
            
                "happened_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
            
        
    
        
        
            
                "category": "comment",
            
        
    
        
        
            
                "summary": "Ada Lovelace",
            
        
    
        
        
            
                "link_path": "Grace Hopper",
            
        
    
        
        
            
                "happened_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
            
        
    
        
        
            
                "category": "document",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                "link_path": "Ada Lovelace",
            
        
    
        
        
            
                "happened_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AiGenerationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "generation_type": "acceptance_criteria",
            
        
    
        
        
            
                "input_text": "Marie Curie",
            
        
    
        
        
            
                "output_json": "Ada Lovelace",
            
        
    
        
        
            
                "estimated_cost": 3.26,
            
        
    
        
        
            
                "requested_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
            
        
    
        
        
            
                "generation_type": "rewrite",
            
        
    
        
        
            
                "input_text": "Ada Lovelace",
            
        
    
        
        
            
                "output_json": "Marie Curie",
            
        
    
        
        
            
                "estimated_cost": 6.24,
            
        
    
        
        
            
                "requested_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
            
        
    
        
        
            
                "generation_type": "acceptance_criteria",
            
        
    
        
        
            
                "input_text": "Grace Hopper",
            
        
    
        
        
            
                "output_json": "Alan Turing",
            
        
    
        
        
            
                "estimated_cost": 2.54,
            
        
    
        
        
            
                "requested_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
            
        
    
        
        
            
                "generation_type": "story",
            
        
    
        
        
            
                "input_text": "Alan Turing",
            
        
    
        
        
            
                "output_json": "Ada Lovelace",
            
        
    
        
        
            
                "estimated_cost": 1.87,
            
        
    
        
        
            
                "requested_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
            
        
    
        
        
            
                "generation_type": "quality_check",
            
        
    
        
        
            
                "input_text": "Ada Lovelace",
            
        
    
        
        
            
                "output_json": "Alan Turing",
            
        
    
        
        
            
                "estimated_cost": 8.42,
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];




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

    
    
    
    
    
        
    

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

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

    
    
    
        
            
            async function associateIntegrationWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Integration0 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Integration0?.setTeam)
                {
                    await
                    Integration0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Integration1 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Integration1?.setTeam)
                {
                    await
                    Integration1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Integration2 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Integration2?.setTeam)
                {
                    await
                    Integration2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Integration3 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Integration3?.setTeam)
                {
                    await
                    Integration3.
                    setTeam(relatedTeam3);
                }
            
                const relatedTeam4 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Integration4 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Integration4?.setTeam)
                {
                    await
                    Integration4.
                    setTeam(relatedTeam4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateIntegrationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration0 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Integration0?.setOrganization)
                {
                    await
                    Integration0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration1 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Integration1?.setOrganization)
                {
                    await
                    Integration1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration2 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Integration2?.setOrganization)
                {
                    await
                    Integration2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration3 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Integration3?.setOrganization)
                {
                    await
                    Integration3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Integration4 = await Integrations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Integration4?.setOrganization)
                {
                    await
                    Integration4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateUserStoryWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const UserStory0 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserStory0?.setTeam)
                {
                    await
                    UserStory0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const UserStory1 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserStory1?.setTeam)
                {
                    await
                    UserStory1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const UserStory2 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserStory2?.setTeam)
                {
                    await
                    UserStory2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const UserStory3 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserStory3?.setTeam)
                {
                    await
                    UserStory3.
                    setTeam(relatedTeam3);
                }
            
                const relatedTeam4 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const UserStory4 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserStory4?.setTeam)
                {
                    await
                    UserStory4.
                    setTeam(relatedTeam4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateUserStoryWithAssignee() {
            
                const relatedAssignee0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserStory0 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserStory0?.setAssignee)
                {
                    await
                    UserStory0.
                    setAssignee(relatedAssignee0);
                }
            
                const relatedAssignee1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserStory1 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserStory1?.setAssignee)
                {
                    await
                    UserStory1.
                    setAssignee(relatedAssignee1);
                }
            
                const relatedAssignee2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserStory2 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserStory2?.setAssignee)
                {
                    await
                    UserStory2.
                    setAssignee(relatedAssignee2);
                }
            
                const relatedAssignee3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserStory3 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserStory3?.setAssignee)
                {
                    await
                    UserStory3.
                    setAssignee(relatedAssignee3);
                }
            
                const relatedAssignee4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserStory4 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserStory4?.setAssignee)
                {
                    await
                    UserStory4.
                    setAssignee(relatedAssignee4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateUserStoryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserStory0 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserStory0?.setOrganization)
                {
                    await
                    UserStory0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserStory1 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserStory1?.setOrganization)
                {
                    await
                    UserStory1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserStory2 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserStory2?.setOrganization)
                {
                    await
                    UserStory2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserStory3 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserStory3?.setOrganization)
                {
                    await
                    UserStory3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const UserStory4 = await UserStories.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserStory4?.setOrganization)
                {
                    await
                    UserStory4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAcceptanceCriteriaWithStory() {
            
                const relatedStory0 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AcceptanceCriteria0 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AcceptanceCriteria0?.setStory)
                {
                    await
                    AcceptanceCriteria0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AcceptanceCriteria1 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AcceptanceCriteria1?.setStory)
                {
                    await
                    AcceptanceCriteria1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AcceptanceCriteria2 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AcceptanceCriteria2?.setStory)
                {
                    await
                    AcceptanceCriteria2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AcceptanceCriteria3 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AcceptanceCriteria3?.setStory)
                {
                    await
                    AcceptanceCriteria3.
                    setStory(relatedStory3);
                }
            
                const relatedStory4 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AcceptanceCriteria4 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AcceptanceCriteria4?.setStory)
                {
                    await
                    AcceptanceCriteria4.
                    setStory(relatedStory4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAcceptanceCriteriaWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AcceptanceCriteria0 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AcceptanceCriteria0?.setOrganization)
                {
                    await
                    AcceptanceCriteria0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AcceptanceCriteria1 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AcceptanceCriteria1?.setOrganization)
                {
                    await
                    AcceptanceCriteria1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AcceptanceCriteria2 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AcceptanceCriteria2?.setOrganization)
                {
                    await
                    AcceptanceCriteria2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AcceptanceCriteria3 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AcceptanceCriteria3?.setOrganization)
                {
                    await
                    AcceptanceCriteria3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AcceptanceCriteria4 = await AcceptanceCriteria.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AcceptanceCriteria4?.setOrganization)
                {
                    await
                    AcceptanceCriteria4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDocumentWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setTeam)
                {
                    await
                    Document0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setTeam)
                {
                    await
                    Document1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setTeam)
                {
                    await
                    Document2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setTeam)
                {
                    await
                    Document3.
                    setTeam(relatedTeam3);
                }
            
                const relatedTeam4 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setTeam)
                {
                    await
                    Document4.
                    setTeam(relatedTeam4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateDocumentWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setAuthor)
                {
                    await
                    Document0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setAuthor)
                {
                    await
                    Document1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setAuthor)
                {
                    await
                    Document2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setAuthor)
                {
                    await
                    Document3.
                    setAuthor(relatedAuthor3);
                }
            
                const relatedAuthor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setAuthor)
                {
                    await
                    Document4.
                    setAuthor(relatedAuthor4);
                }
            
        }
        
    
        
            
            async function associateDocumentWithFolder() {
            
                const relatedFolder0 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setFolder)
                {
                    await
                    Document0.
                    setFolder(relatedFolder0);
                }
            
                const relatedFolder1 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setFolder)
                {
                    await
                    Document1.
                    setFolder(relatedFolder1);
                }
            
                const relatedFolder2 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setFolder)
                {
                    await
                    Document2.
                    setFolder(relatedFolder2);
                }
            
                const relatedFolder3 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setFolder)
                {
                    await
                    Document3.
                    setFolder(relatedFolder3);
                }
            
                const relatedFolder4 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setFolder)
                {
                    await
                    Document4.
                    setFolder(relatedFolder4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateDocumentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setOrganization)
                {
                    await
                    Document0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setOrganization)
                {
                    await
                    Document1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setOrganization)
                {
                    await
                    Document2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setOrganization)
                {
                    await
                    Document3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setOrganization)
                {
                    await
                    Document4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDocumentFolderWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const DocumentFolder0 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentFolder0?.setTeam)
                {
                    await
                    DocumentFolder0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const DocumentFolder1 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentFolder1?.setTeam)
                {
                    await
                    DocumentFolder1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const DocumentFolder2 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentFolder2?.setTeam)
                {
                    await
                    DocumentFolder2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const DocumentFolder3 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentFolder3?.setTeam)
                {
                    await
                    DocumentFolder3.
                    setTeam(relatedTeam3);
                }
            
                const relatedTeam4 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const DocumentFolder4 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentFolder4?.setTeam)
                {
                    await
                    DocumentFolder4.
                    setTeam(relatedTeam4);
                }
            
        }
        
    
        
    
        
            
            async function associateDocumentFolderWithParent() {
            
                const relatedParent0 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const DocumentFolder0 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentFolder0?.setParent)
                {
                    await
                    DocumentFolder0.
                    setParent(relatedParent0);
                }
            
                const relatedParent1 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const DocumentFolder1 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentFolder1?.setParent)
                {
                    await
                    DocumentFolder1.
                    setParent(relatedParent1);
                }
            
                const relatedParent2 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const DocumentFolder2 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentFolder2?.setParent)
                {
                    await
                    DocumentFolder2.
                    setParent(relatedParent2);
                }
            
                const relatedParent3 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const DocumentFolder3 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentFolder3?.setParent)
                {
                    await
                    DocumentFolder3.
                    setParent(relatedParent3);
                }
            
                const relatedParent4 = await DocumentFolders.findOne({
                    offset: Math.floor(Math.random() * (await DocumentFolders.count())),
                });
                const DocumentFolder4 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentFolder4?.setParent)
                {
                    await
                    DocumentFolder4.
                    setParent(relatedParent4);
                }
            
        }
        
    
        
    
        
            
            async function associateDocumentFolderWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentFolder0 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentFolder0?.setOrganization)
                {
                    await
                    DocumentFolder0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentFolder1 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentFolder1?.setOrganization)
                {
                    await
                    DocumentFolder1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentFolder2 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentFolder2?.setOrganization)
                {
                    await
                    DocumentFolder2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentFolder3 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentFolder3?.setOrganization)
                {
                    await
                    DocumentFolder3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentFolder4 = await DocumentFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentFolder4?.setOrganization)
                {
                    await
                    DocumentFolder4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDocumentVersionWithDocument() {
            
                const relatedDocument0 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion0 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentVersion0?.setDocument)
                {
                    await
                    DocumentVersion0.
                    setDocument(relatedDocument0);
                }
            
                const relatedDocument1 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion1 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentVersion1?.setDocument)
                {
                    await
                    DocumentVersion1.
                    setDocument(relatedDocument1);
                }
            
                const relatedDocument2 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion2 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentVersion2?.setDocument)
                {
                    await
                    DocumentVersion2.
                    setDocument(relatedDocument2);
                }
            
                const relatedDocument3 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion3 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentVersion3?.setDocument)
                {
                    await
                    DocumentVersion3.
                    setDocument(relatedDocument3);
                }
            
                const relatedDocument4 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion4 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentVersion4?.setDocument)
                {
                    await
                    DocumentVersion4.
                    setDocument(relatedDocument4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateDocumentVersionWithEditor() {
            
                const relatedEditor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentVersion0 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentVersion0?.setEditor)
                {
                    await
                    DocumentVersion0.
                    setEditor(relatedEditor0);
                }
            
                const relatedEditor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentVersion1 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentVersion1?.setEditor)
                {
                    await
                    DocumentVersion1.
                    setEditor(relatedEditor1);
                }
            
                const relatedEditor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentVersion2 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentVersion2?.setEditor)
                {
                    await
                    DocumentVersion2.
                    setEditor(relatedEditor2);
                }
            
                const relatedEditor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentVersion3 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentVersion3?.setEditor)
                {
                    await
                    DocumentVersion3.
                    setEditor(relatedEditor3);
                }
            
                const relatedEditor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentVersion4 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentVersion4?.setEditor)
                {
                    await
                    DocumentVersion4.
                    setEditor(relatedEditor4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateDocumentVersionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentVersion0 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentVersion0?.setOrganization)
                {
                    await
                    DocumentVersion0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentVersion1 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentVersion1?.setOrganization)
                {
                    await
                    DocumentVersion1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentVersion2 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentVersion2?.setOrganization)
                {
                    await
                    DocumentVersion2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentVersion3 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentVersion3?.setOrganization)
                {
                    await
                    DocumentVersion3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentVersion4 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentVersion4?.setOrganization)
                {
                    await
                    DocumentVersion4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateStoryDocumentLinkWithStory() {
            
                const relatedStory0 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const StoryDocumentLink0 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StoryDocumentLink0?.setStory)
                {
                    await
                    StoryDocumentLink0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const StoryDocumentLink1 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StoryDocumentLink1?.setStory)
                {
                    await
                    StoryDocumentLink1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const StoryDocumentLink2 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StoryDocumentLink2?.setStory)
                {
                    await
                    StoryDocumentLink2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const StoryDocumentLink3 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StoryDocumentLink3?.setStory)
                {
                    await
                    StoryDocumentLink3.
                    setStory(relatedStory3);
                }
            
                const relatedStory4 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const StoryDocumentLink4 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StoryDocumentLink4?.setStory)
                {
                    await
                    StoryDocumentLink4.
                    setStory(relatedStory4);
                }
            
        }
        
    
        
            
            async function associateStoryDocumentLinkWithDocument() {
            
                const relatedDocument0 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const StoryDocumentLink0 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StoryDocumentLink0?.setDocument)
                {
                    await
                    StoryDocumentLink0.
                    setDocument(relatedDocument0);
                }
            
                const relatedDocument1 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const StoryDocumentLink1 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StoryDocumentLink1?.setDocument)
                {
                    await
                    StoryDocumentLink1.
                    setDocument(relatedDocument1);
                }
            
                const relatedDocument2 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const StoryDocumentLink2 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StoryDocumentLink2?.setDocument)
                {
                    await
                    StoryDocumentLink2.
                    setDocument(relatedDocument2);
                }
            
                const relatedDocument3 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const StoryDocumentLink3 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StoryDocumentLink3?.setDocument)
                {
                    await
                    StoryDocumentLink3.
                    setDocument(relatedDocument3);
                }
            
                const relatedDocument4 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const StoryDocumentLink4 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StoryDocumentLink4?.setDocument)
                {
                    await
                    StoryDocumentLink4.
                    setDocument(relatedDocument4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateStoryDocumentLinkWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const StoryDocumentLink0 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StoryDocumentLink0?.setOrganization)
                {
                    await
                    StoryDocumentLink0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const StoryDocumentLink1 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StoryDocumentLink1?.setOrganization)
                {
                    await
                    StoryDocumentLink1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const StoryDocumentLink2 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StoryDocumentLink2?.setOrganization)
                {
                    await
                    StoryDocumentLink2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const StoryDocumentLink3 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StoryDocumentLink3?.setOrganization)
                {
                    await
                    StoryDocumentLink3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const StoryDocumentLink4 = await StoryDocumentLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StoryDocumentLink4?.setOrganization)
                {
                    await
                    StoryDocumentLink4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCollaborationSessionWithDocument() {
            
                const relatedDocument0 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CollaborationSession0 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CollaborationSession0?.setDocument)
                {
                    await
                    CollaborationSession0.
                    setDocument(relatedDocument0);
                }
            
                const relatedDocument1 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CollaborationSession1 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CollaborationSession1?.setDocument)
                {
                    await
                    CollaborationSession1.
                    setDocument(relatedDocument1);
                }
            
                const relatedDocument2 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CollaborationSession2 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CollaborationSession2?.setDocument)
                {
                    await
                    CollaborationSession2.
                    setDocument(relatedDocument2);
                }
            
                const relatedDocument3 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CollaborationSession3 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CollaborationSession3?.setDocument)
                {
                    await
                    CollaborationSession3.
                    setDocument(relatedDocument3);
                }
            
                const relatedDocument4 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CollaborationSession4 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CollaborationSession4?.setDocument)
                {
                    await
                    CollaborationSession4.
                    setDocument(relatedDocument4);
                }
            
        }
        
    
        
            
            async function associateCollaborationSessionWithStory() {
            
                const relatedStory0 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CollaborationSession0 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CollaborationSession0?.setStory)
                {
                    await
                    CollaborationSession0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CollaborationSession1 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CollaborationSession1?.setStory)
                {
                    await
                    CollaborationSession1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CollaborationSession2 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CollaborationSession2?.setStory)
                {
                    await
                    CollaborationSession2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CollaborationSession3 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CollaborationSession3?.setStory)
                {
                    await
                    CollaborationSession3.
                    setStory(relatedStory3);
                }
            
                const relatedStory4 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CollaborationSession4 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CollaborationSession4?.setStory)
                {
                    await
                    CollaborationSession4.
                    setStory(relatedStory4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCollaborationSessionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CollaborationSession0 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CollaborationSession0?.setOrganization)
                {
                    await
                    CollaborationSession0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CollaborationSession1 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CollaborationSession1?.setOrganization)
                {
                    await
                    CollaborationSession1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CollaborationSession2 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CollaborationSession2?.setOrganization)
                {
                    await
                    CollaborationSession2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CollaborationSession3 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CollaborationSession3?.setOrganization)
                {
                    await
                    CollaborationSession3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CollaborationSession4 = await CollaborationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CollaborationSession4?.setOrganization)
                {
                    await
                    CollaborationSession4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCommentThreadWithDocument() {
            
                const relatedDocument0 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CommentThread0 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommentThread0?.setDocument)
                {
                    await
                    CommentThread0.
                    setDocument(relatedDocument0);
                }
            
                const relatedDocument1 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CommentThread1 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommentThread1?.setDocument)
                {
                    await
                    CommentThread1.
                    setDocument(relatedDocument1);
                }
            
                const relatedDocument2 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CommentThread2 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommentThread2?.setDocument)
                {
                    await
                    CommentThread2.
                    setDocument(relatedDocument2);
                }
            
                const relatedDocument3 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CommentThread3 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommentThread3?.setDocument)
                {
                    await
                    CommentThread3.
                    setDocument(relatedDocument3);
                }
            
                const relatedDocument4 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const CommentThread4 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommentThread4?.setDocument)
                {
                    await
                    CommentThread4.
                    setDocument(relatedDocument4);
                }
            
        }
        
    
        
            
            async function associateCommentThreadWithStory() {
            
                const relatedStory0 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CommentThread0 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommentThread0?.setStory)
                {
                    await
                    CommentThread0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CommentThread1 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommentThread1?.setStory)
                {
                    await
                    CommentThread1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CommentThread2 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommentThread2?.setStory)
                {
                    await
                    CommentThread2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CommentThread3 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommentThread3?.setStory)
                {
                    await
                    CommentThread3.
                    setStory(relatedStory3);
                }
            
                const relatedStory4 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const CommentThread4 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommentThread4?.setStory)
                {
                    await
                    CommentThread4.
                    setStory(relatedStory4);
                }
            
        }
        
    
        
            
            async function associateCommentThreadWithCreated_by_user() {
            
                const relatedCreated_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentThread0 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommentThread0?.setCreated_by_user)
                {
                    await
                    CommentThread0.
                    setCreated_by_user(relatedCreated_by_user0);
                }
            
                const relatedCreated_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentThread1 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommentThread1?.setCreated_by_user)
                {
                    await
                    CommentThread1.
                    setCreated_by_user(relatedCreated_by_user1);
                }
            
                const relatedCreated_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentThread2 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommentThread2?.setCreated_by_user)
                {
                    await
                    CommentThread2.
                    setCreated_by_user(relatedCreated_by_user2);
                }
            
                const relatedCreated_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentThread3 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommentThread3?.setCreated_by_user)
                {
                    await
                    CommentThread3.
                    setCreated_by_user(relatedCreated_by_user3);
                }
            
                const relatedCreated_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentThread4 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommentThread4?.setCreated_by_user)
                {
                    await
                    CommentThread4.
                    setCreated_by_user(relatedCreated_by_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCommentThreadWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentThread0 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommentThread0?.setOrganization)
                {
                    await
                    CommentThread0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentThread1 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommentThread1?.setOrganization)
                {
                    await
                    CommentThread1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentThread2 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommentThread2?.setOrganization)
                {
                    await
                    CommentThread2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentThread3 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommentThread3?.setOrganization)
                {
                    await
                    CommentThread3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentThread4 = await CommentThreads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommentThread4?.setOrganization)
                {
                    await
                    CommentThread4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCommentWithThread() {
            
                const relatedThread0 = await CommentThreads.findOne({
                    offset: Math.floor(Math.random() * (await CommentThreads.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setThread)
                {
                    await
                    Comment0.
                    setThread(relatedThread0);
                }
            
                const relatedThread1 = await CommentThreads.findOne({
                    offset: Math.floor(Math.random() * (await CommentThreads.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setThread)
                {
                    await
                    Comment1.
                    setThread(relatedThread1);
                }
            
                const relatedThread2 = await CommentThreads.findOne({
                    offset: Math.floor(Math.random() * (await CommentThreads.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setThread)
                {
                    await
                    Comment2.
                    setThread(relatedThread2);
                }
            
                const relatedThread3 = await CommentThreads.findOne({
                    offset: Math.floor(Math.random() * (await CommentThreads.count())),
                });
                const Comment3 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Comment3?.setThread)
                {
                    await
                    Comment3.
                    setThread(relatedThread3);
                }
            
                const relatedThread4 = await CommentThreads.findOne({
                    offset: Math.floor(Math.random() * (await CommentThreads.count())),
                });
                const Comment4 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Comment4?.setThread)
                {
                    await
                    Comment4.
                    setThread(relatedThread4);
                }
            
        }
        
    
        
            
            async function associateCommentWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setAuthor)
                {
                    await
                    Comment0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setAuthor)
                {
                    await
                    Comment1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setAuthor)
                {
                    await
                    Comment2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment3 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Comment3?.setAuthor)
                {
                    await
                    Comment3.
                    setAuthor(relatedAuthor3);
                }
            
                const relatedAuthor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment4 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Comment4?.setAuthor)
                {
                    await
                    Comment4.
                    setAuthor(relatedAuthor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateCommentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setOrganization)
                {
                    await
                    Comment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setOrganization)
                {
                    await
                    Comment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setOrganization)
                {
                    await
                    Comment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Comment3 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Comment3?.setOrganization)
                {
                    await
                    Comment3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Comment4 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Comment4?.setOrganization)
                {
                    await
                    Comment4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCommentReactionWithComment() {
            
                const relatedComment0 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const CommentReaction0 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommentReaction0?.setComment)
                {
                    await
                    CommentReaction0.
                    setComment(relatedComment0);
                }
            
                const relatedComment1 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const CommentReaction1 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommentReaction1?.setComment)
                {
                    await
                    CommentReaction1.
                    setComment(relatedComment1);
                }
            
                const relatedComment2 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const CommentReaction2 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommentReaction2?.setComment)
                {
                    await
                    CommentReaction2.
                    setComment(relatedComment2);
                }
            
                const relatedComment3 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const CommentReaction3 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommentReaction3?.setComment)
                {
                    await
                    CommentReaction3.
                    setComment(relatedComment3);
                }
            
                const relatedComment4 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const CommentReaction4 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommentReaction4?.setComment)
                {
                    await
                    CommentReaction4.
                    setComment(relatedComment4);
                }
            
        }
        
    
        
            
            async function associateCommentReactionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentReaction0 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommentReaction0?.setUser)
                {
                    await
                    CommentReaction0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentReaction1 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommentReaction1?.setUser)
                {
                    await
                    CommentReaction1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentReaction2 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommentReaction2?.setUser)
                {
                    await
                    CommentReaction2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentReaction3 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommentReaction3?.setUser)
                {
                    await
                    CommentReaction3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommentReaction4 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommentReaction4?.setUser)
                {
                    await
                    CommentReaction4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateCommentReactionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentReaction0 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommentReaction0?.setOrganization)
                {
                    await
                    CommentReaction0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentReaction1 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommentReaction1?.setOrganization)
                {
                    await
                    CommentReaction1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentReaction2 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommentReaction2?.setOrganization)
                {
                    await
                    CommentReaction2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentReaction3 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommentReaction3?.setOrganization)
                {
                    await
                    CommentReaction3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const CommentReaction4 = await CommentReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommentReaction4?.setOrganization)
                {
                    await
                    CommentReaction4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMentionWithComment() {
            
                const relatedComment0 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Mention0 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Mention0?.setComment)
                {
                    await
                    Mention0.
                    setComment(relatedComment0);
                }
            
                const relatedComment1 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Mention1 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Mention1?.setComment)
                {
                    await
                    Mention1.
                    setComment(relatedComment1);
                }
            
                const relatedComment2 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Mention2 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Mention2?.setComment)
                {
                    await
                    Mention2.
                    setComment(relatedComment2);
                }
            
                const relatedComment3 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Mention3 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Mention3?.setComment)
                {
                    await
                    Mention3.
                    setComment(relatedComment3);
                }
            
                const relatedComment4 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Mention4 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Mention4?.setComment)
                {
                    await
                    Mention4.
                    setComment(relatedComment4);
                }
            
        }
        
    
        
            
            async function associateMentionWithMentioned_user() {
            
                const relatedMentioned_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Mention0 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Mention0?.setMentioned_user)
                {
                    await
                    Mention0.
                    setMentioned_user(relatedMentioned_user0);
                }
            
                const relatedMentioned_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Mention1 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Mention1?.setMentioned_user)
                {
                    await
                    Mention1.
                    setMentioned_user(relatedMentioned_user1);
                }
            
                const relatedMentioned_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Mention2 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Mention2?.setMentioned_user)
                {
                    await
                    Mention2.
                    setMentioned_user(relatedMentioned_user2);
                }
            
                const relatedMentioned_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Mention3 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Mention3?.setMentioned_user)
                {
                    await
                    Mention3.
                    setMentioned_user(relatedMentioned_user3);
                }
            
                const relatedMentioned_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Mention4 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Mention4?.setMentioned_user)
                {
                    await
                    Mention4.
                    setMentioned_user(relatedMentioned_user4);
                }
            
        }
        
    
        
    
        
            
            async function associateMentionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Mention0 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Mention0?.setOrganization)
                {
                    await
                    Mention0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Mention1 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Mention1?.setOrganization)
                {
                    await
                    Mention1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Mention2 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Mention2?.setOrganization)
                {
                    await
                    Mention2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Mention3 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Mention3?.setOrganization)
                {
                    await
                    Mention3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Mention4 = await Mentions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Mention4?.setOrganization)
                {
                    await
                    Mention4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateApprovalWorkflowWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ApprovalWorkflow0 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalWorkflow0?.setTeam)
                {
                    await
                    ApprovalWorkflow0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ApprovalWorkflow1 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalWorkflow1?.setTeam)
                {
                    await
                    ApprovalWorkflow1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ApprovalWorkflow2 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalWorkflow2?.setTeam)
                {
                    await
                    ApprovalWorkflow2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ApprovalWorkflow3 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalWorkflow3?.setTeam)
                {
                    await
                    ApprovalWorkflow3.
                    setTeam(relatedTeam3);
                }
            
                const relatedTeam4 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ApprovalWorkflow4 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalWorkflow4?.setTeam)
                {
                    await
                    ApprovalWorkflow4.
                    setTeam(relatedTeam4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateApprovalWorkflowWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow0 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalWorkflow0?.setOrganization)
                {
                    await
                    ApprovalWorkflow0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow1 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalWorkflow1?.setOrganization)
                {
                    await
                    ApprovalWorkflow1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow2 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalWorkflow2?.setOrganization)
                {
                    await
                    ApprovalWorkflow2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow3 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalWorkflow3?.setOrganization)
                {
                    await
                    ApprovalWorkflow3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow4 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalWorkflow4?.setOrganization)
                {
                    await
                    ApprovalWorkflow4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateApprovalWithWorkflow() {
            
                const relatedWorkflow0 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setWorkflow)
                {
                    await
                    Approval0.
                    setWorkflow(relatedWorkflow0);
                }
            
                const relatedWorkflow1 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setWorkflow)
                {
                    await
                    Approval1.
                    setWorkflow(relatedWorkflow1);
                }
            
                const relatedWorkflow2 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setWorkflow)
                {
                    await
                    Approval2.
                    setWorkflow(relatedWorkflow2);
                }
            
                const relatedWorkflow3 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setWorkflow)
                {
                    await
                    Approval3.
                    setWorkflow(relatedWorkflow3);
                }
            
                const relatedWorkflow4 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setWorkflow)
                {
                    await
                    Approval4.
                    setWorkflow(relatedWorkflow4);
                }
            
        }
        
    
        
            
            async function associateApprovalWithDocument() {
            
                const relatedDocument0 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setDocument)
                {
                    await
                    Approval0.
                    setDocument(relatedDocument0);
                }
            
                const relatedDocument1 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setDocument)
                {
                    await
                    Approval1.
                    setDocument(relatedDocument1);
                }
            
                const relatedDocument2 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setDocument)
                {
                    await
                    Approval2.
                    setDocument(relatedDocument2);
                }
            
                const relatedDocument3 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setDocument)
                {
                    await
                    Approval3.
                    setDocument(relatedDocument3);
                }
            
                const relatedDocument4 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setDocument)
                {
                    await
                    Approval4.
                    setDocument(relatedDocument4);
                }
            
        }
        
    
        
            
            async function associateApprovalWithStory() {
            
                const relatedStory0 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setStory)
                {
                    await
                    Approval0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setStory)
                {
                    await
                    Approval1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setStory)
                {
                    await
                    Approval2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setStory)
                {
                    await
                    Approval3.
                    setStory(relatedStory3);
                }
            
                const relatedStory4 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setStory)
                {
                    await
                    Approval4.
                    setStory(relatedStory4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateApprovalWithRequested_by() {
            
                const relatedRequested_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setRequested_by)
                {
                    await
                    Approval0.
                    setRequested_by(relatedRequested_by0);
                }
            
                const relatedRequested_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setRequested_by)
                {
                    await
                    Approval1.
                    setRequested_by(relatedRequested_by1);
                }
            
                const relatedRequested_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setRequested_by)
                {
                    await
                    Approval2.
                    setRequested_by(relatedRequested_by2);
                }
            
                const relatedRequested_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setRequested_by)
                {
                    await
                    Approval3.
                    setRequested_by(relatedRequested_by3);
                }
            
                const relatedRequested_by4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setRequested_by)
                {
                    await
                    Approval4.
                    setRequested_by(relatedRequested_by4);
                }
            
        }
        
    
        
    
        
            
            async function associateApprovalWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setOrganization)
                {
                    await
                    Approval0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setOrganization)
                {
                    await
                    Approval1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setOrganization)
                {
                    await
                    Approval2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setOrganization)
                {
                    await
                    Approval3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setOrganization)
                {
                    await
                    Approval4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateApprovalReviewerWithApproval() {
            
                const relatedApproval0 = await Approvals.findOne({
                    offset: Math.floor(Math.random() * (await Approvals.count())),
                });
                const ApprovalReviewer0 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalReviewer0?.setApproval)
                {
                    await
                    ApprovalReviewer0.
                    setApproval(relatedApproval0);
                }
            
                const relatedApproval1 = await Approvals.findOne({
                    offset: Math.floor(Math.random() * (await Approvals.count())),
                });
                const ApprovalReviewer1 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalReviewer1?.setApproval)
                {
                    await
                    ApprovalReviewer1.
                    setApproval(relatedApproval1);
                }
            
                const relatedApproval2 = await Approvals.findOne({
                    offset: Math.floor(Math.random() * (await Approvals.count())),
                });
                const ApprovalReviewer2 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalReviewer2?.setApproval)
                {
                    await
                    ApprovalReviewer2.
                    setApproval(relatedApproval2);
                }
            
                const relatedApproval3 = await Approvals.findOne({
                    offset: Math.floor(Math.random() * (await Approvals.count())),
                });
                const ApprovalReviewer3 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalReviewer3?.setApproval)
                {
                    await
                    ApprovalReviewer3.
                    setApproval(relatedApproval3);
                }
            
                const relatedApproval4 = await Approvals.findOne({
                    offset: Math.floor(Math.random() * (await Approvals.count())),
                });
                const ApprovalReviewer4 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalReviewer4?.setApproval)
                {
                    await
                    ApprovalReviewer4.
                    setApproval(relatedApproval4);
                }
            
        }
        
    
        
            
            async function associateApprovalReviewerWithReviewer() {
            
                const relatedReviewer0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalReviewer0 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalReviewer0?.setReviewer)
                {
                    await
                    ApprovalReviewer0.
                    setReviewer(relatedReviewer0);
                }
            
                const relatedReviewer1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalReviewer1 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalReviewer1?.setReviewer)
                {
                    await
                    ApprovalReviewer1.
                    setReviewer(relatedReviewer1);
                }
            
                const relatedReviewer2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalReviewer2 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalReviewer2?.setReviewer)
                {
                    await
                    ApprovalReviewer2.
                    setReviewer(relatedReviewer2);
                }
            
                const relatedReviewer3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalReviewer3 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalReviewer3?.setReviewer)
                {
                    await
                    ApprovalReviewer3.
                    setReviewer(relatedReviewer3);
                }
            
                const relatedReviewer4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalReviewer4 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalReviewer4?.setReviewer)
                {
                    await
                    ApprovalReviewer4.
                    setReviewer(relatedReviewer4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateApprovalReviewerWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalReviewer0 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalReviewer0?.setOrganization)
                {
                    await
                    ApprovalReviewer0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalReviewer1 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalReviewer1?.setOrganization)
                {
                    await
                    ApprovalReviewer1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalReviewer2 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalReviewer2?.setOrganization)
                {
                    await
                    ApprovalReviewer2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalReviewer3 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalReviewer3?.setOrganization)
                {
                    await
                    ApprovalReviewer3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalReviewer4 = await ApprovalReviewers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalReviewer4?.setOrganization)
                {
                    await
                    ApprovalReviewer4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

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

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

    
    
    
        
            
            async function associateSprintWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Sprint0 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Sprint0?.setTeam)
                {
                    await
                    Sprint0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Sprint1 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Sprint1?.setTeam)
                {
                    await
                    Sprint1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Sprint2 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Sprint2?.setTeam)
                {
                    await
                    Sprint2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Sprint3 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Sprint3?.setTeam)
                {
                    await
                    Sprint3.
                    setTeam(relatedTeam3);
                }
            
                const relatedTeam4 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Sprint4 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Sprint4?.setTeam)
                {
                    await
                    Sprint4.
                    setTeam(relatedTeam4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSprintWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Sprint0 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Sprint0?.setOrganization)
                {
                    await
                    Sprint0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Sprint1 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Sprint1?.setOrganization)
                {
                    await
                    Sprint1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Sprint2 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Sprint2?.setOrganization)
                {
                    await
                    Sprint2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Sprint3 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Sprint3?.setOrganization)
                {
                    await
                    Sprint3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Sprint4 = await Sprints.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Sprint4?.setOrganization)
                {
                    await
                    Sprint4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSprintItemWithSprint() {
            
                const relatedSprint0 = await Sprints.findOne({
                    offset: Math.floor(Math.random() * (await Sprints.count())),
                });
                const SprintItem0 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SprintItem0?.setSprint)
                {
                    await
                    SprintItem0.
                    setSprint(relatedSprint0);
                }
            
                const relatedSprint1 = await Sprints.findOne({
                    offset: Math.floor(Math.random() * (await Sprints.count())),
                });
                const SprintItem1 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SprintItem1?.setSprint)
                {
                    await
                    SprintItem1.
                    setSprint(relatedSprint1);
                }
            
                const relatedSprint2 = await Sprints.findOne({
                    offset: Math.floor(Math.random() * (await Sprints.count())),
                });
                const SprintItem2 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SprintItem2?.setSprint)
                {
                    await
                    SprintItem2.
                    setSprint(relatedSprint2);
                }
            
                const relatedSprint3 = await Sprints.findOne({
                    offset: Math.floor(Math.random() * (await Sprints.count())),
                });
                const SprintItem3 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SprintItem3?.setSprint)
                {
                    await
                    SprintItem3.
                    setSprint(relatedSprint3);
                }
            
                const relatedSprint4 = await Sprints.findOne({
                    offset: Math.floor(Math.random() * (await Sprints.count())),
                });
                const SprintItem4 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SprintItem4?.setSprint)
                {
                    await
                    SprintItem4.
                    setSprint(relatedSprint4);
                }
            
        }
        
    
        
            
            async function associateSprintItemWithStory() {
            
                const relatedStory0 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const SprintItem0 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SprintItem0?.setStory)
                {
                    await
                    SprintItem0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const SprintItem1 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SprintItem1?.setStory)
                {
                    await
                    SprintItem1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const SprintItem2 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SprintItem2?.setStory)
                {
                    await
                    SprintItem2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const SprintItem3 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SprintItem3?.setStory)
                {
                    await
                    SprintItem3.
                    setStory(relatedStory3);
                }
            
                const relatedStory4 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const SprintItem4 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SprintItem4?.setStory)
                {
                    await
                    SprintItem4.
                    setStory(relatedStory4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateSprintItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SprintItem0 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SprintItem0?.setOrganization)
                {
                    await
                    SprintItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SprintItem1 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SprintItem1?.setOrganization)
                {
                    await
                    SprintItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SprintItem2 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SprintItem2?.setOrganization)
                {
                    await
                    SprintItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SprintItem3 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SprintItem3?.setOrganization)
                {
                    await
                    SprintItem3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SprintItem4 = await SprintItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SprintItem4?.setOrganization)
                {
                    await
                    SprintItem4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateBlockerWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Blocker0 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Blocker0?.setTeam)
                {
                    await
                    Blocker0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Blocker1 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Blocker1?.setTeam)
                {
                    await
                    Blocker1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Blocker2 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Blocker2?.setTeam)
                {
                    await
                    Blocker2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Blocker3 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Blocker3?.setTeam)
                {
                    await
                    Blocker3.
                    setTeam(relatedTeam3);
                }
            
                const relatedTeam4 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const Blocker4 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Blocker4?.setTeam)
                {
                    await
                    Blocker4.
                    setTeam(relatedTeam4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateBlockerWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Blocker0 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Blocker0?.setOwner)
                {
                    await
                    Blocker0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Blocker1 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Blocker1?.setOwner)
                {
                    await
                    Blocker1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Blocker2 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Blocker2?.setOwner)
                {
                    await
                    Blocker2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Blocker3 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Blocker3?.setOwner)
                {
                    await
                    Blocker3.
                    setOwner(relatedOwner3);
                }
            
                const relatedOwner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Blocker4 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Blocker4?.setOwner)
                {
                    await
                    Blocker4.
                    setOwner(relatedOwner4);
                }
            
        }
        
    
        
            
            async function associateBlockerWithStory() {
            
                const relatedStory0 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Blocker0 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Blocker0?.setStory)
                {
                    await
                    Blocker0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Blocker1 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Blocker1?.setStory)
                {
                    await
                    Blocker1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Blocker2 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Blocker2?.setStory)
                {
                    await
                    Blocker2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Blocker3 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Blocker3?.setStory)
                {
                    await
                    Blocker3.
                    setStory(relatedStory3);
                }
            
                const relatedStory4 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const Blocker4 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Blocker4?.setStory)
                {
                    await
                    Blocker4.
                    setStory(relatedStory4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateBlockerWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Blocker0 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Blocker0?.setOrganization)
                {
                    await
                    Blocker0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Blocker1 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Blocker1?.setOrganization)
                {
                    await
                    Blocker1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Blocker2 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Blocker2?.setOrganization)
                {
                    await
                    Blocker2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Blocker3 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Blocker3?.setOrganization)
                {
                    await
                    Blocker3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Blocker4 = await Blockers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Blocker4?.setOrganization)
                {
                    await
                    Blocker4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateActivityFeedItemWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ActivityFeedItem0 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ActivityFeedItem0?.setTeam)
                {
                    await
                    ActivityFeedItem0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ActivityFeedItem1 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ActivityFeedItem1?.setTeam)
                {
                    await
                    ActivityFeedItem1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ActivityFeedItem2 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ActivityFeedItem2?.setTeam)
                {
                    await
                    ActivityFeedItem2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ActivityFeedItem3 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ActivityFeedItem3?.setTeam)
                {
                    await
                    ActivityFeedItem3.
                    setTeam(relatedTeam3);
                }
            
                const relatedTeam4 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const ActivityFeedItem4 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ActivityFeedItem4?.setTeam)
                {
                    await
                    ActivityFeedItem4.
                    setTeam(relatedTeam4);
                }
            
        }
        
    
        
            
            async function associateActivityFeedItemWithActor() {
            
                const relatedActor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ActivityFeedItem0 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ActivityFeedItem0?.setActor)
                {
                    await
                    ActivityFeedItem0.
                    setActor(relatedActor0);
                }
            
                const relatedActor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ActivityFeedItem1 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ActivityFeedItem1?.setActor)
                {
                    await
                    ActivityFeedItem1.
                    setActor(relatedActor1);
                }
            
                const relatedActor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ActivityFeedItem2 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ActivityFeedItem2?.setActor)
                {
                    await
                    ActivityFeedItem2.
                    setActor(relatedActor2);
                }
            
                const relatedActor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ActivityFeedItem3 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ActivityFeedItem3?.setActor)
                {
                    await
                    ActivityFeedItem3.
                    setActor(relatedActor3);
                }
            
                const relatedActor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ActivityFeedItem4 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ActivityFeedItem4?.setActor)
                {
                    await
                    ActivityFeedItem4.
                    setActor(relatedActor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateActivityFeedItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ActivityFeedItem0 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ActivityFeedItem0?.setOrganization)
                {
                    await
                    ActivityFeedItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ActivityFeedItem1 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ActivityFeedItem1?.setOrganization)
                {
                    await
                    ActivityFeedItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ActivityFeedItem2 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ActivityFeedItem2?.setOrganization)
                {
                    await
                    ActivityFeedItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ActivityFeedItem3 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ActivityFeedItem3?.setOrganization)
                {
                    await
                    ActivityFeedItem3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ActivityFeedItem4 = await ActivityFeedItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ActivityFeedItem4?.setOrganization)
                {
                    await
                    ActivityFeedItem4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAiGenerationWithTeam() {
            
                const relatedTeam0 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const AiGeneration0 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiGeneration0?.setTeam)
                {
                    await
                    AiGeneration0.
                    setTeam(relatedTeam0);
                }
            
                const relatedTeam1 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const AiGeneration1 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiGeneration1?.setTeam)
                {
                    await
                    AiGeneration1.
                    setTeam(relatedTeam1);
                }
            
                const relatedTeam2 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const AiGeneration2 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiGeneration2?.setTeam)
                {
                    await
                    AiGeneration2.
                    setTeam(relatedTeam2);
                }
            
                const relatedTeam3 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const AiGeneration3 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiGeneration3?.setTeam)
                {
                    await
                    AiGeneration3.
                    setTeam(relatedTeam3);
                }
            
                const relatedTeam4 = await Teams.findOne({
                    offset: Math.floor(Math.random() * (await Teams.count())),
                });
                const AiGeneration4 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AiGeneration4?.setTeam)
                {
                    await
                    AiGeneration4.
                    setTeam(relatedTeam4);
                }
            
        }
        
    
        
            
            async function associateAiGenerationWithRequested_by() {
            
                const relatedRequested_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiGeneration0 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiGeneration0?.setRequested_by)
                {
                    await
                    AiGeneration0.
                    setRequested_by(relatedRequested_by0);
                }
            
                const relatedRequested_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiGeneration1 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiGeneration1?.setRequested_by)
                {
                    await
                    AiGeneration1.
                    setRequested_by(relatedRequested_by1);
                }
            
                const relatedRequested_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiGeneration2 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiGeneration2?.setRequested_by)
                {
                    await
                    AiGeneration2.
                    setRequested_by(relatedRequested_by2);
                }
            
                const relatedRequested_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiGeneration3 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiGeneration3?.setRequested_by)
                {
                    await
                    AiGeneration3.
                    setRequested_by(relatedRequested_by3);
                }
            
                const relatedRequested_by4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiGeneration4 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AiGeneration4?.setRequested_by)
                {
                    await
                    AiGeneration4.
                    setRequested_by(relatedRequested_by4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAiGenerationWithStory() {
            
                const relatedStory0 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AiGeneration0 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiGeneration0?.setStory)
                {
                    await
                    AiGeneration0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AiGeneration1 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiGeneration1?.setStory)
                {
                    await
                    AiGeneration1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AiGeneration2 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiGeneration2?.setStory)
                {
                    await
                    AiGeneration2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AiGeneration3 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiGeneration3?.setStory)
                {
                    await
                    AiGeneration3.
                    setStory(relatedStory3);
                }
            
                const relatedStory4 = await UserStories.findOne({
                    offset: Math.floor(Math.random() * (await UserStories.count())),
                });
                const AiGeneration4 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AiGeneration4?.setStory)
                {
                    await
                    AiGeneration4.
                    setStory(relatedStory4);
                }
            
        }
        
    
        
            
            async function associateAiGenerationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiGeneration0 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiGeneration0?.setOrganization)
                {
                    await
                    AiGeneration0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiGeneration1 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiGeneration1?.setOrganization)
                {
                    await
                    AiGeneration1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiGeneration2 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiGeneration2?.setOrganization)
                {
                    await
                    AiGeneration2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiGeneration3 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiGeneration3?.setOrganization)
                {
                    await
                    AiGeneration3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiGeneration4 = await AiGenerations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AiGeneration4?.setOrganization)
                {
                    await
                    AiGeneration4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await Teams.bulkCreate(TeamsData);
                
            
            
                
                await OauthAccounts.bulkCreate(OauthAccountsData);
                
            
            
                
                await Integrations.bulkCreate(IntegrationsData);
                
            
            
                
                await UserStories.bulkCreate(UserStoriesData);
                
            
            
                
                await AcceptanceCriteria.bulkCreate(AcceptanceCriteriaData);
                
            
            
                
                await Documents.bulkCreate(DocumentsData);
                
            
            
                
                await DocumentFolders.bulkCreate(DocumentFoldersData);
                
            
            
                
                await DocumentVersions.bulkCreate(DocumentVersionsData);
                
            
            
                
                await StoryDocumentLinks.bulkCreate(StoryDocumentLinksData);
                
            
            
                
                await CollaborationSessions.bulkCreate(CollaborationSessionsData);
                
            
            
                
                await CommentThreads.bulkCreate(CommentThreadsData);
                
            
            
                
                await Comments.bulkCreate(CommentsData);
                
            
            
                
                await CommentReactions.bulkCreate(CommentReactionsData);
                
            
            
                
                await Mentions.bulkCreate(MentionsData);
                
            
            
                
                await ApprovalWorkflows.bulkCreate(ApprovalWorkflowsData);
                
            
            
                
                await Approvals.bulkCreate(ApprovalsData);
                
            
            
                
                await ApprovalReviewers.bulkCreate(ApprovalReviewersData);
                
            
            
                
                await AuditEvents.bulkCreate(AuditEventsData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            
                
                await Sprints.bulkCreate(SprintsData);
                
            
            
                
                await SprintItems.bulkCreate(SprintItemsData);
                
            
            
                
                await Blockers.bulkCreate(BlockersData);
                
            
            
                
                await ActivityFeedItems.bulkCreate(ActivityFeedItemsData);
                
            
            
                
                await AiGenerations.bulkCreate(AiGenerationsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTeamWithOwner(),
                    
                
                    
                        
                        await associateTeamWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateOauthAccountWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOauthAccountWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateIntegrationWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateIntegrationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateUserStoryWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateUserStoryWithAssignee(),
                    
                
                    
                
                    
                
                    
                        
                        await associateUserStoryWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAcceptanceCriteriaWithStory(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAcceptanceCriteriaWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDocumentWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentWithAuthor(),
                    
                
                    
                        
                        await associateDocumentWithFolder(),
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDocumentFolderWithTeam(),
                    
                
                    
                
                    
                        
                        await associateDocumentFolderWithParent(),
                    
                
                    
                
                    
                        
                        await associateDocumentFolderWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDocumentVersionWithDocument(),
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentVersionWithEditor(),
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentVersionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateStoryDocumentLinkWithStory(),
                    
                
                    
                        
                        await associateStoryDocumentLinkWithDocument(),
                    
                
                    
                
                    
                
                    
                        
                        await associateStoryDocumentLinkWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCollaborationSessionWithDocument(),
                    
                
                    
                        
                        await associateCollaborationSessionWithStory(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCollaborationSessionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCommentThreadWithDocument(),
                    
                
                    
                        
                        await associateCommentThreadWithStory(),
                    
                
                    
                        
                        await associateCommentThreadWithCreated_by_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCommentThreadWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCommentWithThread(),
                    
                
                    
                        
                        await associateCommentWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCommentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateCommentReactionWithComment(),
                    
                
                    
                        
                        await associateCommentReactionWithUser(),
                    
                
                    
                
                    
                
                    
                        
                        await associateCommentReactionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateMentionWithComment(),
                    
                
                    
                        
                        await associateMentionWithMentioned_user(),
                    
                
                    
                
                    
                        
                        await associateMentionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateApprovalWorkflowWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApprovalWorkflowWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateApprovalWithWorkflow(),
                    
                
                    
                        
                        await associateApprovalWithDocument(),
                    
                
                    
                        
                        await associateApprovalWithStory(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApprovalWithRequested_by(),
                    
                
                    
                
                    
                        
                        await associateApprovalWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateApprovalReviewerWithApproval(),
                    
                
                    
                        
                        await associateApprovalReviewerWithReviewer(),
                    
                
                    
                
                    
                
                    
                        
                        await associateApprovalReviewerWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAuditEventWithTeam(),
                    
                
                    
                        
                        await associateAuditEventWithActor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAuditEventWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateNotificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateNotificationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSprintWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSprintWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSprintItemWithSprint(),
                    
                
                    
                        
                        await associateSprintItemWithStory(),
                    
                
                    
                
                    
                
                    
                        
                        await associateSprintItemWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateBlockerWithTeam(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBlockerWithOwner(),
                    
                
                    
                        
                        await associateBlockerWithStory(),
                    
                
                    
                
                    
                
                    
                        
                        await associateBlockerWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateActivityFeedItemWithTeam(),
                    
                
                    
                        
                        await associateActivityFeedItemWithActor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateActivityFeedItemWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAiGenerationWithTeam(),
                    
                
                    
                        
                        await associateAiGenerationWithRequested_by(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAiGenerationWithStory(),
                    
                
                    
                        
                        await associateAiGenerationWithOrganization(),
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('teams', null, {});
            
            
            await queryInterface.bulkDelete('oauth_accounts', null, {});
            
            
            await queryInterface.bulkDelete('integrations', null, {});
            
            
            await queryInterface.bulkDelete('user_stories', null, {});
            
            
            await queryInterface.bulkDelete('acceptance_criteria', null, {});
            
            
            await queryInterface.bulkDelete('documents', null, {});
            
            
            await queryInterface.bulkDelete('document_folders', null, {});
            
            
            await queryInterface.bulkDelete('document_versions', null, {});
            
            
            await queryInterface.bulkDelete('story_document_links', null, {});
            
            
            await queryInterface.bulkDelete('collaboration_sessions', null, {});
            
            
            await queryInterface.bulkDelete('comment_threads', null, {});
            
            
            await queryInterface.bulkDelete('comments', null, {});
            
            
            await queryInterface.bulkDelete('comment_reactions', null, {});
            
            
            await queryInterface.bulkDelete('mentions', null, {});
            
            
            await queryInterface.bulkDelete('approval_workflows', null, {});
            
            
            await queryInterface.bulkDelete('approvals', null, {});
            
            
            await queryInterface.bulkDelete('approval_reviewers', null, {});
            
            
            await queryInterface.bulkDelete('audit_events', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
            
            await queryInterface.bulkDelete('sprints', null, {});
            
            
            await queryInterface.bulkDelete('sprint_items', null, {});
            
            
            await queryInterface.bulkDelete('blockers', null, {});
            
            
            await queryInterface.bulkDelete('activity_feed_items', null, {});
            
            
            await queryInterface.bulkDelete('ai_generations', null, {});
            
        
    },
};