increments('id'); $table->string('name')->comment('名称'); $table->string('alias')->unique()->comment('别名'); $table->integer('order')->index()->comment('排序'); $table->string('app_id')->comment('appid'); $table->string('app_key')->comment('appkey'); $table->integer('status')->index()->default('1')->comment('状态(1:开启 0 关闭)'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('oauths'); } }