<?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('serenatas', function (Blueprint $table) {
            $table->decimal('actual_customer_charge', 12, 2)->nullable()->after('total_charged');
            $table->timestamp('actual_customer_charge_recorded_at')->nullable()->after('actual_customer_charge');
            $table->text('actual_customer_charge_notes')->nullable()->after('actual_customer_charge_recorded_at');
        });
    }

    public function down(): void
    {
        Schema::table('serenatas', function (Blueprint $table) {
            $table->dropColumn([
                'actual_customer_charge',
                'actual_customer_charge_recorded_at',
                'actual_customer_charge_notes',
            ]);
        });
    }
};
