44 lines
1.3 KiB
PHP
44 lines
1.3 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_hosting',function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('name',255)->nullable();
|
|
$table->bigInteger('order_id')->default(0)->index();
|
|
$table->integer('module_server_id')->default(0)->index();
|
|
$table->bigInteger('customer_id')->default(0)->index();
|
|
$table->integer('first_payment')->nullable();
|
|
$table->integer('server_domain_id')->nullable();
|
|
$table->integer('next_payment')->nullable();
|
|
$table->integer('next_due_date')->nullable();
|
|
$table->integer('next_invoice')->nullable();
|
|
$table->string('username',255)->nullable();
|
|
$table->text('password')->nullable();
|
|
$table->tinyInteger('status')->default(1)->comment('1: Còn hạn;0: hết hạn');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('module_hostings');
|
|
}
|
|
};
|