





















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






const TutorProfiles = db.tutor_profiles;

const LearnerProfiles = db.learner_profiles;

const SubjectCategories = db.subject_categories;

const Subjects = db.subjects;

const Languages = db.languages;

const Gigs = db.gigs;

const GigLevels = db.gig_levels;

const Tags = db.tags;

const Bookings = db.bookings;

const Conversations = db.conversations;

const Messages = db.messages;

const Reviews = db.reviews;

const Notes = db.notes;

const Disputes = db.disputes;

const Notifications = db.notifications;

const PlatformConfig = db.platform_config;

const AdminAuditLogs = db.admin_audit_logs;

const UserLoginHistory = db.user_login_history;

const Invites = db.invites;

const Spaces = db.spaces;

const SpaceMemberships = db.space_memberships;

const CommunityPosts = db.community_posts;

const CommunityComments = db.community_comments;

const CommunityReactions = db.community_reactions;

const CommunityReports = db.community_reports;

const WeeklyChallenges = db.weekly_challenges;

const ChallengeParticipations = db.challenge_participations;

const UserGamification = db.user_gamification;

const Badges = db.badges;

const UserBadges = db.user_badges;

const StudyGroups = db.study_groups;

const StudyGroupMemberships = db.study_group_memberships;

const StudyGroupPosts = db.study_group_posts;

const StudyGroupMessages = db.study_group_messages;

const StudyGroupResources = db.study_group_resources;

const LiveEvents = db.live_events;

const EventRsvps = db.event_rsvps;

const Certificates = db.certificates;







const TutorProfilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "headline": "Ada Lovelace",
            
        
    
        
        
            
                "teaching_type": "certified_professional",
            
        
    
        
        
            
                "institution_name": "Ada Lovelace",
            
        
    
        
        
            
                "degree_qualification": "Ada Lovelace",
            
        
    
        
        
            
                "graduation_year": 7,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "session_language": "english",
            
        
    
        
        
            
                "teaching_format": "async_review",
            
        
    
        
        
            
                "verification_status": "rejected",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_note": "Ada Lovelace",
            
        
    
        
        
            
                "rating": 5.96,
            
        
    
        
        
            
                "total_sessions": 2,
            
        
    
        
        
            
                "total_reviews": 9,
            
        
    
        
        
            
                "response_rate": 8,
            
        
    
        
        
            
                "response_time_hours": 5,
            
        
    
        
        
            
                "badge_level": "expert",
            
        
    
        
        
            
                "vacation_mode": false,
            
        
    
        
        
            
                "max_concurrent_bookings": 8,
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Ada Lovelace",
            
        
    
        
        
            
                "jitsi_meet_password": "Ada Lovelace",
            
        
    
        
        
            
                "availability_json": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "headline": "Alan Turing",
            
        
    
        
        
            
                "teaching_type": "university_student",
            
        
    
        
        
            
                "institution_name": "Marie Curie",
            
        
    
        
        
            
                "degree_qualification": "Marie Curie",
            
        
    
        
        
            
                "graduation_year": 3,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "session_language": "english",
            
        
    
        
        
            
                "teaching_format": "live_video",
            
        
    
        
        
            
                "verification_status": "verified",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_note": "Ada Lovelace",
            
        
    
        
        
            
                "rating": 8.36,
            
        
    
        
        
            
                "total_sessions": 2,
            
        
    
        
        
            
                "total_reviews": 2,
            
        
    
        
        
            
                "response_rate": 9,
            
        
    
        
        
            
                "response_time_hours": 4,
            
        
    
        
        
            
                "badge_level": "rising_talent",
            
        
    
        
        
            
                "vacation_mode": true,
            
        
    
        
        
            
                "max_concurrent_bookings": 9,
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Grace Hopper",
            
        
    
        
        
            
                "jitsi_meet_password": "Grace Hopper",
            
        
    
        
        
            
                "availability_json": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "headline": "Grace Hopper",
            
        
    
        
        
            
                "teaching_type": "certified_professional",
            
        
    
        
        
            
                "institution_name": "Grace Hopper",
            
        
    
        
        
            
                "degree_qualification": "Ada Lovelace",
            
        
    
        
        
            
                "graduation_year": 3,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "session_language": "both",
            
        
    
        
        
            
                "teaching_format": "mixed",
            
        
    
        
        
            
                "verification_status": "pending",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_note": "Alan Turing",
            
        
    
        
        
            
                "rating": 6.5,
            
        
    
        
        
            
                "total_sessions": 3,
            
        
    
        
        
            
                "total_reviews": 3,
            
        
    
        
        
            
                "response_rate": 6,
            
        
    
        
        
            
                "response_time_hours": 1,
            
        
    
        
        
            
                "badge_level": "top_rated",
            
        
    
        
        
            
                "vacation_mode": false,
            
        
    
        
        
            
                "max_concurrent_bookings": 9,
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Alan Turing",
            
        
    
        
        
            
                "jitsi_meet_password": "Ada Lovelace",
            
        
    
        
        
            
                "availability_json": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "headline": "Grace Hopper",
            
        
    
        
        
            
                "teaching_type": "certified_professional",
            
        
    
        
        
            
                "institution_name": "Marie Curie",
            
        
    
        
        
            
                "degree_qualification": "Alan Turing",
            
        
    
        
        
            
                "graduation_year": 2,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "session_language": "both",
            
        
    
        
        
            
                "teaching_format": "live_video",
            
        
    
        
        
            
                "verification_status": "pending",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_note": "Grace Hopper",
            
        
    
        
        
            
                "rating": 6.7,
            
        
    
        
        
            
                "total_sessions": 4,
            
        
    
        
        
            
                "total_reviews": 9,
            
        
    
        
        
            
                "response_rate": 7,
            
        
    
        
        
            
                "response_time_hours": 4,
            
        
    
        
        
            
                "badge_level": "top_rated",
            
        
    
        
        
            
                "vacation_mode": false,
            
        
    
        
        
            
                "max_concurrent_bookings": 4,
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Ada Lovelace",
            
        
    
        
        
            
                "jitsi_meet_password": "Marie Curie",
            
        
    
        
        
            
                "availability_json": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "headline": "Alan Turing",
            
        
    
        
        
            
                "teaching_type": "certified_professional",
            
        
    
        
        
            
                "institution_name": "Grace Hopper",
            
        
    
        
        
            
                "degree_qualification": "Alan Turing",
            
        
    
        
        
            
                "graduation_year": 9,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "session_language": "bangla",
            
        
    
        
        
            
                "teaching_format": "live_video",
            
        
    
        
        
            
                "verification_status": "rejected",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "verification_note": "Marie Curie",
            
        
    
        
        
            
                "rating": 8.24,
            
        
    
        
        
            
                "total_sessions": 8,
            
        
    
        
        
            
                "total_reviews": 5,
            
        
    
        
        
            
                "response_rate": 2,
            
        
    
        
        
            
                "response_time_hours": 1,
            
        
    
        
        
            
                "badge_level": "rising_talent",
            
        
    
        
        
            
                "vacation_mode": true,
            
        
    
        
        
            
                "max_concurrent_bookings": 8,
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Ada Lovelace",
            
        
    
        
        
            
                "jitsi_meet_password": "Marie Curie",
            
        
    
        
        
            
                "availability_json": "Ada Lovelace",
            
        
    
    },
    
];



const LearnerProfilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "main_goal": "exam_result",
            
        
    
        
        
            
                "preferred_session_format": "async_review",
            
        
    
        
        
            
                "session_language_preference": "bangla",
            
        
    
        
        
            
                "budget_range": "bdt_600_1200",
            
        
    
        
        
            
                "availability_json": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "main_goal": "personal_interest",
            
        
    
        
        
            
                "preferred_session_format": "async_review",
            
        
    
        
        
            
                "session_language_preference": "english",
            
        
    
        
        
            
                "budget_range": "bdt_300_600",
            
        
    
        
        
            
                "availability_json": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "main_goal": "career_switch",
            
        
    
        
        
            
                "preferred_session_format": "async_review",
            
        
    
        
        
            
                "session_language_preference": "either",
            
        
    
        
        
            
                "budget_range": "bdt_1200_2500",
            
        
    
        
        
            
                "availability_json": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "main_goal": "personal_interest",
            
        
    
        
        
            
                "preferred_session_format": "live_video",
            
        
    
        
        
            
                "session_language_preference": "either",
            
        
    
        
        
            
                "budget_range": "bdt_2500_plus",
            
        
    
        
        
            
                "availability_json": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "main_goal": "skill_up",
            
        
    
        
        
            
                "preferred_session_format": "both",
            
        
    
        
        
            
                "session_language_preference": "either",
            
        
    
        
        
            
                "budget_range": "bdt_2500_plus",
            
        
    
        
        
            
                "availability_json": "Grace Hopper",
            
        
    
    },
    
];



const SubjectCategoriesData = [
    
    {
    
        
        
            
                "name_bn": "Alan Turing",
            
        
    
        
        
            
                "name_en": "Alan Turing",
            
        
    
        
        
            
                "icon_key": "Ada Lovelace",
            
        
    
        
        
            
                "seed_tutor_count": 4,
            
        
    
    },
    
    {
    
        
        
            
                "name_bn": "Marie Curie",
            
        
    
        
        
            
                "name_en": "Alan Turing",
            
        
    
        
        
            
                "icon_key": "Marie Curie",
            
        
    
        
        
            
                "seed_tutor_count": 8,
            
        
    
    },
    
    {
    
        
        
            
                "name_bn": "Alan Turing",
            
        
    
        
        
            
                "name_en": "Grace Hopper",
            
        
    
        
        
            
                "icon_key": "Grace Hopper",
            
        
    
        
        
            
                "seed_tutor_count": 7,
            
        
    
    },
    
    {
    
        
        
            
                "name_bn": "Ada Lovelace",
            
        
    
        
        
            
                "name_en": "Alan Turing",
            
        
    
        
        
            
                "icon_key": "Grace Hopper",
            
        
    
        
        
            
                "seed_tutor_count": 5,
            
        
    
    },
    
    {
    
        
        
            
                "name_bn": "Marie Curie",
            
        
    
        
        
            
                "name_en": "Marie Curie",
            
        
    
        
        
            
                "icon_key": "Grace Hopper",
            
        
    
        
        
            
                "seed_tutor_count": 7,
            
        
    
    },
    
];



const SubjectsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "name_bn": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "name_bn": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "name_bn": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "name_bn": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "name_bn": "Marie Curie",
            
        
    
    },
    
];



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



const GigsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                "impressions": 2,
            
        
    
        
        
            
                "total_orders": 9,
            
        
    
        
        
            
                "rating": 6.06,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                "impressions": 1,
            
        
    
        
        
            
                "total_orders": 9,
            
        
    
        
        
            
                "rating": 3.62,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "impressions": 7,
            
        
    
        
        
            
                "total_orders": 7,
            
        
    
        
        
            
                "rating": 8.79,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                "impressions": 4,
            
        
    
        
        
            
                "total_orders": 6,
            
        
    
        
        
            
                "rating": 7.64,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "impressions": 6,
            
        
    
        
        
            
                "total_orders": 8,
            
        
    
        
        
            
                "rating": 1.28,
            
        
    
    },
    
];



const GigLevelsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "level_number": 8,
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "deliverables_json": "Alan Turing",
            
        
    
        
        
            
                "price": 0.85,
            
        
    
        
        
            
                "duration_minutes": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "level_number": 9,
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "deliverables_json": "Ada Lovelace",
            
        
    
        
        
            
                "price": 4.67,
            
        
    
        
        
            
                "duration_minutes": 8,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "level_number": 8,
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "deliverables_json": "Alan Turing",
            
        
    
        
        
            
                "price": 7.58,
            
        
    
        
        
            
                "duration_minutes": 9,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "level_number": 5,
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "deliverables_json": "Alan Turing",
            
        
    
        
        
            
                "price": 9.24,
            
        
    
        
        
            
                "duration_minutes": 8,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "level_number": 9,
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "deliverables_json": "Marie Curie",
            
        
    
        
        
            
                "price": 8.5,
            
        
    
        
        
            
                "duration_minutes": 4,
            
        
    
    },
    
];



const TagsData = [
    
    {
    
        
        
            
                "label": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "label": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "label": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "label": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "label": "Grace Hopper",
            
        
    
    },
    
];



const BookingsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "level_number": 1,
            
        
    
        
        
            
                "level_name": "Alan Turing",
            
        
    
        
        
            
                "price": 2.55,
            
        
    
        
        
            
                "platform_fee": 1.98,
            
        
    
        
        
            
                "tutor_payout": 4.94,
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "escrow_status": "released",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "milestone_submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_release_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "deliverable_notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "revision_count": 8,
            
        
    
        
        
            
                "revision_reason": "Grace Hopper",
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Marie Curie",
            
        
    
        
        
            
                "jitsi_meet_password": "Grace Hopper",
            
        
    
        
        
            
                "admin_note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "level_number": 8,
            
        
    
        
        
            
                "level_name": "Alan Turing",
            
        
    
        
        
            
                "price": 1.16,
            
        
    
        
        
            
                "platform_fee": 6.13,
            
        
    
        
        
            
                "tutor_payout": 2.01,
            
        
    
        
        
            
                "status": "pending_acceptance",
            
        
    
        
        
            
                "escrow_status": "held",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "milestone_submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_release_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "deliverable_notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "revision_count": 3,
            
        
    
        
        
            
                "revision_reason": "Marie Curie",
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Grace Hopper",
            
        
    
        
        
            
                "jitsi_meet_password": "Ada Lovelace",
            
        
    
        
        
            
                "admin_note": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "level_number": 7,
            
        
    
        
        
            
                "level_name": "Grace Hopper",
            
        
    
        
        
            
                "price": 6.0,
            
        
    
        
        
            
                "platform_fee": 7.32,
            
        
    
        
        
            
                "tutor_payout": 2.46,
            
        
    
        
        
            
                "status": "revision_requested",
            
        
    
        
        
            
                "escrow_status": "held",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "milestone_submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_release_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "deliverable_notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "revision_count": 6,
            
        
    
        
        
            
                "revision_reason": "Ada Lovelace",
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Ada Lovelace",
            
        
    
        
        
            
                "jitsi_meet_password": "Ada Lovelace",
            
        
    
        
        
            
                "admin_note": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "level_number": 6,
            
        
    
        
        
            
                "level_name": "Ada Lovelace",
            
        
    
        
        
            
                "price": 1.64,
            
        
    
        
        
            
                "platform_fee": 2.28,
            
        
    
        
        
            
                "tutor_payout": 2.48,
            
        
    
        
        
            
                "status": "pending_acceptance",
            
        
    
        
        
            
                "escrow_status": "released",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "milestone_submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_release_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "deliverable_notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "revision_count": 1,
            
        
    
        
        
            
                "revision_reason": "Marie Curie",
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Alan Turing",
            
        
    
        
        
            
                "jitsi_meet_password": "Marie Curie",
            
        
    
        
        
            
                "admin_note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "level_number": 3,
            
        
    
        
        
            
                "level_name": "Alan Turing",
            
        
    
        
        
            
                "price": 9.39,
            
        
    
        
        
            
                "platform_fee": 2.5,
            
        
    
        
        
            
                "tutor_payout": 0.06,
            
        
    
        
        
            
                "status": "milestone_submitted",
            
        
    
        
        
            
                "escrow_status": "refunded",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "milestone_submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "auto_release_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "deliverable_notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "revision_count": 3,
            
        
    
        
        
            
                "revision_reason": "Marie Curie",
            
        
    
        
        
            
                "jitsi_meet_meeting_id": "Alan Turing",
            
        
    
        
        
            
                "jitsi_meet_password": "Ada Lovelace",
            
        
    
        
        
            
                "admin_note": "Grace Hopper",
            
        
    
    },
    
];



const ConversationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message": "Grace Hopper",
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                "tutor_unread_count": 4,
            
        
    
        
        
            
                "learner_unread_count": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message": "Alan Turing",
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                "tutor_unread_count": 1,
            
        
    
        
        
            
                "learner_unread_count": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message": "Marie Curie",
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                "tutor_unread_count": 4,
            
        
    
        
        
            
                "learner_unread_count": 8,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message": "Grace Hopper",
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                "tutor_unread_count": 7,
            
        
    
        
        
            
                "learner_unread_count": 3,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "last_message": "Grace Hopper",
            
        
    
        
        
            
                "last_message_at": new Date(Date.now()),
            
        
    
        
        
            
                "tutor_unread_count": 9,
            
        
    
        
        
            
                "learner_unread_count": 9,
            
        
    
    },
    
];



const MessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "file",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "file_url": "Ada Lovelace",
            
        
    
        
        
            
                "file_name": "Marie Curie",
            
        
    
        
        
            
                "is_pii_masked": true,
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "file",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "file_url": "Ada Lovelace",
            
        
    
        
        
            
                "file_name": "Alan Turing",
            
        
    
        
        
            
                "is_pii_masked": false,
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "file",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "file_url": "Grace Hopper",
            
        
    
        
        
            
                "file_name": "Grace Hopper",
            
        
    
        
        
            
                "is_pii_masked": true,
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "booking_link",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "file_url": "Ada Lovelace",
            
        
    
        
        
            
                "file_name": "Marie Curie",
            
        
    
        
        
            
                "is_pii_masked": true,
            
        
    
        
        
            
                "is_read": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "system",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "file_url": "Grace Hopper",
            
        
    
        
        
            
                "file_name": "Ada Lovelace",
            
        
    
        
        
            
                "is_pii_masked": true,
            
        
    
        
        
            
                "is_read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
];



const ReviewsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 8.65,
            
        
    
        
        
            
                "communication_rating": 3,
            
        
    
        
        
            
                "knowledge_rating": 7,
            
        
    
        
        
            
                "punctuality_rating": 9,
            
        
    
        
        
            
                "value_rating": 6,
            
        
    
        
        
            
                "review_text": "Alan Turing",
            
        
    
        
        
            
                "would_recommend": true,
            
        
    
        
        
            
                "tutor_response": "Ada Lovelace",
            
        
    
        
        
            
                "tutor_response_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "removed",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 4.75,
            
        
    
        
        
            
                "communication_rating": 6,
            
        
    
        
        
            
                "knowledge_rating": 2,
            
        
    
        
        
            
                "punctuality_rating": 1,
            
        
    
        
        
            
                "value_rating": 8,
            
        
    
        
        
            
                "review_text": "Alan Turing",
            
        
    
        
        
            
                "would_recommend": false,
            
        
    
        
        
            
                "tutor_response": "Grace Hopper",
            
        
    
        
        
            
                "tutor_response_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "removed",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 2.24,
            
        
    
        
        
            
                "communication_rating": 2,
            
        
    
        
        
            
                "knowledge_rating": 4,
            
        
    
        
        
            
                "punctuality_rating": 4,
            
        
    
        
        
            
                "value_rating": 6,
            
        
    
        
        
            
                "review_text": "Grace Hopper",
            
        
    
        
        
            
                "would_recommend": true,
            
        
    
        
        
            
                "tutor_response": "Ada Lovelace",
            
        
    
        
        
            
                "tutor_response_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 7.52,
            
        
    
        
        
            
                "communication_rating": 5,
            
        
    
        
        
            
                "knowledge_rating": 4,
            
        
    
        
        
            
                "punctuality_rating": 1,
            
        
    
        
        
            
                "value_rating": 6,
            
        
    
        
        
            
                "review_text": "Marie Curie",
            
        
    
        
        
            
                "would_recommend": false,
            
        
    
        
        
            
                "tutor_response": "Grace Hopper",
            
        
    
        
        
            
                "tutor_response_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 2.16,
            
        
    
        
        
            
                "communication_rating": 4,
            
        
    
        
        
            
                "knowledge_rating": 7,
            
        
    
        
        
            
                "punctuality_rating": 9,
            
        
    
        
        
            
                "value_rating": 2,
            
        
    
        
        
            
                "review_text": "Alan Turing",
            
        
    
        
        
            
                "would_recommend": true,
            
        
    
        
        
            
                "tutor_response": "Ada Lovelace",
            
        
    
        
        
            
                "tutor_response_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const NotesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tutor_private_notes": "Marie Curie",
            
        
    
        
        
            
                "learner_private_notes": "Marie Curie",
            
        
    
        
        
            
                "shared_notes": "Grace Hopper",
            
        
    
        
        
            
                "session_summary": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tutor_private_notes": "Alan Turing",
            
        
    
        
        
            
                "learner_private_notes": "Ada Lovelace",
            
        
    
        
        
            
                "shared_notes": "Ada Lovelace",
            
        
    
        
        
            
                "session_summary": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tutor_private_notes": "Marie Curie",
            
        
    
        
        
            
                "learner_private_notes": "Ada Lovelace",
            
        
    
        
        
            
                "shared_notes": "Grace Hopper",
            
        
    
        
        
            
                "session_summary": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tutor_private_notes": "Ada Lovelace",
            
        
    
        
        
            
                "learner_private_notes": "Marie Curie",
            
        
    
        
        
            
                "shared_notes": "Alan Turing",
            
        
    
        
        
            
                "session_summary": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tutor_private_notes": "Ada Lovelace",
            
        
    
        
        
            
                "learner_private_notes": "Ada Lovelace",
            
        
    
        
        
            
                "shared_notes": "Ada Lovelace",
            
        
    
        
        
            
                "session_summary": "Alan Turing",
            
        
    
    },
    
];



const DisputesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "resolution": "learner_favor",
            
        
    
        
        
            
                "admin_notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "resolution": "split",
            
        
    
        
        
            
                "admin_notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "resolution": "split",
            
        
    
        
        
            
                "admin_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "resolution": "tutor_favor",
            
        
    
        
        
            
                "admin_notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "resolution": "tutor_favor",
            
        
    
        
        
            
                "admin_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "booking_declined",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "link": "Alan Turing",
            
        
    
        
        
            
                "is_read": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "milestone_submitted",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "link": "Alan Turing",
            
        
    
        
        
            
                "is_read": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "booking_declined",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "link": "Marie Curie",
            
        
    
        
        
            
                "is_read": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "new_review",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "link": "Grace Hopper",
            
        
    
        
        
            
                "is_read": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "booking_declined",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "link": "Grace Hopper",
            
        
    
        
        
            
                "is_read": true,
            
        
    
    },
    
];



const PlatformConfigData = [
    
    {
    
        
        
            
                "platform_fee_percent": 0.87,
            
        
    
        
        
            
                "auto_release_days": 8,
            
        
    
        
        
            
                "max_revision_count": 5,
            
        
    
        
        
            
                "min_review_length": 8,
            
        
    
        
        
            
                "new_user_verify_email": false,
            
        
    
        
        
            
                "tutor_two_factor_required": false,
            
        
    
        
        
            
                "maintenance_mode": true,
            
        
    
        
        
            
                "maintenance_message": "Ada Lovelace",
            
        
    
        
        
            
                "announcement_banner_enabled": false,
            
        
    
        
        
            
                "announcement_banner_text": "Alan Turing",
            
        
    
        
        
            
                "jitsi_sdk_key": "Ada Lovelace",
            
        
    
        
        
            
                "jitsi_sdk_secret": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "platform_fee_percent": 6.04,
            
        
    
        
        
            
                "auto_release_days": 4,
            
        
    
        
        
            
                "max_revision_count": 1,
            
        
    
        
        
            
                "min_review_length": 9,
            
        
    
        
        
            
                "new_user_verify_email": true,
            
        
    
        
        
            
                "tutor_two_factor_required": false,
            
        
    
        
        
            
                "maintenance_mode": true,
            
        
    
        
        
            
                "maintenance_message": "Ada Lovelace",
            
        
    
        
        
            
                "announcement_banner_enabled": false,
            
        
    
        
        
            
                "announcement_banner_text": "Alan Turing",
            
        
    
        
        
            
                "jitsi_sdk_key": "Marie Curie",
            
        
    
        
        
            
                "jitsi_sdk_secret": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "platform_fee_percent": 2.77,
            
        
    
        
        
            
                "auto_release_days": 9,
            
        
    
        
        
            
                "max_revision_count": 3,
            
        
    
        
        
            
                "min_review_length": 1,
            
        
    
        
        
            
                "new_user_verify_email": true,
            
        
    
        
        
            
                "tutor_two_factor_required": true,
            
        
    
        
        
            
                "maintenance_mode": true,
            
        
    
        
        
            
                "maintenance_message": "Marie Curie",
            
        
    
        
        
            
                "announcement_banner_enabled": true,
            
        
    
        
        
            
                "announcement_banner_text": "Alan Turing",
            
        
    
        
        
            
                "jitsi_sdk_key": "Marie Curie",
            
        
    
        
        
            
                "jitsi_sdk_secret": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "platform_fee_percent": 1.01,
            
        
    
        
        
            
                "auto_release_days": 4,
            
        
    
        
        
            
                "max_revision_count": 8,
            
        
    
        
        
            
                "min_review_length": 7,
            
        
    
        
        
            
                "new_user_verify_email": false,
            
        
    
        
        
            
                "tutor_two_factor_required": true,
            
        
    
        
        
            
                "maintenance_mode": true,
            
        
    
        
        
            
                "maintenance_message": "Grace Hopper",
            
        
    
        
        
            
                "announcement_banner_enabled": true,
            
        
    
        
        
            
                "announcement_banner_text": "Marie Curie",
            
        
    
        
        
            
                "jitsi_sdk_key": "Marie Curie",
            
        
    
        
        
            
                "jitsi_sdk_secret": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "platform_fee_percent": 6.35,
            
        
    
        
        
            
                "auto_release_days": 6,
            
        
    
        
        
            
                "max_revision_count": 2,
            
        
    
        
        
            
                "min_review_length": 5,
            
        
    
        
        
            
                "new_user_verify_email": true,
            
        
    
        
        
            
                "tutor_two_factor_required": true,
            
        
    
        
        
            
                "maintenance_mode": true,
            
        
    
        
        
            
                "maintenance_message": "Ada Lovelace",
            
        
    
        
        
            
                "announcement_banner_enabled": false,
            
        
    
        
        
            
                "announcement_banner_text": "Ada Lovelace",
            
        
    
        
        
            
                "jitsi_sdk_key": "Ada Lovelace",
            
        
    
        
        
            
                "jitsi_sdk_secret": "Alan Turing",
            
        
    
    },
    
];



const AdminAuditLogsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "impersonation_started",
            
        
    
        
        
            
                "target_entity": "Ada Lovelace",
            
        
    
        
        
            
                "target_id": "Marie Curie",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "verification_approved",
            
        
    
        
        
            
                "target_entity": "Ada Lovelace",
            
        
    
        
        
            
                "target_id": "Marie Curie",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "verification_approved",
            
        
    
        
        
            
                "target_entity": "Ada Lovelace",
            
        
    
        
        
            
                "target_id": "Alan Turing",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "impersonation_started",
            
        
    
        
        
            
                "target_entity": "Ada Lovelace",
            
        
    
        
        
            
                "target_id": "Grace Hopper",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "user_warned",
            
        
    
        
        
            
                "target_entity": "Alan Turing",
            
        
    
        
        
            
                "target_id": "Grace Hopper",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
];



const UserLoginHistoryData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "device_label": "Alan Turing",
            
        
    
        
        
            
                "ip_address": "Alan Turing",
            
        
    
        
        
            
                "event": "login",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "device_label": "Grace Hopper",
            
        
    
        
        
            
                "ip_address": "Alan Turing",
            
        
    
        
        
            
                "event": "two_factor_toggle",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "device_label": "Alan Turing",
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "event": "login",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "device_label": "Alan Turing",
            
        
    
        
        
            
                "ip_address": "Grace Hopper",
            
        
    
        
        
            
                "event": "logout",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "device_label": "Grace Hopper",
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "event": "impersonated_login",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
];



const InvitesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "status": "declined",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "status": "accepted",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
    },
    
];



const SpacesData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "name_bn": "Marie Curie",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "space_kind": "general",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "unread_seed_count": 3,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "name_bn": "Marie Curie",
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "space_kind": "weekly_challenge",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "unread_seed_count": 1,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "name_bn": "Alan Turing",
            
        
    
        
        
            
                "visibility": "locked",
            
        
    
        
        
            
                "space_kind": "weekly_challenge",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "unread_seed_count": 9,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "name_bn": "Ada Lovelace",
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "space_kind": "general",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "unread_seed_count": 2,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "name_bn": "Ada Lovelace",
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "space_kind": "general",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "unread_seed_count": 8,
            
        
    
    },
    
];



const SpaceMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "status": "banned",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "status": "banned",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "status": "banned",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
];



const CommunityPostsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "poll",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "image_url": "Marie Curie",
            
        
    
        
        
            
                "resource_url": "Alan Turing",
            
        
    
        
        
            
                "poll_options_json": "Marie Curie",
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                "visibility": "hidden",
            
        
    
        
        
            
                "like_count": 8,
            
        
    
        
        
            
                "love_count": 8,
            
        
    
        
        
            
                "insightful_count": 9,
            
        
    
        
        
            
                "comment_count": 4,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "text",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "image_url": "Grace Hopper",
            
        
    
        
        
            
                "resource_url": "Ada Lovelace",
            
        
    
        
        
            
                "poll_options_json": "Ada Lovelace",
            
        
    
        
        
            
                "is_pinned": false,
            
        
    
        
        
            
                "visibility": "hidden",
            
        
    
        
        
            
                "like_count": 6,
            
        
    
        
        
            
                "love_count": 8,
            
        
    
        
        
            
                "insightful_count": 6,
            
        
    
        
        
            
                "comment_count": 2,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "poll",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "image_url": "Marie Curie",
            
        
    
        
        
            
                "resource_url": "Grace Hopper",
            
        
    
        
        
            
                "poll_options_json": "Marie Curie",
            
        
    
        
        
            
                "is_pinned": true,
            
        
    
        
        
            
                "visibility": "removed",
            
        
    
        
        
            
                "like_count": 2,
            
        
    
        
        
            
                "love_count": 6,
            
        
    
        
        
            
                "insightful_count": 8,
            
        
    
        
        
            
                "comment_count": 6,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "resource",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "image_url": "Grace Hopper",
            
        
    
        
        
            
                "resource_url": "Alan Turing",
            
        
    
        
        
            
                "poll_options_json": "Ada Lovelace",
            
        
    
        
        
            
                "is_pinned": false,
            
        
    
        
        
            
                "visibility": "hidden",
            
        
    
        
        
            
                "like_count": 7,
            
        
    
        
        
            
                "love_count": 6,
            
        
    
        
        
            
                "insightful_count": 6,
            
        
    
        
        
            
                "comment_count": 7,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "post_type": "milestone_announcement",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "image_url": "Alan Turing",
            
        
    
        
        
            
                "resource_url": "Ada Lovelace",
            
        
    
        
        
            
                "poll_options_json": "Ada Lovelace",
            
        
    
        
        
            
                "is_pinned": false,
            
        
    
        
        
            
                "visibility": "removed",
            
        
    
        
        
            
                "like_count": 3,
            
        
    
        
        
            
                "love_count": 2,
            
        
    
        
        
            
                "insightful_count": 1,
            
        
    
        
        
            
                "comment_count": 2,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const CommunityCommentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "visibility": "removed",
            
        
    
        
        
            
                "like_count": 1,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "visibility": "visible",
            
        
    
        
        
            
                "like_count": 3,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "visibility": "visible",
            
        
    
        
        
            
                "like_count": 4,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "visibility": "removed",
            
        
    
        
        
            
                "like_count": 7,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "visibility": "removed",
            
        
    
        
        
            
                "like_count": 3,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



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



const CommunityReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content_type": "comment",
            
        
    
        
        
            
                "content_id": "Grace Hopper",
            
        
    
        
        
            
                "reason": "Ada Lovelace",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "status": "dismissed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content_type": "user_profile",
            
        
    
        
        
            
                "content_id": "Marie Curie",
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content_type": "user_profile",
            
        
    
        
        
            
                "content_id": "Ada Lovelace",
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content_type": "user_profile",
            
        
    
        
        
            
                "content_id": "Ada Lovelace",
            
        
    
        
        
            
                "reason": "Ada Lovelace",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "status": "dismissed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "content_type": "user_profile",
            
        
    
        
        
            
                "content_id": "Grace Hopper",
            
        
    
        
        
            
                "reason": "Ada Lovelace",
            
        
    
        
        
            
                "details": "Marie Curie",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
];



const WeeklyChallengesData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "tasks_json": "Marie Curie",
            
        
    
        
        
            
                "reward_points": 3,
            
        
    
        
        
            
                "reward_badge_key": "Marie Curie",
            
        
    
        
        
            
                "status": "upcoming",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "tasks_json": "Alan Turing",
            
        
    
        
        
            
                "reward_points": 4,
            
        
    
        
        
            
                "reward_badge_key": "Marie Curie",
            
        
    
        
        
            
                "status": "upcoming",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "tasks_json": "Alan Turing",
            
        
    
        
        
            
                "reward_points": 6,
            
        
    
        
        
            
                "reward_badge_key": "Marie Curie",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "tasks_json": "Alan Turing",
            
        
    
        
        
            
                "reward_points": 9,
            
        
    
        
        
            
                "reward_badge_key": "Ada Lovelace",
            
        
    
        
        
            
                "status": "upcoming",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "tasks_json": "Alan Turing",
            
        
    
        
        
            
                "reward_points": 3,
            
        
    
        
        
            
                "reward_badge_key": "Marie Curie",
            
        
    
        
        
            
                "status": "ended",
            
        
    
    },
    
];



const ChallengeParticipationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "progress_value": 2,
            
        
    
        
        
            
                "target_value": 6,
            
        
    
        
        
            
                "is_completed": true,
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "progress_value": 2,
            
        
    
        
        
            
                "target_value": 1,
            
        
    
        
        
            
                "is_completed": true,
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "progress_value": 2,
            
        
    
        
        
            
                "target_value": 1,
            
        
    
        
        
            
                "is_completed": false,
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "progress_value": 4,
            
        
    
        
        
            
                "target_value": 6,
            
        
    
        
        
            
                "is_completed": false,
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "progress_value": 3,
            
        
    
        
        
            
                "target_value": 2,
            
        
    
        
        
            
                "is_completed": true,
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
    },
    
];



const UserGamificationData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "points_total": 6,
            
        
    
        
        
            
                "streak_days": 4,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                "daily_activity_json": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "points_total": 8,
            
        
    
        
        
            
                "streak_days": 1,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                "daily_activity_json": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "points_total": 3,
            
        
    
        
        
            
                "streak_days": 8,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                "daily_activity_json": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "points_total": 1,
            
        
    
        
        
            
                "streak_days": 6,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                "daily_activity_json": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "points_total": 4,
            
        
    
        
        
            
                "streak_days": 5,
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                "daily_activity_json": "Alan Turing",
            
        
    
    },
    
];



const BadgesData = [
    
    {
    
        
        
            
                "badge_key": "Grace Hopper",
            
        
    
        
        
            
                "name_bn": "Grace Hopper",
            
        
    
        
        
            
                "name_en": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "badge_key": "Alan Turing",
            
        
    
        
        
            
                "name_bn": "Grace Hopper",
            
        
    
        
        
            
                "name_en": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "badge_key": "Grace Hopper",
            
        
    
        
        
            
                "name_bn": "Grace Hopper",
            
        
    
        
        
            
                "name_en": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "badge_key": "Grace Hopper",
            
        
    
        
        
            
                "name_bn": "Marie Curie",
            
        
    
        
        
            
                "name_en": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "badge_key": "Alan Turing",
            
        
    
        
        
            
                "name_bn": "Grace Hopper",
            
        
    
        
        
            
                "name_en": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
];



const UserBadgesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "earned_at": new Date(Date.now()),
            
        
    
        
        
            
                "context": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "earned_at": new Date(Date.now()),
            
        
    
        
        
            
                "context": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "earned_at": new Date(Date.now()),
            
        
    
        
        
            
                "context": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "earned_at": new Date(Date.now()),
            
        
    
        
        
            
                "context": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "earned_at": new Date(Date.now()),
            
        
    
        
        
            
                "context": "Marie Curie",
            
        
    
    },
    
];



const StudyGroupsData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "member_limit": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "member_limit": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "member_limit": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "public",
            
        
    
        
        
            
                "member_limit": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "member_limit": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
];



const StudyGroupMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "owner",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "owner",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "moderator",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
    },
    
];



const StudyGroupPostsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "visibility": "visible",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "visibility": "visible",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "body": "Marie Curie",
            
        
    
        
        
            
                "visibility": "visible",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "visibility": "removed",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "visibility": "visible",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const StudyGroupMessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "text",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                "file_name": "Ada Lovelace",
            
        
    
        
        
            
                "file_url": "Marie Curie",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "system",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "file_name": "Marie Curie",
            
        
    
        
        
            
                "file_url": "Marie Curie",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "file",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "file_name": "Grace Hopper",
            
        
    
        
        
            
                "file_url": "Ada Lovelace",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "text",
            
        
    
        
        
            
                "content": "Ada Lovelace",
            
        
    
        
        
            
                "file_name": "Ada Lovelace",
            
        
    
        
        
            
                "file_url": "Grace Hopper",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "file",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "file_name": "Alan Turing",
            
        
    
        
        
            
                "file_url": "Marie Curie",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
];



const StudyGroupResourcesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "url": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "url": "Marie Curie",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "url": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "url": "Marie Curie",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "url": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const LiveEventsData = [
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "event_type": "free_webinar",
            
        
    
        
        
            
                "meeting_provider": "google_meet",
            
        
    
        
        
            
                "meeting_link": "Alan Turing",
            
        
    
        
        
            
                "recording_link": "Marie Curie",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "capacity": 8,
            
        
    
        
        
            
                "price_amount": 2.42,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "event_type": "qa_session",
            
        
    
        
        
            
                "meeting_provider": "zoom",
            
        
    
        
        
            
                "meeting_link": "Alan Turing",
            
        
    
        
        
            
                "recording_link": "Marie Curie",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "capacity": 8,
            
        
    
        
        
            
                "price_amount": 6.32,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "event_type": "group_study_session",
            
        
    
        
        
            
                "meeting_provider": "other",
            
        
    
        
        
            
                "meeting_link": "Marie Curie",
            
        
    
        
        
            
                "recording_link": "Alan Turing",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "capacity": 5,
            
        
    
        
        
            
                "price_amount": 1.37,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "event_type": "qa_session",
            
        
    
        
        
            
                "meeting_provider": "other",
            
        
    
        
        
            
                "meeting_link": "Grace Hopper",
            
        
    
        
        
            
                "recording_link": "Ada Lovelace",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "capacity": 2,
            
        
    
        
        
            
                "price_amount": 7.98,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "event_type": "paid_masterclass",
            
        
    
        
        
            
                "meeting_provider": "google_meet",
            
        
    
        
        
            
                "meeting_link": "Marie Curie",
            
        
    
        
        
            
                "recording_link": "Ada Lovelace",
            
        
    
        
        
            
                "start_at": new Date(Date.now()),
            
        
    
        
        
            
                "end_at": new Date(Date.now()),
            
        
    
        
        
            
                "capacity": 5,
            
        
    
        
        
            
                "price_amount": 1.39,
            
        
    
    },
    
];



const EventRsvpsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "going",
            
        
    
        
        
            
                "rsvped_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "not_going",
            
        
    
        
        
            
                "rsvped_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "going",
            
        
    
        
        
            
                "rsvped_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "waitlist",
            
        
    
        
        
            
                "rsvped_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "going",
            
        
    
        
        
            
                "rsvped_at": new Date(Date.now()),
            
        
    
    },
    
];



const CertificatesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject_label": "Ada Lovelace",
            
        
    
        
        
            
                "level_label": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "certificate_html": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject_label": "Alan Turing",
            
        
    
        
        
            
                "level_label": "Grace Hopper",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "certificate_html": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject_label": "Grace Hopper",
            
        
    
        
        
            
                "level_label": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "certificate_html": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject_label": "Grace Hopper",
            
        
    
        
        
            
                "level_label": "Grace Hopper",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "certificate_html": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject_label": "Ada Lovelace",
            
        
    
        
        
            
                "level_label": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "certificate_html": "Marie Curie",
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
            
            async function associateTutorProfileWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TutorProfile0 = await TutorProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TutorProfile0?.setUser)
                {
                    await
                    TutorProfile0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TutorProfile1 = await TutorProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TutorProfile1?.setUser)
                {
                    await
                    TutorProfile1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TutorProfile2 = await TutorProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TutorProfile2?.setUser)
                {
                    await
                    TutorProfile2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TutorProfile3 = await TutorProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TutorProfile3?.setUser)
                {
                    await
                    TutorProfile3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TutorProfile4 = await TutorProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TutorProfile4?.setUser)
                {
                    await
                    TutorProfile4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLearnerProfileWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LearnerProfile0 = await LearnerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LearnerProfile0?.setUser)
                {
                    await
                    LearnerProfile0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LearnerProfile1 = await LearnerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LearnerProfile1?.setUser)
                {
                    await
                    LearnerProfile1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LearnerProfile2 = await LearnerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LearnerProfile2?.setUser)
                {
                    await
                    LearnerProfile2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LearnerProfile3 = await LearnerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LearnerProfile3?.setUser)
                {
                    await
                    LearnerProfile3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LearnerProfile4 = await LearnerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LearnerProfile4?.setUser)
                {
                    await
                    LearnerProfile4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateSubjectWithCategory() {
            
                const relatedCategory0 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Subject0 = await Subjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Subject0?.setCategory)
                {
                    await
                    Subject0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Subject1 = await Subjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Subject1?.setCategory)
                {
                    await
                    Subject1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Subject2 = await Subjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Subject2?.setCategory)
                {
                    await
                    Subject2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Subject3 = await Subjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Subject3?.setCategory)
                {
                    await
                    Subject3.
                    setCategory(relatedCategory3);
                }
            
                const relatedCategory4 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Subject4 = await Subjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Subject4?.setCategory)
                {
                    await
                    Subject4.
                    setCategory(relatedCategory4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    

    
    
    
        
            
            async function associateGigWithTutor_profile() {
            
                const relatedTutor_profile0 = await TutorProfiles.findOne({
                    offset: Math.floor(Math.random() * (await TutorProfiles.count())),
                });
                const Gig0 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Gig0?.setTutor_profile)
                {
                    await
                    Gig0.
                    setTutor_profile(relatedTutor_profile0);
                }
            
                const relatedTutor_profile1 = await TutorProfiles.findOne({
                    offset: Math.floor(Math.random() * (await TutorProfiles.count())),
                });
                const Gig1 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Gig1?.setTutor_profile)
                {
                    await
                    Gig1.
                    setTutor_profile(relatedTutor_profile1);
                }
            
                const relatedTutor_profile2 = await TutorProfiles.findOne({
                    offset: Math.floor(Math.random() * (await TutorProfiles.count())),
                });
                const Gig2 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Gig2?.setTutor_profile)
                {
                    await
                    Gig2.
                    setTutor_profile(relatedTutor_profile2);
                }
            
                const relatedTutor_profile3 = await TutorProfiles.findOne({
                    offset: Math.floor(Math.random() * (await TutorProfiles.count())),
                });
                const Gig3 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Gig3?.setTutor_profile)
                {
                    await
                    Gig3.
                    setTutor_profile(relatedTutor_profile3);
                }
            
                const relatedTutor_profile4 = await TutorProfiles.findOne({
                    offset: Math.floor(Math.random() * (await TutorProfiles.count())),
                });
                const Gig4 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Gig4?.setTutor_profile)
                {
                    await
                    Gig4.
                    setTutor_profile(relatedTutor_profile4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateGigWithCategory() {
            
                const relatedCategory0 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Gig0 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Gig0?.setCategory)
                {
                    await
                    Gig0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Gig1 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Gig1?.setCategory)
                {
                    await
                    Gig1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Gig2 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Gig2?.setCategory)
                {
                    await
                    Gig2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Gig3 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Gig3?.setCategory)
                {
                    await
                    Gig3.
                    setCategory(relatedCategory3);
                }
            
                const relatedCategory4 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Gig4 = await Gigs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Gig4?.setCategory)
                {
                    await
                    Gig4.
                    setCategory(relatedCategory4);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateGigLevelWithGig() {
            
                const relatedGig0 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const GigLevel0 = await GigLevels.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GigLevel0?.setGig)
                {
                    await
                    GigLevel0.
                    setGig(relatedGig0);
                }
            
                const relatedGig1 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const GigLevel1 = await GigLevels.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GigLevel1?.setGig)
                {
                    await
                    GigLevel1.
                    setGig(relatedGig1);
                }
            
                const relatedGig2 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const GigLevel2 = await GigLevels.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GigLevel2?.setGig)
                {
                    await
                    GigLevel2.
                    setGig(relatedGig2);
                }
            
                const relatedGig3 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const GigLevel3 = await GigLevels.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GigLevel3?.setGig)
                {
                    await
                    GigLevel3.
                    setGig(relatedGig3);
                }
            
                const relatedGig4 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const GigLevel4 = await GigLevels.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GigLevel4?.setGig)
                {
                    await
                    GigLevel4.
                    setGig(relatedGig4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    

    
    
    
        
            
            async function associateBookingWithLearner() {
            
                const relatedLearner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking0 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Booking0?.setLearner)
                {
                    await
                    Booking0.
                    setLearner(relatedLearner0);
                }
            
                const relatedLearner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking1 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Booking1?.setLearner)
                {
                    await
                    Booking1.
                    setLearner(relatedLearner1);
                }
            
                const relatedLearner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking2 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Booking2?.setLearner)
                {
                    await
                    Booking2.
                    setLearner(relatedLearner2);
                }
            
                const relatedLearner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking3 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Booking3?.setLearner)
                {
                    await
                    Booking3.
                    setLearner(relatedLearner3);
                }
            
                const relatedLearner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking4 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Booking4?.setLearner)
                {
                    await
                    Booking4.
                    setLearner(relatedLearner4);
                }
            
        }
        
    
        
            
            async function associateBookingWithTutor() {
            
                const relatedTutor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking0 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Booking0?.setTutor)
                {
                    await
                    Booking0.
                    setTutor(relatedTutor0);
                }
            
                const relatedTutor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking1 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Booking1?.setTutor)
                {
                    await
                    Booking1.
                    setTutor(relatedTutor1);
                }
            
                const relatedTutor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking2 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Booking2?.setTutor)
                {
                    await
                    Booking2.
                    setTutor(relatedTutor2);
                }
            
                const relatedTutor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking3 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Booking3?.setTutor)
                {
                    await
                    Booking3.
                    setTutor(relatedTutor3);
                }
            
                const relatedTutor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Booking4 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Booking4?.setTutor)
                {
                    await
                    Booking4.
                    setTutor(relatedTutor4);
                }
            
        }
        
    
        
            
            async function associateBookingWithGig() {
            
                const relatedGig0 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Booking0 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Booking0?.setGig)
                {
                    await
                    Booking0.
                    setGig(relatedGig0);
                }
            
                const relatedGig1 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Booking1 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Booking1?.setGig)
                {
                    await
                    Booking1.
                    setGig(relatedGig1);
                }
            
                const relatedGig2 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Booking2 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Booking2?.setGig)
                {
                    await
                    Booking2.
                    setGig(relatedGig2);
                }
            
                const relatedGig3 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Booking3 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Booking3?.setGig)
                {
                    await
                    Booking3.
                    setGig(relatedGig3);
                }
            
                const relatedGig4 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Booking4 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Booking4?.setGig)
                {
                    await
                    Booking4.
                    setGig(relatedGig4);
                }
            
        }
        
    
        
            
            async function associateBookingWithGig_level() {
            
                const relatedGig_level0 = await GigLevels.findOne({
                    offset: Math.floor(Math.random() * (await GigLevels.count())),
                });
                const Booking0 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Booking0?.setGig_level)
                {
                    await
                    Booking0.
                    setGig_level(relatedGig_level0);
                }
            
                const relatedGig_level1 = await GigLevels.findOne({
                    offset: Math.floor(Math.random() * (await GigLevels.count())),
                });
                const Booking1 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Booking1?.setGig_level)
                {
                    await
                    Booking1.
                    setGig_level(relatedGig_level1);
                }
            
                const relatedGig_level2 = await GigLevels.findOne({
                    offset: Math.floor(Math.random() * (await GigLevels.count())),
                });
                const Booking2 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Booking2?.setGig_level)
                {
                    await
                    Booking2.
                    setGig_level(relatedGig_level2);
                }
            
                const relatedGig_level3 = await GigLevels.findOne({
                    offset: Math.floor(Math.random() * (await GigLevels.count())),
                });
                const Booking3 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Booking3?.setGig_level)
                {
                    await
                    Booking3.
                    setGig_level(relatedGig_level3);
                }
            
                const relatedGig_level4 = await GigLevels.findOne({
                    offset: Math.floor(Math.random() * (await GigLevels.count())),
                });
                const Booking4 = await Bookings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Booking4?.setGig_level)
                {
                    await
                    Booking4.
                    setGig_level(relatedGig_level4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateConversationWithTutor() {
            
                const relatedTutor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation0 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Conversation0?.setTutor)
                {
                    await
                    Conversation0.
                    setTutor(relatedTutor0);
                }
            
                const relatedTutor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation1 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Conversation1?.setTutor)
                {
                    await
                    Conversation1.
                    setTutor(relatedTutor1);
                }
            
                const relatedTutor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation2 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Conversation2?.setTutor)
                {
                    await
                    Conversation2.
                    setTutor(relatedTutor2);
                }
            
                const relatedTutor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation3 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Conversation3?.setTutor)
                {
                    await
                    Conversation3.
                    setTutor(relatedTutor3);
                }
            
                const relatedTutor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation4 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Conversation4?.setTutor)
                {
                    await
                    Conversation4.
                    setTutor(relatedTutor4);
                }
            
        }
        
    
        
            
            async function associateConversationWithLearner() {
            
                const relatedLearner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation0 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Conversation0?.setLearner)
                {
                    await
                    Conversation0.
                    setLearner(relatedLearner0);
                }
            
                const relatedLearner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation1 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Conversation1?.setLearner)
                {
                    await
                    Conversation1.
                    setLearner(relatedLearner1);
                }
            
                const relatedLearner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation2 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Conversation2?.setLearner)
                {
                    await
                    Conversation2.
                    setLearner(relatedLearner2);
                }
            
                const relatedLearner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation3 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Conversation3?.setLearner)
                {
                    await
                    Conversation3.
                    setLearner(relatedLearner3);
                }
            
                const relatedLearner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Conversation4 = await Conversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Conversation4?.setLearner)
                {
                    await
                    Conversation4.
                    setLearner(relatedLearner4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMessageWithConversation() {
            
                const relatedConversation0 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setConversation)
                {
                    await
                    Message0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setConversation)
                {
                    await
                    Message1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setConversation)
                {
                    await
                    Message2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setConversation)
                {
                    await
                    Message3.
                    setConversation(relatedConversation3);
                }
            
                const relatedConversation4 = await Conversations.findOne({
                    offset: Math.floor(Math.random() * (await Conversations.count())),
                });
                const Message4 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Message4?.setConversation)
                {
                    await
                    Message4.
                    setConversation(relatedConversation4);
                }
            
        }
        
    
        
            
            async function associateMessageWithSender() {
            
                const relatedSender0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setSender)
                {
                    await
                    Message0.
                    setSender(relatedSender0);
                }
            
                const relatedSender1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setSender)
                {
                    await
                    Message1.
                    setSender(relatedSender1);
                }
            
                const relatedSender2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setSender)
                {
                    await
                    Message2.
                    setSender(relatedSender2);
                }
            
                const relatedSender3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setSender)
                {
                    await
                    Message3.
                    setSender(relatedSender3);
                }
            
                const relatedSender4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message4 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Message4?.setSender)
                {
                    await
                    Message4.
                    setSender(relatedSender4);
                }
            
        }
        
    
        
            
            async function associateMessageWithReceiver() {
            
                const relatedReceiver0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setReceiver)
                {
                    await
                    Message0.
                    setReceiver(relatedReceiver0);
                }
            
                const relatedReceiver1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setReceiver)
                {
                    await
                    Message1.
                    setReceiver(relatedReceiver1);
                }
            
                const relatedReceiver2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setReceiver)
                {
                    await
                    Message2.
                    setReceiver(relatedReceiver2);
                }
            
                const relatedReceiver3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setReceiver)
                {
                    await
                    Message3.
                    setReceiver(relatedReceiver3);
                }
            
                const relatedReceiver4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message4 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Message4?.setReceiver)
                {
                    await
                    Message4.
                    setReceiver(relatedReceiver4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateReviewWithBooking() {
            
                const relatedBooking0 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Review0 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Review0?.setBooking)
                {
                    await
                    Review0.
                    setBooking(relatedBooking0);
                }
            
                const relatedBooking1 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Review1 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Review1?.setBooking)
                {
                    await
                    Review1.
                    setBooking(relatedBooking1);
                }
            
                const relatedBooking2 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Review2 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Review2?.setBooking)
                {
                    await
                    Review2.
                    setBooking(relatedBooking2);
                }
            
                const relatedBooking3 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Review3 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Review3?.setBooking)
                {
                    await
                    Review3.
                    setBooking(relatedBooking3);
                }
            
                const relatedBooking4 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Review4 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Review4?.setBooking)
                {
                    await
                    Review4.
                    setBooking(relatedBooking4);
                }
            
        }
        
    
        
            
            async function associateReviewWithTutor() {
            
                const relatedTutor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review0 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Review0?.setTutor)
                {
                    await
                    Review0.
                    setTutor(relatedTutor0);
                }
            
                const relatedTutor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review1 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Review1?.setTutor)
                {
                    await
                    Review1.
                    setTutor(relatedTutor1);
                }
            
                const relatedTutor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review2 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Review2?.setTutor)
                {
                    await
                    Review2.
                    setTutor(relatedTutor2);
                }
            
                const relatedTutor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review3 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Review3?.setTutor)
                {
                    await
                    Review3.
                    setTutor(relatedTutor3);
                }
            
                const relatedTutor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review4 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Review4?.setTutor)
                {
                    await
                    Review4.
                    setTutor(relatedTutor4);
                }
            
        }
        
    
        
            
            async function associateReviewWithLearner() {
            
                const relatedLearner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review0 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Review0?.setLearner)
                {
                    await
                    Review0.
                    setLearner(relatedLearner0);
                }
            
                const relatedLearner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review1 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Review1?.setLearner)
                {
                    await
                    Review1.
                    setLearner(relatedLearner1);
                }
            
                const relatedLearner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review2 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Review2?.setLearner)
                {
                    await
                    Review2.
                    setLearner(relatedLearner2);
                }
            
                const relatedLearner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review3 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Review3?.setLearner)
                {
                    await
                    Review3.
                    setLearner(relatedLearner3);
                }
            
                const relatedLearner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review4 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Review4?.setLearner)
                {
                    await
                    Review4.
                    setLearner(relatedLearner4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateNoteWithBooking() {
            
                const relatedBooking0 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Note0 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Note0?.setBooking)
                {
                    await
                    Note0.
                    setBooking(relatedBooking0);
                }
            
                const relatedBooking1 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Note1 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Note1?.setBooking)
                {
                    await
                    Note1.
                    setBooking(relatedBooking1);
                }
            
                const relatedBooking2 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Note2 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Note2?.setBooking)
                {
                    await
                    Note2.
                    setBooking(relatedBooking2);
                }
            
                const relatedBooking3 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Note3 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Note3?.setBooking)
                {
                    await
                    Note3.
                    setBooking(relatedBooking3);
                }
            
                const relatedBooking4 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Note4 = await Notes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Note4?.setBooking)
                {
                    await
                    Note4.
                    setBooking(relatedBooking4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDisputeWithBooking() {
            
                const relatedBooking0 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Dispute0 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Dispute0?.setBooking)
                {
                    await
                    Dispute0.
                    setBooking(relatedBooking0);
                }
            
                const relatedBooking1 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Dispute1 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Dispute1?.setBooking)
                {
                    await
                    Dispute1.
                    setBooking(relatedBooking1);
                }
            
                const relatedBooking2 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Dispute2 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Dispute2?.setBooking)
                {
                    await
                    Dispute2.
                    setBooking(relatedBooking2);
                }
            
                const relatedBooking3 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Dispute3 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Dispute3?.setBooking)
                {
                    await
                    Dispute3.
                    setBooking(relatedBooking3);
                }
            
                const relatedBooking4 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Dispute4 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Dispute4?.setBooking)
                {
                    await
                    Dispute4.
                    setBooking(relatedBooking4);
                }
            
        }
        
    
        
            
            async function associateDisputeWithOpened_by() {
            
                const relatedOpened_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute0 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Dispute0?.setOpened_by)
                {
                    await
                    Dispute0.
                    setOpened_by(relatedOpened_by0);
                }
            
                const relatedOpened_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute1 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Dispute1?.setOpened_by)
                {
                    await
                    Dispute1.
                    setOpened_by(relatedOpened_by1);
                }
            
                const relatedOpened_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute2 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Dispute2?.setOpened_by)
                {
                    await
                    Dispute2.
                    setOpened_by(relatedOpened_by2);
                }
            
                const relatedOpened_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute3 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Dispute3?.setOpened_by)
                {
                    await
                    Dispute3.
                    setOpened_by(relatedOpened_by3);
                }
            
                const relatedOpened_by4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute4 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Dispute4?.setOpened_by)
                {
                    await
                    Dispute4.
                    setOpened_by(relatedOpened_by4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDisputeWithResolved_by() {
            
                const relatedResolved_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute0 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Dispute0?.setResolved_by)
                {
                    await
                    Dispute0.
                    setResolved_by(relatedResolved_by0);
                }
            
                const relatedResolved_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute1 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Dispute1?.setResolved_by)
                {
                    await
                    Dispute1.
                    setResolved_by(relatedResolved_by1);
                }
            
                const relatedResolved_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute2 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Dispute2?.setResolved_by)
                {
                    await
                    Dispute2.
                    setResolved_by(relatedResolved_by2);
                }
            
                const relatedResolved_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute3 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Dispute3?.setResolved_by)
                {
                    await
                    Dispute3.
                    setResolved_by(relatedResolved_by3);
                }
            
                const relatedResolved_by4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute4 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Dispute4?.setResolved_by)
                {
                    await
                    Dispute4.
                    setResolved_by(relatedResolved_by4);
                }
            
        }
        
    
        
    

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

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAdminAuditLogWithAdmin_user() {
            
                const relatedAdmin_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog0 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AdminAuditLog0?.setAdmin_user)
                {
                    await
                    AdminAuditLog0.
                    setAdmin_user(relatedAdmin_user0);
                }
            
                const relatedAdmin_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog1 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AdminAuditLog1?.setAdmin_user)
                {
                    await
                    AdminAuditLog1.
                    setAdmin_user(relatedAdmin_user1);
                }
            
                const relatedAdmin_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog2 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AdminAuditLog2?.setAdmin_user)
                {
                    await
                    AdminAuditLog2.
                    setAdmin_user(relatedAdmin_user2);
                }
            
                const relatedAdmin_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog3 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AdminAuditLog3?.setAdmin_user)
                {
                    await
                    AdminAuditLog3.
                    setAdmin_user(relatedAdmin_user3);
                }
            
                const relatedAdmin_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AdminAuditLog4 = await AdminAuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AdminAuditLog4?.setAdmin_user)
                {
                    await
                    AdminAuditLog4.
                    setAdmin_user(relatedAdmin_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserLoginHistoryWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLoginHistory0 = await UserLoginHistory.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserLoginHistory0?.setUser)
                {
                    await
                    UserLoginHistory0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLoginHistory1 = await UserLoginHistory.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserLoginHistory1?.setUser)
                {
                    await
                    UserLoginHistory1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLoginHistory2 = await UserLoginHistory.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserLoginHistory2?.setUser)
                {
                    await
                    UserLoginHistory2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLoginHistory3 = await UserLoginHistory.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserLoginHistory3?.setUser)
                {
                    await
                    UserLoginHistory3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserLoginHistory4 = await UserLoginHistory.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserLoginHistory4?.setUser)
                {
                    await
                    UserLoginHistory4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateInviteWithSender() {
            
                const relatedSender0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite0 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invite0?.setSender)
                {
                    await
                    Invite0.
                    setSender(relatedSender0);
                }
            
                const relatedSender1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite1 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invite1?.setSender)
                {
                    await
                    Invite1.
                    setSender(relatedSender1);
                }
            
                const relatedSender2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite2 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invite2?.setSender)
                {
                    await
                    Invite2.
                    setSender(relatedSender2);
                }
            
                const relatedSender3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite3 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invite3?.setSender)
                {
                    await
                    Invite3.
                    setSender(relatedSender3);
                }
            
                const relatedSender4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite4 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invite4?.setSender)
                {
                    await
                    Invite4.
                    setSender(relatedSender4);
                }
            
        }
        
    
        
            
            async function associateInviteWithReceiver() {
            
                const relatedReceiver0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite0 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invite0?.setReceiver)
                {
                    await
                    Invite0.
                    setReceiver(relatedReceiver0);
                }
            
                const relatedReceiver1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite1 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invite1?.setReceiver)
                {
                    await
                    Invite1.
                    setReceiver(relatedReceiver1);
                }
            
                const relatedReceiver2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite2 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invite2?.setReceiver)
                {
                    await
                    Invite2.
                    setReceiver(relatedReceiver2);
                }
            
                const relatedReceiver3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite3 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invite3?.setReceiver)
                {
                    await
                    Invite3.
                    setReceiver(relatedReceiver3);
                }
            
                const relatedReceiver4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Invite4 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invite4?.setReceiver)
                {
                    await
                    Invite4.
                    setReceiver(relatedReceiver4);
                }
            
        }
        
    
        
            
            async function associateInviteWithGig() {
            
                const relatedGig0 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Invite0 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invite0?.setGig)
                {
                    await
                    Invite0.
                    setGig(relatedGig0);
                }
            
                const relatedGig1 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Invite1 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invite1?.setGig)
                {
                    await
                    Invite1.
                    setGig(relatedGig1);
                }
            
                const relatedGig2 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Invite2 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invite2?.setGig)
                {
                    await
                    Invite2.
                    setGig(relatedGig2);
                }
            
                const relatedGig3 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Invite3 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invite3?.setGig)
                {
                    await
                    Invite3.
                    setGig(relatedGig3);
                }
            
                const relatedGig4 = await Gigs.findOne({
                    offset: Math.floor(Math.random() * (await Gigs.count())),
                });
                const Invite4 = await Invites.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invite4?.setGig)
                {
                    await
                    Invite4.
                    setGig(relatedGig4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateSpaceWithCategory() {
            
                const relatedCategory0 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Space0 = await Spaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Space0?.setCategory)
                {
                    await
                    Space0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Space1 = await Spaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Space1?.setCategory)
                {
                    await
                    Space1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Space2 = await Spaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Space2?.setCategory)
                {
                    await
                    Space2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Space3 = await Spaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Space3?.setCategory)
                {
                    await
                    Space3.
                    setCategory(relatedCategory3);
                }
            
                const relatedCategory4 = await SubjectCategories.findOne({
                    offset: Math.floor(Math.random() * (await SubjectCategories.count())),
                });
                const Space4 = await Spaces.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Space4?.setCategory)
                {
                    await
                    Space4.
                    setCategory(relatedCategory4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateSpaceMembershipWithSpace() {
            
                const relatedSpace0 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const SpaceMembership0 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SpaceMembership0?.setSpace)
                {
                    await
                    SpaceMembership0.
                    setSpace(relatedSpace0);
                }
            
                const relatedSpace1 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const SpaceMembership1 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SpaceMembership1?.setSpace)
                {
                    await
                    SpaceMembership1.
                    setSpace(relatedSpace1);
                }
            
                const relatedSpace2 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const SpaceMembership2 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SpaceMembership2?.setSpace)
                {
                    await
                    SpaceMembership2.
                    setSpace(relatedSpace2);
                }
            
                const relatedSpace3 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const SpaceMembership3 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SpaceMembership3?.setSpace)
                {
                    await
                    SpaceMembership3.
                    setSpace(relatedSpace3);
                }
            
                const relatedSpace4 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const SpaceMembership4 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SpaceMembership4?.setSpace)
                {
                    await
                    SpaceMembership4.
                    setSpace(relatedSpace4);
                }
            
        }
        
    
        
            
            async function associateSpaceMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SpaceMembership0 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SpaceMembership0?.setUser)
                {
                    await
                    SpaceMembership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SpaceMembership1 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SpaceMembership1?.setUser)
                {
                    await
                    SpaceMembership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SpaceMembership2 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SpaceMembership2?.setUser)
                {
                    await
                    SpaceMembership2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SpaceMembership3 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SpaceMembership3?.setUser)
                {
                    await
                    SpaceMembership3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SpaceMembership4 = await SpaceMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SpaceMembership4?.setUser)
                {
                    await
                    SpaceMembership4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCommunityPostWithSpace() {
            
                const relatedSpace0 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const CommunityPost0 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityPost0?.setSpace)
                {
                    await
                    CommunityPost0.
                    setSpace(relatedSpace0);
                }
            
                const relatedSpace1 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const CommunityPost1 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityPost1?.setSpace)
                {
                    await
                    CommunityPost1.
                    setSpace(relatedSpace1);
                }
            
                const relatedSpace2 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const CommunityPost2 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityPost2?.setSpace)
                {
                    await
                    CommunityPost2.
                    setSpace(relatedSpace2);
                }
            
                const relatedSpace3 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const CommunityPost3 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityPost3?.setSpace)
                {
                    await
                    CommunityPost3.
                    setSpace(relatedSpace3);
                }
            
                const relatedSpace4 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const CommunityPost4 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityPost4?.setSpace)
                {
                    await
                    CommunityPost4.
                    setSpace(relatedSpace4);
                }
            
        }
        
    
        
            
            async function associateCommunityPostWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityPost0 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityPost0?.setAuthor)
                {
                    await
                    CommunityPost0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityPost1 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityPost1?.setAuthor)
                {
                    await
                    CommunityPost1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityPost2 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityPost2?.setAuthor)
                {
                    await
                    CommunityPost2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityPost3 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityPost3?.setAuthor)
                {
                    await
                    CommunityPost3.
                    setAuthor(relatedAuthor3);
                }
            
                const relatedAuthor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityPost4 = await CommunityPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityPost4?.setAuthor)
                {
                    await
                    CommunityPost4.
                    setAuthor(relatedAuthor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCommunityCommentWithPost() {
            
                const relatedPost0 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityComment0 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityComment0?.setPost)
                {
                    await
                    CommunityComment0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityComment1 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityComment1?.setPost)
                {
                    await
                    CommunityComment1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityComment2 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityComment2?.setPost)
                {
                    await
                    CommunityComment2.
                    setPost(relatedPost2);
                }
            
                const relatedPost3 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityComment3 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityComment3?.setPost)
                {
                    await
                    CommunityComment3.
                    setPost(relatedPost3);
                }
            
                const relatedPost4 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityComment4 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityComment4?.setPost)
                {
                    await
                    CommunityComment4.
                    setPost(relatedPost4);
                }
            
        }
        
    
        
            
            async function associateCommunityCommentWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityComment0 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityComment0?.setAuthor)
                {
                    await
                    CommunityComment0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityComment1 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityComment1?.setAuthor)
                {
                    await
                    CommunityComment1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityComment2 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityComment2?.setAuthor)
                {
                    await
                    CommunityComment2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityComment3 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityComment3?.setAuthor)
                {
                    await
                    CommunityComment3.
                    setAuthor(relatedAuthor3);
                }
            
                const relatedAuthor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityComment4 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityComment4?.setAuthor)
                {
                    await
                    CommunityComment4.
                    setAuthor(relatedAuthor4);
                }
            
        }
        
    
        
            
            async function associateCommunityCommentWithParent_comment() {
            
                const relatedParent_comment0 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityComment0 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityComment0?.setParent_comment)
                {
                    await
                    CommunityComment0.
                    setParent_comment(relatedParent_comment0);
                }
            
                const relatedParent_comment1 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityComment1 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityComment1?.setParent_comment)
                {
                    await
                    CommunityComment1.
                    setParent_comment(relatedParent_comment1);
                }
            
                const relatedParent_comment2 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityComment2 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityComment2?.setParent_comment)
                {
                    await
                    CommunityComment2.
                    setParent_comment(relatedParent_comment2);
                }
            
                const relatedParent_comment3 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityComment3 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityComment3?.setParent_comment)
                {
                    await
                    CommunityComment3.
                    setParent_comment(relatedParent_comment3);
                }
            
                const relatedParent_comment4 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityComment4 = await CommunityComments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityComment4?.setParent_comment)
                {
                    await
                    CommunityComment4.
                    setParent_comment(relatedParent_comment4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCommunityReactionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReaction0 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityReaction0?.setUser)
                {
                    await
                    CommunityReaction0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReaction1 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityReaction1?.setUser)
                {
                    await
                    CommunityReaction1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReaction2 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityReaction2?.setUser)
                {
                    await
                    CommunityReaction2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReaction3 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityReaction3?.setUser)
                {
                    await
                    CommunityReaction3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReaction4 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityReaction4?.setUser)
                {
                    await
                    CommunityReaction4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateCommunityReactionWithPost() {
            
                const relatedPost0 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityReaction0 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityReaction0?.setPost)
                {
                    await
                    CommunityReaction0.
                    setPost(relatedPost0);
                }
            
                const relatedPost1 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityReaction1 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityReaction1?.setPost)
                {
                    await
                    CommunityReaction1.
                    setPost(relatedPost1);
                }
            
                const relatedPost2 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityReaction2 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityReaction2?.setPost)
                {
                    await
                    CommunityReaction2.
                    setPost(relatedPost2);
                }
            
                const relatedPost3 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityReaction3 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityReaction3?.setPost)
                {
                    await
                    CommunityReaction3.
                    setPost(relatedPost3);
                }
            
                const relatedPost4 = await CommunityPosts.findOne({
                    offset: Math.floor(Math.random() * (await CommunityPosts.count())),
                });
                const CommunityReaction4 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityReaction4?.setPost)
                {
                    await
                    CommunityReaction4.
                    setPost(relatedPost4);
                }
            
        }
        
    
        
            
            async function associateCommunityReactionWithComment() {
            
                const relatedComment0 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityReaction0 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityReaction0?.setComment)
                {
                    await
                    CommunityReaction0.
                    setComment(relatedComment0);
                }
            
                const relatedComment1 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityReaction1 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityReaction1?.setComment)
                {
                    await
                    CommunityReaction1.
                    setComment(relatedComment1);
                }
            
                const relatedComment2 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityReaction2 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityReaction2?.setComment)
                {
                    await
                    CommunityReaction2.
                    setComment(relatedComment2);
                }
            
                const relatedComment3 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityReaction3 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityReaction3?.setComment)
                {
                    await
                    CommunityReaction3.
                    setComment(relatedComment3);
                }
            
                const relatedComment4 = await CommunityComments.findOne({
                    offset: Math.floor(Math.random() * (await CommunityComments.count())),
                });
                const CommunityReaction4 = await CommunityReactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityReaction4?.setComment)
                {
                    await
                    CommunityReaction4.
                    setComment(relatedComment4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateCommunityReportWithReporter() {
            
                const relatedReporter0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport0 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityReport0?.setReporter)
                {
                    await
                    CommunityReport0.
                    setReporter(relatedReporter0);
                }
            
                const relatedReporter1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport1 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityReport1?.setReporter)
                {
                    await
                    CommunityReport1.
                    setReporter(relatedReporter1);
                }
            
                const relatedReporter2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport2 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityReport2?.setReporter)
                {
                    await
                    CommunityReport2.
                    setReporter(relatedReporter2);
                }
            
                const relatedReporter3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport3 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityReport3?.setReporter)
                {
                    await
                    CommunityReport3.
                    setReporter(relatedReporter3);
                }
            
                const relatedReporter4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport4 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityReport4?.setReporter)
                {
                    await
                    CommunityReport4.
                    setReporter(relatedReporter4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCommunityReportWithResolved_by() {
            
                const relatedResolved_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport0 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CommunityReport0?.setResolved_by)
                {
                    await
                    CommunityReport0.
                    setResolved_by(relatedResolved_by0);
                }
            
                const relatedResolved_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport1 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CommunityReport1?.setResolved_by)
                {
                    await
                    CommunityReport1.
                    setResolved_by(relatedResolved_by1);
                }
            
                const relatedResolved_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport2 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CommunityReport2?.setResolved_by)
                {
                    await
                    CommunityReport2.
                    setResolved_by(relatedResolved_by2);
                }
            
                const relatedResolved_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport3 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CommunityReport3?.setResolved_by)
                {
                    await
                    CommunityReport3.
                    setResolved_by(relatedResolved_by3);
                }
            
                const relatedResolved_by4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CommunityReport4 = await CommunityReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CommunityReport4?.setResolved_by)
                {
                    await
                    CommunityReport4.
                    setResolved_by(relatedResolved_by4);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateChallengeParticipationWithChallenge() {
            
                const relatedChallenge0 = await WeeklyChallenges.findOne({
                    offset: Math.floor(Math.random() * (await WeeklyChallenges.count())),
                });
                const ChallengeParticipation0 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChallengeParticipation0?.setChallenge)
                {
                    await
                    ChallengeParticipation0.
                    setChallenge(relatedChallenge0);
                }
            
                const relatedChallenge1 = await WeeklyChallenges.findOne({
                    offset: Math.floor(Math.random() * (await WeeklyChallenges.count())),
                });
                const ChallengeParticipation1 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChallengeParticipation1?.setChallenge)
                {
                    await
                    ChallengeParticipation1.
                    setChallenge(relatedChallenge1);
                }
            
                const relatedChallenge2 = await WeeklyChallenges.findOne({
                    offset: Math.floor(Math.random() * (await WeeklyChallenges.count())),
                });
                const ChallengeParticipation2 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChallengeParticipation2?.setChallenge)
                {
                    await
                    ChallengeParticipation2.
                    setChallenge(relatedChallenge2);
                }
            
                const relatedChallenge3 = await WeeklyChallenges.findOne({
                    offset: Math.floor(Math.random() * (await WeeklyChallenges.count())),
                });
                const ChallengeParticipation3 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChallengeParticipation3?.setChallenge)
                {
                    await
                    ChallengeParticipation3.
                    setChallenge(relatedChallenge3);
                }
            
                const relatedChallenge4 = await WeeklyChallenges.findOne({
                    offset: Math.floor(Math.random() * (await WeeklyChallenges.count())),
                });
                const ChallengeParticipation4 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChallengeParticipation4?.setChallenge)
                {
                    await
                    ChallengeParticipation4.
                    setChallenge(relatedChallenge4);
                }
            
        }
        
    
        
            
            async function associateChallengeParticipationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChallengeParticipation0 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChallengeParticipation0?.setUser)
                {
                    await
                    ChallengeParticipation0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChallengeParticipation1 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChallengeParticipation1?.setUser)
                {
                    await
                    ChallengeParticipation1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChallengeParticipation2 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChallengeParticipation2?.setUser)
                {
                    await
                    ChallengeParticipation2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChallengeParticipation3 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChallengeParticipation3?.setUser)
                {
                    await
                    ChallengeParticipation3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChallengeParticipation4 = await ChallengeParticipations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChallengeParticipation4?.setUser)
                {
                    await
                    ChallengeParticipation4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserGamificationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserGamification0 = await UserGamification.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserGamification0?.setUser)
                {
                    await
                    UserGamification0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserGamification1 = await UserGamification.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserGamification1?.setUser)
                {
                    await
                    UserGamification1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserGamification2 = await UserGamification.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserGamification2?.setUser)
                {
                    await
                    UserGamification2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserGamification3 = await UserGamification.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserGamification3?.setUser)
                {
                    await
                    UserGamification3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserGamification4 = await UserGamification.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserGamification4?.setUser)
                {
                    await
                    UserGamification4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

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

    
    
    
        
    
        
            
            async function associateStudyGroupWithSubject() {
            
                const relatedSubject0 = await Subjects.findOne({
                    offset: Math.floor(Math.random() * (await Subjects.count())),
                });
                const StudyGroup0 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroup0?.setSubject)
                {
                    await
                    StudyGroup0.
                    setSubject(relatedSubject0);
                }
            
                const relatedSubject1 = await Subjects.findOne({
                    offset: Math.floor(Math.random() * (await Subjects.count())),
                });
                const StudyGroup1 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroup1?.setSubject)
                {
                    await
                    StudyGroup1.
                    setSubject(relatedSubject1);
                }
            
                const relatedSubject2 = await Subjects.findOne({
                    offset: Math.floor(Math.random() * (await Subjects.count())),
                });
                const StudyGroup2 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroup2?.setSubject)
                {
                    await
                    StudyGroup2.
                    setSubject(relatedSubject2);
                }
            
                const relatedSubject3 = await Subjects.findOne({
                    offset: Math.floor(Math.random() * (await Subjects.count())),
                });
                const StudyGroup3 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroup3?.setSubject)
                {
                    await
                    StudyGroup3.
                    setSubject(relatedSubject3);
                }
            
                const relatedSubject4 = await Subjects.findOne({
                    offset: Math.floor(Math.random() * (await Subjects.count())),
                });
                const StudyGroup4 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroup4?.setSubject)
                {
                    await
                    StudyGroup4.
                    setSubject(relatedSubject4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateStudyGroupWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroup0 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroup0?.setOwner)
                {
                    await
                    StudyGroup0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroup1 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroup1?.setOwner)
                {
                    await
                    StudyGroup1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroup2 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroup2?.setOwner)
                {
                    await
                    StudyGroup2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroup3 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroup3?.setOwner)
                {
                    await
                    StudyGroup3.
                    setOwner(relatedOwner3);
                }
            
                const relatedOwner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroup4 = await StudyGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroup4?.setOwner)
                {
                    await
                    StudyGroup4.
                    setOwner(relatedOwner4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateStudyGroupMembershipWithStudy_group() {
            
                const relatedStudy_group0 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMembership0 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroupMembership0?.setStudy_group)
                {
                    await
                    StudyGroupMembership0.
                    setStudy_group(relatedStudy_group0);
                }
            
                const relatedStudy_group1 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMembership1 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroupMembership1?.setStudy_group)
                {
                    await
                    StudyGroupMembership1.
                    setStudy_group(relatedStudy_group1);
                }
            
                const relatedStudy_group2 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMembership2 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroupMembership2?.setStudy_group)
                {
                    await
                    StudyGroupMembership2.
                    setStudy_group(relatedStudy_group2);
                }
            
                const relatedStudy_group3 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMembership3 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroupMembership3?.setStudy_group)
                {
                    await
                    StudyGroupMembership3.
                    setStudy_group(relatedStudy_group3);
                }
            
                const relatedStudy_group4 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMembership4 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroupMembership4?.setStudy_group)
                {
                    await
                    StudyGroupMembership4.
                    setStudy_group(relatedStudy_group4);
                }
            
        }
        
    
        
            
            async function associateStudyGroupMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMembership0 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroupMembership0?.setUser)
                {
                    await
                    StudyGroupMembership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMembership1 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroupMembership1?.setUser)
                {
                    await
                    StudyGroupMembership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMembership2 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroupMembership2?.setUser)
                {
                    await
                    StudyGroupMembership2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMembership3 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroupMembership3?.setUser)
                {
                    await
                    StudyGroupMembership3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMembership4 = await StudyGroupMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroupMembership4?.setUser)
                {
                    await
                    StudyGroupMembership4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateStudyGroupPostWithStudy_group() {
            
                const relatedStudy_group0 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupPost0 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroupPost0?.setStudy_group)
                {
                    await
                    StudyGroupPost0.
                    setStudy_group(relatedStudy_group0);
                }
            
                const relatedStudy_group1 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupPost1 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroupPost1?.setStudy_group)
                {
                    await
                    StudyGroupPost1.
                    setStudy_group(relatedStudy_group1);
                }
            
                const relatedStudy_group2 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupPost2 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroupPost2?.setStudy_group)
                {
                    await
                    StudyGroupPost2.
                    setStudy_group(relatedStudy_group2);
                }
            
                const relatedStudy_group3 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupPost3 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroupPost3?.setStudy_group)
                {
                    await
                    StudyGroupPost3.
                    setStudy_group(relatedStudy_group3);
                }
            
                const relatedStudy_group4 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupPost4 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroupPost4?.setStudy_group)
                {
                    await
                    StudyGroupPost4.
                    setStudy_group(relatedStudy_group4);
                }
            
        }
        
    
        
            
            async function associateStudyGroupPostWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupPost0 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroupPost0?.setAuthor)
                {
                    await
                    StudyGroupPost0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupPost1 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroupPost1?.setAuthor)
                {
                    await
                    StudyGroupPost1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupPost2 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroupPost2?.setAuthor)
                {
                    await
                    StudyGroupPost2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupPost3 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroupPost3?.setAuthor)
                {
                    await
                    StudyGroupPost3.
                    setAuthor(relatedAuthor3);
                }
            
                const relatedAuthor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupPost4 = await StudyGroupPosts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroupPost4?.setAuthor)
                {
                    await
                    StudyGroupPost4.
                    setAuthor(relatedAuthor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateStudyGroupMessageWithStudy_group() {
            
                const relatedStudy_group0 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMessage0 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroupMessage0?.setStudy_group)
                {
                    await
                    StudyGroupMessage0.
                    setStudy_group(relatedStudy_group0);
                }
            
                const relatedStudy_group1 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMessage1 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroupMessage1?.setStudy_group)
                {
                    await
                    StudyGroupMessage1.
                    setStudy_group(relatedStudy_group1);
                }
            
                const relatedStudy_group2 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMessage2 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroupMessage2?.setStudy_group)
                {
                    await
                    StudyGroupMessage2.
                    setStudy_group(relatedStudy_group2);
                }
            
                const relatedStudy_group3 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMessage3 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroupMessage3?.setStudy_group)
                {
                    await
                    StudyGroupMessage3.
                    setStudy_group(relatedStudy_group3);
                }
            
                const relatedStudy_group4 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupMessage4 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroupMessage4?.setStudy_group)
                {
                    await
                    StudyGroupMessage4.
                    setStudy_group(relatedStudy_group4);
                }
            
        }
        
    
        
            
            async function associateStudyGroupMessageWithSender() {
            
                const relatedSender0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMessage0 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroupMessage0?.setSender)
                {
                    await
                    StudyGroupMessage0.
                    setSender(relatedSender0);
                }
            
                const relatedSender1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMessage1 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroupMessage1?.setSender)
                {
                    await
                    StudyGroupMessage1.
                    setSender(relatedSender1);
                }
            
                const relatedSender2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMessage2 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroupMessage2?.setSender)
                {
                    await
                    StudyGroupMessage2.
                    setSender(relatedSender2);
                }
            
                const relatedSender3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMessage3 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroupMessage3?.setSender)
                {
                    await
                    StudyGroupMessage3.
                    setSender(relatedSender3);
                }
            
                const relatedSender4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupMessage4 = await StudyGroupMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroupMessage4?.setSender)
                {
                    await
                    StudyGroupMessage4.
                    setSender(relatedSender4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateStudyGroupResourceWithStudy_group() {
            
                const relatedStudy_group0 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupResource0 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroupResource0?.setStudy_group)
                {
                    await
                    StudyGroupResource0.
                    setStudy_group(relatedStudy_group0);
                }
            
                const relatedStudy_group1 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupResource1 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroupResource1?.setStudy_group)
                {
                    await
                    StudyGroupResource1.
                    setStudy_group(relatedStudy_group1);
                }
            
                const relatedStudy_group2 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupResource2 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroupResource2?.setStudy_group)
                {
                    await
                    StudyGroupResource2.
                    setStudy_group(relatedStudy_group2);
                }
            
                const relatedStudy_group3 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupResource3 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroupResource3?.setStudy_group)
                {
                    await
                    StudyGroupResource3.
                    setStudy_group(relatedStudy_group3);
                }
            
                const relatedStudy_group4 = await StudyGroups.findOne({
                    offset: Math.floor(Math.random() * (await StudyGroups.count())),
                });
                const StudyGroupResource4 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroupResource4?.setStudy_group)
                {
                    await
                    StudyGroupResource4.
                    setStudy_group(relatedStudy_group4);
                }
            
        }
        
    
        
            
            async function associateStudyGroupResourceWithAdded_by() {
            
                const relatedAdded_by0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupResource0 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StudyGroupResource0?.setAdded_by)
                {
                    await
                    StudyGroupResource0.
                    setAdded_by(relatedAdded_by0);
                }
            
                const relatedAdded_by1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupResource1 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StudyGroupResource1?.setAdded_by)
                {
                    await
                    StudyGroupResource1.
                    setAdded_by(relatedAdded_by1);
                }
            
                const relatedAdded_by2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupResource2 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StudyGroupResource2?.setAdded_by)
                {
                    await
                    StudyGroupResource2.
                    setAdded_by(relatedAdded_by2);
                }
            
                const relatedAdded_by3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupResource3 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StudyGroupResource3?.setAdded_by)
                {
                    await
                    StudyGroupResource3.
                    setAdded_by(relatedAdded_by3);
                }
            
                const relatedAdded_by4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StudyGroupResource4 = await StudyGroupResources.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StudyGroupResource4?.setAdded_by)
                {
                    await
                    StudyGroupResource4.
                    setAdded_by(relatedAdded_by4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
            
            async function associateLiveEventWithHost() {
            
                const relatedHost0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LiveEvent0 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LiveEvent0?.setHost)
                {
                    await
                    LiveEvent0.
                    setHost(relatedHost0);
                }
            
                const relatedHost1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LiveEvent1 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LiveEvent1?.setHost)
                {
                    await
                    LiveEvent1.
                    setHost(relatedHost1);
                }
            
                const relatedHost2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LiveEvent2 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LiveEvent2?.setHost)
                {
                    await
                    LiveEvent2.
                    setHost(relatedHost2);
                }
            
                const relatedHost3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LiveEvent3 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LiveEvent3?.setHost)
                {
                    await
                    LiveEvent3.
                    setHost(relatedHost3);
                }
            
                const relatedHost4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LiveEvent4 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LiveEvent4?.setHost)
                {
                    await
                    LiveEvent4.
                    setHost(relatedHost4);
                }
            
        }
        
    
        
            
            async function associateLiveEventWithSpace() {
            
                const relatedSpace0 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const LiveEvent0 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LiveEvent0?.setSpace)
                {
                    await
                    LiveEvent0.
                    setSpace(relatedSpace0);
                }
            
                const relatedSpace1 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const LiveEvent1 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LiveEvent1?.setSpace)
                {
                    await
                    LiveEvent1.
                    setSpace(relatedSpace1);
                }
            
                const relatedSpace2 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const LiveEvent2 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LiveEvent2?.setSpace)
                {
                    await
                    LiveEvent2.
                    setSpace(relatedSpace2);
                }
            
                const relatedSpace3 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const LiveEvent3 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LiveEvent3?.setSpace)
                {
                    await
                    LiveEvent3.
                    setSpace(relatedSpace3);
                }
            
                const relatedSpace4 = await Spaces.findOne({
                    offset: Math.floor(Math.random() * (await Spaces.count())),
                });
                const LiveEvent4 = await LiveEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LiveEvent4?.setSpace)
                {
                    await
                    LiveEvent4.
                    setSpace(relatedSpace4);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateEventRsvpWithEvent() {
            
                const relatedEvent0 = await LiveEvents.findOne({
                    offset: Math.floor(Math.random() * (await LiveEvents.count())),
                });
                const EventRsvp0 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EventRsvp0?.setEvent)
                {
                    await
                    EventRsvp0.
                    setEvent(relatedEvent0);
                }
            
                const relatedEvent1 = await LiveEvents.findOne({
                    offset: Math.floor(Math.random() * (await LiveEvents.count())),
                });
                const EventRsvp1 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EventRsvp1?.setEvent)
                {
                    await
                    EventRsvp1.
                    setEvent(relatedEvent1);
                }
            
                const relatedEvent2 = await LiveEvents.findOne({
                    offset: Math.floor(Math.random() * (await LiveEvents.count())),
                });
                const EventRsvp2 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EventRsvp2?.setEvent)
                {
                    await
                    EventRsvp2.
                    setEvent(relatedEvent2);
                }
            
                const relatedEvent3 = await LiveEvents.findOne({
                    offset: Math.floor(Math.random() * (await LiveEvents.count())),
                });
                const EventRsvp3 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EventRsvp3?.setEvent)
                {
                    await
                    EventRsvp3.
                    setEvent(relatedEvent3);
                }
            
                const relatedEvent4 = await LiveEvents.findOne({
                    offset: Math.floor(Math.random() * (await LiveEvents.count())),
                });
                const EventRsvp4 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (EventRsvp4?.setEvent)
                {
                    await
                    EventRsvp4.
                    setEvent(relatedEvent4);
                }
            
        }
        
    
        
            
            async function associateEventRsvpWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EventRsvp0 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EventRsvp0?.setUser)
                {
                    await
                    EventRsvp0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EventRsvp1 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EventRsvp1?.setUser)
                {
                    await
                    EventRsvp1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EventRsvp2 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EventRsvp2?.setUser)
                {
                    await
                    EventRsvp2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EventRsvp3 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EventRsvp3?.setUser)
                {
                    await
                    EventRsvp3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EventRsvp4 = await EventRsvps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (EventRsvp4?.setUser)
                {
                    await
                    EventRsvp4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateCertificateWithBooking() {
            
                const relatedBooking0 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Certificate0 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Certificate0?.setBooking)
                {
                    await
                    Certificate0.
                    setBooking(relatedBooking0);
                }
            
                const relatedBooking1 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Certificate1 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Certificate1?.setBooking)
                {
                    await
                    Certificate1.
                    setBooking(relatedBooking1);
                }
            
                const relatedBooking2 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Certificate2 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Certificate2?.setBooking)
                {
                    await
                    Certificate2.
                    setBooking(relatedBooking2);
                }
            
                const relatedBooking3 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Certificate3 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Certificate3?.setBooking)
                {
                    await
                    Certificate3.
                    setBooking(relatedBooking3);
                }
            
                const relatedBooking4 = await Bookings.findOne({
                    offset: Math.floor(Math.random() * (await Bookings.count())),
                });
                const Certificate4 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Certificate4?.setBooking)
                {
                    await
                    Certificate4.
                    setBooking(relatedBooking4);
                }
            
        }
        
    
        
            
            async function associateCertificateWithLearner() {
            
                const relatedLearner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate0 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Certificate0?.setLearner)
                {
                    await
                    Certificate0.
                    setLearner(relatedLearner0);
                }
            
                const relatedLearner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate1 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Certificate1?.setLearner)
                {
                    await
                    Certificate1.
                    setLearner(relatedLearner1);
                }
            
                const relatedLearner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate2 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Certificate2?.setLearner)
                {
                    await
                    Certificate2.
                    setLearner(relatedLearner2);
                }
            
                const relatedLearner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate3 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Certificate3?.setLearner)
                {
                    await
                    Certificate3.
                    setLearner(relatedLearner3);
                }
            
                const relatedLearner4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate4 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Certificate4?.setLearner)
                {
                    await
                    Certificate4.
                    setLearner(relatedLearner4);
                }
            
        }
        
    
        
            
            async function associateCertificateWithTutor() {
            
                const relatedTutor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate0 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Certificate0?.setTutor)
                {
                    await
                    Certificate0.
                    setTutor(relatedTutor0);
                }
            
                const relatedTutor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate1 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Certificate1?.setTutor)
                {
                    await
                    Certificate1.
                    setTutor(relatedTutor1);
                }
            
                const relatedTutor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate2 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Certificate2?.setTutor)
                {
                    await
                    Certificate2.
                    setTutor(relatedTutor2);
                }
            
                const relatedTutor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate3 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Certificate3?.setTutor)
                {
                    await
                    Certificate3.
                    setTutor(relatedTutor3);
                }
            
                const relatedTutor4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Certificate4 = await Certificates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Certificate4?.setTutor)
                {
                    await
                    Certificate4.
                    setTutor(relatedTutor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await TutorProfiles.bulkCreate(TutorProfilesData);
                
            
            
                
                await LearnerProfiles.bulkCreate(LearnerProfilesData);
                
            
            
                
                await SubjectCategories.bulkCreate(SubjectCategoriesData);
                
            
            
                
                await Subjects.bulkCreate(SubjectsData);
                
            
            
                
                await Languages.bulkCreate(LanguagesData);
                
            
            
                
                await Gigs.bulkCreate(GigsData);
                
            
            
                
                await GigLevels.bulkCreate(GigLevelsData);
                
            
            
                
                await Tags.bulkCreate(TagsData);
                
            
            
                
                await Bookings.bulkCreate(BookingsData);
                
            
            
                
                await Conversations.bulkCreate(ConversationsData);
                
            
            
                
                await Messages.bulkCreate(MessagesData);
                
            
            
                
                await Reviews.bulkCreate(ReviewsData);
                
            
            
                
                await Notes.bulkCreate(NotesData);
                
            
            
                
                await Disputes.bulkCreate(DisputesData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            
                
                await PlatformConfig.bulkCreate(PlatformConfigData);
                
            
            
                
                await AdminAuditLogs.bulkCreate(AdminAuditLogsData);
                
            
            
                
                await UserLoginHistory.bulkCreate(UserLoginHistoryData);
                
            
            
                
                await Invites.bulkCreate(InvitesData);
                
            
            
                
                await Spaces.bulkCreate(SpacesData);
                
            
            
                
                await SpaceMemberships.bulkCreate(SpaceMembershipsData);
                
            
            
                
                await CommunityPosts.bulkCreate(CommunityPostsData);
                
            
            
                
                await CommunityComments.bulkCreate(CommunityCommentsData);
                
            
            
                
                await CommunityReactions.bulkCreate(CommunityReactionsData);
                
            
            
                
                await CommunityReports.bulkCreate(CommunityReportsData);
                
            
            
                
                await WeeklyChallenges.bulkCreate(WeeklyChallengesData);
                
            
            
                
                await ChallengeParticipations.bulkCreate(ChallengeParticipationsData);
                
            
            
                
                await UserGamification.bulkCreate(UserGamificationData);
                
            
            
                
                await Badges.bulkCreate(BadgesData);
                
            
            
                
                await UserBadges.bulkCreate(UserBadgesData);
                
            
            
                
                await StudyGroups.bulkCreate(StudyGroupsData);
                
            
            
                
                await StudyGroupMemberships.bulkCreate(StudyGroupMembershipsData);
                
            
            
                
                await StudyGroupPosts.bulkCreate(StudyGroupPostsData);
                
            
            
                
                await StudyGroupMessages.bulkCreate(StudyGroupMessagesData);
                
            
            
                
                await StudyGroupResources.bulkCreate(StudyGroupResourcesData);
                
            
            
                
                await LiveEvents.bulkCreate(LiveEventsData);
                
            
            
                
                await EventRsvps.bulkCreate(EventRsvpsData);
                
            
            
                
                await Certificates.bulkCreate(CertificatesData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                        
                        await associateTutorProfileWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLearnerProfileWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSubjectWithCategory(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateGigWithTutor_profile(),
                    
                
                    
                
                    
                
                    
                        
                        await associateGigWithCategory(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateGigLevelWithGig(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
            
                
                
                    
                        
                        await associateBookingWithLearner(),
                    
                
                    
                        
                        await associateBookingWithTutor(),
                    
                
                    
                        
                        await associateBookingWithGig(),
                    
                
                    
                        
                        await associateBookingWithGig_level(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateConversationWithTutor(),
                    
                
                    
                        
                        await associateConversationWithLearner(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMessageWithConversation(),
                    
                
                    
                        
                        await associateMessageWithSender(),
                    
                
                    
                        
                        await associateMessageWithReceiver(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReviewWithBooking(),
                    
                
                    
                        
                        await associateReviewWithTutor(),
                    
                
                    
                        
                        await associateReviewWithLearner(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNoteWithBooking(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDisputeWithBooking(),
                    
                
                    
                        
                        await associateDisputeWithOpened_by(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDisputeWithResolved_by(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateNotificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAdminAuditLogWithAdmin_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserLoginHistoryWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateInviteWithSender(),
                    
                
                    
                        
                        await associateInviteWithReceiver(),
                    
                
                    
                        
                        await associateInviteWithGig(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSpaceWithCategory(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSpaceMembershipWithSpace(),
                    
                
                    
                        
                        await associateSpaceMembershipWithUser(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCommunityPostWithSpace(),
                    
                
                    
                        
                        await associateCommunityPostWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCommunityCommentWithPost(),
                    
                
                    
                        
                        await associateCommunityCommentWithAuthor(),
                    
                
                    
                        
                        await associateCommunityCommentWithParent_comment(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCommunityReactionWithUser(),
                    
                
                    
                        
                        await associateCommunityReactionWithPost(),
                    
                
                    
                        
                        await associateCommunityReactionWithComment(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCommunityReportWithReporter(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCommunityReportWithResolved_by(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateChallengeParticipationWithChallenge(),
                    
                
                    
                        
                        await associateChallengeParticipationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserGamificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserBadgeWithUser(),
                    
                
                    
                        
                        await associateUserBadgeWithBadge(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateStudyGroupWithSubject(),
                    
                
                    
                
                    
                
                    
                        
                        await associateStudyGroupWithOwner(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateStudyGroupMembershipWithStudy_group(),
                    
                
                    
                        
                        await associateStudyGroupMembershipWithUser(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateStudyGroupPostWithStudy_group(),
                    
                
                    
                        
                        await associateStudyGroupPostWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateStudyGroupMessageWithStudy_group(),
                    
                
                    
                        
                        await associateStudyGroupMessageWithSender(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateStudyGroupResourceWithStudy_group(),
                    
                
                    
                        
                        await associateStudyGroupResourceWithAdded_by(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateLiveEventWithHost(),
                    
                
                    
                        
                        await associateLiveEventWithSpace(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateEventRsvpWithEvent(),
                    
                
                    
                        
                        await associateEventRsvpWithUser(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCertificateWithBooking(),
                    
                
                    
                        
                        await associateCertificateWithLearner(),
                    
                
                    
                        
                        await associateCertificateWithTutor(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('tutor_profiles', null, {});
            
            
            await queryInterface.bulkDelete('learner_profiles', null, {});
            
            
            await queryInterface.bulkDelete('subject_categories', null, {});
            
            
            await queryInterface.bulkDelete('subjects', null, {});
            
            
            await queryInterface.bulkDelete('languages', null, {});
            
            
            await queryInterface.bulkDelete('gigs', null, {});
            
            
            await queryInterface.bulkDelete('gig_levels', null, {});
            
            
            await queryInterface.bulkDelete('tags', null, {});
            
            
            await queryInterface.bulkDelete('bookings', null, {});
            
            
            await queryInterface.bulkDelete('conversations', null, {});
            
            
            await queryInterface.bulkDelete('messages', null, {});
            
            
            await queryInterface.bulkDelete('reviews', null, {});
            
            
            await queryInterface.bulkDelete('notes', null, {});
            
            
            await queryInterface.bulkDelete('disputes', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
            
            await queryInterface.bulkDelete('platform_config', null, {});
            
            
            await queryInterface.bulkDelete('admin_audit_logs', null, {});
            
            
            await queryInterface.bulkDelete('user_login_history', null, {});
            
            
            await queryInterface.bulkDelete('invites', null, {});
            
            
            await queryInterface.bulkDelete('spaces', null, {});
            
            
            await queryInterface.bulkDelete('space_memberships', null, {});
            
            
            await queryInterface.bulkDelete('community_posts', null, {});
            
            
            await queryInterface.bulkDelete('community_comments', null, {});
            
            
            await queryInterface.bulkDelete('community_reactions', null, {});
            
            
            await queryInterface.bulkDelete('community_reports', null, {});
            
            
            await queryInterface.bulkDelete('weekly_challenges', null, {});
            
            
            await queryInterface.bulkDelete('challenge_participations', null, {});
            
            
            await queryInterface.bulkDelete('user_gamification', null, {});
            
            
            await queryInterface.bulkDelete('badges', null, {});
            
            
            await queryInterface.bulkDelete('user_badges', null, {});
            
            
            await queryInterface.bulkDelete('study_groups', null, {});
            
            
            await queryInterface.bulkDelete('study_group_memberships', null, {});
            
            
            await queryInterface.bulkDelete('study_group_posts', null, {});
            
            
            await queryInterface.bulkDelete('study_group_messages', null, {});
            
            
            await queryInterface.bulkDelete('study_group_resources', null, {});
            
            
            await queryInterface.bulkDelete('live_events', null, {});
            
            
            await queryInterface.bulkDelete('event_rsvps', null, {});
            
            
            await queryInterface.bulkDelete('certificates', null, {});
            
        
    },
};