





















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






const UserPhotos = db.user_photos;

const Languages = db.languages;

const UserLanguages = db.user_languages;

const Interests = db.interests;

const UserInterests = db.user_interests;

const DiscoveryPreferences = db.discovery_preferences;

const Swipes = db.swipes;

const Matches = db.matches;

const Messages = db.messages;

const ChatEvents = db.chat_events;

const Blocks = db.blocks;

const Reports = db.reports;

const ReportAttachments = db.report_attachments;

const Notifications = db.notifications;

const DailySparks = db.daily_sparks;

const DailySparkRecommendations = db.daily_spark_recommendations;

const PremiumPlans = db.premium_plans;

const Subscriptions = db.subscriptions;

const UserSettings = db.user_settings;

const ContentModerationItems = db.content_moderation_items;

const AdminUsers = db.admin_users;

const AnalyticsEvents = db.analytics_events;







const UserPhotosData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
];



const LanguagesData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "iso_code": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "iso_code": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "iso_code": "Alan Turing",
            
        
    
    },
    
];



const UserLanguagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "proficiency": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "proficiency": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "proficiency": "Alan Turing",
            
        
    
    },
    
];



const InterestsData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "category": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "category": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "category": "Marie Curie",
            
        
    
    },
    
];



const UserInterestsData = [
    
    {
    
        
        
            
                // 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 DiscoveryPreferencesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_age": 7,
            
        
    
        
        
            
                "max_age": 8,
            
        
    
        
        
            
                "max_distance_km": 3,
            
        
    
        
        
            
                "min_height_cm": 8,
            
        
    
        
        
            
                "max_height_cm": 2,
            
        
    
        
        
            
                "dating_intention": "casual",
            
        
    
        
        
            
                "preferred_gender": "men",
            
        
    
        
        
            
                "verified_only": false,
            
        
    
        
        
            
                "online_only": true,
            
        
    
        
        
            
                "advanced_filters_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_age": 5,
            
        
    
        
        
            
                "max_age": 7,
            
        
    
        
        
            
                "max_distance_km": 3,
            
        
    
        
        
            
                "min_height_cm": 8,
            
        
    
        
        
            
                "max_height_cm": 3,
            
        
    
        
        
            
                "dating_intention": "chat",
            
        
    
        
        
            
                "preferred_gender": "everyone",
            
        
    
        
        
            
                "verified_only": false,
            
        
    
        
        
            
                "online_only": false,
            
        
    
        
        
            
                "advanced_filters_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_age": 2,
            
        
    
        
        
            
                "max_age": 9,
            
        
    
        
        
            
                "max_distance_km": 6,
            
        
    
        
        
            
                "min_height_cm": 9,
            
        
    
        
        
            
                "max_height_cm": 6,
            
        
    
        
        
            
                "dating_intention": "casual",
            
        
    
        
        
            
                "preferred_gender": "men",
            
        
    
        
        
            
                "verified_only": true,
            
        
    
        
        
            
                "online_only": false,
            
        
    
        
        
            
                "advanced_filters_enabled": false,
            
        
    
    },
    
];



const SwipesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "super_like",
            
        
    
        
        
            
                "acted_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "super_like",
            
        
    
        
        
            
                "acted_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "like",
            
        
    
        
        
            
                "acted_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Ada Lovelace",
            
        
    
    },
    
];



const MatchesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "matched_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "matched_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "matched_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const MessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message_type": "file",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "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": "system",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "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": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
];



const ChatEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "typing_start",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "presence_offline",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "presence_offline",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
    },
    
];



const BlocksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "blocked_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "blocked_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Ada Lovelace",
            
        
    
        
        
            
                "blocked_at": new Date(Date.now()),
            
        
    
    },
    
];



const ReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "report_type": "scam",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "status": "in_review",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolution_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "report_type": "harassment",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "status": "triaged",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolution_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "report_type": "harassment",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "status": "action_taken",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reported_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolution_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const ReportAttachmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_type": "Ada Lovelace",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_type": "Marie Curie",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_type": "Marie Curie",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "new_message",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "new_match",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notification_type": "system",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
    },
    
];



const DailySparksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "spark_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "empty",
            
        
    
        
        
            
                "generation_model": "Alan Turing",
            
        
    
        
        
            
                "generation_cost": 9.09,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "spark_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "generated",
            
        
    
        
        
            
                "generation_model": "Marie Curie",
            
        
    
        
        
            
                "generation_cost": 8.22,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "spark_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "generated",
            
        
    
        
        
            
                "generation_model": "Grace Hopper",
            
        
    
        
        
            
                "generation_cost": 2.24,
            
        
    
    },
    
];



const DailySparkRecommendationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank": 4,
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "shown_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank": 4,
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                "shown_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rank": 6,
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "shown_at": new Date(Date.now()),
            
        
    
    },
    
];



const PremiumPlansData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "tier": "premium",
            
        
    
        
        
            
                "price_monthly": 5.58,
            
        
    
        
        
            
                "price_yearly": 2.95,
            
        
    
        
        
            
                "unlimited_likes": false,
            
        
    
        
        
            
                "unlimited_chats": true,
            
        
    
        
        
            
                "see_who_liked_me": false,
            
        
    
        
        
            
                "advanced_filters": true,
            
        
    
        
        
            
                "passport_mode": false,
            
        
    
        
        
            
                "boost_profile": false,
            
        
    
        
        
            
                "read_receipts": false,
            
        
    
        
        
            
                "incognito_mode": false,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "tier": "premium_plus",
            
        
    
        
        
            
                "price_monthly": 1.44,
            
        
    
        
        
            
                "price_yearly": 6.6,
            
        
    
        
        
            
                "unlimited_likes": false,
            
        
    
        
        
            
                "unlimited_chats": true,
            
        
    
        
        
            
                "see_who_liked_me": true,
            
        
    
        
        
            
                "advanced_filters": true,
            
        
    
        
        
            
                "passport_mode": false,
            
        
    
        
        
            
                "boost_profile": false,
            
        
    
        
        
            
                "read_receipts": true,
            
        
    
        
        
            
                "incognito_mode": false,
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "tier": "premium_plus",
            
        
    
        
        
            
                "price_monthly": 2.66,
            
        
    
        
        
            
                "price_yearly": 5.77,
            
        
    
        
        
            
                "unlimited_likes": true,
            
        
    
        
        
            
                "unlimited_chats": false,
            
        
    
        
        
            
                "see_who_liked_me": true,
            
        
    
        
        
            
                "advanced_filters": true,
            
        
    
        
        
            
                "passport_mode": true,
            
        
    
        
        
            
                "boost_profile": false,
            
        
    
        
        
            
                "read_receipts": true,
            
        
    
        
        
            
                "incognito_mode": true,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
];



const SubscriptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "past_due",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider": "Alan Turing",
            
        
    
        
        
            
                "provider_reference": "Ada Lovelace",
            
        
    
        
        
            
                "auto_renew": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider": "Grace Hopper",
            
        
    
        
        
            
                "provider_reference": "Marie Curie",
            
        
    
        
        
            
                "auto_renew": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider": "Grace Hopper",
            
        
    
        
        
            
                "provider_reference": "Alan Turing",
            
        
    
        
        
            
                "auto_renew": false,
            
        
    
    },
    
];



const UserSettingsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "push_new_match": false,
            
        
    
        
        
            
                "push_new_message": true,
            
        
    
        
        
            
                "push_profile_like": true,
            
        
    
        
        
            
                "push_daily_spark": true,
            
        
    
        
        
            
                "push_premium": true,
            
        
    
        
        
            
                "privacy_show_distance": false,
            
        
    
        
        
            
                "privacy_show_online_status": false,
            
        
    
        
        
            
                "privacy_allow_discovery": true,
            
        
    
        
        
            
                "updated_on": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "push_new_match": true,
            
        
    
        
        
            
                "push_new_message": true,
            
        
    
        
        
            
                "push_profile_like": true,
            
        
    
        
        
            
                "push_daily_spark": false,
            
        
    
        
        
            
                "push_premium": true,
            
        
    
        
        
            
                "privacy_show_distance": false,
            
        
    
        
        
            
                "privacy_show_online_status": false,
            
        
    
        
        
            
                "privacy_allow_discovery": false,
            
        
    
        
        
            
                "updated_on": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "push_new_match": true,
            
        
    
        
        
            
                "push_new_message": true,
            
        
    
        
        
            
                "push_profile_like": true,
            
        
    
        
        
            
                "push_daily_spark": true,
            
        
    
        
        
            
                "push_premium": false,
            
        
    
        
        
            
                "privacy_show_distance": false,
            
        
    
        
        
            
                "privacy_show_online_status": true,
            
        
    
        
        
            
                "privacy_allow_discovery": false,
            
        
    
        
        
            
                "updated_on": new Date(Date.now()),
            
        
    
    },
    
];



const ContentModerationItemsData = [
    
    {
    
        
        
            
                "content_type": "bio",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "text_excerpt": "Marie Curie",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "queued_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "moderation_notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "content_type": "bio",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "text_excerpt": "Grace Hopper",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "queued_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "moderation_notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "content_type": "bio",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "text_excerpt": "Ada Lovelace",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "queued_at": new Date(Date.now()),
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "moderation_notes": "Marie Curie",
            
        
    
    },
    
];



const AdminUsersData = [
    
    {
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "display_name": "Marie Curie",
            
        
    
        
        
            
                "role": "analyst",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "last_login_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "display_name": "Marie Curie",
            
        
    
        
        
            
                "role": "analyst",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "last_login_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "display_name": "Ada Lovelace",
            
        
    
        
        
            
                "role": "analyst",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "last_login_at": new Date(Date.now()),
            
        
    
    },
    
];



const AnalyticsEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "subscription_started",
            
        
    
        
        
            
                "event_properties": "Marie Curie",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "signup",
            
        
    
        
        
            
                "event_properties": "Marie Curie",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "subscription_canceled",
            
        
    
        
        
            
                "event_properties": "Marie Curie",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
            
            async function associateUserPhotoWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserPhoto0 = await UserPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserPhoto0?.setUser)
                {
                    await
                    UserPhoto0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserPhoto1 = await UserPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserPhoto1?.setUser)
                {
                    await
                    UserPhoto1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserPhoto2 = await UserPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserPhoto2?.setUser)
                {
                    await
                    UserPhoto2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    

    
    
    
        
            
            async function associateUserLanguageWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLanguage0 = await UserLanguages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserLanguage0?.setUser)
                {
                    await
                    UserLanguage0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLanguage1 = await UserLanguages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserLanguage1?.setUser)
                {
                    await
                    UserLanguage1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLanguage2 = await UserLanguages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserLanguage2?.setUser)
                {
                    await
                    UserLanguage2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
            
            async function associateUserLanguageWithLanguage() {
            
                const relatedLanguage0 = await Languages.findOne({
                    offset: Math.floor(Math.random() * (await Languages.count())),
                });
                const UserLanguage0 = await UserLanguages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserLanguage0?.setLanguage)
                {
                    await
                    UserLanguage0.
                    setLanguage(relatedLanguage0);
                }
            
                const relatedLanguage1 = await Languages.findOne({
                    offset: Math.floor(Math.random() * (await Languages.count())),
                });
                const UserLanguage1 = await UserLanguages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserLanguage1?.setLanguage)
                {
                    await
                    UserLanguage1.
                    setLanguage(relatedLanguage1);
                }
            
                const relatedLanguage2 = await Languages.findOne({
                    offset: Math.floor(Math.random() * (await Languages.count())),
                });
                const UserLanguage2 = await UserLanguages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserLanguage2?.setLanguage)
                {
                    await
                    UserLanguage2.
                    setLanguage(relatedLanguage2);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    

    
    
    
        
            
            async function associateUserInterestWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserInterest0 = await UserInterests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserInterest0?.setUser)
                {
                    await
                    UserInterest0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserInterest1 = await UserInterests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserInterest1?.setUser)
                {
                    await
                    UserInterest1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserInterest2 = await UserInterests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserInterest2?.setUser)
                {
                    await
                    UserInterest2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
            
            async function associateUserInterestWithInterest() {
            
                const relatedInterest0 = await Interests.findOne({
                    offset: Math.floor(Math.random() * (await Interests.count())),
                });
                const UserInterest0 = await UserInterests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserInterest0?.setInterest)
                {
                    await
                    UserInterest0.
                    setInterest(relatedInterest0);
                }
            
                const relatedInterest1 = await Interests.findOne({
                    offset: Math.floor(Math.random() * (await Interests.count())),
                });
                const UserInterest1 = await UserInterests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserInterest1?.setInterest)
                {
                    await
                    UserInterest1.
                    setInterest(relatedInterest1);
                }
            
                const relatedInterest2 = await Interests.findOne({
                    offset: Math.floor(Math.random() * (await Interests.count())),
                });
                const UserInterest2 = await UserInterests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserInterest2?.setInterest)
                {
                    await
                    UserInterest2.
                    setInterest(relatedInterest2);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDiscoveryPreferenceWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DiscoveryPreference0 = await DiscoveryPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DiscoveryPreference0?.setUser)
                {
                    await
                    DiscoveryPreference0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DiscoveryPreference1 = await DiscoveryPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DiscoveryPreference1?.setUser)
                {
                    await
                    DiscoveryPreference1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DiscoveryPreference2 = await DiscoveryPreferences.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DiscoveryPreference2?.setUser)
                {
                    await
                    DiscoveryPreference2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateSwipeWithFrom_user() {
            
                const relatedFrom_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Swipe0 = await Swipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Swipe0?.setFrom_user)
                {
                    await
                    Swipe0.
                    setFrom_user(relatedFrom_user0);
                }
            
                const relatedFrom_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Swipe1 = await Swipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Swipe1?.setFrom_user)
                {
                    await
                    Swipe1.
                    setFrom_user(relatedFrom_user1);
                }
            
                const relatedFrom_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Swipe2 = await Swipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Swipe2?.setFrom_user)
                {
                    await
                    Swipe2.
                    setFrom_user(relatedFrom_user2);
                }
            
        }
        
    
        
            
            async function associateSwipeWithTo_user() {
            
                const relatedTo_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Swipe0 = await Swipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Swipe0?.setTo_user)
                {
                    await
                    Swipe0.
                    setTo_user(relatedTo_user0);
                }
            
                const relatedTo_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Swipe1 = await Swipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Swipe1?.setTo_user)
                {
                    await
                    Swipe1.
                    setTo_user(relatedTo_user1);
                }
            
                const relatedTo_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Swipe2 = await Swipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Swipe2?.setTo_user)
                {
                    await
                    Swipe2.
                    setTo_user(relatedTo_user2);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMatcheWithUser_a() {
            
                const relatedUser_a0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche0 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Matche0?.setUser_a)
                {
                    await
                    Matche0.
                    setUser_a(relatedUser_a0);
                }
            
                const relatedUser_a1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche1 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Matche1?.setUser_a)
                {
                    await
                    Matche1.
                    setUser_a(relatedUser_a1);
                }
            
                const relatedUser_a2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche2 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Matche2?.setUser_a)
                {
                    await
                    Matche2.
                    setUser_a(relatedUser_a2);
                }
            
        }
        
    
        
            
            async function associateMatcheWithUser_b() {
            
                const relatedUser_b0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche0 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Matche0?.setUser_b)
                {
                    await
                    Matche0.
                    setUser_b(relatedUser_b0);
                }
            
                const relatedUser_b1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche1 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Matche1?.setUser_b)
                {
                    await
                    Matche1.
                    setUser_b(relatedUser_b1);
                }
            
                const relatedUser_b2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Matche2 = await Matches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Matche2?.setUser_b)
                {
                    await
                    Matche2.
                    setUser_b(relatedUser_b2);
                }
            
        }
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateMessageWithMatch() {
            
                const relatedMatch0 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setMatch)
                {
                    await
                    Message0.
                    setMatch(relatedMatch0);
                }
            
                const relatedMatch1 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setMatch)
                {
                    await
                    Message1.
                    setMatch(relatedMatch1);
                }
            
                const relatedMatch2 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setMatch)
                {
                    await
                    Message2.
                    setMatch(relatedMatch2);
                }
            
        }
        
    
        
            
            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 associateChatEventWithMatch() {
            
                const relatedMatch0 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const ChatEvent0 = await ChatEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatEvent0?.setMatch)
                {
                    await
                    ChatEvent0.
                    setMatch(relatedMatch0);
                }
            
                const relatedMatch1 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const ChatEvent1 = await ChatEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatEvent1?.setMatch)
                {
                    await
                    ChatEvent1.
                    setMatch(relatedMatch1);
                }
            
                const relatedMatch2 = await Matches.findOne({
                    offset: Math.floor(Math.random() * (await Matches.count())),
                });
                const ChatEvent2 = await ChatEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatEvent2?.setMatch)
                {
                    await
                    ChatEvent2.
                    setMatch(relatedMatch2);
                }
            
        }
        
    
        
            
            async function associateChatEventWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatEvent0 = await ChatEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatEvent0?.setUser)
                {
                    await
                    ChatEvent0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatEvent1 = await ChatEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatEvent1?.setUser)
                {
                    await
                    ChatEvent1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatEvent2 = await ChatEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatEvent2?.setUser)
                {
                    await
                    ChatEvent2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateBlockWithBlocker() {
            
                const relatedBlocker0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Block0 = await Blocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Block0?.setBlocker)
                {
                    await
                    Block0.
                    setBlocker(relatedBlocker0);
                }
            
                const relatedBlocker1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Block1 = await Blocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Block1?.setBlocker)
                {
                    await
                    Block1.
                    setBlocker(relatedBlocker1);
                }
            
                const relatedBlocker2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Block2 = await Blocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Block2?.setBlocker)
                {
                    await
                    Block2.
                    setBlocker(relatedBlocker2);
                }
            
        }
        
    
        
            
            async function associateBlockWithBlocked() {
            
                const relatedBlocked0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Block0 = await Blocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Block0?.setBlocked)
                {
                    await
                    Block0.
                    setBlocked(relatedBlocked0);
                }
            
                const relatedBlocked1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Block1 = await Blocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Block1?.setBlocked)
                {
                    await
                    Block1.
                    setBlocked(relatedBlocked1);
                }
            
                const relatedBlocked2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Block2 = await Blocks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Block2?.setBlocked)
                {
                    await
                    Block2.
                    setBlocked(relatedBlocked2);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateReportWithReporter() {
            
                const relatedReporter0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report0 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Report0?.setReporter)
                {
                    await
                    Report0.
                    setReporter(relatedReporter0);
                }
            
                const relatedReporter1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report1 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Report1?.setReporter)
                {
                    await
                    Report1.
                    setReporter(relatedReporter1);
                }
            
                const relatedReporter2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report2 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Report2?.setReporter)
                {
                    await
                    Report2.
                    setReporter(relatedReporter2);
                }
            
        }
        
    
        
            
            async function associateReportWithReported_user() {
            
                const relatedReported_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report0 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Report0?.setReported_user)
                {
                    await
                    Report0.
                    setReported_user(relatedReported_user0);
                }
            
                const relatedReported_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report1 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Report1?.setReported_user)
                {
                    await
                    Report1.
                    setReported_user(relatedReported_user1);
                }
            
                const relatedReported_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Report2 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Report2?.setReported_user)
                {
                    await
                    Report2.
                    setReported_user(relatedReported_user2);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateReportWithAssigned_moderator() {
            
                const relatedAssigned_moderator0 = await AdminUsers.findOne({
                    offset: Math.floor(Math.random() * (await AdminUsers.count())),
                });
                const Report0 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Report0?.setAssigned_moderator)
                {
                    await
                    Report0.
                    setAssigned_moderator(relatedAssigned_moderator0);
                }
            
                const relatedAssigned_moderator1 = await AdminUsers.findOne({
                    offset: Math.floor(Math.random() * (await AdminUsers.count())),
                });
                const Report1 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Report1?.setAssigned_moderator)
                {
                    await
                    Report1.
                    setAssigned_moderator(relatedAssigned_moderator1);
                }
            
                const relatedAssigned_moderator2 = await AdminUsers.findOne({
                    offset: Math.floor(Math.random() * (await AdminUsers.count())),
                });
                const Report2 = await Reports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Report2?.setAssigned_moderator)
                {
                    await
                    Report2.
                    setAssigned_moderator(relatedAssigned_moderator2);
                }
            
        }
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateReportAttachmentWithReport() {
            
                const relatedReport0 = await Reports.findOne({
                    offset: Math.floor(Math.random() * (await Reports.count())),
                });
                const ReportAttachment0 = await ReportAttachments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReportAttachment0?.setReport)
                {
                    await
                    ReportAttachment0.
                    setReport(relatedReport0);
                }
            
                const relatedReport1 = await Reports.findOne({
                    offset: Math.floor(Math.random() * (await Reports.count())),
                });
                const ReportAttachment1 = await ReportAttachments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReportAttachment1?.setReport)
                {
                    await
                    ReportAttachment1.
                    setReport(relatedReport1);
                }
            
                const relatedReport2 = await Reports.findOne({
                    offset: Math.floor(Math.random() * (await Reports.count())),
                });
                const ReportAttachment2 = await ReportAttachments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReportAttachment2?.setReport)
                {
                    await
                    ReportAttachment2.
                    setReport(relatedReport2);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateNotificationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setUser)
                {
                    await
                    Notification0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setUser)
                {
                    await
                    Notification1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setUser)
                {
                    await
                    Notification2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDailySparkWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailySpark0 = await DailySparks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DailySpark0?.setUser)
                {
                    await
                    DailySpark0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailySpark1 = await DailySparks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DailySpark1?.setUser)
                {
                    await
                    DailySpark1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailySpark2 = await DailySparks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DailySpark2?.setUser)
                {
                    await
                    DailySpark2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDailySparkRecommendationWithDaily_spark() {
            
                const relatedDaily_spark0 = await DailySparks.findOne({
                    offset: Math.floor(Math.random() * (await DailySparks.count())),
                });
                const DailySparkRecommendation0 = await DailySparkRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DailySparkRecommendation0?.setDaily_spark)
                {
                    await
                    DailySparkRecommendation0.
                    setDaily_spark(relatedDaily_spark0);
                }
            
                const relatedDaily_spark1 = await DailySparks.findOne({
                    offset: Math.floor(Math.random() * (await DailySparks.count())),
                });
                const DailySparkRecommendation1 = await DailySparkRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DailySparkRecommendation1?.setDaily_spark)
                {
                    await
                    DailySparkRecommendation1.
                    setDaily_spark(relatedDaily_spark1);
                }
            
                const relatedDaily_spark2 = await DailySparks.findOne({
                    offset: Math.floor(Math.random() * (await DailySparks.count())),
                });
                const DailySparkRecommendation2 = await DailySparkRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DailySparkRecommendation2?.setDaily_spark)
                {
                    await
                    DailySparkRecommendation2.
                    setDaily_spark(relatedDaily_spark2);
                }
            
        }
        
    
        
            
            async function associateDailySparkRecommendationWithRecommended_user() {
            
                const relatedRecommended_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailySparkRecommendation0 = await DailySparkRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DailySparkRecommendation0?.setRecommended_user)
                {
                    await
                    DailySparkRecommendation0.
                    setRecommended_user(relatedRecommended_user0);
                }
            
                const relatedRecommended_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailySparkRecommendation1 = await DailySparkRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DailySparkRecommendation1?.setRecommended_user)
                {
                    await
                    DailySparkRecommendation1.
                    setRecommended_user(relatedRecommended_user1);
                }
            
                const relatedRecommended_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DailySparkRecommendation2 = await DailySparkRecommendations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DailySparkRecommendation2?.setRecommended_user)
                {
                    await
                    DailySparkRecommendation2.
                    setRecommended_user(relatedRecommended_user2);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateSubscriptionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Subscription0 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Subscription0?.setUser)
                {
                    await
                    Subscription0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Subscription1 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Subscription1?.setUser)
                {
                    await
                    Subscription1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Subscription2 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Subscription2?.setUser)
                {
                    await
                    Subscription2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
            
            async function associateSubscriptionWithPlan() {
            
                const relatedPlan0 = await PremiumPlans.findOne({
                    offset: Math.floor(Math.random() * (await PremiumPlans.count())),
                });
                const Subscription0 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Subscription0?.setPlan)
                {
                    await
                    Subscription0.
                    setPlan(relatedPlan0);
                }
            
                const relatedPlan1 = await PremiumPlans.findOne({
                    offset: Math.floor(Math.random() * (await PremiumPlans.count())),
                });
                const Subscription1 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Subscription1?.setPlan)
                {
                    await
                    Subscription1.
                    setPlan(relatedPlan1);
                }
            
                const relatedPlan2 = await PremiumPlans.findOne({
                    offset: Math.floor(Math.random() * (await PremiumPlans.count())),
                });
                const Subscription2 = await Subscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Subscription2?.setPlan)
                {
                    await
                    Subscription2.
                    setPlan(relatedPlan2);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            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 associateContentModerationItemWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationItem0 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationItem0?.setUser)
                {
                    await
                    ContentModerationItem0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationItem1 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationItem1?.setUser)
                {
                    await
                    ContentModerationItem1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContentModerationItem2 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationItem2?.setUser)
                {
                    await
                    ContentModerationItem2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
            
            async function associateContentModerationItemWithMessage() {
            
                const relatedMessage0 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const ContentModerationItem0 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationItem0?.setMessage)
                {
                    await
                    ContentModerationItem0.
                    setMessage(relatedMessage0);
                }
            
                const relatedMessage1 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const ContentModerationItem1 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationItem1?.setMessage)
                {
                    await
                    ContentModerationItem1.
                    setMessage(relatedMessage1);
                }
            
                const relatedMessage2 = await Messages.findOne({
                    offset: Math.floor(Math.random() * (await Messages.count())),
                });
                const ContentModerationItem2 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationItem2?.setMessage)
                {
                    await
                    ContentModerationItem2.
                    setMessage(relatedMessage2);
                }
            
        }
        
    
        
            
            async function associateContentModerationItemWithPhoto() {
            
                const relatedPhoto0 = await UserPhotos.findOne({
                    offset: Math.floor(Math.random() * (await UserPhotos.count())),
                });
                const ContentModerationItem0 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationItem0?.setPhoto)
                {
                    await
                    ContentModerationItem0.
                    setPhoto(relatedPhoto0);
                }
            
                const relatedPhoto1 = await UserPhotos.findOne({
                    offset: Math.floor(Math.random() * (await UserPhotos.count())),
                });
                const ContentModerationItem1 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationItem1?.setPhoto)
                {
                    await
                    ContentModerationItem1.
                    setPhoto(relatedPhoto1);
                }
            
                const relatedPhoto2 = await UserPhotos.findOne({
                    offset: Math.floor(Math.random() * (await UserPhotos.count())),
                });
                const ContentModerationItem2 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationItem2?.setPhoto)
                {
                    await
                    ContentModerationItem2.
                    setPhoto(relatedPhoto2);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateContentModerationItemWithReviewed_by() {
            
                const relatedReviewed_by0 = await AdminUsers.findOne({
                    offset: Math.floor(Math.random() * (await AdminUsers.count())),
                });
                const ContentModerationItem0 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContentModerationItem0?.setReviewed_by)
                {
                    await
                    ContentModerationItem0.
                    setReviewed_by(relatedReviewed_by0);
                }
            
                const relatedReviewed_by1 = await AdminUsers.findOne({
                    offset: Math.floor(Math.random() * (await AdminUsers.count())),
                });
                const ContentModerationItem1 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContentModerationItem1?.setReviewed_by)
                {
                    await
                    ContentModerationItem1.
                    setReviewed_by(relatedReviewed_by1);
                }
            
                const relatedReviewed_by2 = await AdminUsers.findOne({
                    offset: Math.floor(Math.random() * (await AdminUsers.count())),
                });
                const ContentModerationItem2 = await ContentModerationItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContentModerationItem2?.setReviewed_by)
                {
                    await
                    ContentModerationItem2.
                    setReviewed_by(relatedReviewed_by2);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAnalyticsEventWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AnalyticsEvent0 = await AnalyticsEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AnalyticsEvent0?.setUser)
                {
                    await
                    AnalyticsEvent0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AnalyticsEvent1 = await AnalyticsEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AnalyticsEvent1?.setUser)
                {
                    await
                    AnalyticsEvent1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AnalyticsEvent2 = await AnalyticsEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AnalyticsEvent2?.setUser)
                {
                    await
                    AnalyticsEvent2.
                    setUser(relatedUser2);
                }
            
        }
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await UserPhotos.bulkCreate(UserPhotosData);
                
            
            
                
                await Languages.bulkCreate(LanguagesData);
                
            
            
                
                await UserLanguages.bulkCreate(UserLanguagesData);
                
            
            
                
                await Interests.bulkCreate(InterestsData);
                
            
            
                
                await UserInterests.bulkCreate(UserInterestsData);
                
            
            
                
                await DiscoveryPreferences.bulkCreate(DiscoveryPreferencesData);
                
            
            
                
                await Swipes.bulkCreate(SwipesData);
                
            
            
                
                await Matches.bulkCreate(MatchesData);
                
            
            
                
                await Messages.bulkCreate(MessagesData);
                
            
            
                
                await ChatEvents.bulkCreate(ChatEventsData);
                
            
            
                
                await Blocks.bulkCreate(BlocksData);
                
            
            
                
                await Reports.bulkCreate(ReportsData);
                
            
            
                
                await ReportAttachments.bulkCreate(ReportAttachmentsData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            
                
                await DailySparks.bulkCreate(DailySparksData);
                
            
            
                
                await DailySparkRecommendations.bulkCreate(DailySparkRecommendationsData);
                
            
            
                
                await PremiumPlans.bulkCreate(PremiumPlansData);
                
            
            
                
                await Subscriptions.bulkCreate(SubscriptionsData);
                
            
            
                
                await UserSettings.bulkCreate(UserSettingsData);
                
            
            
                
                await ContentModerationItems.bulkCreate(ContentModerationItemsData);
                
            
            
                
                await AdminUsers.bulkCreate(AdminUsersData);
                
            
            
                
                await AnalyticsEvents.bulkCreate(AnalyticsEventsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                        
                        await associateUserPhotoWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserLanguageWithUser(),
                    
                
                    
                        
                        await associateUserLanguageWithLanguage(),
                    
                
                    
                
            
                
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserInterestWithUser(),
                    
                
                    
                        
                        await associateUserInterestWithInterest(),
                    
                
            
                
                
                    
                        
                        await associateDiscoveryPreferenceWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSwipeWithFrom_user(),
                    
                
                    
                        
                        await associateSwipeWithTo_user(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMatcheWithUser_a(),
                    
                
                    
                        
                        await associateMatcheWithUser_b(),
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateMessageWithMatch(),
                    
                
                    
                        
                        await associateMessageWithSender(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateChatEventWithMatch(),
                    
                
                    
                        
                        await associateChatEventWithUser(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBlockWithBlocker(),
                    
                
                    
                        
                        await associateBlockWithBlocked(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReportWithReporter(),
                    
                
                    
                        
                        await associateReportWithReported_user(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateReportWithAssigned_moderator(),
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateReportAttachmentWithReport(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNotificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDailySparkWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDailySparkRecommendationWithDaily_spark(),
                    
                
                    
                        
                        await associateDailySparkRecommendationWithRecommended_user(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSubscriptionWithUser(),
                    
                
                    
                        
                        await associateSubscriptionWithPlan(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserSettingWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateContentModerationItemWithUser(),
                    
                
                    
                        
                        await associateContentModerationItemWithMessage(),
                    
                
                    
                        
                        await associateContentModerationItemWithPhoto(),
                    
                
                    
                
                    
                
                    
                        
                        await associateContentModerationItemWithReviewed_by(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAnalyticsEventWithUser(),
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('user_photos', null, {});
            
            
            await queryInterface.bulkDelete('languages', null, {});
            
            
            await queryInterface.bulkDelete('user_languages', null, {});
            
            
            await queryInterface.bulkDelete('interests', null, {});
            
            
            await queryInterface.bulkDelete('user_interests', null, {});
            
            
            await queryInterface.bulkDelete('discovery_preferences', null, {});
            
            
            await queryInterface.bulkDelete('swipes', null, {});
            
            
            await queryInterface.bulkDelete('matches', null, {});
            
            
            await queryInterface.bulkDelete('messages', null, {});
            
            
            await queryInterface.bulkDelete('chat_events', null, {});
            
            
            await queryInterface.bulkDelete('blocks', null, {});
            
            
            await queryInterface.bulkDelete('reports', null, {});
            
            
            await queryInterface.bulkDelete('report_attachments', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
            
            await queryInterface.bulkDelete('daily_sparks', null, {});
            
            
            await queryInterface.bulkDelete('daily_spark_recommendations', null, {});
            
            
            await queryInterface.bulkDelete('premium_plans', null, {});
            
            
            await queryInterface.bulkDelete('subscriptions', null, {});
            
            
            await queryInterface.bulkDelete('user_settings', null, {});
            
            
            await queryInterface.bulkDelete('content_moderation_items', null, {});
            
            
            await queryInterface.bulkDelete('admin_users', null, {});
            
            
            await queryInterface.bulkDelete('analytics_events', null, {});
            
        
    },
};