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

44 lines
1.1 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('domain',function (Blueprint $table){
$table->id()->autoIncrement();
$table->string('name',100)->nullable();
$table->integer('price')->nullable();
$table->integer('price_sale')->nullable();
$table->integer('renewal')->nullable();
$table->integer('transfer')->nullable();
$table->tinyInteger('auto_reg')->default(0);
$table->tinyInteger('type_id')->default(0)->index();
$table->tinyInteger('status')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('domain',function (Blueprint $table){
$table->dropForeign('group_id');
$table->drop();
});
}
};