comment('用户管理'); $table->increments('id'); $table->string('mobile')->default('')->comment('手机号'); $table->string('password')->default('')->comment('密码'); $table->string('nickname')->nullable()->comment('昵称'); $table->string('avatar')->nullable()->comment('头像'); $table->string('gender')->default('UNKNOWN')->comment('性别'); $table->string('register_area')->nullable()->comment('注册地(行政区划代码)'); $table->string('state')->default('ENABLE')->comment('状态'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('member_users'); } };