mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-01 04:38:50 +02:00
10 lines
298 B
SQL
10 lines
298 B
SQL
CREATE TABLE IF NOT EXISTS notification
|
|
(
|
|
message_id UUID NOT NULL,
|
|
context UUID NOT NULL,
|
|
|
|
PRIMARY KEY (message_id, context),
|
|
FOREIGN KEY (message_id) REFERENCES message (id) ON DELETE CASCADE,
|
|
FOREIGN KEY (context) REFERENCES notification_context (id) ON DELETE CASCADE
|
|
);
|