Replace personal read with timestamp

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina Fefelova
2024-12-02 20:26:19 +04:00
parent f2111360b8
commit 281aba5cf7
2 changed files with 6 additions and 8 deletions
@@ -3,8 +3,5 @@ CREATE TABLE IF NOT EXISTS notification
social_id VARCHAR(255) NOT NULL,
message_id INT8 NOT NULL,
read BOOLEAN NOT NULL DEFAULT false,
archived BOOLEAN NOT NULL DEFAULT false,
PRIMARY KEY (social_id, message_id)
);
@@ -1,11 +1,12 @@
CREATE TABLE IF NOT EXISTS notification_context
(
workspace_id UUID NOT NULL,
card_id UUID NOT NULL,
huly_id VARCHAR(255) NOT NULL, /* Or maybe account id or something else */
workspace_id UUID NOT NULL,
card_id UUID NOT NULL,
huly_id VARCHAR(255) NOT NULL, /* Or maybe account id or something else */
last_view TIMESTAMPTZ,
last_update TIMESTAMPTZ,
archived_from TIMESTAMPTZ,
last_view TIMESTAMPTZ,
last_update TIMESTAMPTZ,
PRIMARY KEY (workspace_id, card_id, huly_id)
);