update
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
<?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
|
||||
{
|
||||
Schema::create('domain_fluctuation_names', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('domain_name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('domain_fluctuation_names');
|
||||
}
|
||||
};
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
<?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
|
||||
{
|
||||
Schema::create('domain_fluctuation_terms', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->boolean('status')->default(false);
|
||||
$table->string('term_name');
|
||||
$table->string('description')->nullable();
|
||||
$table->integer('date_create');
|
||||
$table->timestamps();
|
||||
|
||||
$table->index('user_id');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('domain_fluctuation_terms');
|
||||
}
|
||||
};
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
<?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
|
||||
{
|
||||
Schema::create('domain_fluctuations', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('domainName');
|
||||
$table->unsignedBigInteger('term_id');
|
||||
$table->foreign('term_id')->references('id')->on('domain_fluctuation_terms');
|
||||
|
||||
$table->integer('registeredDate')->default(0)->index();
|
||||
$table->integer('expiredDate')->default(0)->index();
|
||||
$table->string('ownerName')->nullable();
|
||||
$table->string('ownerType')->nullable()->comment('C=ca nhan, T=to chuc');
|
||||
$table->string('address')->nullable();
|
||||
$table->string('wardName')->nullable();
|
||||
$table->string('districtName')->nullable();
|
||||
$table->string('cityName')->nullable();
|
||||
$table->string('cityCode')->nullable()->comment('Cot 7 - Ma tinh/thanh pho TT45');
|
||||
$table->string('countryCode')->nullable();
|
||||
$table->string('phone')->nullable();
|
||||
$table->string('email')->nullable();
|
||||
$table->string('fax')->nullable();
|
||||
$table->string('adminName')->nullable();
|
||||
$table->string('businessCode')->nullable()->comment('Cot 10 - Ma so DN/HKD/MST');
|
||||
$table->string('eidCode')->nullable()->comment('Cot 11 - Ma dinh danh dien tu to chuc');
|
||||
$table->string('personalId')->nullable()->comment('Cot 12 - So CCCD/ho chieu');
|
||||
$table->string('birthDate')->nullable()->comment('Cot 13 - Ngay sinh');
|
||||
$table->string('icannRegistrarName')->nullable();
|
||||
$table->string('icannRegistrarTradeName')->nullable();
|
||||
$table->boolean('isAgentManager')->nullable()->comment('true=dai ly, false=ndk');
|
||||
$table->string('action')->nullable();
|
||||
$table->string('actionReason')->nullable();
|
||||
$table->string('actionSource')->nullable();
|
||||
$table->integer('actionDate')->nullable()->default(0);
|
||||
$table->string('note')->nullable();
|
||||
$table->integer('ianaNumber')->default(1710);
|
||||
$table->tinyInteger('status')->default(0)->comment('0=Inactive, 1=Active');
|
||||
$table->timestamps();
|
||||
|
||||
$table->index('domainName');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('domain_fluctuations');
|
||||
}
|
||||
};
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
<?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
|
||||
{
|
||||
Schema::create('term_fluctuation_type', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('term_fluctuation_id')->unsigned()->default(0)->index();
|
||||
$table->string('type', 50)->default('vnnic_06');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('term_fluctuation_type');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user