Chat Messages Table Schema (chat_messages)


Description

Stores all the actual chat messages

chat_messages table columns

Column Type Size Nulls Auto Default Children Parents Comments
id BIGINT 19 null
chatid BIGINT 19 0
chat.id chatmess_cha2_fk R
userid BIGINT 19 0
user.id Implied Constraint R
groupid BIGINT 19 0
issystem BIT 1 0
message LONGTEXT 2147483647 null
timestamp BIGINT 19 0

Table contained -1 rows

chat_messages table indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
chatmess_cha_ix Performance Asc chatid
chatmess_gro_ix Performance Asc groupid
chatmess_timcha_ix Performance Asc/Asc timestamp + chatid
chatmess_use_ix Performance Asc userid

chat_messages table relationships