12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- return new class extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('member_users', function (Blueprint $table) {
- $table->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');
- }
- };
|