CREATE TABLE video_tags ( video_id BIGINT REFERENCES videos(video_id), tag VARCHAR(50), PRIMARY KEY (video_id, tag) );