id(); $table->foreignId('user_id')->constrained('users')->restrictOnDelete(); $table->string('original_name'); $table->string('mime_type'); $table->string('path'); $table->string('link'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('files'); } };