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