Skip to content

Database Models ​

The FluentCommunity ORM layer is built on WPFluent and Eloquent-style models. The list below covers every first-party model in app/Models/, including the shared base Model wrapper used by the package.

ModelTableNotes
Activityfcom_user_activitiesTracks member-facing activity stream entries such as feed publications and comments.
BaseSpacefcom_spacesProvides the shared ORM behavior for spaces, courses, space groups, and sidebar links.
Commentfcom_post_commentsStores feed comments, threaded replies, and their moderation-aware relationships.
Contactfc_subscribersBridges FluentCommunity users to FluentCRM contact records when FluentCRM is installed.
Coursefcom_spacesA BaseSpace scoped to type = course, adding enrolment and instructor behavior on top of the shared space columns.
CourseLessonfcom_postsAn individual lesson row in fcom_posts, scoped by type and ordered within its course.
CourseTopicfcom_postsA section heading in fcom_posts that groups lessons within a course.
DynamicModelInherited / runtime-definedCreates runtime table bindings when FluentCommunity needs an ORM model for a dynamic table.
Feedfcom_postsRepresents community posts, announcements, scheduled posts, and other feed content.
Followfcom_followersA follower relationship in fcom_followers (Pro), scoped to active rows.
Mediafcom_media_archiveStores uploaded media metadata and delivery information for feeds, comments, and spaces.
Metafcom_metaBacks the shared meta table used across spaces, terms, users, and other object types.
Moderationfcom_post_commentsA member report in fcom_post_comments (Pro), scoped to type = report and selected down to the reporting columns.
ModelInherited / runtime-definedDefines the shared base ORM behavior inherited by FluentCommunity models built on WPFluent.
Notificationfcom_notificationsStores notification payloads before they are fanned out to per-user delivery rows.
NotificationPreferencefcom_notification_prefsHolds a member's explicit notification overrides in fcom_notification_prefs, one row per event and channel. A missing row means the site default applies.
NotificationSubscriberfcom_notification_usersRepresents rows in fcom_notification_users where object_type = notification.
NotificationSubscriptionfcom_notification_usersRepresents rows in fcom_notification_users where object_type = subscription.
Reactionfcom_post_reactionsStores likes and survey votes for feeds, comments, and course content.
SidebarLinkfcom_spacesUses the shared spaces table to store custom sidebar navigation links.
Spacefcom_spacesRepresents a community space with privacy, membership, topic, and layout settings.
SpaceGroupfcom_spacesRepresents hierarchical group containers for organizing spaces on the portal.
SpaceUserPivotfcom_space_userStores the membership, role, and membership metadata for users inside spaces.
Termfcom_termsStores taxonomy-like topics, categories, and term metadata used by feeds and courses.
UserusersWraps the WordPress users table with community-specific relationships and helpers.
UserMetausermetaWraps the WordPress usermeta table for community-focused metadata access.
XProfilefcom_xprofileStores public-facing profile fields, status, verification, and community profile metadata.

FluentCommunity developer documentation