id(); $table->unsignedInteger('price'); $table->unsignedInteger('ppn11'); $table->unsignedInteger('qty'); $table->string('product_number')->unique(); $table->foreignId('product_id')->constrained(); $table->foreignId('supplier_id')->constrained(); $table->foreignId('user_id')->constrained(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('purchases'); } };