increments('id'); $table->integer('user_id')->unsigned(); $table->string('type')->comment('权限类型open: 公开, friend: 好友可见, right:特定条件, 参考right_id; user:仅用户可见可见'); $table->text('config')->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('rights'); } }