uuid("uuid")->unique()->primary; $table->foreignUuid("product_uuid")->nullable()->references("uuid")->on("products")->nullOnDelete(); $table->string('path')->unique(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('images'); } }