id(); $table->string('name')->nullable(); $table->foreignId('module_ip_address') ->constrained('module_ip_address'); $table->foreignId('vcenter_id') ->constrained('module_vcenter'); $table->integer('port')->nullable(); $table->integer('order_id')->nullable(); $table->integer('first_payment')->nullable(); $table->integer('next_payment')->nullable(); $table->integer('next_due_date')->nullable(); $table->integer('next_invoice')->nullable(); $table->string('user')->nullable(); $table->text('password')->nullable(); $table->string('hostname')->nullable(); $table->string('vmware_id')->nullable(); $table->bigInteger('os_id')->default(0)->index(); $table->bigInteger('customer_id')->default(0)->index(); $table->tinyInteger('status') ->default(1) ->comment('1: Running;0:Off;2:Suspend'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('module_vmwares'); } };