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
contentlongtextContentYES
lang_tagvarchar(16)Language TagYES
writing_directionchar(3)Writing DirectionYES
is_markdowntinyint UNSIGNEDIs the content in MD format0NO0.No / 1.Yes
is_anonymoustinyint UNSIGNEDIs Anonymous0NO0.No / 1.Yes
map_longitudedecimal(12,8)Map-LongitudeYESFloat, range -180~180, negative numbers represent west longitude
map_latitudedecimal(12,8)Map-LatitudeYESFloat, range -90~90, negative numbers represent south latitude
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 View0NO
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
latest_edit_attimestampEdit TimeYESIf editable after publish, record edit time here
latest_comment_attimestampComment TimeYESTime of the latest comment
When a user replies to this comment
rank_statetinyint UNSIGNEDRank Status1NO1.Not set
is_enabledtinyint UNSIGNEDIs Valid1NO0.Invalid (visible only to yourself) / 1.Valid
created_attimestampCreate TimeCURRENT_TIMESTAMPNOPublish time
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Released under the Apache-2.0 License