<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberUser extends Migration { public function up() { Schema::create('member_user', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->string('username', 50)->nullable()->comment('用户名'); $onV5E->string('phone', 20)->nullable()->comment('手机'); $onV5E->string('email', 200)->nullable()->comment('邮箱')->charset('utf8'); $onV5E->char('password', 32)->nullable()->comment('密码'); $onV5E->char('passwordSalt', 16)->nullable()->comment('密码Salt'); $onV5E->timestamp('lastLoginTime')->nullable()->comment('上次登录时间'); $onV5E->string('lastLoginIp', 20)->nullable()->comment('上次登录Ip'); $onV5E->boolean('phoneVerified')->nullable()->comment('手机已验证'); $onV5E->boolean('emailVerified')->nullable()->comment('邮箱已验证'); $onV5E->string('avatar', 100)->nullable()->comment('头像(小)'); $onV5E->string('avatarMedium', 100)->nullable()->comment('头像(中)'); $onV5E->string('avatarBig', 100)->nullable()->comment('头像(大)'); $onV5E->tinyInteger('gender')->nullable()->comment('性别'); $onV5E->string('realname', 20)->nullable()->comment('真实姓名'); $onV5E->string('signature', 200)->nullable()->comment('个性签名'); $onV5E->index('username'); $onV5E->index('phone'); $onV5E->index('email'); }); } public function down() { } }