-- In the last migration, I accidentally created a many-to-many relationship. -- What I actually need is a many-to-one relationship. DROP TABLE api.segments_vod_links; CREATE TABLE api.segments_vod_links ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), vod_id UUID NOT NULL REFERENCES api.vods(id), segment_id UUID NOT NULL REFERENCES api.segments(id) );