increments('id')->comment('用户ID'); $table->integer('site_id')->nullable()->comment('站点ID'); $table->char('nickname', 64)->nullable()->comment('微信昵称'); $table->char('openid', 64)->nullable()->comment('微信openid'); $table->char('mobile', 11)->comment('手机号'); $table->string('avatar', 255)->comment('用户头像'); $table->dateTime('last_login_time')->nullable()->comment('最后一次登录时间'); $table->string('remember_token', 255)->nullable(); $table->timestamps(); $table->softDeletes(); $table->index('deleted_at', 'idx_deleted_at'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_info'); } }