<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class ResAssetRewardCreate extends Migration { public function up() { Schema::create('res_asset_reward', function (Blueprint $GocOS) { $GocOS->increments('id'); $GocOS->timestamps(); $GocOS->string('sn', 20)->nullable()->comment(''); $GocOS->integer('assetId')->nullable()->comment(''); $GocOS->integer('memberUserId')->nullable()->comment(''); $GocOS->integer('credit')->nullable()->comment(''); $GocOS->decimal('money', 20, 2)->nullable()->comment(''); $GocOS->index(array('memberUserId')); $GocOS->index(array('assetId')); $GocOS->unique('sn'); }); } public function down() { } }