2019-08-05 16:49:13 -07:00
|
|
|
-- Table: public.playlist_videos
|
|
|
|
|
|
|
|
-- DROP TABLE public.playlist_videos;
|
|
|
|
|
2021-01-16 17:44:31 -08:00
|
|
|
CREATE TABLE IF NOT EXISTS playlist_videos
|
2019-08-05 16:49:13 -07:00
|
|
|
(
|
|
|
|
title text,
|
|
|
|
id text,
|
|
|
|
author text,
|
|
|
|
ucid text,
|
|
|
|
length_seconds integer,
|
|
|
|
published timestamptz,
|
|
|
|
plid text references playlists(id),
|
|
|
|
index int8,
|
|
|
|
live_now boolean,
|
|
|
|
PRIMARY KEY (index,plid)
|
|
|
|
);
|
|
|
|
|
2021-01-16 17:44:31 -08:00
|
|
|
GRANT ALL ON TABLE public.playlist_videos TO current_user;
|