Discourse Data Model
Discourse er en open source-diskussionsplatform til fora, chatrum og opbygning af fællesskaber.
Opsæt denne platform i Invantive Cloud: https://cloud.invantive.com/discourse
Tekstsammenligninger på denne platform skelner mellem store og små bogstaver.
Platform
- Anvendes fra: Invantive Cloud og Invantive-produkterne på din egen computer eller server.
- Type: En program, der tilgås via dens API.
- Dataene er opdelt, f.eks. efter virksomhed eller forvaltning.
- Data kan både skrives og læses.
- Invantive Cloud-planer: Office for Entrepreneurs, Office for Accountants, Premium Finance, OEM.
Ordliste
- Site: One Discourse forum at its own web address, with its own users, categories, topics and settings.
- API Key: A secret created by an administrator in the admin panel, sent together with a user name to act on the forum as that user.
- Category: A section of the forum that groups related topics, with its own colour, description, permissions and optionally subcategories.
- Topic: A discussion started under a title in a category, consisting of an opening post followed by the replies to it.
- Post: One message within a topic, numbered by its position, written in Markdown and shown as HTML.
- Topic Status: Switches that decide how a topic behaves: closed, archived, pinned, pinned globally and visible.
- Private Message: A conversation visible only to the users and groups invited to it, kept as a topic outside all categories.
- Post Action: A reaction a user records on a post, such as a like or a flag that reports the post to the moderators.
- User: A member account on the forum, identified by a unique user name, with a profile, preferences and an activity history.
- Trust Level: A level from 0 to 4 that Discourse gives each user based on activity, unlocking more abilities as trust grows.
- Staff: The administrators and moderators of a site, who manage its settings, members and content beyond what trust levels allow.
- Suspension and Silencing: Two measures against a user: suspension blocks logging in until a date, silencing allows reading but no posting.
- Group: A named set of users used to grant category permissions, mention them together, send them messages and show a shared flair.
- Badge: A recognition a user earns for an achievement on the forum, of type gold, silver or bronze, granted automatically or by hand.
- Tag: A free label on a topic, used next to the category to find and filter topics across categories.
- Tag Group: A named set of tags managed together, for instance to limit them to certain categories or to allow only one per topic.
- Notification Level: How closely a user follows a topic, category or tag: muted, normal, tracking or watching.
- Notification: A message to a user that something happened that concerns them, such as a reply, mention, like, badge or private message.
- User Action: One entry in the activity history of a user, such as a topic created, a reply, a like given or received, or a mention.
- Directory: The public list of users ranked by their activity over a period, such as likes received, topics and posts created and days visited.
- Top Topics: The topics that drew most activity over a period, ranked by how much activity they drew.
- Site Setting: One of the many configuration options of a site, such as login rules, posting limits, trust level thresholds or e-mail behaviour.
- Plugin: An extension installed on a site that adds features, such as polls, events, chat or solved answers, with settings of its own.
- Backup: A complete copy of the database of a site, optionally with uploaded files, that can be downloaded or restored.
Tal
| Figur | Tæl |
|---|---|
| Tabeller | 104 |
| Kolonner | 2,665 |
| Tabeller med indsætning | 7 |
| Tabeller med opdatering | 0 |
| Tabeller med sletning | 0 |
| Tabeller dokumenteret | 104 |
Plakat om datamodellen
I tabellen på plakaten: Zoom ind og ud, piletasterne til at flytte, 0 til at tilpasse.
Plakaten som tekst: tabeller efter emne og deres indbyrdes sammenhænge
Admin
Admin_Badge_groupingsByBadges, Admin_Badge_typesByBadges, Admin_BadgesByBadges
Andet
Admin (uden relationer)
AdminCustomizeByEmailTemplates, AdminCustomizeByUserFields, AdminPlugins, Admin_Admin_badgesProtected_system_fieldsByBadges, Admin_Badge_grouping_idsByBadges, Admin_Badge_idsByBadges, Admin_Badge_type_idsByBadges, Admin_SettingsByEmail, Admin_Site_settingsBySiteSettings, Admin_Site_settingsChoicesBySiteSettings, Admin_Site_settingsValid_valuesBySiteSettings
Administrator (uden relationer)
Sikkerhedskopi (uden relationer)
Mærke (uden relationer)
Kategori (uden relationer)
E-mail (uden relationer)
Gruppe (uden relationer)
Moderator (uden relationer)
NATIVEPLATFORMSCALARREQUESTS (uden relationer)
Websted (uden relationer)
System (uden relationer)
Tag (uden relationer)
Forhold
- Admin_BadgesByBadges → Admin_Badge_groupingsByBadges (nøgle)
- Admin_BadgesByBadges → Admin_Badge_typesByBadges (nøgle)
- Posts → Categories (kandidat, 2 keys): Not stated by Discourse; found on the data of the smoke forum on 2026-10-31, where every filled value is in the referenced table.
- Top → Categories (kandidat, 2 keys): Not stated by Discourse; found on the data of the smoke forum on 2026-10-31, where every filled value is in the referenced table.
Egenskaber
Attributterne for denne platform findes på siden Attributes.
Udgivelsesnoter
Hvilke ændringer der er sket i hver udgivelse med hensyn til driverens tabeller, kolonner, attributter og funktioner:
Tabeller
Discourse.About
- Administrators: Administrators
- Moderators: Moderators
- SystemInformation: System Information
Discourse.Admin
- AdminUsersById: Admin Users by ID
- AdminUsers_GroupsById: Admin Users Groups by ID
- Admin_Site_settingsBySiteSettings: Admin Site Settings
- Admin_Site_settingsChoicesBySiteSettings: Admin Site Setting Choices
- Admin_Site_settingsValid_valuesBySiteSettings: Admin Site Settings Valid Values
- GroupsByGroupNameMembers: Group Membership by Group Name
- GroupsByGroupName_MembersMembers: Group Members by Group Name
- GroupsByGroupName_OwnersMembers: Group Owners by Group Name
- SiteSettings: Site Settings
Discourse.AdminEmails
- AdminCustomizeByEmailTemplates: Admin Customized Templates by Email
- Admin_SettingsByEmail: Admin Settings by Email
- EmailSettings: Email Settings
Discourse.Backups
- Backups: Backups
Discourse.Badges
- Admin_Admin_badgesProtected_system_fieldsByBadges: Admin Badges Protected System Fields by Badges
- Admin_Badge_grouping_idsByBadges: Admin Badge Grouping IDs
- Admin_Badge_groupingsByBadges: Admin Badge Groupings by Badges
- Admin_Badge_idsByBadges: Admin Badge IDs
- Admin_Badge_type_idsByBadges: Admin Badge Type IDs
- Admin_Badge_typesByBadges: Admin Badge Types by Badges
- Admin_BadgesByBadges: Admin Badges by Badges
- BadgeSettings: Badge Settings
- UserBadgesByUsername: User Badges by Username
- UserBadges_Badge_typesByUsername: User Badges Badge Types by Username
- UserBadges_BadgesByUsername: User Badges Badges by Username
- UserBadges_Granted_biesByUsername: User Badges Granted Granters by Username
- UserBadges_TopicsByUsername: User Badge Topics by Username
- UserBadges_User_badgesByUsername: User Badges by Username
- UserBadges_UsersByUsername: User Badge Users by Username
Discourse.Categories
- Categories: Categories
- CategoryById: Category by ID
- CategorySettings: Category Settings
- c_Topic_listTopicsById: Category Topics by ID
- c_Topic_listTopicsPostersById: Category Topic Posters by ID
- c_UsersById: Category Users by ID
Discourse.Emails
- AdminEmailsByAction: Admin Emails by Action
Discourse.Flags
- AdminFlagsByType: Admin Flags by Type
- AdminFlags_PostsByType: Admin Flag Posts by Type
- AdminFlags_TopicsByType: Admin Flag Topics by Type
- AdminFlags_UsersByType: Admin Flag Users by Type
Discourse.Groups
- Groups: Groups
- GroupsByName: Group by Name
- Groups_ExtrasVisible_group_namesByName: Group Extras Visible Group Names by Name
Discourse.Logs
- AdminLogsByStaffActionLogs: Staff Action Logs
Discourse.Native
- NATIVEPLATFORMSCALARREQUESTS: Native platform skalarforespørgsler
Discourse.Notifications
- Notifications: Notifications
- Notifications_Notifications: Notification Entries
Discourse.Plugins
- AdminPlugins: Plugins
Discourse.Posts
- Posts: Posts
- PostsById: Post by ID
- Posts_Actions_summaryById: Post Actions Summary by ID
- Posts_Latest_postsActions_summary: Posts Latest Post Actions Summary
Discourse.PrivateMessages
- TopicsPrivateMessagesByUsername: Private Messages by Username
- TopicsPrivateMessagesSentByUsername: Private Messages Sent by Username
- TopicsPrivateMessagesSent_Topic_listTopicsByUsername: Private Messages Sent Topics by Username
- TopicsPrivateMessagesSent_Topic_listTopicsParticipantsByUsername: Private Messages Sent Topics Participants by Username
- TopicsPrivateMessagesSent_Topic_listTopicsPostersByUsername: Private Messages Sent Topic Posters by Username
- TopicsPrivateMessagesSent_UsersByUsername: Private Messages Sent Users by Username
- TopicsPrivateMessages_Topic_listTopicsByUsername: Private Messages Topics by Username
- TopicsPrivateMessages_Topic_listTopicsParticipantsByUsername: Private Messages Topics Participants by Username
- TopicsPrivateMessages_Topic_listTopicsPostersByUsername: Private Messages Topic Posters by Username
Discourse.Reports
- PageViewTotalReqs: Page View Total Requests
- PageViewTotalReqs_ReportData: Page View Total Requests Report Data
Discourse.Search
- SearchQuery: Search Results by Query
- Search_CategoriesQuery: Search Result Categories by Query
- Search_Grouped_search_resultCategory_idsQuery: Search Result Grouped Category IDs by Query
- Search_Grouped_search_resultPost_idsQuery: Search Result Grouped Post IDs by Query
- Search_Grouped_search_resultUser_idsQuery: Search Result Grouped User IDs by Query
- Search_PostsQuery: Search Result Posts by Query
- Search_TopicsPostersQuery: Search Result Topic Posters by Query
- Search_TopicsQuery: Search Result Topics by Query
- Search_UsersQuery: Search Result Users by Query
Discourse.Tags
- TagGroups: Tag Groups
- TagGroupsById: Tag Group by ID
- TagGroups_Tag_groupParent_tag_nameById: Tag Group Parent Tag Name by ID
- TagGroups_Tag_groupTag_namesById: Tag Group Tag Names by ID
- TagGroups_Tag_groupsTag_names: Tag Group Tags
- Tags: Tags
- TagsByTag: Tags by Tag
Discourse.Topics
- Latest: Latest
- Latest_Topic_listTopics: Latest Topics
- Latest_Topic_listTopicsPosters: Latest Topic Posters
- Latest_Users: Latest Users
- Top: Top
- TopByFlag: Top Topics by Flag
- Top_Topic_listTopics: Top Topics
- Top_Topic_listTopicsPosters: Top Topic Posters
- Top_Users: Top Users
- tById: Topic by ID
- tByIdPosts: Topic Posts by ID
- tById_Post_streamPostsPosts: Topic Post Stream Posts Posts by ID
- t_Actions_summaryById: Topic Actions Summary by ID
- t_DetailsParticipantsById: Topic Details Participants by ID
- t_DetailsSuggested_topicsById: Topic Suggested Topics by ID
- t_DetailsSuggested_topicsPostersById: Topic Suggested Topic Posters by ID
- t_Post_streamPostsActions_summaryById: Topic Post Stream Posts Actions Summary by ID
- t_Post_streamPostsById: Topic Post Stream Posts by ID
- t_Post_streamPostsPollsPollOptionsById: Topic Post Poll Options by ID
- t_Post_streamPostsPolls_votesPollById: Topic Post Poll Votes by ID
- t_Post_streamStreamById: Topic Post Stream Stream by ID
- t_Timeline_lookup0ById: Topic Timeline Lookups by ID
- t_Timeline_lookupById: Topic Timeline Lookup by ID
Discourse.UserFields
- AdminCustomizeByUserFields: Admin User Fields
Discourse.Users
- AdminUsersListByFlag: Admin Users List by Flag
- DirectoryItems: Directory Items
- DirectoryItems_Directory_items: Directory Item Entries
- UserActions: User Actions
- UsersByUsername: Users by Username
- Users_UserFeatured_user_badge_idsByUsername: User Profile Featured Badge IDs by Username
- Users_UserGroupsByUsername: User Profile Groups by Username
- Users_User_badgesByUsername: User Profile Badges by Username
- uByExternalByExternalId: User by External ID
- uByExternal_UserFeatured_user_badge_idsByExternalId: User Featured User Badge IDs by External ID
- uByExternal_UserGroupsByExternalId: User Groups by External ID
- uByExternal_User_badgesByExternalId: User Badges by External ID