<?php

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

return new class extends Migration
{
    /**
     * 'notes' — customer-supplied, submitted via the booking create API
     * endpoint (StoreBookingRequest). 'remark' — staff-only, set from the
     * admin panel (SetRemarkTableAction); never exposed on the customer
     * BookingResource. Both nullable, free text.
     */
    public function up(): void
    {
        Schema::table('bookings', function (Blueprint $table) {
            $table->text('notes')->nullable();
            $table->text('remark')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('bookings', function (Blueprint $table) {
            $table->dropColumn(['notes', 'remark']);
        });
    }
};
