mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-06 01:37:42 +02:00
16 lines
403 B
SQL
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)
|
|
);
|