Files
portal-api/database/migrations/2024_02_03_095630_module_vmware.php
T
2025-07-24 16:18:27 +07:00

47 lines
1.5 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('module_vmware',function (Blueprint $table) {
$table->id()->autoIncrement();
$table->string('name',255)->nullable();
$table->bigInteger('module_ip_address_id')->default(0)->index();
$table->integer('port')->nullable();
$table->integer('order_id')->nullable();
$table->integer('first_payment')->nullable();
$table->integer('next_payment')->nullable();
$table->integer('next_due_date')->nullable();
$table->integer('next_invoice')->nullable();
$table->string('user',100)->nullable();
$table->text('password')->nullable();
$table->string('hostname',100)->nullable();
$table->string('vmware_id')->nullable();
$table->bigInteger('os_id')->default(0)->index();
$table->bigInteger('customer_id')->default(0)->index();
$table->tinyInteger('status')->default(1)->comment('1: Running;0:Off;2:Suspend');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('module_vmwares');
}
};