Files
huly-platform/packages/cockroach/migrations/05_notificationContext.sql
T
KristinaandGitHub e2de49ec97 Update types & db schema (#3)
* Update types & db schema
2024-12-23 16:38:49 +04:00

16 lines
403 B
SQL

CREATE TABLE IF NOT EXISTS notification_context
(
id UUID NOT NULL DEFAULT gen_random_uuid(),
workspace_id UUID NOT NULL,
card_id UUID NOT NULL,
person_workspace UUID NOT NULL,
archived_from TIMESTAMPTZ,
last_view TIMESTAMPTZ,
last_update TIMESTAMPTZ,
PRIMARY KEY (id),
UNIQUE (workspace_id, card_id, person_workspace)
);