feat: Reimplement order and invoice management with new service and repository layers, introduce compression middleware, and update database schema.

This commit is contained in:
pbao9
2026-03-12 09:30:29 +07:00
parent 7f6264c87f
commit 1e09ccf17b
87 changed files with 2348 additions and 2612 deletions
@@ -13,20 +13,30 @@ return new class extends Migration
*/
public function up()
{
Schema::create('module_ip_address',function (Blueprint $table) {
$table->id()->autoIncrement();
$table->string('vm_name',255)->nullable();
$table->unsignedBigInteger('module_network_id')->nullable();
$table->string('ip',100)->nullable();
$table->string('gateway',100)->nullable();
$table->string('netmask',100)->nullable();
$table->string('dns',100)->nullable();
$table->tinyInteger('status')->default(0)->comment('1: assign;0: free');
$table->timestamps();
$table->foreign('module_network_id', 'fk_module_ip_network')
->references('id')
->on('module_network')
Schema::create('module_ip_address', function (Blueprint $table) {
$table->id();
$table->string('vm_name')->nullable();
$table->foreignId('module_network_id')
->nullable()
->constrained('module_network')
->nullOnDelete();
$table->foreignId('module_host_id')
->nullable()
->constrained('module_host')
->nullOnDelete();
$table->string('ip')->nullable();
$table->string('gateway')->nullable();
$table->string('netmask')->nullable();
$table->string('dns')->nullable();
$table->tinyInteger('status')
->default(0)
->comment('1: assign; 0: free');
$table->timestamps();
});
}