id(); $table->foreignId('docket_entry_id')->constrained('docket_entries')->onDelete('cascade'); $table->string('title'); $table->string('original_filename'); $table->string('stored_filename'); $table->string('file_path'); $table->bigInteger('file_size'); $table->string('mime_type'); $table->text('summary')->nullable(); $table->text('notes')->nullable(); $table->integer('display_order')->default(0); $table->timestamps(); // Index for foreign key $table->index('docket_entry_id'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('documents'); } };