string("id",64)->primary(); $table->char("auth_type",64); $table->char("nickname",64); $table->char("avatar",255); $table->integer('user_id')->index()->default(0); //用户UID $table->string("access_token",64); $table->string("refresh_token",64)->nullable(); $table->integer("expires_in"); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('user_oauth'); } }