<?php

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

return new class extends Migration
{
    public function up(): void
    {
        Schema::table('organizations', function (Blueprint $table) {
            $table->string('google_maps_api_key')->nullable()->after('notes');
            $table->string('gemini_api_key')->nullable()->after('google_maps_api_key');
            $table->string('google_maps_country', 2)->default('co')->after('gemini_api_key');
        });
    }

    public function down(): void
    {
        Schema::table('organizations', function (Blueprint $table) {
            $table->dropColumn(['google_maps_api_key', 'gemini_api_key', 'google_maps_country']);
        });
    }
};
