feat: Implement VM restart, auto-renew invoice functionality, and client invoice detail API, alongside admin UI improvements.

This commit is contained in:
pbao9
2026-03-02 10:26:01 +07:00
parent 2c8c3d14cd
commit 0c260a7e1c
9 changed files with 842 additions and 44 deletions
@@ -0,0 +1,25 @@
<?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
{
if (!Schema::hasColumn('invoice', 'auto_renew')) {
Schema::table('invoice', function (Blueprint $table) {
$table->boolean('auto_renew')->default(false)->after('status');
});
}
}
public function down(): void
{
if (Schema::hasColumn('invoice', 'auto_renew')) {
Schema::table('invoice', function (Blueprint $table) {
$table->dropColumn('auto_renew');
});
}
}
};