fedimovies/migrations/V0045__profile_emoji.sql
2023-03-04 21:12:02 +00:00

5 lines
217 B
SQL

CREATE TABLE profile_emoji (
profile_id UUID NOT NULL REFERENCES actor_profile (id) ON DELETE CASCADE,
emoji_id UUID NOT NULL REFERENCES emoji (id) ON DELETE CASCADE,
PRIMARY KEY (profile_id, emoji_id)
);