channel_videos.sql 777 B

12345678910111213141516171819202122232425262728293031323334353637
  1. -- Table: public.channel_videos
  2. -- DROP TABLE public.channel_videos;
  3. CREATE TABLE 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. CONSTRAINT channel_videos_id_key UNIQUE (id)
  13. );
  14. GRANT ALL ON TABLE public.channel_videos TO kemal;
  15. -- Index: public.channel_videos_published_idx
  16. -- DROP INDEX public.channel_videos_published_idx;
  17. CREATE INDEX channel_videos_published_idx
  18. ON public.channel_videos
  19. USING btree
  20. (published);
  21. -- Index: public.channel_videos_ucid_idx
  22. -- DROP INDEX public.channel_videos_ucid_idx;
  23. CREATE INDEX channel_videos_ucid_idx
  24. ON public.channel_videos
  25. USING hash
  26. (ucid COLLATE pg_catalog."default");