id(); $table->enum('type', ['direct', 'group'])->default('direct'); $table->string('title')->nullable(); $table->unsignedBigInteger('created_by'); $table->timestamp('last_message_at')->nullable()->index(); $table->timestamps(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); }); } public function down(): void { Schema::dropIfExists('conversations'); } };