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