<?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::create('corporate_profiles', function (Blueprint $table) {
            $table->id();

            // MVP: store as a single record, admin can update text fields.
            $table->text('global_operations')->nullable();
            $table->text('headquarters_text')->nullable();
            $table->string('hq_country')->nullable();
            $table->text('hq_address')->nullable();

            // Compliance placeholders:
            $table->string('msb_registration')->nullable();
            $table->string('soc2_type')->nullable();
            $table->text('insurance_coverage')->nullable();

            $table->boolean('is_active')->default(true);

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('corporate_profiles');
    }
};
