6 lines
235 B
SQL
6 lines
235 B
SQL
CREATE TABLE comment_mentions (
|
|
comment_id UUID NOT NULL REFERENCES document_comments(id) ON DELETE CASCADE,
|
|
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
|
PRIMARY KEY (comment_id, user_id)
|
|
);
|