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'); } };