<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class ResAssetBuyOrderCreate extends Migration { public function up() { Schema::create('res_asset_buy_order', function (Blueprint $GocOS) { $GocOS->increments('id'); $GocOS->timestamps(); $GocOS->string('sn', 30)->nullable()->comment('订单号'); $GocOS->integer('memberUserId')->comment('用户ID')->nullable(); $GocOS->integer('assetId')->comment('文档ID')->nullable(); $GocOS->tinyInteger('status')->comment('状态')->nullable(); $GocOS->decimal('payFee', 20, 2)->nullable()->comment('支付价格'); $GocOS->timestamp('payTime')->nullable()->comment('支付时间'); $GocOS->unique(array('sn')); $GocOS->index(array('memberUserId')); $GocOS->index(array('created_at')); }); } public function down() { } }