Update init.sql

This commit is contained in:
2025-06-06 22:38:04 +03:30
committed by GitHub
parent 7fa0d93de4
commit 718e5bded6
+8
View File
@@ -94,3 +94,11 @@ CREATE TABLE IF NOT EXISTS channel_admins (
can_add_members BOOLEAN DEFAULT TRUE, can_add_members BOOLEAN DEFAULT TRUE,
PRIMARY KEY (channel_id, user_id) PRIMARY KEY (channel_id, user_id)
); );
CREATE TABLE IF NOT EXISTS message_receipts (
message_id UUID REFERENCES messages(message_id) ON DELETE CASCADE,
user_id UUID REFERENCES users(internal_uuid) ON DELETE CASCADE,
read_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (message_id, user_id)
);