bigIncrements('id'); $table->bigInteger('item_category_id')->unsigned()->nullable(); $table->foreign('item_category_id')->references('id')->on('item_categories')->onDelete('cascade'); $table->string('name'); $table->string('sku')->nullable(); $table->string('unit')->nullable(); $table->string('description')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('items'); } }