<?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::create('chat_blocks', function (Blueprint $t) { $t->id(); $t->string('visitor_id', 255); $t->string('reason', 255)->nullable(); $t->unsignedBigInteger('blocked_by')->nullable(); $t->timestamp('created_at')->nullable(); $t->timestamp('updated_at')->nullable(); $t->unique('visitor_id', 'chat_blocks_visitor_id_unique'); }); } public function down(): void { Schema::dropIfExists('chat_blocks'); } }; 