mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
73a5189398
BridgeMessage is a type of chat message content which will be sent from Matterbridge. It contains fields: - bridge name - depends on the used bridge, eg. "discord", "slack", etc... - user name - username the message was received from - content - message content - user avatar - message id - parent message id - used in case of replies Message is saved to a separated table: bridge_messages, similarly to discord messages. The user_messages table is untouched. bridge_messages table contains user_messages_id in order to join with user_messages table. Issue #13098
14 lines
389 B
SQL
14 lines
389 B
SQL
CREATE TABLE IF NOT EXISTS bridge_messages (
|
|
user_messages_id TEXT PRIMARY KEY NOT NULL,
|
|
bridge_name TEXT NOT NULL,
|
|
user_name TEXT NOT NULL,
|
|
user_avatar TEXT DEFAULT "",
|
|
user_id TEXT DEFAULT "",
|
|
content TEXT NOT NULL,
|
|
message_id TEXT DEFAULT "",
|
|
parent_message_id TEXT DEFAULT ""
|
|
);
|
|
|
|
CREATE INDEX idx_bridge_messages_user_messages_id
|
|
ON bridge_messages (user_messages_id);
|