<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateMemberLoginLog extends Migration { public function up() { Schema::create('member_login_log', function (Blueprint $GocOS) { $GocOS->bigIncrements('id'); $GocOS->timestamps(); $GocOS->bigInteger('memberUserId')->nullable()->comment('用户ID'); $GocOS->tinyInteger('deviceType')->nullable()->comment('用户名'); $GocOS->string('ip', 20)->nullable()->comment('用户名'); $GocOS->string('userAgent', 400)->nullable()->comment('用户名'); $GocOS->string('ipLocation', 100)->nullable()->comment('IP地址信息'); $GocOS->index(array('memberUserId')); }); } public function down() { } }