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