id(); $table->foreignId('contract_id')->constrained()->cascadeOnDelete(); $table->string('filename'); $table->string('path'); $table->string('mime_type')->nullable(); $table->integer('size')->nullable(); $table->text('description')->nullable(); $table->foreignId('uploaded_by')->nullable()->constrained('users')->nullOnDelete(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('documents'); } };