6
0
Fork 0
release
李静 2021-12-03 17:41:44 +08:00
parent 86b2acc203
commit a06a45cdee
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class CreateUserInfosTable extends Migration
Schema::create('user_infos', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('user_id')->unique()->comment('用户ID');
$table->unsignedBigInteger('inviter_id')->nullable()->comment('邀请人ID');
$table->unsignedBigInteger('inviter_id')->index()->nullable()->comment('邀请人ID');
$table->string('nickname', 100)->nullable()->comment('昵称');
$table->string('avatar')->nullable()->comment('头像');
$table->enum('gender', ['male', 'female', 'unknown'])->default('unknown')->comment('性别male 男性female 女性unknown 未知');