bigIncrements('id'); $table->string('code', 32)->unique()->comment('菜单编码'); $table->string('name', 32)->comment('菜单名称'); $table->unsignedBigInteger('parent_id')->default(0); $table->unsignedInteger('seq')->default(0)->comment('排序序号'); $table->tinyInteger('show')->default(1); // 索引 }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('menus'); } }