|
|
@ -12,6 +12,7 @@ CREATE TABLE public.videos
|
|
|
|
likes integer,
|
|
|
|
likes integer,
|
|
|
|
dislikes integer,
|
|
|
|
dislikes integer,
|
|
|
|
rating double precision,
|
|
|
|
rating double precision,
|
|
|
|
|
|
|
|
description text COLLATE pg_catalog."default",
|
|
|
|
CONSTRAINT videos_pkey PRIMARY KEY (video_id)
|
|
|
|
CONSTRAINT videos_pkey PRIMARY KEY (video_id)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
WITH (
|
|
|
|
WITH (
|
|
|
@ -33,4 +34,4 @@ GRANT ALL ON TABLE public.videos TO omar;
|
|
|
|
CREATE INDEX videos_video_id_idx
|
|
|
|
CREATE INDEX videos_video_id_idx
|
|
|
|
ON public.videos USING btree
|
|
|
|
ON public.videos USING btree
|
|
|
|
(video_id COLLATE pg_catalog."default")
|
|
|
|
(video_id COLLATE pg_catalog."default")
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
TABLESPACE pg_default;
|