bigIncrements('id'); $table->bigInteger('item_id')->unsigned(); $table->foreign('item_id') ->references('id') ->on('items') ->onDelete('cascade'); $table->date('bundling_date'); $table->double('qty_to_bundle'); $table->text('description')->nullable(); $table->bigInteger('warehouse_id')->unsigned(); $table->foreign('warehouse_id') ->references('id') ->on('warehouses') ->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('bundles'); } }