<?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('meet_participants', function (Blueprint $table) {
            $table->boolean('speak_requested')->default(false)->after('hand_raised');
            $table->boolean('speak_granted')->default(false)->after('speak_requested');
        });
    }

    public function down(): void
    {
        Schema::table('meet_participants', function (Blueprint $table) {
            $table->dropColumn(['speak_requested', 'speak_granted']);
        });
    }
};
