invidious-experimenting/invidious.sql

37 lines
818 B
MySQL
Raw Normal View History

-- Table: public.videos
2017-11-30 09:19:26 +05:30
-- DROP TABLE public.videos;
2017-11-30 09:19:26 +05:30
CREATE TABLE public.videos
2017-11-30 09:19:26 +05:30
(
last_updated timestamp with time zone,
video_id text COLLATE pg_catalog."default" NOT NULL,
video_info text COLLATE pg_catalog."default",
video_html text COLLATE pg_catalog."default",
views bigint,
likes integer,
dislikes integer,
rating double precision,
CONSTRAINT videos_pkey PRIMARY KEY (video_id)
2017-11-30 09:19:26 +05:30
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE public.videos
2017-11-30 09:19:26 +05:30
OWNER to omar;
GRANT ALL ON TABLE public.videos TO kemal;
2017-11-30 09:19:26 +05:30
GRANT ALL ON TABLE public.videos TO omar;
2017-11-30 09:19:26 +05:30
-- Index: videos_video_id_idx
2017-11-30 09:19:26 +05:30
-- DROP INDEX public.videos_video_id_idx;
2017-11-30 09:19:26 +05:30
CREATE INDEX videos_video_id_idx
ON public.videos USING btree
2017-11-30 09:19:26 +05:30
(video_id COLLATE pg_catalog."default")
TABLESPACE pg_default;