<?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 $GocOS) { $GocOS->bigIncrements('id'); $GocOS->timestamps(); $GocOS->bigInteger('memberUserId')->nullable()->comment('用户ID'); $GocOS->string('biz', 20)->nullable()->comment('业务'); $GocOS->dateTime('expire')->nullable()->comment('到期时间'); $GocOS->bigInteger('quotaUsed')->nullable()->comment('使用额度'); $GocOS->bigInteger('quotaTotal')->nullable()->comment('总额度'); $GocOS->index(array('memberUserId', 'biz')); }); } public function down() { } }