Add bulk update gateway endpoint to vCenter API routes

- Introduced a new POST route 'bulk-update-gateway' for bulk updating gateways.
- This route is protected by the 'module-vcenter.manager' permission middleware.
This commit is contained in:
baodev0
2026-08-06 15:32:51 +07:00
parent 90f2c97bb4
commit 79f06c2fa2
9 changed files with 5555 additions and 19 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('ip_pool_contacts', function (Blueprint $table) {
$table->id();
$table->foreignId('ip_pool_id')->constrained('ip_pools')->cascadeOnDelete();
$table->string('email');
$table->enum('type', ['to', 'cc']);
$table->timestamps();
$table->unique(['ip_pool_id', 'email', 'type']);
});
}
public function down(): void
{
Schema::dropIfExists('ip_pool_contacts');
}
};