id(); $table->foreignId('world_id')->constrained()->cascadeOnDelete(); // world, tribe:, or dm:: $table->string('channel', 40); $table->foreignId('player_id')->constrained()->cascadeOnDelete(); $table->text('body'); $table->dateTime('created_at', 3); $table->index(['world_id', 'channel', 'id']); }); Schema::create('chat_reads', function (Blueprint $table) { $table->id(); $table->foreignId('player_id')->constrained()->cascadeOnDelete(); $table->string('channel', 40); $table->unsignedBigInteger('last_id'); $table->unique(['player_id', 'channel']); }); } public function down(): void { Schema::dropIfExists('chat_reads'); Schema::dropIfExists('chat_messages'); } };