id(); $table->unsignedBigInteger('review_id'); // FK to product_reviews.id $table->string('disk')->default('public'); // e.g., public / s3 $table->string('path'); // stored file path $table->unsignedInteger('width')->nullable(); $table->unsignedInteger('height')->nullable(); $table->timestamps(); $table->foreign('review_id') ->references('id')->on('product_reviews') ->onDelete('cascade'); }); } public function down() { Schema::dropIfExists('review_photos'); } }