--- /dev/null
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('discord_bot_commands', function (Blueprint $table) {
+ $table->id();
+ $table->foreignId('tournament_id')->nullable()->constrained();
+ $table->foreignId('user_id')->nullable()->constrained();
+ $table->string('command');
+ $table->text('parameters')->nullable()->default(null);
+ $table->string('status')->default('hold');
+ $table->text('result')->nullable()->default(null);
+ $table->timestamp('executed_at')->nullable()->default(null);
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('discord_bot_commands');
+ }
+};