id(); $table->string('name', 255)->nullable(); $table->string('datacenter_id', 255)->nullable(); $table->foreignId('vcenter_id')->constrained('module_vcenter')->cascadeOnDelete()->nullable()->index(); $table->integer('status')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('module_datacenters'); } };