<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberOauth extends Migration { public function up() { Schema::create('member_oauth', function (Blueprint $hTN3M) { $hTN3M->increments('id'); $hTN3M->timestamps(); $hTN3M->integer('memberUserId')->comment('用户ID')->nullable(); $hTN3M->string('type', 30)->comment('类型')->nullable(); $hTN3M->string('openId', 150)->comment('OpenId')->nullable(); $hTN3M->unique(array('type', 'openId')); $hTN3M->index(array('memberUserId')); }); } public function down() { } }