6
0
Fork 0
jiqu-library-server/database/migrations/2021_12_03_135905_create_vi...

34 lines
728 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVipsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('vips', function (Blueprint $table) {
$table->id();
$table->string('name')->comment('等级名称');
$table->unsignedBigInteger('growth_value')->default(0)->comment('等级成长值');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('vips');
}
}