<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberMessage extends Migration { public function up() { if (!\ModStart\Core\Dao\ModelManageUtil::hasTable('member_message')) { Schema::create('member_message', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->integer('userId')->comment('用户ID')->nullable(); $onV5E->tinyInteger('status')->comment('1未读 2已读')->nullable(); $onV5E->integer('fromId')->comment('来源用户ID')->nullable(); $onV5E->text('content')->comment('消息内容(html)')->nullable(); $onV5E->index(array('userId', 'status')); }); } } public function down() { } }