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