--- /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.
+ */
+ public function up(): void
+ {
+ Schema::create('chat_bot_logs', function (Blueprint $table) {
+ $table->id();
+ $table->timestamps();
+ $table->foreignId('channel_id')->constrained();
+ $table->foreignId('origin_id')->nullable()->default(null);
+ $table->string('origin_type')->nullable()->default(null);
+ $table->text('text');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::dropIfExists('chat_bot_logs');
+ }
+};