bigIncrements('id'); $table->date('adjustment_date'); $table->bigInteger('chart_of_account_id')->unsigned()->nullable(); $table->foreign('chart_of_account_id') ->references('id') ->on('chart_of_accounts') ->onDelete('cascade'); $table->bigInteger('warehouse_id')->unsigned(); $table->foreign('warehouse_id') ->references('id') ->on('warehouses') ->onDelete('cascade'); $table->string('reason')->nullable(); $table->text('description')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('adjustments'); } }