id()->autoIncrement(); $table->bigInteger('invoice_id')->default(0)->index(); $table->unsignedBigInteger('product_id')->nullable()->index(); $table->integer('months')->default(0); $table->unsignedBigInteger('os_id')->nullable()->index(); $table->string('server_name')->nullable(); $table->integer('quantity')->default(1); $table->tinyInteger('invoice_type')->default(1); $table->integer('price')->default(0); $table->string('product_type', 50)->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('invoice_item'); } };