id(); $table->string('order_num', 255)->unique()->nullable(); $table->integer('date')->nullable(); $table->integer('due_date')->nullable(); $table->integer('date_paid')->nullable(); $table->integer('sub_total')->nullable(); $table->integer('tax')->nullable(); $table->integer('total')->nullable(); $table->bigInteger('customer_id')->default(0)->index(); $table->integer('order_id')->default(0)->index(); $table->text('note')->nullable(); $table->string('client_ip', 100)->nullable(); $table->string('vm_id')->nullable()->index(); $table->unsignedInteger('rebuild_count')->nullable()->default(0); $table->tinyInteger('invoice_type')->default(1); $table->tinyInteger('status')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice', function (Blueprint $table) { $table->dropForeign(['payment_id', 'customer_id']); $table->drop(); }); } };