





















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






const PublicProfiles = db.public_profiles;

const PrivateProfiles = db.private_profiles;

const MembershipPlans = db.membership_plans;

const Memberships = db.memberships;

const StripeEvents = db.stripe_events;

const Courses = db.courses;

const Lessons = db.lessons;

const Enrollments = db.enrollments;

const LessonProgress = db.lesson_progress;

const Artifacts = db.artifacts;

const Trophies = db.trophies;

const UserTrophies = db.user_trophies;

const AiGateways = db.ai_gateways;

const UsageLimitPolicies = db.usage_limit_policies;

const AiTasks = db.ai_tasks;

const AiRequests = db.ai_requests;

const AiOutputs = db.ai_outputs;

const CoachingSessions = db.coaching_sessions;

const Messages = db.messages;

const ResumeDocuments = db.resume_documents;

const FeedbackEntries = db.feedback_entries;

const TrackingEvents = db.tracking_events;







const PublicProfilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Avery Chen",
            
        
    
        
        
            
                "headline": "Product-minded learner building an AI career path",
            
        
    
        
        
            
                "bio": "Exploring practical AI skills and building consistent learning habits. Sharing milestones and learnings along the way.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "location": "Seattle, WA",
            
        
    
        
        
            
                "public_slug": "avery-chen",
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Jordan Patel",
            
        
    
        
        
            
                "headline": "Career transition to data and AI",
            
        
    
        
        
            
                "bio": "Focused on building a strong foundation and completing Level 1 with real artifacts.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "location": "Austin, TX",
            
        
    
        
        
            
                "public_slug": "jordan-patel",
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Sam Rivera",
            
        
    
        
        
            
                "headline": "Ops professional learning AI workflows",
            
        
    
        
        
            
                "bio": "Interested in automations, better prompts, and measurable progress each week.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "location": "Chicago, IL",
            
        
    
        
        
            
                "public_slug": "sam-rivera",
            
        
    
        
        
            
                "is_public": false,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Taylor Morgan",
            
        
    
        
        
            
                "headline": "Marketing leader exploring AI upskilling",
            
        
    
        
        
            
                "bio": "Looking to validate a learning plan and keep momentum with a coach check-in.",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "location": "New York, NY",
            
        
    
        
        
            
                "public_slug": "taylor-morgan",
            
        
    
        
        
            
                "is_public": false,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const PrivateProfilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "primary_role": "student",
            
        
    
        
        
            
                "goals_summary": "Build a clear plan for transitioning into AI product roles within 6 months.",
            
        
    
        
        
            
                "focus_area": "AI product skills",
            
        
    
        
        
            
                "time_commitment": "4 hours per week",
            
        
    
        
        
            
                "constraints_notes": "Prefer short sessions on weekdays; longer session on Saturday.",
            
        
    
        
        
            
                "ai_profile_draft": "Draft profile emphasizing product experimentation, communication, and consistent practice.",
            
        
    
        
        
            
                "vision_statement": "In 6 months I will confidently ship AI-enabled prototypes and communicate results to stakeholders.",
            
        
    
        
        
            
                "onboarding_completed_at": new Date('2026-06-20T14:25:00Z'),
            
        
    
        
        
            
                "linked_accounts_intent": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "primary_role": "other",
            
        
    
        
        
            
                "goals_summary": "Move from customer support to junior data role; build portfolio artifacts.",
            
        
    
        
        
            
                "focus_area": "Data fundamentals",
            
        
    
        
        
            
                "time_commitment": "6 hours per week",
            
        
    
        
        
            
                "constraints_notes": "Need guidance on what to build first and how to present it.",
            
        
    
        
        
            
                "ai_profile_draft": "Draft profile focusing on analytical mindset, reliability, and structured learning plan.",
            
        
    
        
        
            
                "vision_statement": "I will complete Level 1 and publish 3 artifacts that demonstrate core data skills.",
            
        
    
        
        
            
                "onboarding_completed_at": new Date('2026-06-22T10:05:00Z'),
            
        
    
        
        
            
                "linked_accounts_intent": false,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "primary_role": "job_seeker",
            
        
    
        
        
            
                "goals_summary": "Use AI tools to improve operational workflows and reporting.",
            
        
    
        
        
            
                "focus_area": "Automation workflows",
            
        
    
        
        
            
                "time_commitment": "3 hours per week",
            
        
    
        
        
            
                "constraints_notes": "High workload; need minimal viable progress steps.",
            
        
    
        
        
            
                "ai_profile_draft": "Draft profile highlighting operational ownership, process improvement, and AI workflow adoption.",
            
        
    
        
        
            
                "vision_statement": "I will automate one recurring task per month and document the impact.",
            
        
    
        
        
            
                "onboarding_completed_at": new Date('2026-06-23T18:30:00Z'),
            
        
    
        
        
            
                "linked_accounts_intent": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "primary_role": "other",
            
        
    
        
        
            
                "goals_summary": "Understand AI capabilities to lead team adoption responsibly.",
            
        
    
        
        
            
                "focus_area": "AI strategy",
            
        
    
        
        
            
                "time_commitment": "2 hours per week",
            
        
    
        
        
            
                "constraints_notes": "Prefer executive summaries and checklists.",
            
        
    
        
        
            
                "ai_profile_draft": "Draft profile emphasizing leadership, responsible adoption, and outcome-driven learning.",
            
        
    
        
        
            
                "vision_statement": "I will lead a small pilot using AI tools with clear guardrails and metrics.",
            
        
    
        
        
            
                "onboarding_completed_at": new Date('2026-06-05T11:45:00Z'),
            
        
    
        
        
            
                "linked_accounts_intent": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const MembershipPlansData = [
    
    {
    
        
        
            
                "plan_name": "Starter Member",
            
        
    
        
        
            
                "plan_description": "Access Level 1 entry, initial lesson, Tutor support, and Star 1 eligibility.",
            
        
    
        
        
            
                "billing_interval": "month",
            
        
    
        
        
            
                "price_amount": 29.0,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "stripe_product_ref": "prod_starter_member",
            
        
    
        
        
            
                "stripe_price_ref": "price_starter_monthly",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "plan_name": "Pro Member",
            
        
    
        
        
            
                "plan_description": "Higher AI usage limits plus Learning Coach check-ins and enhanced support.",
            
        
    
        
        
            
                "billing_interval": "year",
            
        
    
        
        
            
                "price_amount": 59.0,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "stripe_product_ref": "prod_pro_member",
            
        
    
        
        
            
                "stripe_price_ref": "price_pro_monthly",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "plan_name": "Annual Member",
            
        
    
        
        
            
                "plan_description": "Full member access billed annually with a discount.",
            
        
    
        
        
            
                "billing_interval": "month",
            
        
    
        
        
            
                "price_amount": 499.0,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "stripe_product_ref": "prod_annual_member",
            
        
    
        
        
            
                "stripe_price_ref": "price_annual_yearly",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "plan_name": "Founding Member",
            
        
    
        
        
            
                "plan_description": "Limited early access tier with priority support and feedback loop.",
            
        
    
        
        
            
                "billing_interval": "month",
            
        
    
        
        
            
                "price_amount": 199.0,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "stripe_product_ref": "prod_founding_member",
            
        
    
        
        
            
                "stripe_price_ref": "price_founding_one_time",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const MembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "started_at": new Date('2026-06-21T12:00:00Z'),
            
        
    
        
        
            
                "current_period_end_at": new Date('2026-07-21T12:00:00Z'),
            
        
    
        
        
            
                "canceled_at": new Date('2026-08-01T12:00:00Z'),
            
        
    
        
        
            
                "stripe_customer_ref": "cus_avery_001",
            
        
    
        
        
            
                "stripe_subscription_ref": "sub_avery_001",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "started_at": new Date('2026-06-23T09:00:00Z'),
            
        
    
        
        
            
                "current_period_end_at": new Date('2026-07-23T09:00:00Z'),
            
        
    
        
        
            
                "canceled_at": new Date('2026-07-10T09:00:00Z'),
            
        
    
        
        
            
                "stripe_customer_ref": "cus_jordan_001",
            
        
    
        
        
            
                "stripe_subscription_ref": "sub_jordan_001",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "started_at": new Date('2026-06-10T15:30:00Z'),
            
        
    
        
        
            
                "current_period_end_at": new Date('2026-07-10T15:30:00Z'),
            
        
    
        
        
            
                "canceled_at": new Date('2026-07-15T15:30:00Z'),
            
        
    
        
        
            
                "stripe_customer_ref": "cus_sam_001",
            
        
    
        
        
            
                "stripe_subscription_ref": "sub_sam_001",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "trialing",
            
        
    
        
        
            
                "started_at": new Date('2026-05-01T10:00:00Z'),
            
        
    
        
        
            
                "current_period_end_at": new Date('2026-06-01T10:00:00Z'),
            
        
    
        
        
            
                "canceled_at": new Date('2026-05-20T10:00:00Z'),
            
        
    
        
        
            
                "stripe_customer_ref": "cus_taylor_001",
            
        
    
        
        
            
                "stripe_subscription_ref": "sub_taylor_001",
            
        
    
    },
    
];



const StripeEventsData = [
    
    {
    
        
        
            
                "event_ref": "evt_0001_checkout_completed",
            
        
    
        
        
            
                "event_type": "invoice.payment_failed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "received_at": new Date('2026-06-21T12:01:10Z'),
            
        
    
        
        
            
                "processed": true,
            
        
    
        
        
            
                "processing_notes": "Created membership and set status active.",
            
        
    
    },
    
    {
    
        
        
            
                "event_ref": "evt_0002_subscription_updated",
            
        
    
        
        
            
                "event_type": "invoice.payment_failed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "received_at": new Date('2026-06-23T09:01:45Z'),
            
        
    
        
        
            
                "processed": true,
            
        
    
        
        
            
                "processing_notes": "Trial started; current period end updated.",
            
        
    
    },
    
    {
    
        
        
            
                "event_ref": "evt_0003_invoice_failed",
            
        
    
        
        
            
                "event_type": "checkout.session.completed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "received_at": new Date('2026-06-11T15:31:20Z'),
            
        
    
        
        
            
                "processed": true,
            
        
    
        
        
            
                "processing_notes": "Marked membership past_due; notified user.",
            
        
    
    },
    
    {
    
        
        
            
                "event_ref": "evt_0004_subscription_deleted",
            
        
    
        
        
            
                "event_type": "payment_intent.payment_failed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "received_at": new Date('2026-05-20T10:02:05Z'),
            
        
    
        
        
            
                "processed": true,
            
        
    
        
        
            
                "processing_notes": "Canceled membership and revoked entitlement.",
            
        
    
    },
    
];



const CoursesData = [
    
    {
    
        
        
            
                "course_title": "Level 1: Foundations",
            
        
    
        
        
            
                "course_description": "Start here. Learn the basics, produce your first artifact, and unlock Star 1.",
            
        
    
        
        
            
                "level": "l3",
            
        
    
        
        
            
                "access_tier": "free",
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                "course_title": "Level 1: Quickstart",
            
        
    
        
        
            
                "course_description": "A short entry path to the first lesson and progress tracking.",
            
        
    
        
        
            
                "level": "l1",
            
        
    
        
        
            
                "access_tier": "member",
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                "course_title": "Level 2: Applied Projects",
            
        
    
        
        
            
                "course_description": "Practice by building small projects with coaching support.",
            
        
    
        
        
            
                "level": "l2",
            
        
    
        
        
            
                "access_tier": "free",
            
        
    
        
        
            
                "is_published": false,
            
        
    
    },
    
    {
    
        
        
            
                "course_title": "Level 3: Portfolio Capstone",
            
        
    
        
        
            
                "course_description": "Create a public-ready portfolio artifact and present outcomes.",
            
        
    
        
        
            
                "level": "l2",
            
        
    
        
        
            
                "access_tier": "member",
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
];



const LessonsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lesson_title": "L1 Lesson 1: Your Learning Plan",
            
        
    
        
        
            
                "lesson_summary": "Define your goal, constraints, and first milestone. Produce a short plan artifact.",
            
        
    
        
        
            
                "content_format": "html",
            
        
    
        
        
            
                "content_body": "Lesson outline: goal statement, weekly schedule, first artifact definition, reflection prompts.",
            
        
    
        
        
            
                "order_index": 1,
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lesson_title": "L1 Lesson 2: Prompt Basics",
            
        
    
        
        
            
                "lesson_summary": "Learn prompt structure and test simple iterations.",
            
        
    
        
        
            
                "content_format": "structured_json",
            
        
    
        
        
            
                "content_body": "{sections:[{type:reading,title:Prompt structure},{type:exercise,title:Rewrite a prompt}]}",
            
        
    
        
        
            
                "order_index": 2,
            
        
    
        
        
            
                "is_published": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lesson_title": "L1 Lesson 3: Verification",
            
        
    
        
        
            
                "lesson_summary": "Learn how to check outputs and document assumptions.",
            
        
    
        
        
            
                "content_format": "structured_json",
            
        
    
        
        
            
                "content_body": "Topics: verification checklist, citations, and reducing hallucinations through constraints.",
            
        
    
        
        
            
                "order_index": 3,
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lesson_title": "Quickstart: First Win",
            
        
    
        
        
            
                "lesson_summary": "A short lesson to get an immediate success and confidence boost.",
            
        
    
        
        
            
                "content_format": "structured_json",
            
        
    
        
        
            
                "content_body": "<h2>First Win</h2><p>Complete one small task and capture it as an artifact.</p>",
            
        
    
        
        
            
                "order_index": 1,
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
];



const EnrollmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "enrolled_at": new Date('2026-06-21T12:05:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-07-30T12:05:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "paused",
            
        
    
        
        
            
                "enrolled_at": new Date('2026-06-22T10:10:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-09-01T10:10:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "paused",
            
        
    
        
        
            
                "enrolled_at": new Date('2026-06-23T18:40:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-12-01T18:40:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "enrolled_at": new Date('2026-05-02T10:15:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-06-02T10:15:00Z'),
            
        
    
    },
    
];



const LessonProgressData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "progress_percent": 100.0,
            
        
    
        
        
            
                "started_at": new Date('2026-06-21T12:10:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-06-21T13:00:00Z'),
            
        
    
        
        
            
                "last_checkpoint": "submitted_plan_artifact",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "not_started",
            
        
    
        
        
            
                "progress_percent": 45.0,
            
        
    
        
        
            
                "started_at": new Date('2026-06-22T10:20:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-06-30T10:20:00Z'),
            
        
    
        
        
            
                "last_checkpoint": "reflection_prompts",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "progress_percent": 20.0,
            
        
    
        
        
            
                "started_at": new Date('2026-06-23T18:55:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-07-10T18:55:00Z'),
            
        
    
        
        
            
                "last_checkpoint": "weekly_schedule",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "progress_percent": 0.0,
            
        
    
        
        
            
                "started_at": new Date('2026-05-02T10:25:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-05-10T10:25:00Z'),
            
        
    
        
        
            
                "last_checkpoint": "not_started",
            
        
    
    },
    
];



const ArtifactsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "artifact_type": "answer",
            
        
    
        
        
            
                "title": "My Level 1 Learning Plan",
            
        
    
        
        
            
                "content_text": "Goal: complete Lesson 1 this week. Schedule: 4 sessions. Milestone: submit one clear plan artifact.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                "submitted_at": new Date('2026-06-21T12:55:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "artifact_type": "other",
            
        
    
        
        
            
                "title": "Prompt Patterns Notes",
            
        
    
        
        
            
                "content_text": "Notes on instructions, context, constraints, and examples. Reminder to ask for assumptions explicitly.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_public": false,
            
        
    
        
        
            
                "submitted_at": new Date('2026-06-22T11:05:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "artifact_type": "reflection",
            
        
    
        
        
            
                "title": "Weekly Schedule Draft",
            
        
    
        
        
            
                "content_text": "Mon 30m reading, Wed 45m exercise, Fri 45m artifact, Sat 60m review and recap.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_public": false,
            
        
    
        
        
            
                "submitted_at": new Date('2026-06-23T19:10:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "artifact_type": "note",
            
        
    
        
        
            
                "title": "Reference List for Verification",
            
        
    
        
        
            
                "content_text": "Collected links to trusted docs and verification checklists to use during practice.",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                "submitted_at": new Date('2026-06-24T09:20:00Z'),
            
        
    
    },
    
];



const TrophiesData = [
    
    {
    
        
        
            
                "trophy_name": "Star 1",
            
        
    
        
        
            
                "trophy_description": "Awarded for completing the first lesson and submitting an initial artifact.",
            
        
    
        
        
            
                "trophy_tier": "star_1",
            
        
    
        
        
            
                "icon_key": "star-1",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "trophy_name": "Momentum",
            
        
    
        
        
            
                "trophy_description": "Awarded for returning to the course on three separate days.",
            
        
    
        
        
            
                "trophy_tier": "special",
            
        
    
        
        
            
                "icon_key": "momentum",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "trophy_name": "First Contact",
            
        
    
        
        
            
                "trophy_description": "Awarded after completing Career Coach first contact flow.",
            
        
    
        
        
            
                "trophy_tier": "milestone",
            
        
    
        
        
            
                "icon_key": "first-contact",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "trophy_name": "Proof of Work",
            
        
    
        
        
            
                "trophy_description": "Awarded for publishing a public artifact to the profile.",
            
        
    
        
        
            
                "trophy_tier": "star_3",
            
        
    
        
        
            
                "icon_key": "proof-of-work",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const UserTrophiesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_status": "awarded",
            
        
    
        
        
            
                "award_reason": "Completed Lesson 1 and submitted a learning plan artifact.",
            
        
    
        
        
            
                "awarded_at": new Date('2026-06-21T13:05:00Z'),
            
        
    
        
        
            
                "is_visible_on_profile": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_status": "revoked",
            
        
    
        
        
            
                "award_reason": "Eligible after completing Career Coach first contact.",
            
        
    
        
        
            
                "awarded_at": new Date('2026-06-22T10:40:00Z'),
            
        
    
        
        
            
                "is_visible_on_profile": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_status": "pending",
            
        
    
        
        
            
                "award_reason": "Published a public artifact to the profile.",
            
        
    
        
        
            
                "awarded_at": new Date('2026-06-24T09:30:00Z'),
            
        
    
        
        
            
                "is_visible_on_profile": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_status": "awarded",
            
        
    
        
        
            
                "award_reason": "Artifact was unlisted from public profile.",
            
        
    
        
        
            
                "awarded_at": new Date('2026-06-10T12:00:00Z'),
            
        
    
        
        
            
                "is_visible_on_profile": true,
            
        
    
    },
    
];



const AiGatewaysData = [
    
    {
    
        
        
            
                "gateway_name": "Primary LLM Gateway",
            
        
    
        
        
            
                "base_url": "https://llm-gateway.staging.example.com",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "default_model": "gpt-4.1-mini",
            
        
    
        
        
            
                "default_daily_request_limit": 50,
            
        
    
        
        
            
                "default_daily_cost_limit": 3.5,
            
        
    
    },
    
    {
    
        
        
            
                "gateway_name": "Backup LLM Gateway",
            
        
    
        
        
            
                "base_url": "https://llm-gateway-backup.staging.example.com",
            
        
    
        
        
            
                "status": "disabled",
            
        
    
        
        
            
                "default_model": "gpt-4.1-mini",
            
        
    
        
        
            
                "default_daily_request_limit": 25,
            
        
    
        
        
            
                "default_daily_cost_limit": 2.0,
            
        
    
    },
    
    {
    
        
        
            
                "gateway_name": "Restricted Gateway",
            
        
    
        
        
            
                "base_url": "https://llm-gateway-restricted.staging.example.com",
            
        
    
        
        
            
                "status": "disabled",
            
        
    
        
        
            
                "default_model": "gpt-4.1-mini",
            
        
    
        
        
            
                "default_daily_request_limit": 10,
            
        
    
        
        
            
                "default_daily_cost_limit": 0.5,
            
        
    
    },
    
    {
    
        
        
            
                "gateway_name": "Evaluation Gateway",
            
        
    
        
        
            
                "base_url": "https://llm-gateway-eval.staging.example.com",
            
        
    
        
        
            
                "status": "disabled",
            
        
    
        
        
            
                "default_model": "gpt-4.1-mini",
            
        
    
        
        
            
                "default_daily_request_limit": 100,
            
        
    
        
        
            
                "default_daily_cost_limit": 5.0,
            
        
    
    },
    
];



const UsageLimitPoliciesData = [
    
    {
    
        
        
            
                "policy_name": "Free User Limits",
            
        
    
        
        
            
                "scope": "member",
            
        
    
        
        
            
                "daily_request_limit": 10,
            
        
    
        
        
            
                "monthly_request_limit": 200,
            
        
    
        
        
            
                "daily_cost_limit": 0.5,
            
        
    
        
        
            
                "monthly_cost_limit": 10.0,
            
        
    
        
        
            
                "hard_block_on_limit": true,
            
        
    
    },
    
    {
    
        
        
            
                "policy_name": "Member Limits",
            
        
    
        
        
            
                "scope": "free_user",
            
        
    
        
        
            
                "daily_request_limit": 50,
            
        
    
        
        
            
                "monthly_request_limit": 1500,
            
        
    
        
        
            
                "daily_cost_limit": 3.0,
            
        
    
        
        
            
                "monthly_cost_limit": 60.0,
            
        
    
        
        
            
                "hard_block_on_limit": true,
            
        
    
    },
    
    {
    
        
        
            
                "policy_name": "Coach Ops Limits",
            
        
    
        
        
            
                "scope": "admin",
            
        
    
        
        
            
                "daily_request_limit": 200,
            
        
    
        
        
            
                "monthly_request_limit": 5000,
            
        
    
        
        
            
                "daily_cost_limit": 10.0,
            
        
    
        
        
            
                "monthly_cost_limit": 250.0,
            
        
    
        
        
            
                "hard_block_on_limit": false,
            
        
    
    },
    
    {
    
        
        
            
                "policy_name": "QA Testing Limits",
            
        
    
        
        
            
                "scope": "admin",
            
        
    
        
        
            
                "daily_request_limit": 100,
            
        
    
        
        
            
                "monthly_request_limit": 3000,
            
        
    
        
        
            
                "daily_cost_limit": 5.0,
            
        
    
        
        
            
                "monthly_cost_limit": 120.0,
            
        
    
        
        
            
                "hard_block_on_limit": false,
            
        
    
    },
    
];



const AiTasksData = [
    
    {
    
        
        
            
                "task_name": "AI Profile Draft",
            
        
    
        
        
            
                "task_type": "career_coach_first_contact",
            
        
    
        
        
            
                "stores_private_output": true,
            
        
    
        
        
            
                "allowed_for_free_users": true,
            
        
    
        
        
            
                "per_user_daily_limit": 3,
            
        
    
        
        
            
                "system_prompt_template": "Generate a concise professional profile draft from the user's onboarding answers. Keep private details out of public projection.",
            
        
    
    },
    
    {
    
        
        
            
                "task_name": "Vision Preview",
            
        
    
        
        
            
                "task_type": "tutor_in_lesson",
            
        
    
        
        
            
                "stores_private_output": true,
            
        
    
        
        
            
                "allowed_for_free_users": true,
            
        
    
        
        
            
                "per_user_daily_limit": 2,
            
        
    
        
        
            
                "system_prompt_template": "Generate a short vision statement and next steps. Avoid sensitive personal details.",
            
        
    
    },
    
    {
    
        
        
            
                "task_name": "Career Coach First Contact",
            
        
    
        
        
            
                "task_type": "vision_preview",
            
        
    
        
        
            
                "stores_private_output": true,
            
        
    
        
        
            
                "allowed_for_free_users": true,
            
        
    
        
        
            
                "per_user_daily_limit": 2,
            
        
    
        
        
            
                "system_prompt_template": "Provide a first-contact coaching response: validate goals, clarify constraints, propose a 7-day plan.",
            
        
    
    },
    
    {
    
        
        
            
                "task_name": "Tutor In Lesson",
            
        
    
        
        
            
                "task_type": "career_coach_first_contact",
            
        
    
        
        
            
                "stores_private_output": true,
            
        
    
        
        
            
                "allowed_for_free_users": false,
            
        
    
        
        
            
                "per_user_daily_limit": 20,
            
        
    
        
        
            
                "system_prompt_template": "Answer the learner's question using only lesson context. Ask clarifying questions if needed.",
            
        
    
    },
    
];



const AiRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "requested_at": new Date('2026-06-20T14:30:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-06-20T14:30:08Z'),
            
        
    
        
        
            
                "prompt_tokens": 620,
            
        
    
        
        
            
                "completion_tokens": 220,
            
        
    
        
        
            
                "estimated_cost": 0.04,
            
        
    
        
        
            
                "model_used": "gpt-4.1-mini",
            
        
    
        
        
            
                "error_message": "none",
            
        
    
        
        
            
                "contains_private_data": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "blocked",
            
        
    
        
        
            
                "requested_at": new Date('2026-06-22T10:30:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-06-22T10:30:11Z'),
            
        
    
        
        
            
                "prompt_tokens": 540,
            
        
    
        
        
            
                "completion_tokens": 260,
            
        
    
        
        
            
                "estimated_cost": 0.05,
            
        
    
        
        
            
                "model_used": "gpt-4.1-mini",
            
        
    
        
        
            
                "error_message": "none",
            
        
    
        
        
            
                "contains_private_data": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "requested_at": new Date('2026-06-23T19:05:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-06-23T19:05:20Z'),
            
        
    
        
        
            
                "prompt_tokens": 300,
            
        
    
        
        
            
                "completion_tokens": 0,
            
        
    
        
        
            
                "estimated_cost": 0.01,
            
        
    
        
        
            
                "model_used": "gpt-4.1-mini",
            
        
    
        
        
            
                "error_message": "Gateway timeout",
            
        
    
        
        
            
                "contains_private_data": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "requested_at": new Date('2026-06-24T09:15:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-06-24T09:15:01Z'),
            
        
    
        
        
            
                "prompt_tokens": 0,
            
        
    
        
        
            
                "completion_tokens": 0,
            
        
    
        
        
            
                "estimated_cost": 0.0,
            
        
    
        
        
            
                "model_used": "gpt-4.1-mini",
            
        
    
        
        
            
                "error_message": "Daily limit reached",
            
        
    
        
        
            
                "contains_private_data": true,
            
        
    
    },
    
];



const AiOutputsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "output_title": "Profile Draft v1",
            
        
    
        
        
            
                "output_text": "Profile draft emphasizing practical learning, clear goals, and consistent execution with measurable artifacts.",
            
        
    
        
        
            
                "generated_at": new Date('2026-06-20T14:30:08Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "public_projection",
            
        
    
        
        
            
                "output_title": "Vision Statement v1",
            
        
    
        
        
            
                "output_text": "Vision: build a repeatable weekly learning routine and publish proof-of-work artifacts that support a career shift.",
            
        
    
        
        
            
                "generated_at": new Date('2026-06-22T10:30:11Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "admin_only",
            
        
    
        
        
            
                "output_title": "Gateway Error Summary",
            
        
    
        
        
            
                "output_text": "Request failed due to gateway timeout; recommend retry with smaller context window.",
            
        
    
        
        
            
                "generated_at": new Date('2026-06-23T19:05:20Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visibility": "private",
            
        
    
        
        
            
                "output_title": "Tutor Answer",
            
        
    
        
        
            
                "output_text": "Start by writing a one-sentence goal, then list two constraints. Next define one artifact you can submit today.",
            
        
    
        
        
            
                "generated_at": new Date('2026-06-24T09:40:07Z'),
            
        
    
    },
    
];



const CoachingSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "coach_type": "learning_coach",
            
        
    
        
        
            
                "session_status": "in_progress",
            
        
    
        
        
            
                "topic": "First Contact: Career Transition Plan",
            
        
    
        
        
            
                "private_notes": "Clarified target roles, identified time constraints, proposed a 7-day action plan.",
            
        
    
        
        
            
                "started_at": new Date('2026-06-22T10:25:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-06-22T10:55:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "coach_type": "learning_coach",
            
        
    
        
        
            
                "session_status": "completed",
            
        
    
        
        
            
                "topic": "Lesson 1 Help: Defining the First Artifact",
            
        
    
        
        
            
                "private_notes": "User asked for examples of acceptable artifacts; provided templates and checks.",
            
        
    
        
        
            
                "started_at": new Date('2026-06-24T09:10:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-06-24T09:40:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "coach_type": "career_coach",
            
        
    
        
        
            
                "session_status": "initiated",
            
        
    
        
        
            
                "topic": "Check-in: Staying Consistent",
            
        
    
        
        
            
                "private_notes": "Set a lightweight cadence and a fallback plan for busy weeks.",
            
        
    
        
        
            
                "started_at": new Date('2026-06-23T18:45:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-06-23T19:05:00Z'),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "coach_type": "tutor",
            
        
    
        
        
            
                "session_status": "initiated",
            
        
    
        
        
            
                "topic": "First Contact: Resume Direction",
            
        
    
        
        
            
                "private_notes": "Discussed resume positioning; advised to keep sensitive details private and focus on outcomes.",
            
        
    
        
        
            
                "started_at": new Date('2026-06-05T11:30:00Z'),
            
        
    
        
        
            
                "ended_at": new Date('2026-06-05T11:55:00Z'),
            
        
    
    },
    
];



const MessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender_role": "user",
            
        
    
        
        
            
                "content": "I want a realistic plan for finishing Lesson 1 this week. I have limited time.",
            
        
    
        
        
            
                "sent_at": new Date('2026-06-22T10:26:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender_role": "system",
            
        
    
        
        
            
                "content": "Thanks for sharing. Let’s pick a 7-day plan: 4 short sessions, one artifact, and a simple review checklist.",
            
        
    
        
        
            
                "sent_at": new Date('2026-06-22T10:27:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender_role": "admin",
            
        
    
        
        
            
                "content": "What counts as a good first artifact for Lesson 1?",
            
        
    
        
        
            
                "sent_at": new Date('2026-06-24T09:12:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sender_role": "assistant",
            
        
    
        
        
            
                "content": "A good first artifact is short and specific: goal, schedule, one milestone, and a reflection prompt you can answer.",
            
        
    
        
        
            
                "sent_at": new Date('2026-06-24T09:13:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ResumeDocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "other",
            
        
    
        
        
            
                "document_name": "Avery Chen Resume 2026",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "extracted_text": "Summary: product experience, cross-functional communication, outcomes-driven projects, learning plan for AI.",
            
        
    
        
        
            
                "uploaded_at": new Date('2026-06-20T15:05:00Z'),
            
        
    
        
        
            
                "is_deleted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "resume",
            
        
    
        
        
            
                "document_name": "Jordan Patel Resume Draft",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "extracted_text": "Experience: customer support, process documentation, metrics tracking. Targeting analyst roles.",
            
        
    
        
        
            
                "uploaded_at": new Date('2026-06-22T10:20:00Z'),
            
        
    
        
        
            
                "is_deleted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "resume",
            
        
    
        
        
            
                "document_name": "Sam Rivera Cover Letter Template",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "extracted_text": "Template focused on operations improvements, automation interest, and measurable impact.",
            
        
    
        
        
            
                "uploaded_at": new Date('2026-06-23T19:25:00Z'),
            
        
    
        
        
            
                "is_deleted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "other",
            
        
    
        
        
            
                "document_name": "Morgan Lee Portfolio Notes",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "extracted_text": "Notes on possible artifacts: learning plan, prompt experiments, verification checklist, reflections.",
            
        
    
        
        
            
                "uploaded_at": new Date('2026-06-24T09:35:00Z'),
            
        
    
        
        
            
                "is_deleted": false,
            
        
    
    },
    
];



const FeedbackEntriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "feedback_type": "feature_request",
            
        
    
        
        
            
                "score": 9,
            
        
    
        
        
            
                "comment": "Onboarding and profile draft were clear and helpful.",
            
        
    
        
        
            
                "source_surface": "course",
            
        
    
        
        
            
                "submitted_at": new Date('2026-06-20T14:40:00Z'),
            
        
    
        
        
            
                "needs_follow_up": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "feedback_type": "bug",
            
        
    
        
        
            
                "score": 5,
            
        
    
        
        
            
                "comment": "Career Coach first contact felt practical and supportive.",
            
        
    
        
        
            
                "source_surface": "course",
            
        
    
        
        
            
                "submitted_at": new Date('2026-06-22T10:58:00Z'),
            
        
    
        
        
            
                "needs_follow_up": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "feedback_type": "csat",
            
        
    
        
        
            
                "score": 2,
            
        
    
        
        
            
                "comment": "Checkout button sometimes spins without redirecting in staging.",
            
        
    
        
        
            
                "source_surface": "lesson",
            
        
    
        
        
            
                "submitted_at": new Date('2026-06-24T08:55:00Z'),
            
        
    
        
        
            
                "needs_follow_up": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "feedback_type": "freeform",
            
        
    
        
        
            
                "score": 4,
            
        
    
        
        
            
                "comment": "Would love a quick summary of progress on the course entry page.",
            
        
    
        
        
            
                "source_surface": "landing",
            
        
    
        
        
            
                "submitted_at": new Date('2026-06-24T09:50:00Z'),
            
        
    
        
        
            
                "needs_follow_up": false,
            
        
    
    },
    
];



const TrackingEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "checkout_started",
            
        
    
        
        
            
                "event_label": "Signup Completed",
            
        
    
        
        
            
                "page_path": "/signup",
            
        
    
        
        
            
                "occurred_at": new Date('2026-06-20T14:10:00Z'),
            
        
    
        
        
            
                "metadata_json": "{method:google}",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "landing_viewed",
            
        
    
        
        
            
                "event_label": "Onboarding Completed",
            
        
    
        
        
            
                "page_path": "/onboarding",
            
        
    
        
        
            
                "occurred_at": new Date('2026-06-20T14:25:00Z'),
            
        
    
        
        
            
                "metadata_json": "{primary_role:professional}",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "vision_generated",
            
        
    
        
        
            
                "event_label": "Offer Viewed",
            
        
    
        
        
            
                "page_path": "/offer",
            
        
    
        
        
            
                "occurred_at": new Date('2026-06-21T11:55:00Z'),
            
        
    
        
        
            
                "metadata_json": "{plan:Starter Member}",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_name": "checkout_started",
            
        
    
        
        
            
                "event_label": "Checkout Completed",
            
        
    
        
        
            
                "page_path": "/checkout/success",
            
        
    
        
        
            
                "occurred_at": new Date('2026-06-21T12:01:00Z'),
            
        
    
        
        
            
                "metadata_json": "{provider:stripe}",
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
            
            async function associatePublicProfileWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PublicProfile0 = await PublicProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PublicProfile0?.setUser)
                {
                    await
                    PublicProfile0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PublicProfile1 = await PublicProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PublicProfile1?.setUser)
                {
                    await
                    PublicProfile1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PublicProfile2 = await PublicProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PublicProfile2?.setUser)
                {
                    await
                    PublicProfile2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PublicProfile3 = await PublicProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PublicProfile3?.setUser)
                {
                    await
                    PublicProfile3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associatePrivateProfileWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PrivateProfile0 = await PrivateProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PrivateProfile0?.setUser)
                {
                    await
                    PrivateProfile0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PrivateProfile1 = await PrivateProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PrivateProfile1?.setUser)
                {
                    await
                    PrivateProfile1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PrivateProfile2 = await PrivateProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PrivateProfile2?.setUser)
                {
                    await
                    PrivateProfile2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PrivateProfile3 = await PrivateProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PrivateProfile3?.setUser)
                {
                    await
                    PrivateProfile3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Membership0 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Membership0?.setUser)
                {
                    await
                    Membership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Membership1 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Membership1?.setUser)
                {
                    await
                    Membership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Membership2 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Membership2?.setUser)
                {
                    await
                    Membership2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Membership3 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Membership3?.setUser)
                {
                    await
                    Membership3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateMembershipWithMembership_plan() {
            
                const relatedMembership_plan0 = await MembershipPlans.findOne({
                    offset: Math.floor(Math.random() * (await MembershipPlans.count())),
                });
                const Membership0 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Membership0?.setMembership_plan)
                {
                    await
                    Membership0.
                    setMembership_plan(relatedMembership_plan0);
                }
            
                const relatedMembership_plan1 = await MembershipPlans.findOne({
                    offset: Math.floor(Math.random() * (await MembershipPlans.count())),
                });
                const Membership1 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Membership1?.setMembership_plan)
                {
                    await
                    Membership1.
                    setMembership_plan(relatedMembership_plan1);
                }
            
                const relatedMembership_plan2 = await MembershipPlans.findOne({
                    offset: Math.floor(Math.random() * (await MembershipPlans.count())),
                });
                const Membership2 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Membership2?.setMembership_plan)
                {
                    await
                    Membership2.
                    setMembership_plan(relatedMembership_plan2);
                }
            
                const relatedMembership_plan3 = await MembershipPlans.findOne({
                    offset: Math.floor(Math.random() * (await MembershipPlans.count())),
                });
                const Membership3 = await Memberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Membership3?.setMembership_plan)
                {
                    await
                    Membership3.
                    setMembership_plan(relatedMembership_plan3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
            
            async function associateStripeEventWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StripeEvent0 = await StripeEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StripeEvent0?.setUser)
                {
                    await
                    StripeEvent0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StripeEvent1 = await StripeEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StripeEvent1?.setUser)
                {
                    await
                    StripeEvent1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StripeEvent2 = await StripeEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StripeEvent2?.setUser)
                {
                    await
                    StripeEvent2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const StripeEvent3 = await StripeEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StripeEvent3?.setUser)
                {
                    await
                    StripeEvent3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateStripeEventWithMembership() {
            
                const relatedMembership0 = await Memberships.findOne({
                    offset: Math.floor(Math.random() * (await Memberships.count())),
                });
                const StripeEvent0 = await StripeEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StripeEvent0?.setMembership)
                {
                    await
                    StripeEvent0.
                    setMembership(relatedMembership0);
                }
            
                const relatedMembership1 = await Memberships.findOne({
                    offset: Math.floor(Math.random() * (await Memberships.count())),
                });
                const StripeEvent1 = await StripeEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StripeEvent1?.setMembership)
                {
                    await
                    StripeEvent1.
                    setMembership(relatedMembership1);
                }
            
                const relatedMembership2 = await Memberships.findOne({
                    offset: Math.floor(Math.random() * (await Memberships.count())),
                });
                const StripeEvent2 = await StripeEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StripeEvent2?.setMembership)
                {
                    await
                    StripeEvent2.
                    setMembership(relatedMembership2);
                }
            
                const relatedMembership3 = await Memberships.findOne({
                    offset: Math.floor(Math.random() * (await Memberships.count())),
                });
                const StripeEvent3 = await StripeEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StripeEvent3?.setMembership)
                {
                    await
                    StripeEvent3.
                    setMembership(relatedMembership3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLessonWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Lesson0 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Lesson0?.setCourse)
                {
                    await
                    Lesson0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Lesson1 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Lesson1?.setCourse)
                {
                    await
                    Lesson1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Lesson2 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Lesson2?.setCourse)
                {
                    await
                    Lesson2.
                    setCourse(relatedCourse2);
                }
            
                const relatedCourse3 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Lesson3 = await Lessons.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Lesson3?.setCourse)
                {
                    await
                    Lesson3.
                    setCourse(relatedCourse3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateEnrollmentWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setUser)
                {
                    await
                    Enrollment0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setUser)
                {
                    await
                    Enrollment1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setUser)
                {
                    await
                    Enrollment2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setUser)
                {
                    await
                    Enrollment3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateEnrollmentWithCourse() {
            
                const relatedCourse0 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Enrollment0 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Enrollment0?.setCourse)
                {
                    await
                    Enrollment0.
                    setCourse(relatedCourse0);
                }
            
                const relatedCourse1 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Enrollment1 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Enrollment1?.setCourse)
                {
                    await
                    Enrollment1.
                    setCourse(relatedCourse1);
                }
            
                const relatedCourse2 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Enrollment2 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Enrollment2?.setCourse)
                {
                    await
                    Enrollment2.
                    setCourse(relatedCourse2);
                }
            
                const relatedCourse3 = await Courses.findOne({
                    offset: Math.floor(Math.random() * (await Courses.count())),
                });
                const Enrollment3 = await Enrollments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Enrollment3?.setCourse)
                {
                    await
                    Enrollment3.
                    setCourse(relatedCourse3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLessonProgresWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LessonProgres0 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LessonProgres0?.setUser)
                {
                    await
                    LessonProgres0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LessonProgres1 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LessonProgres1?.setUser)
                {
                    await
                    LessonProgres1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LessonProgres2 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LessonProgres2?.setUser)
                {
                    await
                    LessonProgres2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LessonProgres3 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LessonProgres3?.setUser)
                {
                    await
                    LessonProgres3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateLessonProgresWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonProgres0 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LessonProgres0?.setLesson)
                {
                    await
                    LessonProgres0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonProgres1 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LessonProgres1?.setLesson)
                {
                    await
                    LessonProgres1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonProgres2 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LessonProgres2?.setLesson)
                {
                    await
                    LessonProgres2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const LessonProgres3 = await LessonProgress.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LessonProgres3?.setLesson)
                {
                    await
                    LessonProgres3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateArtifactWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Artifact0 = await Artifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Artifact0?.setUser)
                {
                    await
                    Artifact0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Artifact1 = await Artifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Artifact1?.setUser)
                {
                    await
                    Artifact1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Artifact2 = await Artifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Artifact2?.setUser)
                {
                    await
                    Artifact2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Artifact3 = await Artifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Artifact3?.setUser)
                {
                    await
                    Artifact3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateArtifactWithLesson() {
            
                const relatedLesson0 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const Artifact0 = await Artifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Artifact0?.setLesson)
                {
                    await
                    Artifact0.
                    setLesson(relatedLesson0);
                }
            
                const relatedLesson1 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const Artifact1 = await Artifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Artifact1?.setLesson)
                {
                    await
                    Artifact1.
                    setLesson(relatedLesson1);
                }
            
                const relatedLesson2 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const Artifact2 = await Artifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Artifact2?.setLesson)
                {
                    await
                    Artifact2.
                    setLesson(relatedLesson2);
                }
            
                const relatedLesson3 = await Lessons.findOne({
                    offset: Math.floor(Math.random() * (await Lessons.count())),
                });
                const Artifact3 = await Artifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Artifact3?.setLesson)
                {
                    await
                    Artifact3.
                    setLesson(relatedLesson3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserTrophyWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserTrophy0 = await UserTrophies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserTrophy0?.setUser)
                {
                    await
                    UserTrophy0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserTrophy1 = await UserTrophies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserTrophy1?.setUser)
                {
                    await
                    UserTrophy1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserTrophy2 = await UserTrophies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserTrophy2?.setUser)
                {
                    await
                    UserTrophy2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserTrophy3 = await UserTrophies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserTrophy3?.setUser)
                {
                    await
                    UserTrophy3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateUserTrophyWithTrophy() {
            
                const relatedTrophy0 = await Trophies.findOne({
                    offset: Math.floor(Math.random() * (await Trophies.count())),
                });
                const UserTrophy0 = await UserTrophies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserTrophy0?.setTrophy)
                {
                    await
                    UserTrophy0.
                    setTrophy(relatedTrophy0);
                }
            
                const relatedTrophy1 = await Trophies.findOne({
                    offset: Math.floor(Math.random() * (await Trophies.count())),
                });
                const UserTrophy1 = await UserTrophies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserTrophy1?.setTrophy)
                {
                    await
                    UserTrophy1.
                    setTrophy(relatedTrophy1);
                }
            
                const relatedTrophy2 = await Trophies.findOne({
                    offset: Math.floor(Math.random() * (await Trophies.count())),
                });
                const UserTrophy2 = await UserTrophies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserTrophy2?.setTrophy)
                {
                    await
                    UserTrophy2.
                    setTrophy(relatedTrophy2);
                }
            
                const relatedTrophy3 = await Trophies.findOne({
                    offset: Math.floor(Math.random() * (await Trophies.count())),
                });
                const UserTrophy3 = await UserTrophies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserTrophy3?.setTrophy)
                {
                    await
                    UserTrophy3.
                    setTrophy(relatedTrophy3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAiRequestWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRequest0 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiRequest0?.setUser)
                {
                    await
                    AiRequest0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRequest1 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiRequest1?.setUser)
                {
                    await
                    AiRequest1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRequest2 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiRequest2?.setUser)
                {
                    await
                    AiRequest2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiRequest3 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiRequest3?.setUser)
                {
                    await
                    AiRequest3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateAiRequestWithAi_task() {
            
                const relatedAi_task0 = await AiTasks.findOne({
                    offset: Math.floor(Math.random() * (await AiTasks.count())),
                });
                const AiRequest0 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiRequest0?.setAi_task)
                {
                    await
                    AiRequest0.
                    setAi_task(relatedAi_task0);
                }
            
                const relatedAi_task1 = await AiTasks.findOne({
                    offset: Math.floor(Math.random() * (await AiTasks.count())),
                });
                const AiRequest1 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiRequest1?.setAi_task)
                {
                    await
                    AiRequest1.
                    setAi_task(relatedAi_task1);
                }
            
                const relatedAi_task2 = await AiTasks.findOne({
                    offset: Math.floor(Math.random() * (await AiTasks.count())),
                });
                const AiRequest2 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiRequest2?.setAi_task)
                {
                    await
                    AiRequest2.
                    setAi_task(relatedAi_task2);
                }
            
                const relatedAi_task3 = await AiTasks.findOne({
                    offset: Math.floor(Math.random() * (await AiTasks.count())),
                });
                const AiRequest3 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiRequest3?.setAi_task)
                {
                    await
                    AiRequest3.
                    setAi_task(relatedAi_task3);
                }
            
        }
        
    
        
            
            async function associateAiRequestWithAi_gateway() {
            
                const relatedAi_gateway0 = await AiGateways.findOne({
                    offset: Math.floor(Math.random() * (await AiGateways.count())),
                });
                const AiRequest0 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiRequest0?.setAi_gateway)
                {
                    await
                    AiRequest0.
                    setAi_gateway(relatedAi_gateway0);
                }
            
                const relatedAi_gateway1 = await AiGateways.findOne({
                    offset: Math.floor(Math.random() * (await AiGateways.count())),
                });
                const AiRequest1 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiRequest1?.setAi_gateway)
                {
                    await
                    AiRequest1.
                    setAi_gateway(relatedAi_gateway1);
                }
            
                const relatedAi_gateway2 = await AiGateways.findOne({
                    offset: Math.floor(Math.random() * (await AiGateways.count())),
                });
                const AiRequest2 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiRequest2?.setAi_gateway)
                {
                    await
                    AiRequest2.
                    setAi_gateway(relatedAi_gateway2);
                }
            
                const relatedAi_gateway3 = await AiGateways.findOne({
                    offset: Math.floor(Math.random() * (await AiGateways.count())),
                });
                const AiRequest3 = await AiRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiRequest3?.setAi_gateway)
                {
                    await
                    AiRequest3.
                    setAi_gateway(relatedAi_gateway3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAiOutputWithAi_request() {
            
                const relatedAi_request0 = await AiRequests.findOne({
                    offset: Math.floor(Math.random() * (await AiRequests.count())),
                });
                const AiOutput0 = await AiOutputs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiOutput0?.setAi_request)
                {
                    await
                    AiOutput0.
                    setAi_request(relatedAi_request0);
                }
            
                const relatedAi_request1 = await AiRequests.findOne({
                    offset: Math.floor(Math.random() * (await AiRequests.count())),
                });
                const AiOutput1 = await AiOutputs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiOutput1?.setAi_request)
                {
                    await
                    AiOutput1.
                    setAi_request(relatedAi_request1);
                }
            
                const relatedAi_request2 = await AiRequests.findOne({
                    offset: Math.floor(Math.random() * (await AiRequests.count())),
                });
                const AiOutput2 = await AiOutputs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiOutput2?.setAi_request)
                {
                    await
                    AiOutput2.
                    setAi_request(relatedAi_request2);
                }
            
                const relatedAi_request3 = await AiRequests.findOne({
                    offset: Math.floor(Math.random() * (await AiRequests.count())),
                });
                const AiOutput3 = await AiOutputs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiOutput3?.setAi_request)
                {
                    await
                    AiOutput3.
                    setAi_request(relatedAi_request3);
                }
            
        }
        
    
        
            
            async function associateAiOutputWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiOutput0 = await AiOutputs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiOutput0?.setUser)
                {
                    await
                    AiOutput0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiOutput1 = await AiOutputs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiOutput1?.setUser)
                {
                    await
                    AiOutput1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiOutput2 = await AiOutputs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiOutput2?.setUser)
                {
                    await
                    AiOutput2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AiOutput3 = await AiOutputs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiOutput3?.setUser)
                {
                    await
                    AiOutput3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCoachingSessionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession0 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CoachingSession0?.setUser)
                {
                    await
                    CoachingSession0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession1 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CoachingSession1?.setUser)
                {
                    await
                    CoachingSession1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession2 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CoachingSession2?.setUser)
                {
                    await
                    CoachingSession2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CoachingSession3 = await CoachingSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CoachingSession3?.setUser)
                {
                    await
                    CoachingSession3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMessageWithCoaching_session() {
            
                const relatedCoaching_session0 = await CoachingSessions.findOne({
                    offset: Math.floor(Math.random() * (await CoachingSessions.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setCoaching_session)
                {
                    await
                    Message0.
                    setCoaching_session(relatedCoaching_session0);
                }
            
                const relatedCoaching_session1 = await CoachingSessions.findOne({
                    offset: Math.floor(Math.random() * (await CoachingSessions.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setCoaching_session)
                {
                    await
                    Message1.
                    setCoaching_session(relatedCoaching_session1);
                }
            
                const relatedCoaching_session2 = await CoachingSessions.findOne({
                    offset: Math.floor(Math.random() * (await CoachingSessions.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setCoaching_session)
                {
                    await
                    Message2.
                    setCoaching_session(relatedCoaching_session2);
                }
            
                const relatedCoaching_session3 = await CoachingSessions.findOne({
                    offset: Math.floor(Math.random() * (await CoachingSessions.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setCoaching_session)
                {
                    await
                    Message3.
                    setCoaching_session(relatedCoaching_session3);
                }
            
        }
        
    
        
            
            async function associateMessageWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setUser)
                {
                    await
                    Message0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setUser)
                {
                    await
                    Message1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setUser)
                {
                    await
                    Message2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setUser)
                {
                    await
                    Message3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateMessageWithAi_request() {
            
                const relatedAi_request0 = await AiRequests.findOne({
                    offset: Math.floor(Math.random() * (await AiRequests.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setAi_request)
                {
                    await
                    Message0.
                    setAi_request(relatedAi_request0);
                }
            
                const relatedAi_request1 = await AiRequests.findOne({
                    offset: Math.floor(Math.random() * (await AiRequests.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setAi_request)
                {
                    await
                    Message1.
                    setAi_request(relatedAi_request1);
                }
            
                const relatedAi_request2 = await AiRequests.findOne({
                    offset: Math.floor(Math.random() * (await AiRequests.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setAi_request)
                {
                    await
                    Message2.
                    setAi_request(relatedAi_request2);
                }
            
                const relatedAi_request3 = await AiRequests.findOne({
                    offset: Math.floor(Math.random() * (await AiRequests.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setAi_request)
                {
                    await
                    Message3.
                    setAi_request(relatedAi_request3);
                }
            
        }
        
    

    
    
    
        
            
            async function associateResumeDocumentWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ResumeDocument0 = await ResumeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ResumeDocument0?.setUser)
                {
                    await
                    ResumeDocument0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ResumeDocument1 = await ResumeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ResumeDocument1?.setUser)
                {
                    await
                    ResumeDocument1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ResumeDocument2 = await ResumeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ResumeDocument2?.setUser)
                {
                    await
                    ResumeDocument2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ResumeDocument3 = await ResumeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ResumeDocument3?.setUser)
                {
                    await
                    ResumeDocument3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFeedbackEntryWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FeedbackEntry0 = await FeedbackEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FeedbackEntry0?.setUser)
                {
                    await
                    FeedbackEntry0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FeedbackEntry1 = await FeedbackEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FeedbackEntry1?.setUser)
                {
                    await
                    FeedbackEntry1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FeedbackEntry2 = await FeedbackEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FeedbackEntry2?.setUser)
                {
                    await
                    FeedbackEntry2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FeedbackEntry3 = await FeedbackEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FeedbackEntry3?.setUser)
                {
                    await
                    FeedbackEntry3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTrackingEventWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TrackingEvent0 = await TrackingEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TrackingEvent0?.setUser)
                {
                    await
                    TrackingEvent0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TrackingEvent1 = await TrackingEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TrackingEvent1?.setUser)
                {
                    await
                    TrackingEvent1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TrackingEvent2 = await TrackingEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TrackingEvent2?.setUser)
                {
                    await
                    TrackingEvent2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TrackingEvent3 = await TrackingEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TrackingEvent3?.setUser)
                {
                    await
                    TrackingEvent3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await PublicProfiles.bulkCreate(PublicProfilesData);
                
            
            
                
                await PrivateProfiles.bulkCreate(PrivateProfilesData);
                
            
            
                
                await MembershipPlans.bulkCreate(MembershipPlansData);
                
            
            
                
                await Memberships.bulkCreate(MembershipsData);
                
            
            
                
                await StripeEvents.bulkCreate(StripeEventsData);
                
            
            
                
                await Courses.bulkCreate(CoursesData);
                
            
            
                
                await Lessons.bulkCreate(LessonsData);
                
            
            
                
                await Enrollments.bulkCreate(EnrollmentsData);
                
            
            
                
                await LessonProgress.bulkCreate(LessonProgressData);
                
            
            
                
                await Artifacts.bulkCreate(ArtifactsData);
                
            
            
                
                await Trophies.bulkCreate(TrophiesData);
                
            
            
                
                await UserTrophies.bulkCreate(UserTrophiesData);
                
            
            
                
                await AiGateways.bulkCreate(AiGatewaysData);
                
            
            
                
                await UsageLimitPolicies.bulkCreate(UsageLimitPoliciesData);
                
            
            
                
                await AiTasks.bulkCreate(AiTasksData);
                
            
            
                
                await AiRequests.bulkCreate(AiRequestsData);
                
            
            
                
                await AiOutputs.bulkCreate(AiOutputsData);
                
            
            
                
                await CoachingSessions.bulkCreate(CoachingSessionsData);
                
            
            
                
                await Messages.bulkCreate(MessagesData);
                
            
            
                
                await ResumeDocuments.bulkCreate(ResumeDocumentsData);
                
            
            
                
                await FeedbackEntries.bulkCreate(FeedbackEntriesData);
                
            
            
                
                await TrackingEvents.bulkCreate(TrackingEventsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                        
                        await associatePublicProfileWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associatePrivateProfileWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMembershipWithUser(),
                    
                
                    
                        
                        await associateMembershipWithMembership_plan(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateStripeEventWithUser(),
                    
                
                    
                        
                        await associateStripeEventWithMembership(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLessonWithCourse(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateEnrollmentWithUser(),
                    
                
                    
                        
                        await associateEnrollmentWithCourse(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLessonProgresWithUser(),
                    
                
                    
                        
                        await associateLessonProgresWithLesson(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateArtifactWithUser(),
                    
                
                    
                        
                        await associateArtifactWithLesson(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserTrophyWithUser(),
                    
                
                    
                        
                        await associateUserTrophyWithTrophy(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAiRequestWithUser(),
                    
                
                    
                        
                        await associateAiRequestWithAi_task(),
                    
                
                    
                        
                        await associateAiRequestWithAi_gateway(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAiOutputWithAi_request(),
                    
                
                    
                        
                        await associateAiOutputWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCoachingSessionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMessageWithCoaching_session(),
                    
                
                    
                        
                        await associateMessageWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateMessageWithAi_request(),
                    
                
            
                
                
                    
                        
                        await associateResumeDocumentWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFeedbackEntryWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTrackingEventWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('public_profiles', null, {});
            
            
            await queryInterface.bulkDelete('private_profiles', null, {});
            
            
            await queryInterface.bulkDelete('membership_plans', null, {});
            
            
            await queryInterface.bulkDelete('memberships', null, {});
            
            
            await queryInterface.bulkDelete('stripe_events', null, {});
            
            
            await queryInterface.bulkDelete('courses', null, {});
            
            
            await queryInterface.bulkDelete('lessons', null, {});
            
            
            await queryInterface.bulkDelete('enrollments', null, {});
            
            
            await queryInterface.bulkDelete('lesson_progress', null, {});
            
            
            await queryInterface.bulkDelete('artifacts', null, {});
            
            
            await queryInterface.bulkDelete('trophies', null, {});
            
            
            await queryInterface.bulkDelete('user_trophies', null, {});
            
            
            await queryInterface.bulkDelete('ai_gateways', null, {});
            
            
            await queryInterface.bulkDelete('usage_limit_policies', null, {});
            
            
            await queryInterface.bulkDelete('ai_tasks', null, {});
            
            
            await queryInterface.bulkDelete('ai_requests', null, {});
            
            
            await queryInterface.bulkDelete('ai_outputs', null, {});
            
            
            await queryInterface.bulkDelete('coaching_sessions', null, {});
            
            
            await queryInterface.bulkDelete('messages', null, {});
            
            
            await queryInterface.bulkDelete('resume_documents', null, {});
            
            
            await queryInterface.bulkDelete('feedback_entries', null, {});
            
            
            await queryInterface.bulkDelete('tracking_events', null, {});
            
        
    },
};