<?php

declare(strict_types=1);

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('bookings', function (Blueprint $table) {
            $table->enum('service_type', ['script_only', 'script_with_setup'])->default('script_only')->after('guests');
            $table->decimal('setup_service_fee', 10, 2)->default(0)->after('service_fee');
        });
    }

    public function down(): void
    {
        Schema::table('bookings', function (Blueprint $table) {
            $table->dropColumn(['service_type', 'setup_service_fee']);
        });
    }
};
