Forum Posts Table Schema (forum_posts)


Description

All posts are stored in this table

forum_posts table columns

Column Type Size Nulls Auto Default Children Parents Comments
id BIGINT 19 null
forum_posts.parent forupost_par2_fk R
forum_queue.postid foruqueu_pos2_fk R
forum_read.postid foruread_pos_fk R
discussion BIGINT 19 0
forum_discussions.id forupost_dis2_fk R
parent BIGINT 19 0
forum_posts.id forupost_par2_fk R
userid BIGINT 19 0
user.id Implied Constraint R
created BIGINT 19 0
modified BIGINT 19 0
mailed TINYINT 3 0
subject VARCHAR 255
message LONGTEXT 2147483647 null
messageformat TINYINT 3 0
messagetrust TINYINT 3 0
attachment VARCHAR 100
totalscore SMALLINT 5 0
mailnow BIGINT 19 0
archived BIT 1 0

If archived, then exclude from completion criteria

deleted BIT 1 0

Totara: We use this flag to provide userata purge functionality

Table contained -1 rows

forum_posts table indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
forupost_cre_ix Performance Asc created
forupost_dis_ix Performance Asc discussion
forupost_mai_ix Performance Asc mailed
forupost_par_ix Performance Asc parent
forupost_use_ix Performance Asc userid

forum_posts table relationships