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_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 0 0
fullmessagehtml LONGTEXT 2147483647 null
smallmessage LONGTEXT 2147483647 null
timecreated BIGINT 19 null

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