id(); $table->foreignId('created_by_id')->nullable()->constrained('users')->nullOnDelete(); $table->string('type')->default('direct')->index(); $table->string('name')->nullable(); $table->text('description')->nullable(); $table->timestamps(); $table->index(['type', 'updated_at']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('conversations'); } };