id(); $table->unsignedBigInteger('price'); $table->string('product_number'); $table->foreign('product_number')->references('number')->on('products'); $table->foreignId('customer_id')->nullable()->constrained(); $table->foreignId('supplier_id')->nullable()->constrained(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('prices'); } };