123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- return new class extends Migration
- {
- /**
- * eav 集合
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('sys_assemble', function (Blueprint $table) {
- $table->id('id')->unsigned()->comment('编号');
- $table->string('mid', 16)->comment('唯一标识符'); // 随机
- $table->string('title', 255)->comment('中文标题'); // 中文标题
- $table->string('schema', 255)->unique()->comment('表的名称'); // 表名称
- $table->string('remark', 500)->nullable()->comment('备注'); // 备注
- $table->bigInteger('connect_db_id',false)->default(1)->comment('备注'); // 备注
- $table->tinyInteger('is_delete')->default(0)->comment('是否删除 1 删除');
- $table->integer('created_at', false)->unsigned()->comment('创建时间,时间戳');
- $table->integer('updated_at', false)->unsigned()->comment('更新时间,时间戳');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('sys_assemble');
- }
- };
|