<?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 $tM63P) { $tM63P->increments('id'); $tM63P->timestamps(); $tM63P->string('username', 50)->nullable()->comment('用户名'); $tM63P->string('phone', 20)->nullable()->comment('手机'); $tM63P->string('email', 200)->nullable()->comment('邮箱')->charset('utf8'); $tM63P->char('password', 32)->nullable()->comment('密码'); $tM63P->char('passwordSalt', 16)->nullable()->comment('密码Salt'); $tM63P->timestamp('lastLoginTime')->nullable()->comment('上次登录时间'); $tM63P->string('lastLoginIp', 20)->nullable()->comment('上次登录Ip'); $tM63P->boolean('phoneVerified')->nullable()->comment('手机已验证'); $tM63P->boolean('emailVerified')->nullable()->comment('邮箱已验证'); $tM63P->string('avatar', 100)->nullable()->comment('头像(小)'); $tM63P->string('avatarMedium', 100)->nullable()->comment('头像(中)'); $tM63P->string('avatarBig', 100)->nullable()->comment('头像(大)'); $tM63P->tinyInteger('gender')->nullable()->comment('性别'); $tM63P->string('realname', 20)->nullable()->comment('真实姓名'); $tM63P->string('signature', 200)->nullable()->comment('个性签名'); $tM63P->index('username'); $tM63P->index('phone'); $tM63P->index('email'); }); } public function down() { } }