core: group links (#1194)

This commit is contained in:
JRoberts
2022-10-13 17:12:22 +04:00
committed by GitHub
parent 9670da4646
commit 3bf8361911
11 changed files with 603 additions and 82 deletions
@@ -259,6 +259,7 @@ CREATE TABLE user_contact_links(
updated_at TEXT CHECK(updated_at NOT NULL),
auto_accept INTEGER DEFAULT 0,
auto_reply_msg_content TEXT DEFAULT NULL,
group_id INTEGER REFERENCES groups ON DELETE CASCADE,
UNIQUE(user_id, local_display_name)
);
CREATE TABLE contact_requests(
@@ -427,3 +428,6 @@ CREATE UNIQUE INDEX idx_chat_items_group_shared_msg_id ON chat_items(
shared_msg_id
);
CREATE INDEX idx_msg_deliveries_message_id ON msg_deliveries(message_id);
CREATE UNIQUE INDEX idx_user_contact_links_group_id ON user_contact_links(
group_id
);