Skip to content

groups

Column NameTypeCommentDefaultNullRemark
idint UNSIGNEDGroup IDNOAuto Increment
gidvarchar(32)Public IDNOUnique
parent_idint UNSIGNEDParent Group IDYESUsed when type=2
user_idbigint UNSIGNEDCreator IDYESRelated field users->id
namevarchar(64)Group NameNOMultilingual
descriptiontextGroup DescriptionYESMultilingual
typetinyint UNSIGNEDIs Group Category2NO1.Group Category (only as a parent group, not for publish)
2.Group
3.Subgroup, group within a group
type_modetinyint UNSIGNEDGroup Mode1NO1.Public (anyone can view group posts)
2.Non-public (only members can view group posts)
type_mode_end_aftertinyint UNSIGNEDNon-public Group Configuration1NO1.No restrictions
2.All group content invisible
3.Content visible before expiration, new content not visible
type_findtinyint UNSIGNEDIs Discoverable
Also understood as whether to display
1NO1.Discoverable (anyone can find this group)
2.Undiscoverable (only members can find this group)
type_followtinyint UNSIGNEDFollow Method1NO1.Native / 2.Plugin / 3.Closed
plugin_fskeyvarchar(64)Related PluginYESUsed when type_follow=2
Related field plugins->fskey
sublevel_publictinyint UNSIGNEDType=3 specific
Are subgroups public
0NO0.Not public, group-specific
1.Public, visible to the entire site
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
ratingsmallint UNSIGNEDDisplay Order9NOAscending order
is_recommendtinyint UNSIGNEDRecommended Status0NO0.Not recommended / 1.Recommended
recommend_ratingsmallint UNSIGNEDRecommended Order9NOAscending order
permissionsjsonPermission ParametersNO
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
is_enabledtinyint UNSIGNEDIs Enabled1NO0.Not enabled / 1.Enabled
created_attimestampCreate TimeCURRENT_TIMESTAMPNO
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Introduction to Permission Parameters

json
{
    // Whitelist roles for non-public mode
    "mode_whitelist_roles": [
        "2", "3"
    ],
    // 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
{"mode_whitelist_roles":[],"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