<?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('clients', function (Blueprint $table) {
            $table->unsignedTinyInteger('bot_score')->nullable()->after('why');
            $table->string('bot_verdict', 20)->nullable()->after('bot_score');
            $table->timestamp('captcha_passed_at')->nullable()->after('bot_verdict');
        });
    }

    public function down(): void
    {
        Schema::table('clients', function (Blueprint $table) {
            $table->dropColumn(['bot_score', 'bot_verdict', 'captcha_passed_at']);
        });
    }
};
