<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('company_registrations', function (Blueprint $table) {
            // Add account status (company account lifecycle)
            $table->enum('account_status', ['pending', 'invited', 'active'])
                ->default('pending')
                ->after('status');

            // Add verification status (document verification)
            $table->enum('verification_status', ['not_verified', 'verified'])
                ->default('not_verified')
                ->after('account_status');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('company_registrations', function (Blueprint $table) {
            $table->dropColumn(['account_status', 'verification_status']);
        });
    }
};
