





















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






const Posts = db.posts;

const Comments = db.comments;

const Reactions = db.reactions;

const Stories = db.stories;

const Conversations = db.conversations;

const Messages = db.messages;

const Groups = db.groups;

const Events = db.events;

const Tickets = db.tickets;

const Notifications = db.notifications;

const UserSettings = db.user_settings;

const Follows = db.follows;

const Hashtags = db.hashtags;

const PostHashtags = db.post_hashtags;

const MediaAssets = db.media_assets;

const LiveStreams = db.live_streams;

const Transactions = db.transactions;

const AiRecommendations = db.ai_recommendations;

const ContentModerationReports = db.content_moderation_reports;

const GamificationBadges = db.gamification_badges;

const UserBadges = db.user_badges;







const PostsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "text",
            
        
    
        
        
            
                "caption": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "link_url": "Marie Curie",
            
        
    
        
        
            
                "visibility": "group_only",
            
        
    
        
        
            
                "comments_enabled": false,
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                "is_sensitive": false,
            
        
    
        
        
            
                "location_text": "Grace Hopper",
            
        
    
        
        
            
                "language_code": "Ada Lovelace",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_for": new Date(Date.now()),
            
        
    
        
        
            
                "like_count": 7,
            
        
    
        
        
            
                "comment_count": 3,
            
        
    
        
        
            
                "share_count": 4,
            
        
    
        
        
            
                "view_count": 8,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "image",
            
        
    
        
        
            
                "caption": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "link_url": "Marie Curie",
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "comments_enabled": false,
            
        
    
        
        
            
                "is_pinned": false,
            
        
    
        
        
            
                "is_sensitive": true,
            
        
    
        
        
            
                "location_text": "Ada Lovelace",
            
        
    
        
        
            
                "language_code": "Alan Turing",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_for": new Date(Date.now()),
            
        
    
        
        
            
                "like_count": 5,
            
        
    
        
        
            
                "comment_count": 4,
            
        
    
        
        
            
                "share_count": 7,
            
        
    
        
        
            
                "view_count": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "video",
            
        
    
        
        
            
                "caption": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "link_url": "Marie Curie",
            
        
    
        
        
            
                "visibility": "friends_only",
            
        
    
        
        
            
                "comments_enabled": true,
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                "is_sensitive": false,
            
        
    
        
        
            
                "location_text": "Alan Turing",
            
        
    
        
        
            
                "language_code": "Grace Hopper",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_for": new Date(Date.now()),
            
        
    
        
        
            
                "like_count": 1,
            
        
    
        
        
            
                "comment_count": 4,
            
        
    
        
        
            
                "share_count": 5,
            
        
    
        
        
            
                "view_count": 3,
            
        
    
    },
    
];



const CommentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_edited": false,
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                "like_count": 8,
            
        
    
    },
    
    {
    
        
        
            
                // 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_edited": true,
            
        
    
        
        
            
                "is_pinned": false,
            
        
    
        
        
            
                "like_count": 9,
            
        
    
    },
    
    {
    
        
        
            
                // 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_edited": false,
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                "like_count": 9,
            
        
    
    },
    
];



const ReactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "comment",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "target_type": "post",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "target_type": "story",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reaction_type": "love",
            
        
    
        
        
            
                "reacted_at": new Date(Date.now()),
            
        
    
    },
    
];



const StoriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "story_type": "image",
            
        
    
        
        
            
                "text_overlay": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "visibility": "close_friends",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "view_count": 7,
            
        
    
        
        
            
                "allow_replies": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "story_type": "text",
            
        
    
        
        
            
                "text_overlay": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "visibility": "close_friends",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "view_count": 1,
            
        
    
        
        
            
                "allow_replies": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "story_type": "video",
            
        
    
        
        
            
                "text_overlay": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "visibility": "friends_only",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "view_count": 4,
            
        
    
        
        
            
                "allow_replies": false,
            
        
    
    },
    
];



const ConversationsData = [
    
    {
    
        
        
            
                "conversation_type": "group",
            
        
    
        
        
            
                "title_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_archived": true,
            
        
    
        
        
            
                "is_muted": true,
            
        
    
    },
    
    {
    
        
        
            
                "conversation_type": "direct",
            
        
    
        
        
            
                "title_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_archived": false,
            
        
    
        
        
            
                "is_muted": true,
            
        
    
    },
    
    {
    
        
        
            
                "conversation_type": "group",
            
        
    
        
        
            
                "title_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_archived": false,
            
        
    
        
        
            
                "is_muted": true,
            
        
    
    },
    
];



const MessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "system",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_edited": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "image",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_edited": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "text",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_edited": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
];



const GroupsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name_text": "Ada Lovelace",
            
        
    
        
        
            
                "description_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "privacy_level": "private",
            
        
    
        
        
            
                "membership_approval": "open",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "is_verified": false,
            
        
    
        
        
            
                "member_count": 1,
            
        
    
        
        
            
                "rules_text": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name_text": "Grace Hopper",
            
        
    
        
        
            
                "description_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "privacy_level": "private",
            
        
    
        
        
            
                "membership_approval": "open",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "is_verified": true,
            
        
    
        
        
            
                "member_count": 6,
            
        
    
        
        
            
                "rules_text": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name_text": "Ada Lovelace",
            
        
    
        
        
            
                "description_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "privacy_level": "private",
            
        
    
        
        
            
                "membership_approval": "request",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "is_verified": true,
            
        
    
        
        
            
                "member_count": 2,
            
        
    
        
        
            
                "rules_text": "Marie Curie",
            
        
    
    },
    
];



const EventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Ada Lovelace",
            
        
    
        
        
            
                "description_text": "Alan Turing",
            
        
    
        
        
            
                "visibility": "group_only",
            
        
    
        
        
            
                "location_text": "Alan Turing",
            
        
    
        
        
            
                "online_url": "Marie Curie",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "capacity": 9,
            
        
    
        
        
            
                "requires_ticket": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Grace Hopper",
            
        
    
        
        
            
                "description_text": "Marie Curie",
            
        
    
        
        
            
                "visibility": "invite_only",
            
        
    
        
        
            
                "location_text": "Alan Turing",
            
        
    
        
        
            
                "online_url": "Alan Turing",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "capacity": 2,
            
        
    
        
        
            
                "requires_ticket": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Grace Hopper",
            
        
    
        
        
            
                "description_text": "Alan Turing",
            
        
    
        
        
            
                "visibility": "group_only",
            
        
    
        
        
            
                "location_text": "Marie Curie",
            
        
    
        
        
            
                "online_url": "Alan Turing",
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "capacity": 5,
            
        
    
        
        
            
                "requires_ticket": true,
            
        
    
    },
    
];



const TicketsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "ticket_code": "Marie Curie",
            
        
    
        
        
            
                "price_amount": 6.26,
            
        
    
        
        
            
                "currency_code": "EUR",
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
        
        
            
                "checked_in_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "ticket_code": "Grace Hopper",
            
        
    
        
        
            
                "price_amount": 8.52,
            
        
    
        
        
            
                "currency_code": "GBP",
            
        
    
        
        
            
                "status": "reserved",
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
        
        
            
                "checked_in_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "ticket_code": "Alan Turing",
            
        
    
        
        
            
                "price_amount": 4.48,
            
        
    
        
        
            
                "currency_code": "USD",
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "purchased_at": new Date(Date.now()),
            
        
    
        
        
            
                "checked_in_at": new Date(Date.now()),
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "group_invite",
            
        
    
        
        
            
                "title_text": "Alan Turing",
            
        
    
        
        
            
                "body_text": "Marie Curie",
            
        
    
        
        
            
                "priority": "high",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "like",
            
        
    
        
        
            
                "title_text": "Ada Lovelace",
            
        
    
        
        
            
                "body_text": "Alan Turing",
            
        
    
        
        
            
                "priority": "high",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "live_started",
            
        
    
        
        
            
                "title_text": "Alan Turing",
            
        
    
        
        
            
                "body_text": "Alan Turing",
            
        
    
        
        
            
                "priority": "normal",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
];



const UserSettingsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "push_enabled": false,
            
        
    
        
        
            
                "email_enabled": false,
            
        
    
        
        
            
                "sms_enabled": true,
            
        
    
        
        
            
                "theme_preference": "light",
            
        
    
        
        
            
                "language_preference": "en",
            
        
    
        
        
            
                "show_sensitive_content": true,
            
        
    
        
        
            
                "allow_message_requests": true,
            
        
    
        
        
            
                "read_receipts_enabled": false,
            
        
    
        
        
            
                "activity_status_visible": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "push_enabled": true,
            
        
    
        
        
            
                "email_enabled": false,
            
        
    
        
        
            
                "sms_enabled": false,
            
        
    
        
        
            
                "theme_preference": "light",
            
        
    
        
        
            
                "language_preference": "fr",
            
        
    
        
        
            
                "show_sensitive_content": false,
            
        
    
        
        
            
                "allow_message_requests": true,
            
        
    
        
        
            
                "read_receipts_enabled": false,
            
        
    
        
        
            
                "activity_status_visible": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "push_enabled": true,
            
        
    
        
        
            
                "email_enabled": true,
            
        
    
        
        
            
                "sms_enabled": true,
            
        
    
        
        
            
                "theme_preference": "system",
            
        
    
        
        
            
                "language_preference": "en",
            
        
    
        
        
            
                "show_sensitive_content": true,
            
        
    
        
        
            
                "allow_message_requests": true,
            
        
    
        
        
            
                "read_receipts_enabled": true,
            
        
    
        
        
            
                "activity_status_visible": true,
            
        
    
    },
    
];



const FollowsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "accepted",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "requested",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "blocked",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
    },
    
];



const HashtagsData = [
    
    {
    
        
        
            
                "tag_text": "Alan Turing",
            
        
    
        
        
            
                "usage_count": 6,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "tag_text": "Marie Curie",
            
        
    
        
        
            
                "usage_count": 3,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "tag_text": "Ada Lovelace",
            
        
    
        
        
            
                "usage_count": 4,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
    },
    
];



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
            
        
    
    },
    
];



const MediaAssetsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "asset_type": "file",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "size_bytes": 4,
            
        
    
        
        
            
                "width_px": 8,
            
        
    
        
        
            
                "height_px": 5,
            
        
    
        
        
            
                "duration_seconds": 2.17,
            
        
    
        
        
            
                "storage_key": "Marie Curie",
            
        
    
        
        
            
                "checksum_text": "Marie Curie",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "asset_type": "image",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "size_bytes": 1,
            
        
    
        
        
            
                "width_px": 6,
            
        
    
        
        
            
                "height_px": 4,
            
        
    
        
        
            
                "duration_seconds": 9.31,
            
        
    
        
        
            
                "storage_key": "Ada Lovelace",
            
        
    
        
        
            
                "checksum_text": "Marie Curie",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "asset_type": "file",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "size_bytes": 9,
            
        
    
        
        
            
                "width_px": 9,
            
        
    
        
        
            
                "height_px": 7,
            
        
    
        
        
            
                "duration_seconds": 0.33,
            
        
    
        
        
            
                "storage_key": "Alan Turing",
            
        
    
        
        
            
                "checksum_text": "Grace Hopper",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
];



const LiveStreamsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Grace Hopper",
            
        
    
        
        
            
                "description_text": "Alan Turing",
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "status": "live",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "stream_key": "Alan Turing",
            
        
    
        
        
            
                "playback_url": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "peak_viewers": 1,
            
        
    
        
        
            
                "total_views": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Marie Curie",
            
        
    
        
        
            
                "description_text": "Alan Turing",
            
        
    
        
        
            
                "visibility": "followers_only",
            
        
    
        
        
            
                "status": "ended",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "stream_key": "Alan Turing",
            
        
    
        
        
            
                "playback_url": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "peak_viewers": 2,
            
        
    
        
        
            
                "total_views": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title_text": "Grace Hopper",
            
        
    
        
        
            
                "description_text": "Grace Hopper",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "status": "ended",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ended_at": new Date(Date.now()),
            
        
    
        
        
            
                "stream_key": "Ada Lovelace",
            
        
    
        
        
            
                "playback_url": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "peak_viewers": 3,
            
        
    
        
        
            
                "total_views": 1,
            
        
    
    },
    
];



const TransactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transaction_type": "ticket_purchase",
            
        
    
        
        
            
                "amount": 6.57,
            
        
    
        
        
            
                "currency_code": "USD",
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "provider_name": "Ada Lovelace",
            
        
    
        
        
            
                "provider_reference": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transaction_type": "tip",
            
        
    
        
        
            
                "amount": 4.86,
            
        
    
        
        
            
                "currency_code": "USD",
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "provider_name": "Alan Turing",
            
        
    
        
        
            
                "provider_reference": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "transaction_type": "ticket_purchase",
            
        
    
        
        
            
                "amount": 7.66,
            
        
    
        
        
            
                "currency_code": "GBP",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "provider_name": "Marie Curie",
            
        
    
        
        
            
                "provider_reference": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
];



const AiRecommendationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recommendation_type": "suggested_group",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "score": 1.17,
            
        
    
        
        
            
                "reason_text": "Grace Hopper",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recommendation_type": "suggested_hashtag",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "score": 5.44,
            
        
    
        
        
            
                "reason_text": "Marie Curie",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "recommendation_type": "suggested_hashtag",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "score": 3.49,
            
        
    
        
        
            
                "reason_text": "Alan Turing",
            
        
    
        
        
            
                "generated_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
];



const ContentModerationReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "comment",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "reason_code": "scam",
            
        
    
        
        
            
                "details_text": "Ada Lovelace",
            
        
    
        
        
            
                "status": "action_taken",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "user",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "reason_code": "self_harm",
            
        
    
        
        
            
                "details_text": "Ada Lovelace",
            
        
    
        
        
            
                "status": "dismissed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_type": "comment",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "reason_code": "violence",
            
        
    
        
        
            
                "details_text": "Alan Turing",
            
        
    
        
        
            
                "status": "action_taken",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
];



const GamificationBadgesData = [
    
    {
    
        
        
            
                "name_text": "Alan Turing",
            
        
    
        
        
            
                "description_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rarity": "epic",
            
        
    
        
        
            
                "points_value": 6,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name_text": "Grace Hopper",
            
        
    
        
        
            
                "description_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rarity": "epic",
            
        
    
        
        
            
                "points_value": 6,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name_text": "Grace Hopper",
            
        
    
        
        
            
                "description_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "rarity": "epic",
            
        
    
        
        
            
                "points_value": 7,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const UserBadgesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "award_reason": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "award_reason": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "awarded_at": new Date(Date.now()),
            
        
    
        
        
            
                "award_reason": "Ada Lovelace",
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCommentWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setPost)
                {
                    await
                    Comment0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setPost)
                {
                    await
                    Comment1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setPost)
                {
                    await
                    Comment2.
                    setPost(relatedPost2);
                }
            
        }
        
    
        
            
            async function associateCommentWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setAuthor)
                {
                    await
                    Comment0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setAuthor)
                {
                    await
                    Comment1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setAuthor)
                {
                    await
                    Comment2.
                    setAuthor(relatedAuthor2);
                }
            
        }
        
    
        
    
        
            
            async function associateCommentWithParent_comment() {
            
                const relatedParent_comment0 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Comment0 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Comment0?.setParent_comment)
                {
                    await
                    Comment0.
                    setParent_comment(relatedParent_comment0);
                }
            
                const relatedParent_comment1 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Comment1 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Comment1?.setParent_comment)
                {
                    await
                    Comment1.
                    setParent_comment(relatedParent_comment1);
                }
            
                const relatedParent_comment2 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Comment2 = await Comments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Comment2?.setParent_comment)
                {
                    await
                    Comment2.
                    setParent_comment(relatedParent_comment2);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateReactionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reaction0 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Reaction0?.setUser)
                {
                    await
                    Reaction0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reaction1 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Reaction1?.setUser)
                {
                    await
                    Reaction1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Reaction2 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Reaction2?.setUser)
                {
                    await
                    Reaction2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
            
            async function associateReactionWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Reaction0 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Reaction0?.setPost)
                {
                    await
                    Reaction0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Reaction1 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Reaction1?.setPost)
                {
                    await
                    Reaction1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Reaction2 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Reaction2?.setPost)
                {
                    await
                    Reaction2.
                    setPost(relatedPost2);
                }
            
        }
        
    
        
            
            async function associateReactionWithComment() {
            
                const relatedComment0 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Reaction0 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Reaction0?.setComment)
                {
                    await
                    Reaction0.
                    setComment(relatedComment0);
                }
            
                const relatedComment1 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Reaction1 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Reaction1?.setComment)
                {
                    await
                    Reaction1.
                    setComment(relatedComment1);
                }
            
                const relatedComment2 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Reaction2 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Reaction2?.setComment)
                {
                    await
                    Reaction2.
                    setComment(relatedComment2);
                }
            
        }
        
    
        
            
            async function associateReactionWithStory() {
            
                const relatedStory0 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const Reaction0 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Reaction0?.setStory)
                {
                    await
                    Reaction0.
                    setStory(relatedStory0);
                }
            
                const relatedStory1 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const Reaction1 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Reaction1?.setStory)
                {
                    await
                    Reaction1.
                    setStory(relatedStory1);
                }
            
                const relatedStory2 = await Stories.findOne({
                    offset: Math.floor(Math.random() * (await Stories.count())),
                });
                const Reaction2 = await Reactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Reaction2?.setStory)
                {
                    await
                    Reaction2.
                    setStory(relatedStory2);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            
            async function associateConversationWithGroup() {
            
                const relatedGroup0 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const Conversation0 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Conversation0?.setGroup)
                {
                    await
                    Conversation0.
                    setGroup(relatedGroup0);
                }
            
                const relatedGroup1 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const Conversation1 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Conversation1?.setGroup)
                {
                    await
                    Conversation1.
                    setGroup(relatedGroup1);
                }
            
                const relatedGroup2 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const Conversation2 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Conversation2?.setGroup)
                {
                    await
                    Conversation2.
                    setGroup(relatedGroup2);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateGroupWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Group0 = await Groups.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Group0?.setOwner)
                {
                    await
                    Group0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Group1 = await Groups.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Group1?.setOwner)
                {
                    await
                    Group1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Group2 = await Groups.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Group2?.setOwner)
                {
                    await
                    Group2.
                    setOwner(relatedOwner2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateEventWithHost() {
            
                const relatedHost0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Event0 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Event0?.setHost)
                {
                    await
                    Event0.
                    setHost(relatedHost0);
                }
            
                const relatedHost1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Event1 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Event1?.setHost)
                {
                    await
                    Event1.
                    setHost(relatedHost1);
                }
            
                const relatedHost2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Event2 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Event2?.setHost)
                {
                    await
                    Event2.
                    setHost(relatedHost2);
                }
            
        }
        
    
        
            
            async function associateEventWithGroup() {
            
                const relatedGroup0 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const Event0 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Event0?.setGroup)
                {
                    await
                    Event0.
                    setGroup(relatedGroup0);
                }
            
                const relatedGroup1 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const Event1 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Event1?.setGroup)
                {
                    await
                    Event1.
                    setGroup(relatedGroup1);
                }
            
                const relatedGroup2 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const Event2 = await Events.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Event2?.setGroup)
                {
                    await
                    Event2.
                    setGroup(relatedGroup2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTicketWithEvent() {
            
                const relatedEvent0 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const Ticket0 = await Tickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Ticket0?.setEvent)
                {
                    await
                    Ticket0.
                    setEvent(relatedEvent0);
                }
            
                const relatedEvent1 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const Ticket1 = await Tickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Ticket1?.setEvent)
                {
                    await
                    Ticket1.
                    setEvent(relatedEvent1);
                }
            
                const relatedEvent2 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const Ticket2 = await Tickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Ticket2?.setEvent)
                {
                    await
                    Ticket2.
                    setEvent(relatedEvent2);
                }
            
        }
        
    
        
            
            async function associateTicketWithBuyer() {
            
                const relatedBuyer0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Ticket0 = await Tickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Ticket0?.setBuyer)
                {
                    await
                    Ticket0.
                    setBuyer(relatedBuyer0);
                }
            
                const relatedBuyer1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Ticket1 = await Tickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Ticket1?.setBuyer)
                {
                    await
                    Ticket1.
                    setBuyer(relatedBuyer1);
                }
            
                const relatedBuyer2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Ticket2 = await Tickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Ticket2?.setBuyer)
                {
                    await
                    Ticket2.
                    setBuyer(relatedBuyer2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateNotificationWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setPost)
                {
                    await
                    Notification0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setPost)
                {
                    await
                    Notification1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setPost)
                {
                    await
                    Notification2.
                    setPost(relatedPost2);
                }
            
        }
        
    
        
            
            async function associateNotificationWithComment() {
            
                const relatedComment0 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setComment)
                {
                    await
                    Notification0.
                    setComment(relatedComment0);
                }
            
                const relatedComment1 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setComment)
                {
                    await
                    Notification1.
                    setComment(relatedComment1);
                }
            
                const relatedComment2 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setComment)
                {
                    await
                    Notification2.
                    setComment(relatedComment2);
                }
            
        }
        
    
        
            
            async function associateNotificationWithGroup() {
            
                const relatedGroup0 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setGroup)
                {
                    await
                    Notification0.
                    setGroup(relatedGroup0);
                }
            
                const relatedGroup1 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setGroup)
                {
                    await
                    Notification1.
                    setGroup(relatedGroup1);
                }
            
                const relatedGroup2 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setGroup)
                {
                    await
                    Notification2.
                    setGroup(relatedGroup2);
                }
            
        }
        
    
        
            
            async function associateNotificationWithConversation() {
            
                const relatedConversation0 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setConversation)
                {
                    await
                    Notification0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setConversation)
                {
                    await
                    Notification1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setConversation)
                {
                    await
                    Notification2.
                    setConversation(relatedConversation2);
                }
            
        }
        
    
        
            
            async function associateNotificationWithEvent() {
            
                const relatedEvent0 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setEvent)
                {
                    await
                    Notification0.
                    setEvent(relatedEvent0);
                }
            
                const relatedEvent1 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setEvent)
                {
                    await
                    Notification1.
                    setEvent(relatedEvent1);
                }
            
                const relatedEvent2 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setEvent)
                {
                    await
                    Notification2.
                    setEvent(relatedEvent2);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserSettingWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSetting0 = await UserSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserSetting0?.setUser)
                {
                    await
                    UserSetting0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSetting1 = await UserSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserSetting1?.setUser)
                {
                    await
                    UserSetting1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserSetting2 = await UserSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserSetting2?.setUser)
                {
                    await
                    UserSetting2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFollowWithFollower() {
            
                const relatedFollower0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Follow0 = await Follows.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Follow0?.setFollower)
                {
                    await
                    Follow0.
                    setFollower(relatedFollower0);
                }
            
                const relatedFollower1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Follow1 = await Follows.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Follow1?.setFollower)
                {
                    await
                    Follow1.
                    setFollower(relatedFollower1);
                }
            
                const relatedFollower2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Follow2 = await Follows.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Follow2?.setFollower)
                {
                    await
                    Follow2.
                    setFollower(relatedFollower2);
                }
            
        }
        
    
        
            
            async function associateFollowWithFollowing() {
            
                const relatedFollowing0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Follow0 = await Follows.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Follow0?.setFollowing)
                {
                    await
                    Follow0.
                    setFollowing(relatedFollowing0);
                }
            
                const relatedFollowing1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Follow1 = await Follows.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Follow1?.setFollowing)
                {
                    await
                    Follow1.
                    setFollowing(relatedFollowing1);
                }
            
                const relatedFollowing2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Follow2 = await Follows.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Follow2?.setFollowing)
                {
                    await
                    Follow2.
                    setFollowing(relatedFollowing2);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    

    
    
    
        
            
            async function associateMediaAssetWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MediaAsset0 = await MediaAssets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MediaAsset0?.setOwner)
                {
                    await
                    MediaAsset0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MediaAsset1 = await MediaAssets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MediaAsset1?.setOwner)
                {
                    await
                    MediaAsset1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const MediaAsset2 = await MediaAssets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MediaAsset2?.setOwner)
                {
                    await
                    MediaAsset2.
                    setOwner(relatedOwner2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLiveStreamWithHost() {
            
                const relatedHost0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LiveStream0 = await LiveStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LiveStream0?.setHost)
                {
                    await
                    LiveStream0.
                    setHost(relatedHost0);
                }
            
                const relatedHost1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LiveStream1 = await LiveStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LiveStream1?.setHost)
                {
                    await
                    LiveStream1.
                    setHost(relatedHost1);
                }
            
                const relatedHost2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LiveStream2 = await LiveStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LiveStream2?.setHost)
                {
                    await
                    LiveStream2.
                    setHost(relatedHost2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateLiveStreamWithReplay_post() {
            
                const relatedReplay_post0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const LiveStream0 = await LiveStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LiveStream0?.setReplay_post)
                {
                    await
                    LiveStream0.
                    setReplay_post(relatedReplay_post0);
                }
            
                const relatedReplay_post1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const LiveStream1 = await LiveStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LiveStream1?.setReplay_post)
                {
                    await
                    LiveStream1.
                    setReplay_post(relatedReplay_post1);
                }
            
                const relatedReplay_post2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const LiveStream2 = await LiveStreams.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LiveStream2?.setReplay_post)
                {
                    await
                    LiveStream2.
                    setReplay_post(relatedReplay_post2);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateTransactionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Transaction0 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Transaction0?.setUser)
                {
                    await
                    Transaction0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Transaction1 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Transaction1?.setUser)
                {
                    await
                    Transaction1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Transaction2 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Transaction2?.setUser)
                {
                    await
                    Transaction2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTransactionWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Transaction0 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Transaction0?.setPost)
                {
                    await
                    Transaction0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Transaction1 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Transaction1?.setPost)
                {
                    await
                    Transaction1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const Transaction2 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Transaction2?.setPost)
                {
                    await
                    Transaction2.
                    setPost(relatedPost2);
                }
            
        }
        
    
        
            
            async function associateTransactionWithEvent() {
            
                const relatedEvent0 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const Transaction0 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Transaction0?.setEvent)
                {
                    await
                    Transaction0.
                    setEvent(relatedEvent0);
                }
            
                const relatedEvent1 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const Transaction1 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Transaction1?.setEvent)
                {
                    await
                    Transaction1.
                    setEvent(relatedEvent1);
                }
            
                const relatedEvent2 = await Events.findOne({
                    offset: Math.floor(Math.random() * (await Events.count())),
                });
                const Transaction2 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Transaction2?.setEvent)
                {
                    await
                    Transaction2.
                    setEvent(relatedEvent2);
                }
            
        }
        
    
        
            
            async function associateTransactionWithTicket() {
            
                const relatedTicket0 = await Tickets.findOne({
                    offset: Math.floor(Math.random() * (await Tickets.count())),
                });
                const Transaction0 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Transaction0?.setTicket)
                {
                    await
                    Transaction0.
                    setTicket(relatedTicket0);
                }
            
                const relatedTicket1 = await Tickets.findOne({
                    offset: Math.floor(Math.random() * (await Tickets.count())),
                });
                const Transaction1 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Transaction1?.setTicket)
                {
                    await
                    Transaction1.
                    setTicket(relatedTicket1);
                }
            
                const relatedTicket2 = await Tickets.findOne({
                    offset: Math.floor(Math.random() * (await Tickets.count())),
                });
                const Transaction2 = await Transactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Transaction2?.setTicket)
                {
                    await
                    Transaction2.
                    setTicket(relatedTicket2);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateAiRecommendationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRecommendation0 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiRecommendation0?.setUser)
                {
                    await
                    AiRecommendation0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRecommendation1 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiRecommendation1?.setUser)
                {
                    await
                    AiRecommendation1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRecommendation2 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiRecommendation2?.setUser)
                {
                    await
                    AiRecommendation2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
            
            async function associateAiRecommendationWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const AiRecommendation0 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiRecommendation0?.setPost)
                {
                    await
                    AiRecommendation0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const AiRecommendation1 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiRecommendation1?.setPost)
                {
                    await
                    AiRecommendation1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const AiRecommendation2 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiRecommendation2?.setPost)
                {
                    await
                    AiRecommendation2.
                    setPost(relatedPost2);
                }
            
        }
        
    
        
            
            async function associateAiRecommendationWithSuggested_user() {
            
                const relatedSuggested_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRecommendation0 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiRecommendation0?.setSuggested_user)
                {
                    await
                    AiRecommendation0.
                    setSuggested_user(relatedSuggested_user0);
                }
            
                const relatedSuggested_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRecommendation1 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiRecommendation1?.setSuggested_user)
                {
                    await
                    AiRecommendation1.
                    setSuggested_user(relatedSuggested_user1);
                }
            
                const relatedSuggested_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRecommendation2 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiRecommendation2?.setSuggested_user)
                {
                    await
                    AiRecommendation2.
                    setSuggested_user(relatedSuggested_user2);
                }
            
        }
        
    
        
            
            async function associateAiRecommendationWithGroup() {
            
                const relatedGroup0 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const AiRecommendation0 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiRecommendation0?.setGroup)
                {
                    await
                    AiRecommendation0.
                    setGroup(relatedGroup0);
                }
            
                const relatedGroup1 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const AiRecommendation1 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiRecommendation1?.setGroup)
                {
                    await
                    AiRecommendation1.
                    setGroup(relatedGroup1);
                }
            
                const relatedGroup2 = await Groups.findOne({
                    offset: Math.floor(Math.random() * (await Groups.count())),
                });
                const AiRecommendation2 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiRecommendation2?.setGroup)
                {
                    await
                    AiRecommendation2.
                    setGroup(relatedGroup2);
                }
            
        }
        
    
        
            
            async function associateAiRecommendationWithHashtag() {
            
                const relatedHashtag0 = await Hashtags.findOne({
                    offset: Math.floor(Math.random() * (await Hashtags.count())),
                });
                const AiRecommendation0 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiRecommendation0?.setHashtag)
                {
                    await
                    AiRecommendation0.
                    setHashtag(relatedHashtag0);
                }
            
                const relatedHashtag1 = await Hashtags.findOne({
                    offset: Math.floor(Math.random() * (await Hashtags.count())),
                });
                const AiRecommendation1 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiRecommendation1?.setHashtag)
                {
                    await
                    AiRecommendation1.
                    setHashtag(relatedHashtag1);
                }
            
                const relatedHashtag2 = await Hashtags.findOne({
                    offset: Math.floor(Math.random() * (await Hashtags.count())),
                });
                const AiRecommendation2 = await AiRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiRecommendation2?.setHashtag)
                {
                    await
                    AiRecommendation2.
                    setHashtag(relatedHashtag2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateContentModerationReportWithReporter() {
            
                const relatedReporter0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationReport0 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationReport0?.setReporter)
                {
                    await
                    ContentModerationReport0.
                    setReporter(relatedReporter0);
                }
            
                const relatedReporter1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationReport1 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationReport1?.setReporter)
                {
                    await
                    ContentModerationReport1.
                    setReporter(relatedReporter1);
                }
            
                const relatedReporter2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationReport2 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationReport2?.setReporter)
                {
                    await
                    ContentModerationReport2.
                    setReporter(relatedReporter2);
                }
            
        }
        
    
        
    
        
            
            async function associateContentModerationReportWithPost() {
            
                const relatedPost0 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const ContentModerationReport0 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationReport0?.setPost)
                {
                    await
                    ContentModerationReport0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const ContentModerationReport1 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationReport1?.setPost)
                {
                    await
                    ContentModerationReport1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await Posts.findOne({
                    offset: Math.floor(Math.random() * (await Posts.count())),
                });
                const ContentModerationReport2 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationReport2?.setPost)
                {
                    await
                    ContentModerationReport2.
                    setPost(relatedPost2);
                }
            
        }
        
    
        
            
            async function associateContentModerationReportWithComment() {
            
                const relatedComment0 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const ContentModerationReport0 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationReport0?.setComment)
                {
                    await
                    ContentModerationReport0.
                    setComment(relatedComment0);
                }
            
                const relatedComment1 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const ContentModerationReport1 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationReport1?.setComment)
                {
                    await
                    ContentModerationReport1.
                    setComment(relatedComment1);
                }
            
                const relatedComment2 = await Comments.findOne({
                    offset: Math.floor(Math.random() * (await Comments.count())),
                });
                const ContentModerationReport2 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationReport2?.setComment)
                {
                    await
                    ContentModerationReport2.
                    setComment(relatedComment2);
                }
            
        }
        
    
        
            
            async function associateContentModerationReportWithMessage() {
            
                const relatedMessage0 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const ContentModerationReport0 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationReport0?.setMessage)
                {
                    await
                    ContentModerationReport0.
                    setMessage(relatedMessage0);
                }
            
                const relatedMessage1 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const ContentModerationReport1 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationReport1?.setMessage)
                {
                    await
                    ContentModerationReport1.
                    setMessage(relatedMessage1);
                }
            
                const relatedMessage2 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const ContentModerationReport2 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationReport2?.setMessage)
                {
                    await
                    ContentModerationReport2.
                    setMessage(relatedMessage2);
                }
            
        }
        
    
        
            
            async function associateContentModerationReportWithReported_user() {
            
                const relatedReported_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationReport0 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationReport0?.setReported_user)
                {
                    await
                    ContentModerationReport0.
                    setReported_user(relatedReported_user0);
                }
            
                const relatedReported_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationReport1 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationReport1?.setReported_user)
                {
                    await
                    ContentModerationReport1.
                    setReported_user(relatedReported_user1);
                }
            
                const relatedReported_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationReport2 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationReport2?.setReported_user)
                {
                    await
                    ContentModerationReport2.
                    setReported_user(relatedReported_user2);
                }
            
        }
        
    
        
            
            async function associateContentModerationReportWithLive_stream() {
            
                const relatedLive_stream0 = await LiveStreams.findOne({
                    offset: Math.floor(Math.random() * (await LiveStreams.count())),
                });
                const ContentModerationReport0 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationReport0?.setLive_stream)
                {
                    await
                    ContentModerationReport0.
                    setLive_stream(relatedLive_stream0);
                }
            
                const relatedLive_stream1 = await LiveStreams.findOne({
                    offset: Math.floor(Math.random() * (await LiveStreams.count())),
                });
                const ContentModerationReport1 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationReport1?.setLive_stream)
                {
                    await
                    ContentModerationReport1.
                    setLive_stream(relatedLive_stream1);
                }
            
                const relatedLive_stream2 = await LiveStreams.findOne({
                    offset: Math.floor(Math.random() * (await LiveStreams.count())),
                });
                const ContentModerationReport2 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationReport2?.setLive_stream)
                {
                    await
                    ContentModerationReport2.
                    setLive_stream(relatedLive_stream2);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateContentModerationReportWithAssigned_moderator() {
            
                const relatedAssigned_moderator0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationReport0 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationReport0?.setAssigned_moderator)
                {
                    await
                    ContentModerationReport0.
                    setAssigned_moderator(relatedAssigned_moderator0);
                }
            
                const relatedAssigned_moderator1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationReport1 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationReport1?.setAssigned_moderator)
                {
                    await
                    ContentModerationReport1.
                    setAssigned_moderator(relatedAssigned_moderator1);
                }
            
                const relatedAssigned_moderator2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationReport2 = await ContentModerationReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationReport2?.setAssigned_moderator)
                {
                    await
                    ContentModerationReport2.
                    setAssigned_moderator(relatedAssigned_moderator2);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserBadgeWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge0 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserBadge0?.setUser)
                {
                    await
                    UserBadge0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge1 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserBadge1?.setUser)
                {
                    await
                    UserBadge1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserBadge2 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserBadge2?.setUser)
                {
                    await
                    UserBadge2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
            
            async function associateUserBadgeWithBadge() {
            
                const relatedBadge0 = await GamificationBadges.findOne({
                    offset: Math.floor(Math.random() * (await GamificationBadges.count())),
                });
                const UserBadge0 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserBadge0?.setBadge)
                {
                    await
                    UserBadge0.
                    setBadge(relatedBadge0);
                }
            
                const relatedBadge1 = await GamificationBadges.findOne({
                    offset: Math.floor(Math.random() * (await GamificationBadges.count())),
                });
                const UserBadge1 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserBadge1?.setBadge)
                {
                    await
                    UserBadge1.
                    setBadge(relatedBadge1);
                }
            
                const relatedBadge2 = await GamificationBadges.findOne({
                    offset: Math.floor(Math.random() * (await GamificationBadges.count())),
                });
                const UserBadge2 = await UserBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserBadge2?.setBadge)
                {
                    await
                    UserBadge2.
                    setBadge(relatedBadge2);
                }
            
        }
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Posts.bulkCreate(PostsData);
                
            
            
                
                await Comments.bulkCreate(CommentsData);
                
            
            
                
                await Reactions.bulkCreate(ReactionsData);
                
            
            
                
                await Stories.bulkCreate(StoriesData);
                
            
            
                
                await Conversations.bulkCreate(ConversationsData);
                
            
            
                
                await Messages.bulkCreate(MessagesData);
                
            
            
                
                await Groups.bulkCreate(GroupsData);
                
            
            
                
                await Events.bulkCreate(EventsData);
                
            
            
                
                await Tickets.bulkCreate(TicketsData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            
                
                await UserSettings.bulkCreate(UserSettingsData);
                
            
            
                
                await Follows.bulkCreate(FollowsData);
                
            
            
                
                await Hashtags.bulkCreate(HashtagsData);
                
            
            
                
                await PostHashtags.bulkCreate(PostHashtagsData);
                
            
            
                
                await MediaAssets.bulkCreate(MediaAssetsData);
                
            
            
                
                await LiveStreams.bulkCreate(LiveStreamsData);
                
            
            
                
                await Transactions.bulkCreate(TransactionsData);
                
            
            
                
                await AiRecommendations.bulkCreate(AiRecommendationsData);
                
            
            
                
                await ContentModerationReports.bulkCreate(ContentModerationReportsData);
                
            
            
                
                await GamificationBadges.bulkCreate(GamificationBadgesData);
                
            
            
                
                await UserBadges.bulkCreate(UserBadgesData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                        
                        await associatePostWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCommentWithPost(),
                    
                
                    
                        
                        await associateCommentWithAuthor(),
                    
                
                    
                
                    
                        
                        await associateCommentWithParent_comment(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReactionWithUser(),
                    
                
                    
                
                    
                        
                        await associateReactionWithPost(),
                    
                
                    
                        
                        await associateReactionWithComment(),
                    
                
                    
                        
                        await associateReactionWithStory(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateStoryWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateConversationWithGroup(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMessageWithConversation(),
                    
                
                    
                        
                        await associateMessageWithSender(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateGroupWithOwner(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateEventWithHost(),
                    
                
                    
                        
                        await associateEventWithGroup(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTicketWithEvent(),
                    
                
                    
                        
                        await associateTicketWithBuyer(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNotificationWithRecipient(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateNotificationWithPost(),
                    
                
                    
                        
                        await associateNotificationWithComment(),
                    
                
                    
                        
                        await associateNotificationWithGroup(),
                    
                
                    
                        
                        await associateNotificationWithConversation(),
                    
                
                    
                        
                        await associateNotificationWithEvent(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserSettingWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFollowWithFollower(),
                    
                
                    
                        
                        await associateFollowWithFollowing(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePostHashtagWithPost(),
                    
                
                    
                        
                        await associatePostHashtagWithHashtag(),
                    
                
            
                
                
                    
                        
                        await associateMediaAssetWithOwner(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLiveStreamWithHost(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLiveStreamWithReplay_post(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTransactionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTransactionWithPost(),
                    
                
                    
                        
                        await associateTransactionWithEvent(),
                    
                
                    
                        
                        await associateTransactionWithTicket(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAiRecommendationWithUser(),
                    
                
                    
                
                    
                        
                        await associateAiRecommendationWithPost(),
                    
                
                    
                        
                        await associateAiRecommendationWithSuggested_user(),
                    
                
                    
                        
                        await associateAiRecommendationWithGroup(),
                    
                
                    
                        
                        await associateAiRecommendationWithHashtag(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateContentModerationReportWithReporter(),
                    
                
                    
                
                    
                        
                        await associateContentModerationReportWithPost(),
                    
                
                    
                        
                        await associateContentModerationReportWithComment(),
                    
                
                    
                        
                        await associateContentModerationReportWithMessage(),
                    
                
                    
                        
                        await associateContentModerationReportWithReported_user(),
                    
                
                    
                        
                        await associateContentModerationReportWithLive_stream(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContentModerationReportWithAssigned_moderator(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserBadgeWithUser(),
                    
                
                    
                        
                        await associateUserBadgeWithBadge(),
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('posts', null, {});
            
            
            await queryInterface.bulkDelete('comments', null, {});
            
            
            await queryInterface.bulkDelete('reactions', null, {});
            
            
            await queryInterface.bulkDelete('stories', null, {});
            
            
            await queryInterface.bulkDelete('conversations', null, {});
            
            
            await queryInterface.bulkDelete('messages', null, {});
            
            
            await queryInterface.bulkDelete('groups', null, {});
            
            
            await queryInterface.bulkDelete('events', null, {});
            
            
            await queryInterface.bulkDelete('tickets', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
            
            await queryInterface.bulkDelete('user_settings', null, {});
            
            
            await queryInterface.bulkDelete('follows', null, {});
            
            
            await queryInterface.bulkDelete('hashtags', null, {});
            
            
            await queryInterface.bulkDelete('post_hashtags', null, {});
            
            
            await queryInterface.bulkDelete('media_assets', null, {});
            
            
            await queryInterface.bulkDelete('live_streams', null, {});
            
            
            await queryInterface.bulkDelete('transactions', null, {});
            
            
            await queryInterface.bulkDelete('ai_recommendations', null, {});
            
            
            await queryInterface.bulkDelete('content_moderation_reports', null, {});
            
            
            await queryInterface.bulkDelete('gamification_badges', null, {});
            
            
            await queryInterface.bulkDelete('user_badges', null, {});
            
        
    },
};