mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
initial impl of cached action counts using ee
This commit is contained in:
+9
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user