3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
7 return new class extends Migration
16 Schema::create('twitch_bot_commands', function (Blueprint $table) {
18 $table->foreignId('tournament_id')->nullable()->constrained();
19 $table->foreignId('user_id')->nullable()->constrained();
20 $table->string('command');
21 $table->text('parameters')->nullable()->default(null);
22 $table->string('status')->default('hold');
23 $table->text('result')->nullable()->default(null);
24 $table->timestamp('executed_at')->nullable()->default(null);
30 * Reverse the migrations.
34 public function down()
36 Schema::dropIfExists('twitch_bot_commands');