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