<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class MemberCard extends Migration { public function up() { Schema::create('member_card', function (Blueprint $onV5E) { $onV5E->bigIncrements('id'); $onV5E->timestamps(); $onV5E->bigInteger('memberUserId')->nullable()->comment('用户ID'); $onV5E->string('biz', 20)->nullable()->comment('业务'); $onV5E->dateTime('expire')->nullable()->comment('到期时间'); $onV5E->bigInteger('quotaUsed')->nullable()->comment('使用额度'); $onV5E->bigInteger('quotaTotal')->nullable()->comment('总额度'); $onV5E->index(array('memberUserId', 'biz')); }); } public function down() { } }