increments('id'); $table->string('name'); $table->integer('product_id'); $table->integer('used_by')->nullable(); $table->integer('waiting_user_id')->nullable(); $table->timestamps(); }); Schema::create('item_user', function (Blueprint $table) { $table->increments('id'); $table->integer('item_id'); $table->integer('user_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('items'); Schema::dropIfExists('item_user'); } }