forked from mtusi2026/mtusi2026lab4
5 lines
227 B
SQL
5 lines
227 B
SQL
CREATE TABLE IF NOT EXISTS message_attachments (
|
|
message_id UUID NOT NULL REFERENCES messages(id) ON DELETE CASCADE,
|
|
attachment_id UUID NOT NULL REFERENCES attachments(id),
|
|
PRIMARY KEY (message_id, attachment_id)
|
|
); |