Files
huly-platform/packages/postgres/migrations/05_notificationContext.sql
T
2024-12-02 20:26:19 +04:00

13 lines
364 B
SQL

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 */
archived_from TIMESTAMPTZ,
last_view TIMESTAMPTZ,
last_update TIMESTAMPTZ,
PRIMARY KEY (workspace_id, card_id, huly_id)
);