channel_videos.sql 698 B

12345678910111213141516171819202122232425262728293031
  1. -- Table: public.channel_videos
  2. -- DROP TABLE public.channel_videos;
  3. CREATE TABLE IF NOT EXISTS public.channel_videos
  4. (
  5. id text NOT NULL,
  6. title text,
  7. published timestamp with time zone,
  8. updated timestamp with time zone,
  9. ucid text,
  10. author text,
  11. length_seconds integer,
  12. live_now boolean,
  13. premiere_timestamp timestamp with time zone,
  14. views bigint,
  15. CONSTRAINT channel_videos_id_key UNIQUE (id)
  16. );
  17. GRANT ALL ON TABLE public.channel_videos TO current_user;
  18. -- Index: public.channel_videos_ucid_idx
  19. -- DROP INDEX public.channel_videos_ucid_idx;
  20. CREATE INDEX IF NOT EXISTS channel_videos_ucid_idx
  21. ON public.channel_videos
  22. USING btree
  23. (ucid COLLATE pg_catalog."default");