core: backend for group invitations UI (status, db, updates) (#815)

This commit is contained in:
JRoberts
2022-07-15 17:49:29 +04:00
committed by GitHub
parent 8e15460bdc
commit eb89eec5b5
10 changed files with 160 additions and 66 deletions
+2 -1
View File
@@ -117,7 +117,8 @@ CREATE TABLE groups(
group_profile_id INTEGER REFERENCES group_profiles ON DELETE SET NULL, -- shared group profile
inv_queue_info BLOB,
created_at TEXT CHECK(created_at NOT NULL),
updated_at TEXT CHECK(updated_at NOT NULL), -- received
updated_at TEXT CHECK(updated_at NOT NULL),
chat_item_id INTEGER DEFAULT NULL REFERENCES chat_items ON DELETE SET NULL, -- received
FOREIGN KEY(user_id, local_display_name)
REFERENCES display_names(user_id, local_display_name)
ON DELETE CASCADE