ALTER TABLE api.vods
  ADD CONSTRAINT vods_stream_fk FOREIGN KEY (stream_id)
  REFERENCES api.streams (id)
  ON DELETE CASCADE;