id(); $table->foreignId('file_category_id')->constrained('file_categories')->cascadeOnDelete(); $table->string('original_name'); $table->string('stored_name'); $table->string('mime_type', 100); $table->unsignedBigInteger('size'); $table->string('disk', 20)->default('private'); $table->foreignId('uploaded_by')->constrained('users')->cascadeOnDelete(); $table->timestamps(); $table->index('file_category_id'); $table->index('uploaded_by'); }); } public function down(): void { Schema::dropIfExists('files'); } };