increments('id'); $table->string('name', 200)->comment('角色名称')->nullable(); $table->integer('status')->default(1)->comment('是否禁用')->nullable(); $table->string('info', 200)->comment('备注')->nullable(); $table->timestamps(); $table->softDeletes(); $table->index('deleted_at', 'idx_deleted_at'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('admin_roles'); } }