init.sql updated.

This commit is contained in:
Asal Lotfi
2025-07-30 00:05:35 +03:30
parent a9b5e8abdf
commit 3186e6ee24
+1
View File
@@ -43,6 +43,7 @@ CREATE TABLE IF NOT EXISTS private_chat (
user1_id UUID REFERENCES users(internal_uuid) ON DELETE SET NULL,
user2_id UUID REFERENCES users(internal_uuid) ON DELETE SET NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
type ENUM('normal', 'saved') DEFAULT 'normal' -- Saved message chat or a normal chat
CONSTRAINT unique_users UNIQUE (user1_id, user2_id)
);
CREATE TABLE IF NOT EXISTS groups (