Skip to content

groups

Column NameTypeCommentDefaultNullRemark
idint UNSIGNEDGroup IDNOAuto Increment
gidvarchar(32)Public IDNOUnique
parent_idint UNSIGNEDParent Group ID0YES
user_idbigint UNSIGNEDCreator IDYESRelated field users->id
namejsonGroup NameNOMultilingual
descriptionjsonGroup DescriptionYESMultilingual
typesmallint UNSIGNEDGroup Category1NO
privacytinyint UNSIGNEDGroup Mode1NO1.Public (Anyone can see who's in the group and what they post.)
2.Private (Only members can see who's in the group and what they post.)
private_end_aftertinyint UNSIGNEDPrivate Group Configuration1NO1.No restrictions
2.All group content invisible
3.Content visible before expiration, new content not visible
visibilitytinyint UNSIGNEDIs Discoverable
Also understood as whether to display
1NO1.Discoverable (anyone can find this group)
2.Undiscoverable (only members can find this group)
follow_methodtinyint UNSIGNEDFollow Method1NO1.Native / 2.Plugin / 3.Closed
follow_app_fskeyvarchar(64)Related PluginYESUsed when follow_type=2
Related field apps->fskey
cover_file_idbigint UNSIGNEDGroup Cover Image IDYESRelated field files->id
cover_file_urlvarchar(255)Group Cover Image URLYES
banner_file_idbigint UNSIGNEDGroup Banner Image IDYESRelated field files->id
banner_file_urlvarchar(255)Group Banner Image URLYES
sort_ordersmallint UNSIGNEDDisplay Order9NOAscending order
is_recommendtinyint UNSIGNEDRecommended Status0NO0.Not recommended / 1.Recommended
recommend_sort_ordersmallint UNSIGNEDRecommended Order9NOAscending order
permissionsjsonPermission ParametersNO
more_infojsonMore InfoYES
subgroup_countint UNSIGNEDNumber of Subgroup0NO
view_countint UNSIGNEDNumber of View0NOCount by plugin
like_countint UNSIGNEDNumber of Likes0NONumber of users who liked this group
dislike_countint UNSIGNEDNumber of Dislikes0NONumber of users who disliked this group
follow_countint UNSIGNEDNumber of Followers0NONumber of users who followed (bookmarked) this group
block_countint UNSIGNEDNumber of Blocks0NONumber of users who blocked (not interested in) this group
post_countint UNSIGNEDNumber of Posts0NONumber of posts published in this group
comment_countint UNSIGNEDNumber of Comments0NONumber of comments published in this group
post_digest_countint UNSIGNEDNumber of digest Posts0NOPlugin operation to digest posts, plugin adds and subtracts count
comment_digest_countint UNSIGNEDNumber of digest Comments0NOPlugin operation to digest comments, plugin adds and subtracts count
last_post_attimestampLast Post Published TimeYES
last_comment_attimestampLast Comment Published TimeYES
is_enabledtinyint UNSIGNEDIs Enabled1NO0.Not enabled / 1.Enabled
created_attimestampCreate TimeuseCurrentNOFor example, MySQL defaults to CURRENT_TIMESTAMP
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Introduction to Permission Parameters

json
{
    // Whitelist roles for non-public mode
    "private_whitelist_roles": [
        "2", "3"
    ],
    "can_publish": true, // Whether to open the publishing privilege, if not, all people have no right to publish, the following publishing configuration is invalid.
    // Post publishing settings
    "publish_post": 1, // Post publishing permissions 1.All users 2.Users who followed the group only 3.Only specified role users 4.Group administrators only
    "publish_post_roles": [
        // Authorized role IDs, Related field roles->id
        "2", "3"
    ],
    "publish_post_review": false, // Enable post review
    // Comment publishing settings
    "publish_comment": 1, // Comment publishing permissions 1.All users 2.Users who followed the group only 3.Only specified role users 4.Group administrators only
    "publish_comment_roles": [
        "2", "3"
    ],
    "publish_comment_review": false, // Enable comment review
    // Additional custom settings can be added below
}

Default values of Permission Parameters

json
{"private_whitelist_roles":[],"can_publish": true,"publish_post":1,"publish_post_roles":[],"publish_post_review":false,"publish_comment":1,"publish_comment_roles":[],"publish_comment_review":false}

Released under the Apache-2.0 License