Messages Table Schema (messages)


Description

Stores all messages

messages table columns

Column Type Size Nulls Auto Default Children Parents Comments
id BIGINT 19 null
message_email_messages.messageid messemaimess_mes2_fk R
message_user_actions.messageid messuseracti_mes2_fk R
useridfrom BIGINT 19 null
user.id mess_use2_fk R
conversationid BIGINT 19 null
message_conversations.id mess_con2_fk R
subject LONGTEXT 2147483647 null
fullmessage LONGTEXT 2147483647 null
fullmessageformat BIT 1 0
fullmessagehtml LONGTEXT 2147483647 null
smallmessage LONGTEXT 2147483647 null
timecreated BIGINT 19 null
fullmessagetrust TINYINT 3 0
customdata LONGTEXT 2147483647 null

Custom data to be passed to the message processor. Must be serialisable using json_encode()

Table contained -1 rows

messages table indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
mess_con_ix Performance Asc conversationid
mess_contim_ix Performance Asc/Asc conversationid + timecreated
mess_use_ix Performance Asc useridfrom

messages table relationships