Commit 41353044 authored by 杨翌文's avatar 杨翌文

修改

parent b304f3b0
......@@ -15,12 +15,16 @@ var ForumAccessControlSchema = new Schema({
index: true,
ref: 'ForumRole'
},
action: {//角色行为
type: String,
require: true,
index: true
},
status: { //行为状态1,允许,0拒绝
type: Number,
require: true,
default: 1
}
}, {
'collection': 'pisns_forum_access_control'
});
......
......@@ -21,10 +21,14 @@ var ForumShareLogSchema = new Schema({
index: true,
ref: 'ForumThread'
},
destination:{ //分享的目标,微信好友,微信朋友圈,QQ空间,微博等等
destination: { //分享的目标,微信好友,微信朋友圈,QQ空间,微博等等
type: String,
require: true,
index:true
index: true
},
ip: { //IP地址
type: String,
require: true
},
created: { //分享时间
type: Date,
......
......@@ -43,6 +43,10 @@ var ForumThreadSchema = new Schema({
comments: { //评论内容列表
type: Array
},
share: { //自定义分享
type: Schema.Types.ObjectId,
ref: 'ForumShare'
},
pv_count: { //话题的访问量
type: Number,
require: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment