forked from mtusi2026/mtusi2026lab4
S3-хранилище и вложения, трек 1
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
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)
|
||||
);
|
||||
Reference in New Issue
Block a user