feat: standardize invoice number field, refine invoice creation logic, and update module foreign key constraints

This commit is contained in:
pbao9
2026-03-12 10:10:20 +07:00
parent 1e09ccf17b
commit 1934be9a19
10 changed files with 24 additions and 30 deletions
@@ -18,10 +18,10 @@ return new class extends Migration
$table->string('name')->nullable();
$table->foreignId('module_ip_address')
->constrained('module_ip_address');
->constrained('module_ip_address')->nullable();
$table->foreignId('vcenter_id')
->constrained('module_vcenter');
->constrained('module_vcenter')->nullable();
$table->integer('port')->nullable();
$table->integer('order_id')->nullable();
+1 -1
View File
@@ -23,6 +23,6 @@ class DatabaseSeeder extends Seeder
$this->call(TemplateSeeder::class);
$this->call(Setting::class);
$this->call(ControlPanelSeeder::class);
$this->call(VPSProductSeeder::class);
// $this->call(VPSProductSeeder::class);
}
}