<?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 $tM63P) { $tM63P->increments('id'); $tM63P->timestamps(); $tM63P->integer('userId')->comment('用户ID')->nullable(); $tM63P->tinyInteger('status')->comment('1未读 2已读')->nullable(); $tM63P->integer('fromId')->comment('来源用户ID')->nullable(); $tM63P->text('content')->comment('消息内容(html)')->nullable(); $tM63P->index(array('userId', 'status')); }); } } public function down() { } }