<?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 $hTN3M) { $hTN3M->increments('id'); $hTN3M->timestamps(); $hTN3M->integer('memberUserId')->nullable()->comment('用户ID'); $hTN3M->tinyInteger('status')->nullable()->comment('状态'); $hTN3M->decimal('money', 20, 2)->nullable()->comment('金额'); $hTN3M->decimal('moneyAfterTax', 20, 2)->nullable()->comment('实际到账'); $hTN3M->string('remark', 100)->nullable()->comment('备注'); $hTN3M->tinyInteger('type')->nullable()->comment('提现账号类型'); $hTN3M->string('realname', 50)->nullable()->comment('提现账号姓名'); $hTN3M->string('account', 200)->nullable()->comment('提现账号'); $hTN3M->index(array('memberUserId')); }); } public function down() { } }