@@ -43,7 +43,6 @@ CREATE TABLE IF NOT EXISTS private_chat (
|
|||||||
user1_id UUID REFERENCES users(internal_uuid) ON DELETE SET NULL,
|
user1_id UUID REFERENCES users(internal_uuid) ON DELETE SET NULL,
|
||||||
user2_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,
|
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)
|
CONSTRAINT unique_users UNIQUE (user1_id, user2_id)
|
||||||
);
|
);
|
||||||
CREATE TABLE IF NOT EXISTS groups (
|
CREATE TABLE IF NOT EXISTS groups (
|
||||||
|
|||||||
Reference in New Issue
Block a user