6 lines
208 B
MySQL
6 lines
208 B
MySQL
|
CREATE TABLE mention (
|
||
|
post_id UUID NOT NULL REFERENCES post (id) ON DELETE CASCADE,
|
||
|
profile_id UUID NOT NULL REFERENCES actor_profile (id) ON DELETE CASCADE,
|
||
|
PRIMARY KEY (post_id, profile_id)
|
||
|
);
|