<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberMoneyCash extends Migration { public function up() { Schema::create('member_money_cash', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->integer('memberUserId')->nullable()->comment('用户ID'); $onV5E->tinyInteger('status')->nullable()->comment('状态'); $onV5E->decimal('money', 20, 2)->nullable()->comment('金额'); $onV5E->decimal('moneyAfterTax', 20, 2)->nullable()->comment('实际到账'); $onV5E->string('remark', 100)->nullable()->comment('备注'); $onV5E->tinyInteger('type')->nullable()->comment('提现账号类型'); $onV5E->string('realname', 50)->nullable()->comment('提现账号姓名'); $onV5E->string('account', 200)->nullable()->comment('提现账号'); $onV5E->index(array('memberUserId')); }); } public function down() { } }