| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | 
							- /**
 
-  * 消息通知数据模型
 
-  *
 
-  * @author CaiAoLin
 
-  * @date 2017/9/21
 
-  * @version
 
-  */
 
- import mongoose from "mongoose";
 
- let Schema = mongoose.Schema;
 
- let collectionName = 'message';
 
- let modelSchema = {
 
-     // 消息标题
 
-     title: String,
 
-     // 消息内容
 
-     content: String,
 
-     // 消息类型
 
-     message_type: {
 
-         type: Number,
 
-         default: 1
 
-     },
 
-     // 消息状态
 
-     status: {
 
-         type: Number,
 
-         default: 0
 
-     },
 
-     // 发布时间
 
-     release_time: {
 
-         type: Number,
 
-         default: 0
 
-     },
 
-     // 创建时间
 
-     create_time: Number,
 
-     // 最后修改时间
 
-     update_time: {
 
-         type: Number,
 
-         default: 0
 
-     },
 
-     // 创建者
 
-     creator: String,
 
-     // 发布者
 
-     release_user: String,
 
-     // 最后修改人
 
-     last_update: {
 
-         type: String,
 
-         default: ''
 
-     }
 
- };
 
- mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));
 
 
  |