feat: Enhance product creation UI with radio buttons and switch, correct product VPS OS foreign key, remove transaction UUID migration, and refactor customer add/edit views.

This commit is contained in:
pbao9
2026-02-25 13:45:02 +07:00
parent 2ff2095062
commit 5c97768707
5 changed files with 296 additions and 239 deletions
@@ -17,7 +17,7 @@ return new class extends Migration
$table->integer('product_type')->nullable();
$table->unsignedBigInteger('os_id')->index();
$table->foreign('product_id')->references('id')->on('vps')->onDelete('cascade');
$table->foreign('product_id')->references('id')->on('products')->onDelete('cascade');
$table->foreign('os_id')->references('id')->on('os')->onDelete('cascade');
$table->timestamps();
});
@@ -1,22 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up()
{
Schema::table('transactions', function (Blueprint $table) {
$table->uuid('uuid')->unique()->nullable()->after('id');
$table->string('public_code')->unique()->nullable()->after('uuid');
});
}
public function down()
{
Schema::table('transactions', function (Blueprint $table) {
$table->dropColumn(['uuid', 'public_code']);
});
}
};