5 lines
203 B
SQL
5 lines
203 B
SQL
CREATE TABLE post_link (
|
|
source_id UUID NOT NULL REFERENCES post (id) ON DELETE CASCADE,
|
|
target_id UUID NOT NULL REFERENCES post (id) ON DELETE CASCADE,
|
|
PRIMARY KEY (source_id, target_id)
|
|
);
|