videos.sql 440 B

123456789101112131415161718192021222324
  1. -- Table: public.videos
  2. -- DROP TABLE public.videos;
  3. CREATE UNLOGGED TABLE IF NOT EXISTS public.videos
  4. (
  5. id text NOT NULL,
  6. info text,
  7. updated timestamp with time zone,
  8. CONSTRAINT videos_pkey PRIMARY KEY (id)
  9. );
  10. GRANT ALL ON TABLE public.videos TO current_user;
  11. -- Index: public.id_idx
  12. -- DROP INDEX public.id_idx;
  13. CREATE UNIQUE INDEX IF NOT EXISTS id_idx
  14. ON public.videos
  15. USING btree
  16. (id COLLATE pg_catalog."default");