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