<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateFakaProductOrder extends Migration { public function up() { Schema::create('faka_product_order', function (Blueprint $EeFZ9) { $EeFZ9->increments('id'); $EeFZ9->timestamps(); $EeFZ9->integer('productId')->nullable()->comment(''); $EeFZ9->tinyInteger('status')->nullable()->comment(''); $EeFZ9->tinyInteger('processStatus')->nullable()->comment(''); $EeFZ9->integer('amount')->nullable()->comment(''); $EeFZ9->string('uid', 100)->nullable()->comment(''); $EeFZ9->string('email', 100)->nullable()->comment(''); $EeFZ9->decimal('fee', 20, 2)->nullable()->comment(''); $EeFZ9->decimal('payFee', 20, 2)->nullable()->comment(''); $EeFZ9->string('customField1', 100)->nullable()->comment(''); $EeFZ9->string('customField2', 100)->nullable()->comment(''); $EeFZ9->string('customField3', 100)->nullable()->comment(''); $EeFZ9->string('customField4', 100)->nullable()->comment(''); $EeFZ9->string('customField5', 100)->nullable()->comment(''); $EeFZ9->string('remark', 200)->nullable()->comment(''); $EeFZ9->index(array('productId')); $EeFZ9->index(array('uid')); $EeFZ9->index(array('email')); }); } public function down() { } }