<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberCreditLog extends Migration { public function up() { Schema::create('member_credit_log', function (Blueprint $hTN3M) { $hTN3M->increments('id'); $hTN3M->timestamps(); $hTN3M->integer('memberUserId')->nullable()->comment('用户ID'); $hTN3M->integer('change')->nullable()->comment('金额'); $hTN3M->string('remark', 100)->nullable()->comment('备注'); $hTN3M->index(array('memberUserId')); }); } public function down() { } }