Skip to content

comments

Column NameTypeCommentDefaultNullRemark
idbigint UNSIGNEDPrimary Key IDNOAuto-increment
cidvarchar(32)Public IDNOUnique
post_idbigint UNSIGNEDPost IDNORelated field posts->id
top_parent_idbigint UNSIGNEDTop-level Comment ID0NOBelongs to which comment, 0 means not belonging to any comment
parent_idbigint UNSIGNEDParent Comment ID0NO0 means a first-level comment
user_idbigint UNSIGNEDPublisher IDNORelated field users->id
geotag_idint UNSIGNEDGeotag ID0NORelated field geotags->id
contentlongtextContentYES
lang_tagvarchar(16)Language TagYES
is_markdowntinyint UNSIGNEDContent in MD format0NO0.No / 1.Yes
is_anonymoustinyint UNSIGNEDAnonymous0NO0.No / 1.Yes
privacy_statetinyint UNSIGNEDPrivacy1NO1 Public
2 Private
3 Private configured by post
Private: visible only to the author of the comment and the author of the post
is_stickytinyint UNSIGNEDIs Sticky0NO0.No / 1.Yes
digest_statetinyint UNSIGNEDDigest Status1NO1.No / 2.General Digest / 3.Premium Digest
digested_attimestampDigest TimeYESTime set to Digest
view_countint UNSIGNEDNumber of View0NOCount by plugin
like_countint UNSIGNEDNumber of Likes0NONumber of users who liked this comment
dislike_countint UNSIGNEDNumber of Dislikes0NONumber of users who disliked this comment
follow_countint UNSIGNEDNumber of Follows0NONumber of users who followed (collected) this comment
block_countint UNSIGNEDNumber of Blocks0NONumber of users who blocked (not interested) this comment
comment_countint UNSIGNEDNumber of Comments0NONumber of replies to this comment
comment_digest_countint UNSIGNEDTotal Digest Comments0NOTotal number of digest comments in response to this comment
comment_like_countint UNSIGNEDNumber of Likes for Sub-Comments0NOTotal number of likes for all comments in response to this comment
comment_dislike_countint UNSIGNEDNumber of Dislikes for Sub-Comments0NOTotal number of dislikes for all comments in response to this comment
comment_follow_countint UNSIGNEDNumber of Follows for Sub-Comments0NOTotal number of follows for all comments in response to this comment
comment_block_countint UNSIGNEDNumber of Blocks for Sub-Comments0NOTotal number of blocks for all comments in response to this comment
edit_countsmallint UNSIGNEDNumber of edits0NOTotal number of edits
last_edit_attimestampEdit TimeYESIf editable after publish, record edit time here
last_comment_attimestampComment TimeYESTime of the latest comment
When a user replies to this comment
more_infojsonMore InfoYESE.g. publisher IP location name, device name, etc.
permissionsjsonPermissionsYES
rank_statetinyint UNSIGNEDRank Status1NO1 Not set
is_enabledtinyint UNSIGNEDIs Valid1NO0.Invalid (visible only to yourself) / 1.Valid
created_attimestampPublish TimeuseCurrentNOFor example, MySQL defaults to CURRENT_TIMESTAMP
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Introduction to Permission Parameters

json
{
    "editor": {
        "isAppEditor": "Boolean / Whether the editor plugin create",
        "editorFskey": "String / editor fskey"
    },
    "contentWritingDirection": "String / Writing Direction", // ltr or rtl
    "canDelete": "Boolean / Does the author have the right to delete?",
    "activeButton": {
        // Link with post commentConfig.action, replace this configuration
        "hasActiveButton": "Boolean / Whether there is an active button or not",
        "buttonName": {
            "Language Tag": "String / Button Name",
            "en": "Name"
        },
        "buttonStyle": "String / Button Style primary secondary success danger warning info",
        "appFskey": "String / App fskey"
    },
}

Released under the Apache-2.0 License