feat: implement VMware vCenter integration, enhance product pricing display, and update order processing logic.

This commit is contained in:
pbao9
2026-03-01 23:10:35 +07:00
parent 6b18c3ff12
commit 1cfcaee871
27 changed files with 1738 additions and 104 deletions
@@ -12,7 +12,7 @@ return new class extends Migration {
$table->uuid();
$table->string('trans')->nullable();
$table->integer('amount')->nullable();
$table->string('public_code')->nullable();
$table->foreignId('customer_id')
->constrained('customers')
->cascadeOnDelete();
@@ -0,0 +1,28 @@
<?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::table('product_os', function (Blueprint $table) {
$table->dropColumn('product_type');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('product_os', function (Blueprint $table) {
//
});
}
};
@@ -0,0 +1,27 @@
<?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::table('module_vmware', function (Blueprint $table) {
$table->unsignedBigInteger('vcenter_id')->nullable()->after('module_ip_address_id');
$table->foreign('vcenter_id')->references('id')->on('module_vcenter')->nullOnDelete();
});
}
public function down(): void
{
Schema::table('module_vmware', function (Blueprint $table) {
$table->dropForeign(['vcenter_id']);
$table->dropColumn('vcenter_id');
});
}
};