<?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('training_feedbacks', function (Blueprint $table) {
            $table->string('organization')->nullable()->after('email');
            $table->string('event_name')->nullable()->after('organization');
            $table->date('training_date')->nullable()->after('event_name');
            $table->string('facilitator')->nullable()->after('training_date');
            $table->string('audience_segment')->nullable()->after('facilitator');
        });
    }

    public function down(): void
    {
        Schema::table('training_feedbacks', function (Blueprint $table) {
            $table->dropColumn([
                'organization',
                'event_name',
                'training_date',
                'facilitator',
                'audience_segment',
            ]);
        });
    }
};
