fedimovies/migrations/V0011__mention.sql
2021-11-11 20:24:47 +00:00

5 lines
208 B
SQL

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)
);