bigIncrements('id'); $table->integer('city_id'); $table->string('city_name',20)->comment('城市名称'); //城市名称 $table->string('title',70)->comment('专题名称'); $table->tinyInteger('show_type')->default(0)->comment('商品展示方式:0:左图右字;1:通栏大图;2:左右滑动'); $table->tinyInteger('is_open')->default(1)->comment('是否启用:0:关闭;1:开启'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('cms_subject'); } }