<?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('businesses', function (Blueprint $table): void {
            $table->text('nextsms_api_key')->nullable()->after('reminder_channels');
            $table->string('nextsms_sender_id', 100)->nullable()->after('nextsms_api_key');
        });
    }

    public function down(): void
    {
        Schema::table('businesses', function (Blueprint $table): void {
            $table->dropColumn(['nextsms_api_key', 'nextsms_sender_id']);
        });
    }
};
