<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use ModStart\Core\Dao\ModelManageUtil; class CreateFakaProductStock extends Migration { public function up() { Schema::create('faka_product_stock', function (Blueprint $EeFZ9) { $EeFZ9->increments('id'); $EeFZ9->timestamps(); $EeFZ9->integer('productId')->nullable()->comment(''); $EeFZ9->integer('orderId')->nullable()->comment(''); $EeFZ9->tinyInteger('status')->nullable()->comment(''); $EeFZ9->string('no', 100)->nullable()->comment(''); $EeFZ9->string('secret', 100)->nullable()->comment(''); $EeFZ9->string('expire', 100)->nullable()->comment(''); $EeFZ9->index(array('productId')); $EeFZ9->index(array('orderId')); $EeFZ9->unique(array('productId', 'no')); }); } public function down() { } }