<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class ResAssetAccessCreate extends Migration { public function up() { Schema::create('res_asset_access', function (Blueprint $GocOS) { $GocOS->increments('id'); $GocOS->timestamps(); $GocOS->integer('assetId')->nullable()->comment(''); $GocOS->integer('memberUserId')->nullable()->comment(''); $GocOS->tinyInteger('createFrom')->nullable()->comment(''); $GocOS->dateTime('expire')->nullable()->comment(''); $GocOS->unique(array('assetId', 'memberUserId', 'expire')); }); } public function down() { } }