feat: Implement comprehensive vCenter integration with new services for VM configuration, power management, templates, snapshots, and resource management, alongside infrastructure management and synchronization job updates.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('infra_management', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('host')->unique()->comment('IP or Hostname');
|
||||
$table->string('username');
|
||||
$table->longText('password'); // Should be encrypted
|
||||
$table->text('token')->nullable();
|
||||
$table->string('type')->default('vcenter')->comment('vcenter, esxi, etc.');
|
||||
$table->boolean('status')->default(true);
|
||||
$table->text('description')->nullable();
|
||||
$table->json('meta_data')->nullable(); // For extra config
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('infra_management');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user