<?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('prompt_functions', function (Blueprint $table) {
            $table->longText('curl_request')->nullable()->after('phone');
            $table->longText('curl_response')->nullable()->after('curl_request');
        });
    }

    public function down(): void
    {
        Schema::table('prompt_functions', function (Blueprint $table) {
            $table->dropColumn(['curl_request', 'curl_response']);
        });
    }
};
