You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
user_center/database/migrations/2021_01_22_064549_create_sy...

41 lines
1.3 KiB

4 years ago
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSystemSettingTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('uc_system_setting_t', function (Blueprint $table) {
$table->id();
$table->string('title', 20)->comment('标题');
$table->string('name', 20)->comment('名字,英文唯一');
$table->set('data_type', ['STRING','NUMBER','ARRAY','ENUM'])->comment('存储类型');
$table->string('prop', 20)->comment('归属');
$table->string('group', 20)->default('')->comment('分组');
$table->string('content', 255)->comment('内容');
$table->string('remark', 255)->default('')->comment('说明');
$table->integer('sort')->default(1)->comment('排序');
$table->tinyInteger('status')->default(1)->comment('状态: 1 启用 2 关闭 0 删除');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('uc_system_setting_t');
}
}