initial impl of cached action counts using ee

This commit is contained in:
Wyatt Johnson
2017-08-16 15:47:56 -06:00
parent 4c1ebde3cc
commit b126cc3cb3
6 changed files with 128 additions and 37 deletions
+9 -1
View File
@@ -66,15 +66,23 @@ const CommentSchema = new Schema({
enum: COMMENT_STATUS,
default: 'NONE'
},
// parent_id is the id of the parent comment (null if there is none).
parent_id: String,
// Counts to store related to actions taken on the given comment.
action_counts: {
default: {},
type: Object,
},
// Tags are added by the self or by administrators.
tags: [TagLinkSchema],
// Additional metadata stored on the field.
metadata: {
default: {},
type: Object
type: Object,
}
}, {
timestamps: {