videos.sql 751 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. -- Table: public.videos
  2. -- DROP TABLE public.videos;
  3. CREATE TABLE public.videos
  4. (
  5. id text NOT NULL,
  6. info text,
  7. updated timestamp with time zone,
  8. title text,
  9. views bigint,
  10. likes integer,
  11. dislikes integer,
  12. wilson_score double precision,
  13. published timestamp with time zone,
  14. description text,
  15. language text,
  16. author text,
  17. ucid text,
  18. allowed_regions text[],
  19. is_family_friendly boolean,
  20. genre text,
  21. genre_url text,
  22. license text,
  23. sub_count_text text,
  24. author_thumbnail text,
  25. CONSTRAINT videos_pkey PRIMARY KEY (id)
  26. );
  27. GRANT ALL ON TABLE public.videos TO kemal;
  28. -- Index: public.id_idx
  29. -- DROP INDEX public.id_idx;
  30. CREATE UNIQUE INDEX id_idx
  31. ON public.videos
  32. USING btree
  33. (id COLLATE pg_catalog."default");