<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

/**
 * Placeholder for migrating data from Supabase/Postgres (partnership-pal) into this MySQL app.
 *
 * Typical approach:
 * 1. Export CSV or JSON from Supabase for users (map emails to new Laravel user ids), profiles,
 *    workspaces, workspace_members, partnerships.
 * 2. Map old UUID primary keys to new bigint ids in a staging table or spreadsheet.
 * 3. Run a one-off import that creates users (or matches by email), then inserts related rows.
 *
 * This command is intentionally a stub so you can extend it without blocking local development.
 */
class ImportLegacyCollabsData extends Command
{
    protected $signature = 'collabs:import-legacy
                            {--dry-run : Print what would be imported without writing}';

    protected $description = 'Import legacy collab data (stub — implement CSV/DB mapping as needed)';

    public function handle(): int
    {
        $this->info('collabs:import-legacy is not implemented yet.');
        $this->line('Reference schema: partnership-pal/supabase/schema.sql');
        $this->line('Use exports from Supabase or pg_dump, then map UUIDs to Laravel user/workspace ids.');

        return self::SUCCESS;
    }
}
