11 lines
311 B
SQL
11 lines
311 B
SQL
-- we need vod_id and segment_id to be uuid, not text
|
|
|
|
DROP TABLE api.segments_vod_links;
|
|
|
|
CREATE TABLE api.segments_vod_links (
|
|
id UUID DEFAULT gen_random_uuid(),
|
|
vod_id UUID NOT NULL REFERENCES api.vods(id),
|
|
segment_id UUID NOT NULL REFERENCES api.segments(id),
|
|
PRIMARY KEY(id, vod_id, segment_id)
|
|
);
|