





















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






const UserRelationships = db.user_relationships;

const Posts = db.posts;

const PostComments = db.post_comments;

const PostReactions = db.post_reactions;

const PostSaves = db.post_saves;

const SaveCollections = db.save_collections;

const Hashtags = db.hashtags;

const PostHashtags = db.post_hashtags;

const Stories = db.stories;

const StoryViews = db.story_views;

const Highlights = db.highlights;

const HighlightItems = db.highlight_items;

const Reels = db.reels;

const ReelReactions = db.reel_reactions;

const ReelComments = db.reel_comments;

const Conversations = db.conversations;

const ConversationMembers = db.conversation_members;

const Messages = db.messages;

const Calls = db.calls;

const Notifications = db.notifications;

const Reports = db.reports;

const Products = db.products;

const InsightSnapshots = db.insight_snapshots;







const UserRelationshipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "muted",
            
        
    
        
        
            
                "close_friends": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "close_friends": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "requested",
            
        
    
        
        
            
                "close_friends": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "requested",
            
        
    
        
        
            
                "close_friends": false,
            
        
    
    },
    
];



const PostsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "photo",
            
        
    
        
        
            
                "caption": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "location_name": "Ada Lovelace",
            
        
    
        
        
            
                "comments_enabled": false,
            
        
    
        
        
            
                "is_archived": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "video",
            
        
    
        
        
            
                "caption": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "location_name": "Grace Hopper",
            
        
    
        
        
            
                "comments_enabled": false,
            
        
    
        
        
            
                "is_archived": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "carousel",
            
        
    
        
        
            
                "caption": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "location_name": "Ada Lovelace",
            
        
    
        
        
            
                "comments_enabled": true,
            
        
    
        
        
            
                "is_archived": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "carousel",
            
        
    
        
        
            
                "caption": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "location_name": "Marie Curie",
            
        
    
        
        
            
                "comments_enabled": false,
            
        
    
        
        
            
                "is_archived": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const PostCommentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                "commented_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                "commented_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                "commented_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_pinned": false,
            
        
    
        
        
            
                "commented_at": new Date(Date.now()),
            
        
    
    },
    
];



const PostReactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reaction_type": "like",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reaction_type": "like",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reaction_type": "like",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reaction_type": "like",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
    },
    
];



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



const SaveCollectionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "is_private": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "is_private": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "is_private": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "is_private": true,
            
        
    
    },
    
];



const HashtagsData = [
    
    {
    
        
        
            
                "tag": "Grace Hopper",
            
        
    
        
        
            
                "is_blocked": false,
            
        
    
    },
    
    {
    
        
        
            
                "tag": "Grace Hopper",
            
        
    
        
        
            
                "is_blocked": false,
            
        
    
    },
    
    {
    
        
        
            
                "tag": "Alan Turing",
            
        
    
        
        
            
                "is_blocked": false,
            
        
    
    },
    
    {
    
        
        
            
                "tag": "Grace Hopper",
            
        
    
        
        
            
                "is_blocked": false,
            
        
    
    },
    
];



const PostHashtagsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const StoriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "media_type": "photo",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "caption": "Marie Curie",
            
        
    
        
        
            
                "close_friends_only": false,
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "media_type": "photo",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "caption": "Marie Curie",
            
        
    
        
        
            
                "close_friends_only": false,
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "media_type": "photo",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "caption": "Alan Turing",
            
        
    
        
        
            
                "close_friends_only": false,
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "media_type": "video",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "caption": "Marie Curie",
            
        
    
        
        
            
                "close_friends_only": true,
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
];



const StoryViewsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
    },
    
];



const HighlightsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_archived": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_archived": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_archived": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_archived": false,
            
        
    
    },
    
];



const HighlightItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
    },
    
];



const ReelsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "caption": "Ada Lovelace",
            
        
    
        
        
            
                "audio_title": "Ada Lovelace",
            
        
    
        
        
            
                "audio_artist": "Grace Hopper",
            
        
    
        
        
            
                "duration_seconds": 7.58,
            
        
    
        
        
            
                "is_archived": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "caption": "Marie Curie",
            
        
    
        
        
            
                "audio_title": "Alan Turing",
            
        
    
        
        
            
                "audio_artist": "Grace Hopper",
            
        
    
        
        
            
                "duration_seconds": 3.76,
            
        
    
        
        
            
                "is_archived": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "caption": "Alan Turing",
            
        
    
        
        
            
                "audio_title": "Grace Hopper",
            
        
    
        
        
            
                "audio_artist": "Marie Curie",
            
        
    
        
        
            
                "duration_seconds": 8.76,
            
        
    
        
        
            
                "is_archived": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "caption": "Alan Turing",
            
        
    
        
        
            
                "audio_title": "Ada Lovelace",
            
        
    
        
        
            
                "audio_artist": "Alan Turing",
            
        
    
        
        
            
                "duration_seconds": 5.13,
            
        
    
        
        
            
                "is_archived": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const ReelReactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reaction_type": "like",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reaction_type": "like",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reaction_type": "like",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reaction_type": "like",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
    },
    
];



const ReelCommentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "commented_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "commented_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "commented_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "commented_at": new Date(Date.now()),
            
        
    
    },
    
];



const ConversationsData = [
    
    {
    
        
        
            
                "conversation_type": "group",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "conversation_type": "group",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "conversation_type": "direct",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "conversation_type": "direct",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
    },
    
];



const ConversationMembersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "member",
            
        
    
        
        
            
                "member_status": "left",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "last_read_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "admin",
            
        
    
        
        
            
                "member_status": "removed",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "last_read_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "admin",
            
        
    
        
        
            
                "member_status": "invited",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "last_read_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "member_role": "owner",
            
        
    
        
        
            
                "member_status": "removed",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "last_read_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
    },
    
];



const MessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "reel_share",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "delivered",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "video",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "delivered",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "story_share",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "read",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "video",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "delivered",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
];



const CallsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "call_type": "video",
            
        
    
        
        
            
                "call_status": "ongoing",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "call_type": "video",
            
        
    
        
        
            
                "call_status": "ringing",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "call_type": "video",
            
        
    
        
        
            
                "call_status": "missed",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "call_type": "voice",
            
        
    
        
        
            
                "call_status": "ended",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "like_post",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "deep_link": "Ada Lovelace",
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "notified_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "comment_reel",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "deep_link": "Marie Curie",
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "notified_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "mention",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "deep_link": "Marie Curie",
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "notified_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "follow",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "deep_link": "Ada Lovelace",
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "notified_at": new Date(Date.now()),
            
        
    
    },
    
];



const ReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "comment",
            
        
    
        
        
            
                "target_ref": "Marie Curie",
            
        
    
        
        
            
                "reason": "spam",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "user",
            
        
    
        
        
            
                "target_ref": "Marie Curie",
            
        
    
        
        
            
                "reason": "harassment",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "reel",
            
        
    
        
        
            
                "target_ref": "Marie Curie",
            
        
    
        
        
            
                "reason": "harassment",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "post",
            
        
    
        
        
            
                "target_ref": "Alan Turing",
            
        
    
        
        
            
                "reason": "spam",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
    },
    
];



const ProductsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price": 6.9,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "product_url": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price": 7.46,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "product_url": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price": 1.63,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "product_url": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price": 6.13,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "product_url": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const InsightSnapshotsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content_type": "reel",
            
        
    
        
        
            
                "content_ref": "Alan Turing",
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "impressions": 4,
            
        
    
        
        
            
                "reach": 1,
            
        
    
        
        
            
                "profile_visits": 5,
            
        
    
        
        
            
                "likes": 1,
            
        
    
        
        
            
                "comments": 7,
            
        
    
        
        
            
                "saves": 4,
            
        
    
        
        
            
                "shares": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content_type": "reel",
            
        
    
        
        
            
                "content_ref": "Alan Turing",
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "impressions": 8,
            
        
    
        
        
            
                "reach": 3,
            
        
    
        
        
            
                "profile_visits": 4,
            
        
    
        
        
            
                "likes": 9,
            
        
    
        
        
            
                "comments": 9,
            
        
    
        
        
            
                "saves": 5,
            
        
    
        
        
            
                "shares": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content_type": "profile",
            
        
    
        
        
            
                "content_ref": "Alan Turing",
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "impressions": 7,
            
        
    
        
        
            
                "reach": 6,
            
        
    
        
        
            
                "profile_visits": 7,
            
        
    
        
        
            
                "likes": 1,
            
        
    
        
        
            
                "comments": 2,
            
        
    
        
        
            
                "saves": 8,
            
        
    
        
        
            
                "shares": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content_type": "story",
            
        
    
        
        
            
                "content_ref": "Alan Turing",
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "impressions": 8,
            
        
    
        
        
            
                "reach": 1,
            
        
    
        
        
            
                "profile_visits": 1,
            
        
    
        
        
            
                "likes": 3,
            
        
    
        
        
            
                "comments": 3,
            
        
    
        
        
            
                "saves": 7,
            
        
    
        
        
            
                "shares": 3,
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
            
            async function associateUserRelationshipWithFollower() {
            
                const relatedFollower0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRelationship0 = await UserRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserRelationship0?.setFollower)
                {
                    await
                    UserRelationship0.
                    setFollower(relatedFollower0);
                }
            
                const relatedFollower1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRelationship1 = await UserRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserRelationship1?.setFollower)
                {
                    await
                    UserRelationship1.
                    setFollower(relatedFollower1);
                }
            
                const relatedFollower2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRelationship2 = await UserRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserRelationship2?.setFollower)
                {
                    await
                    UserRelationship2.
                    setFollower(relatedFollower2);
                }
            
                const relatedFollower3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRelationship3 = await UserRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserRelationship3?.setFollower)
                {
                    await
                    UserRelationship3.
                    setFollower(relatedFollower3);
                }
            
        }
        
    
        
            
            async function associateUserRelationshipWithFollowing() {
            
                const relatedFollowing0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRelationship0 = await UserRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserRelationship0?.setFollowing)
                {
                    await
                    UserRelationship0.
                    setFollowing(relatedFollowing0);
                }
            
                const relatedFollowing1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRelationship1 = await UserRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserRelationship1?.setFollowing)
                {
                    await
                    UserRelationship1.
                    setFollowing(relatedFollowing1);
                }
            
                const relatedFollowing2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRelationship2 = await UserRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserRelationship2?.setFollowing)
                {
                    await
                    UserRelationship2.
                    setFollowing(relatedFollowing2);
                }
            
                const relatedFollowing3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRelationship3 = await UserRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserRelationship3?.setFollowing)
                {
                    await
                    UserRelationship3.
                    setFollowing(relatedFollowing3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associatePostWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Post0 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Post0?.setAuthor)
                {
                    await
                    Post0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Post1 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Post1?.setAuthor)
                {
                    await
                    Post1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Post2 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Post2?.setAuthor)
                {
                    await
                    Post2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Post3 = await Posts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Post3?.setAuthor)
                {
                    await
                    Post3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePostCommentWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostComment0 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostComment0?.setPost)
                {
                    await
                    PostComment0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostComment1 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostComment1?.setPost)
                {
                    await
                    PostComment1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostComment2 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostComment2?.setPost)
                {
                    await
                    PostComment2.
                    setPost(relatedPost2);
                }
            
                const relatedPost3 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostComment3 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostComment3?.setPost)
                {
                    await
                    PostComment3.
                    setPost(relatedPost3);
                }
            
        }
        
    
        
            
            async function associatePostCommentWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostComment0 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostComment0?.setAuthor)
                {
                    await
                    PostComment0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostComment1 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostComment1?.setAuthor)
                {
                    await
                    PostComment1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostComment2 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostComment2?.setAuthor)
                {
                    await
                    PostComment2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostComment3 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostComment3?.setAuthor)
                {
                    await
                    PostComment3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
    
        
            
            async function associatePostCommentWithParent_comment() {
            
                const relatedParent_comment0 = await PostComments.findOne({
                    offset: Math.floor(Math.random() * (await PostComments.count())),
                });
                const PostComment0 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostComment0?.setParent_comment)
                {
                    await
                    PostComment0.
                    setParent_comment(relatedParent_comment0);
                }
            
                const relatedParent_comment1 = await PostComments.findOne({
                    offset: Math.floor(Math.random() * (await PostComments.count())),
                });
                const PostComment1 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostComment1?.setParent_comment)
                {
                    await
                    PostComment1.
                    setParent_comment(relatedParent_comment1);
                }
            
                const relatedParent_comment2 = await PostComments.findOne({
                    offset: Math.floor(Math.random() * (await PostComments.count())),
                });
                const PostComment2 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostComment2?.setParent_comment)
                {
                    await
                    PostComment2.
                    setParent_comment(relatedParent_comment2);
                }
            
                const relatedParent_comment3 = await PostComments.findOne({
                    offset: Math.floor(Math.random() * (await PostComments.count())),
                });
                const PostComment3 = await PostComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostComment3?.setParent_comment)
                {
                    await
                    PostComment3.
                    setParent_comment(relatedParent_comment3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associatePostReactionWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostReaction0 = await PostReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostReaction0?.setPost)
                {
                    await
                    PostReaction0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostReaction1 = await PostReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostReaction1?.setPost)
                {
                    await
                    PostReaction1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostReaction2 = await PostReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostReaction2?.setPost)
                {
                    await
                    PostReaction2.
                    setPost(relatedPost2);
                }
            
                const relatedPost3 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostReaction3 = await PostReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostReaction3?.setPost)
                {
                    await
                    PostReaction3.
                    setPost(relatedPost3);
                }
            
        }
        
    
        
            
            async function associatePostReactionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostReaction0 = await PostReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostReaction0?.setUser)
                {
                    await
                    PostReaction0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostReaction1 = await PostReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostReaction1?.setUser)
                {
                    await
                    PostReaction1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostReaction2 = await PostReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostReaction2?.setUser)
                {
                    await
                    PostReaction2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostReaction3 = await PostReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostReaction3?.setUser)
                {
                    await
                    PostReaction3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associatePostSaveWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostSave0 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostSave0?.setPost)
                {
                    await
                    PostSave0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostSave1 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostSave1?.setPost)
                {
                    await
                    PostSave1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostSave2 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostSave2?.setPost)
                {
                    await
                    PostSave2.
                    setPost(relatedPost2);
                }
            
                const relatedPost3 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostSave3 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostSave3?.setPost)
                {
                    await
                    PostSave3.
                    setPost(relatedPost3);
                }
            
        }
        
    
        
            
            async function associatePostSaveWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostSave0 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostSave0?.setUser)
                {
                    await
                    PostSave0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostSave1 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostSave1?.setUser)
                {
                    await
                    PostSave1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostSave2 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostSave2?.setUser)
                {
                    await
                    PostSave2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PostSave3 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostSave3?.setUser)
                {
                    await
                    PostSave3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associatePostSaveWithCollection() {
            
                const relatedCollection0 = await SaveCollections.findOne({
                    offset: Math.floor(Math.random() * (await SaveCollections.count())),
                });
                const PostSave0 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostSave0?.setCollection)
                {
                    await
                    PostSave0.
                    setCollection(relatedCollection0);
                }
            
                const relatedCollection1 = await SaveCollections.findOne({
                    offset: Math.floor(Math.random() * (await SaveCollections.count())),
                });
                const PostSave1 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostSave1?.setCollection)
                {
                    await
                    PostSave1.
                    setCollection(relatedCollection1);
                }
            
                const relatedCollection2 = await SaveCollections.findOne({
                    offset: Math.floor(Math.random() * (await SaveCollections.count())),
                });
                const PostSave2 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostSave2?.setCollection)
                {
                    await
                    PostSave2.
                    setCollection(relatedCollection2);
                }
            
                const relatedCollection3 = await SaveCollections.findOne({
                    offset: Math.floor(Math.random() * (await SaveCollections.count())),
                });
                const PostSave3 = await PostSaves.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostSave3?.setCollection)
                {
                    await
                    PostSave3.
                    setCollection(relatedCollection3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateSaveCollectionWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SaveCollection0 = await SaveCollections.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SaveCollection0?.setOwner)
                {
                    await
                    SaveCollection0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SaveCollection1 = await SaveCollections.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SaveCollection1?.setOwner)
                {
                    await
                    SaveCollection1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SaveCollection2 = await SaveCollections.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SaveCollection2?.setOwner)
                {
                    await
                    SaveCollection2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SaveCollection3 = await SaveCollections.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SaveCollection3?.setOwner)
                {
                    await
                    SaveCollection3.
                    setOwner(relatedOwner3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    

    
    
    
        
            
            async function associatePostHashtagWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostHashtag0 = await PostHashtags.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostHashtag0?.setPost)
                {
                    await
                    PostHashtag0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostHashtag1 = await PostHashtags.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostHashtag1?.setPost)
                {
                    await
                    PostHashtag1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostHashtag2 = await PostHashtags.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostHashtag2?.setPost)
                {
                    await
                    PostHashtag2.
                    setPost(relatedPost2);
                }
            
                const relatedPost3 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const PostHashtag3 = await PostHashtags.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostHashtag3?.setPost)
                {
                    await
                    PostHashtag3.
                    setPost(relatedPost3);
                }
            
        }
        
    
        
            
            async function associatePostHashtagWithHashtag() {
            
                const relatedHashtag0 = await Hashtags.findOne({
                    offset: Math.floor(Math.random() * (await Hashtags.count())),
                });
                const PostHashtag0 = await PostHashtags.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PostHashtag0?.setHashtag)
                {
                    await
                    PostHashtag0.
                    setHashtag(relatedHashtag0);
                }
            
                const relatedHashtag1 = await Hashtags.findOne({
                    offset: Math.floor(Math.random() * (await Hashtags.count())),
                });
                const PostHashtag1 = await PostHashtags.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PostHashtag1?.setHashtag)
                {
                    await
                    PostHashtag1.
                    setHashtag(relatedHashtag1);
                }
            
                const relatedHashtag2 = await Hashtags.findOne({
                    offset: Math.floor(Math.random() * (await Hashtags.count())),
                });
                const PostHashtag2 = await PostHashtags.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PostHashtag2?.setHashtag)
                {
                    await
                    PostHashtag2.
                    setHashtag(relatedHashtag2);
                }
            
                const relatedHashtag3 = await Hashtags.findOne({
                    offset: Math.floor(Math.random() * (await Hashtags.count())),
                });
                const PostHashtag3 = await PostHashtags.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PostHashtag3?.setHashtag)
                {
                    await
                    PostHashtag3.
                    setHashtag(relatedHashtag3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateStoryWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Story0 = await Stories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Story0?.setAuthor)
                {
                    await
                    Story0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Story1 = await Stories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Story1?.setAuthor)
                {
                    await
                    Story1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Story2 = await Stories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Story2?.setAuthor)
                {
                    await
                    Story2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Story3 = await Stories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Story3?.setAuthor)
                {
                    await
                    Story3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateStoryViewWithStory() {
            
                const relatedStory0 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const StoryView0 = await StoryViews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StoryView0?.setStory)
                {
                    await
                    StoryView0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const StoryView1 = await StoryViews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StoryView1?.setStory)
                {
                    await
                    StoryView1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const StoryView2 = await StoryViews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StoryView2?.setStory)
                {
                    await
                    StoryView2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const StoryView3 = await StoryViews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StoryView3?.setStory)
                {
                    await
                    StoryView3.
                    setStory(relatedStory3);
                }
            
        }
        
    
        
            
            async function associateStoryViewWithViewer() {
            
                const relatedViewer0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StoryView0 = await StoryViews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StoryView0?.setViewer)
                {
                    await
                    StoryView0.
                    setViewer(relatedViewer0);
                }
            
                const relatedViewer1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StoryView1 = await StoryViews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StoryView1?.setViewer)
                {
                    await
                    StoryView1.
                    setViewer(relatedViewer1);
                }
            
                const relatedViewer2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StoryView2 = await StoryViews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StoryView2?.setViewer)
                {
                    await
                    StoryView2.
                    setViewer(relatedViewer2);
                }
            
                const relatedViewer3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StoryView3 = await StoryViews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StoryView3?.setViewer)
                {
                    await
                    StoryView3.
                    setViewer(relatedViewer3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateHighlightWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Highlight0 = await Highlights.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Highlight0?.setOwner)
                {
                    await
                    Highlight0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Highlight1 = await Highlights.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Highlight1?.setOwner)
                {
                    await
                    Highlight1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Highlight2 = await Highlights.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Highlight2?.setOwner)
                {
                    await
                    Highlight2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Highlight3 = await Highlights.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Highlight3?.setOwner)
                {
                    await
                    Highlight3.
                    setOwner(relatedOwner3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateHighlightItemWithHighlight() {
            
                const relatedHighlight0 = await Highlights.findOne({
                    offset: Math.floor(Math.random() * (await Highlights.count())),
                });
                const HighlightItem0 = await HighlightItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (HighlightItem0?.setHighlight)
                {
                    await
                    HighlightItem0.
                    setHighlight(relatedHighlight0);
                }
            
                const relatedHighlight1 = await Highlights.findOne({
                    offset: Math.floor(Math.random() * (await Highlights.count())),
                });
                const HighlightItem1 = await HighlightItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (HighlightItem1?.setHighlight)
                {
                    await
                    HighlightItem1.
                    setHighlight(relatedHighlight1);
                }
            
                const relatedHighlight2 = await Highlights.findOne({
                    offset: Math.floor(Math.random() * (await Highlights.count())),
                });
                const HighlightItem2 = await HighlightItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (HighlightItem2?.setHighlight)
                {
                    await
                    HighlightItem2.
                    setHighlight(relatedHighlight2);
                }
            
                const relatedHighlight3 = await Highlights.findOne({
                    offset: Math.floor(Math.random() * (await Highlights.count())),
                });
                const HighlightItem3 = await HighlightItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (HighlightItem3?.setHighlight)
                {
                    await
                    HighlightItem3.
                    setHighlight(relatedHighlight3);
                }
            
        }
        
    
        
            
            async function associateHighlightItemWithStory() {
            
                const relatedStory0 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const HighlightItem0 = await HighlightItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (HighlightItem0?.setStory)
                {
                    await
                    HighlightItem0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const HighlightItem1 = await HighlightItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (HighlightItem1?.setStory)
                {
                    await
                    HighlightItem1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const HighlightItem2 = await HighlightItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (HighlightItem2?.setStory)
                {
                    await
                    HighlightItem2.
                    setStory(relatedStory2);
                }
            
                const relatedStory3 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const HighlightItem3 = await HighlightItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (HighlightItem3?.setStory)
                {
                    await
                    HighlightItem3.
                    setStory(relatedStory3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateReelWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reel0 = await Reels.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Reel0?.setAuthor)
                {
                    await
                    Reel0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reel1 = await Reels.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Reel1?.setAuthor)
                {
                    await
                    Reel1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reel2 = await Reels.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Reel2?.setAuthor)
                {
                    await
                    Reel2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reel3 = await Reels.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Reel3?.setAuthor)
                {
                    await
                    Reel3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateReelReactionWithReel() {
            
                const relatedReel0 = await Reels.findOne({
                    offset: Math.floor(Math.random() * (await Reels.count())),
                });
                const ReelReaction0 = await ReelReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReelReaction0?.setReel)
                {
                    await
                    ReelReaction0.
                    setReel(relatedReel0);
                }
            
                const relatedReel1 = await Reels.findOne({
                    offset: Math.floor(Math.random() * (await Reels.count())),
                });
                const ReelReaction1 = await ReelReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReelReaction1?.setReel)
                {
                    await
                    ReelReaction1.
                    setReel(relatedReel1);
                }
            
                const relatedReel2 = await Reels.findOne({
                    offset: Math.floor(Math.random() * (await Reels.count())),
                });
                const ReelReaction2 = await ReelReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReelReaction2?.setReel)
                {
                    await
                    ReelReaction2.
                    setReel(relatedReel2);
                }
            
                const relatedReel3 = await Reels.findOne({
                    offset: Math.floor(Math.random() * (await Reels.count())),
                });
                const ReelReaction3 = await ReelReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReelReaction3?.setReel)
                {
                    await
                    ReelReaction3.
                    setReel(relatedReel3);
                }
            
        }
        
    
        
            
            async function associateReelReactionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReelReaction0 = await ReelReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReelReaction0?.setUser)
                {
                    await
                    ReelReaction0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReelReaction1 = await ReelReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReelReaction1?.setUser)
                {
                    await
                    ReelReaction1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReelReaction2 = await ReelReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReelReaction2?.setUser)
                {
                    await
                    ReelReaction2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReelReaction3 = await ReelReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReelReaction3?.setUser)
                {
                    await
                    ReelReaction3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateReelCommentWithReel() {
            
                const relatedReel0 = await Reels.findOne({
                    offset: Math.floor(Math.random() * (await Reels.count())),
                });
                const ReelComment0 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReelComment0?.setReel)
                {
                    await
                    ReelComment0.
                    setReel(relatedReel0);
                }
            
                const relatedReel1 = await Reels.findOne({
                    offset: Math.floor(Math.random() * (await Reels.count())),
                });
                const ReelComment1 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReelComment1?.setReel)
                {
                    await
                    ReelComment1.
                    setReel(relatedReel1);
                }
            
                const relatedReel2 = await Reels.findOne({
                    offset: Math.floor(Math.random() * (await Reels.count())),
                });
                const ReelComment2 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReelComment2?.setReel)
                {
                    await
                    ReelComment2.
                    setReel(relatedReel2);
                }
            
                const relatedReel3 = await Reels.findOne({
                    offset: Math.floor(Math.random() * (await Reels.count())),
                });
                const ReelComment3 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReelComment3?.setReel)
                {
                    await
                    ReelComment3.
                    setReel(relatedReel3);
                }
            
        }
        
    
        
            
            async function associateReelCommentWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReelComment0 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReelComment0?.setAuthor)
                {
                    await
                    ReelComment0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReelComment1 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReelComment1?.setAuthor)
                {
                    await
                    ReelComment1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReelComment2 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReelComment2?.setAuthor)
                {
                    await
                    ReelComment2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReelComment3 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReelComment3?.setAuthor)
                {
                    await
                    ReelComment3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
    
        
            
            async function associateReelCommentWithParent_comment() {
            
                const relatedParent_comment0 = await ReelComments.findOne({
                    offset: Math.floor(Math.random() * (await ReelComments.count())),
                });
                const ReelComment0 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReelComment0?.setParent_comment)
                {
                    await
                    ReelComment0.
                    setParent_comment(relatedParent_comment0);
                }
            
                const relatedParent_comment1 = await ReelComments.findOne({
                    offset: Math.floor(Math.random() * (await ReelComments.count())),
                });
                const ReelComment1 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReelComment1?.setParent_comment)
                {
                    await
                    ReelComment1.
                    setParent_comment(relatedParent_comment1);
                }
            
                const relatedParent_comment2 = await ReelComments.findOne({
                    offset: Math.floor(Math.random() * (await ReelComments.count())),
                });
                const ReelComment2 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReelComment2?.setParent_comment)
                {
                    await
                    ReelComment2.
                    setParent_comment(relatedParent_comment2);
                }
            
                const relatedParent_comment3 = await ReelComments.findOne({
                    offset: Math.floor(Math.random() * (await ReelComments.count())),
                });
                const ReelComment3 = await ReelComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReelComment3?.setParent_comment)
                {
                    await
                    ReelComment3.
                    setParent_comment(relatedParent_comment3);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateConversationWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation0 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Conversation0?.setOwner)
                {
                    await
                    Conversation0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation1 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Conversation1?.setOwner)
                {
                    await
                    Conversation1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation2 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Conversation2?.setOwner)
                {
                    await
                    Conversation2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation3 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Conversation3?.setOwner)
                {
                    await
                    Conversation3.
                    setOwner(relatedOwner3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateConversationMemberWithConversation() {
            
                const relatedConversation0 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const ConversationMember0 = await ConversationMembers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConversationMember0?.setConversation)
                {
                    await
                    ConversationMember0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const ConversationMember1 = await ConversationMembers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConversationMember1?.setConversation)
                {
                    await
                    ConversationMember1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const ConversationMember2 = await ConversationMembers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConversationMember2?.setConversation)
                {
                    await
                    ConversationMember2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const ConversationMember3 = await ConversationMembers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ConversationMember3?.setConversation)
                {
                    await
                    ConversationMember3.
                    setConversation(relatedConversation3);
                }
            
        }
        
    
        
            
            async function associateConversationMemberWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ConversationMember0 = await ConversationMembers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConversationMember0?.setUser)
                {
                    await
                    ConversationMember0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ConversationMember1 = await ConversationMembers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConversationMember1?.setUser)
                {
                    await
                    ConversationMember1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ConversationMember2 = await ConversationMembers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConversationMember2?.setUser)
                {
                    await
                    ConversationMember2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ConversationMember3 = await ConversationMembers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ConversationMember3?.setUser)
                {
                    await
                    ConversationMember3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMessageWithConversation() {
            
                const relatedConversation0 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setConversation)
                {
                    await
                    Message0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setConversation)
                {
                    await
                    Message1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setConversation)
                {
                    await
                    Message2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setConversation)
                {
                    await
                    Message3.
                    setConversation(relatedConversation3);
                }
            
        }
        
    
        
            
            async function associateMessageWithSender() {
            
                const relatedSender0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setSender)
                {
                    await
                    Message0.
                    setSender(relatedSender0);
                }
            
                const relatedSender1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setSender)
                {
                    await
                    Message1.
                    setSender(relatedSender1);
                }
            
                const relatedSender2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setSender)
                {
                    await
                    Message2.
                    setSender(relatedSender2);
                }
            
                const relatedSender3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setSender)
                {
                    await
                    Message3.
                    setSender(relatedSender3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateMessageWithReply_to() {
            
                const relatedReply_to0 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setReply_to)
                {
                    await
                    Message0.
                    setReply_to(relatedReply_to0);
                }
            
                const relatedReply_to1 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setReply_to)
                {
                    await
                    Message1.
                    setReply_to(relatedReply_to1);
                }
            
                const relatedReply_to2 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setReply_to)
                {
                    await
                    Message2.
                    setReply_to(relatedReply_to2);
                }
            
                const relatedReply_to3 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setReply_to)
                {
                    await
                    Message3.
                    setReply_to(relatedReply_to3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateCallWithConversation() {
            
                const relatedConversation0 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Call0 = await Calls.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Call0?.setConversation)
                {
                    await
                    Call0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Call1 = await Calls.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Call1?.setConversation)
                {
                    await
                    Call1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Call2 = await Calls.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Call2?.setConversation)
                {
                    await
                    Call2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Call3 = await Calls.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Call3?.setConversation)
                {
                    await
                    Call3.
                    setConversation(relatedConversation3);
                }
            
        }
        
    
        
            
            async function associateCallWithInitiator() {
            
                const relatedInitiator0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Call0 = await Calls.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Call0?.setInitiator)
                {
                    await
                    Call0.
                    setInitiator(relatedInitiator0);
                }
            
                const relatedInitiator1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Call1 = await Calls.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Call1?.setInitiator)
                {
                    await
                    Call1.
                    setInitiator(relatedInitiator1);
                }
            
                const relatedInitiator2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Call2 = await Calls.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Call2?.setInitiator)
                {
                    await
                    Call2.
                    setInitiator(relatedInitiator2);
                }
            
                const relatedInitiator3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Call3 = await Calls.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Call3?.setInitiator)
                {
                    await
                    Call3.
                    setInitiator(relatedInitiator3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateNotificationWithRecipient() {
            
                const relatedRecipient0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setRecipient)
                {
                    await
                    Notification0.
                    setRecipient(relatedRecipient0);
                }
            
                const relatedRecipient1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setRecipient)
                {
                    await
                    Notification1.
                    setRecipient(relatedRecipient1);
                }
            
                const relatedRecipient2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setRecipient)
                {
                    await
                    Notification2.
                    setRecipient(relatedRecipient2);
                }
            
                const relatedRecipient3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification3 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Notification3?.setRecipient)
                {
                    await
                    Notification3.
                    setRecipient(relatedRecipient3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateReportWithReporter() {
            
                const relatedReporter0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report0 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Report0?.setReporter)
                {
                    await
                    Report0.
                    setReporter(relatedReporter0);
                }
            
                const relatedReporter1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report1 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Report1?.setReporter)
                {
                    await
                    Report1.
                    setReporter(relatedReporter1);
                }
            
                const relatedReporter2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report2 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Report2?.setReporter)
                {
                    await
                    Report2.
                    setReporter(relatedReporter2);
                }
            
                const relatedReporter3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report3 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Report3?.setReporter)
                {
                    await
                    Report3.
                    setReporter(relatedReporter3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateProductWithSeller() {
            
                const relatedSeller0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setSeller)
                {
                    await
                    Product0.
                    setSeller(relatedSeller0);
                }
            
                const relatedSeller1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setSeller)
                {
                    await
                    Product1.
                    setSeller(relatedSeller1);
                }
            
                const relatedSeller2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setSeller)
                {
                    await
                    Product2.
                    setSeller(relatedSeller2);
                }
            
                const relatedSeller3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setSeller)
                {
                    await
                    Product3.
                    setSeller(relatedSeller3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateInsightSnapshotWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const InsightSnapshot0 = await InsightSnapshots.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InsightSnapshot0?.setOwner)
                {
                    await
                    InsightSnapshot0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const InsightSnapshot1 = await InsightSnapshots.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InsightSnapshot1?.setOwner)
                {
                    await
                    InsightSnapshot1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const InsightSnapshot2 = await InsightSnapshots.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InsightSnapshot2?.setOwner)
                {
                    await
                    InsightSnapshot2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const InsightSnapshot3 = await InsightSnapshots.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InsightSnapshot3?.setOwner)
                {
                    await
                    InsightSnapshot3.
                    setOwner(relatedOwner3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await UserRelationships.bulkCreate(UserRelationshipsData);
                
            
            
                
                await Posts.bulkCreate(PostsData);
                
            
            
                
                await PostComments.bulkCreate(PostCommentsData);
                
            
            
                
                await PostReactions.bulkCreate(PostReactionsData);
                
            
            
                
                await PostSaves.bulkCreate(PostSavesData);
                
            
            
                
                await SaveCollections.bulkCreate(SaveCollectionsData);
                
            
            
                
                await Hashtags.bulkCreate(HashtagsData);
                
            
            
                
                await PostHashtags.bulkCreate(PostHashtagsData);
                
            
            
                
                await Stories.bulkCreate(StoriesData);
                
            
            
                
                await StoryViews.bulkCreate(StoryViewsData);
                
            
            
                
                await Highlights.bulkCreate(HighlightsData);
                
            
            
                
                await HighlightItems.bulkCreate(HighlightItemsData);
                
            
            
                
                await Reels.bulkCreate(ReelsData);
                
            
            
                
                await ReelReactions.bulkCreate(ReelReactionsData);
                
            
            
                
                await ReelComments.bulkCreate(ReelCommentsData);
                
            
            
                
                await Conversations.bulkCreate(ConversationsData);
                
            
            
                
                await ConversationMembers.bulkCreate(ConversationMembersData);
                
            
            
                
                await Messages.bulkCreate(MessagesData);
                
            
            
                
                await Calls.bulkCreate(CallsData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            
                
                await Reports.bulkCreate(ReportsData);
                
            
            
                
                await Products.bulkCreate(ProductsData);
                
            
            
                
                await InsightSnapshots.bulkCreate(InsightSnapshotsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                        
                        await associateUserRelationshipWithFollower(),
                    
                
                    
                        
                        await associateUserRelationshipWithFollowing(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePostWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePostCommentWithPost(),
                    
                
                    
                        
                        await associatePostCommentWithAuthor(),
                    
                
                    
                
                    
                        
                        await associatePostCommentWithParent_comment(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePostReactionWithPost(),
                    
                
                    
                        
                        await associatePostReactionWithUser(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePostSaveWithPost(),
                    
                
                    
                        
                        await associatePostSaveWithUser(),
                    
                
                    
                        
                        await associatePostSaveWithCollection(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateSaveCollectionWithOwner(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePostHashtagWithPost(),
                    
                
                    
                        
                        await associatePostHashtagWithHashtag(),
                    
                
            
                
                
                    
                        
                        await associateStoryWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateStoryViewWithStory(),
                    
                
                    
                        
                        await associateStoryViewWithViewer(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateHighlightWithOwner(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateHighlightItemWithHighlight(),
                    
                
                    
                        
                        await associateHighlightItemWithStory(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateReelWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReelReactionWithReel(),
                    
                
                    
                        
                        await associateReelReactionWithUser(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReelCommentWithReel(),
                    
                
                    
                        
                        await associateReelCommentWithAuthor(),
                    
                
                    
                
                    
                        
                        await associateReelCommentWithParent_comment(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateConversationWithOwner(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateConversationMemberWithConversation(),
                    
                
                    
                        
                        await associateConversationMemberWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMessageWithConversation(),
                    
                
                    
                        
                        await associateMessageWithSender(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMessageWithReply_to(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCallWithConversation(),
                    
                
                    
                        
                        await associateCallWithInitiator(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNotificationWithRecipient(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReportWithReporter(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProductWithSeller(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateInsightSnapshotWithOwner(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('user_relationships', null, {});
            
            
            await queryInterface.bulkDelete('posts', null, {});
            
            
            await queryInterface.bulkDelete('post_comments', null, {});
            
            
            await queryInterface.bulkDelete('post_reactions', null, {});
            
            
            await queryInterface.bulkDelete('post_saves', null, {});
            
            
            await queryInterface.bulkDelete('save_collections', null, {});
            
            
            await queryInterface.bulkDelete('hashtags', null, {});
            
            
            await queryInterface.bulkDelete('post_hashtags', null, {});
            
            
            await queryInterface.bulkDelete('stories', null, {});
            
            
            await queryInterface.bulkDelete('story_views', null, {});
            
            
            await queryInterface.bulkDelete('highlights', null, {});
            
            
            await queryInterface.bulkDelete('highlight_items', null, {});
            
            
            await queryInterface.bulkDelete('reels', null, {});
            
            
            await queryInterface.bulkDelete('reel_reactions', null, {});
            
            
            await queryInterface.bulkDelete('reel_comments', null, {});
            
            
            await queryInterface.bulkDelete('conversations', null, {});
            
            
            await queryInterface.bulkDelete('conversation_members', null, {});
            
            
            await queryInterface.bulkDelete('messages', null, {});
            
            
            await queryInterface.bulkDelete('calls', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
            
            await queryInterface.bulkDelete('reports', null, {});
            
            
            await queryInterface.bulkDelete('products', null, {});
            
            
            await queryInterface.bulkDelete('insight_snapshots', null, {});
            
        
    },
};