id(); $table->foreignId('service_task_id')->constrained()->onDelete('cascade'); $table->string('filename'); $table->string('original_name'); $table->string('path'); $table->string('mime_type')->nullable(); $table->unsignedBigInteger('size')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('attachments'); } };