2023-06-18 12:42:33 +05:30
|
|
|
-- Type: public.compilation_privacy
|
2023-06-15 15:55:36 +05:30
|
|
|
|
2023-06-18 12:42:33 +05:30
|
|
|
-- DROP TYPE public.compilation_privacy;
|
2023-06-15 15:55:36 +05:30
|
|
|
|
2023-06-18 12:42:33 +05:30
|
|
|
CREATE TYPE public.compilation_privacy AS ENUM
|
2023-06-15 15:55:36 +05:30
|
|
|
(
|
|
|
|
'Unlisted',
|
|
|
|
'Private'
|
|
|
|
);
|
|
|
|
|
2023-06-15 11:23:02 +05:30
|
|
|
-- Table: public.compilations
|
2023-06-07 14:31:59 +05:30
|
|
|
|
2023-06-15 11:23:02 +05:30
|
|
|
-- DROP TABLE public.compilations;
|
2023-06-07 14:31:59 +05:30
|
|
|
|
2023-06-15 11:23:02 +05:30
|
|
|
CREATE TABLE IF NOT EXISTS public.compilations
|
2023-06-07 14:31:59 +05:30
|
|
|
(
|
|
|
|
title text,
|
|
|
|
id text primary key,
|
|
|
|
author text,
|
|
|
|
description text,
|
|
|
|
video_count integer,
|
|
|
|
created timestamptz,
|
|
|
|
updated timestamptz,
|
2023-06-18 12:42:33 +05:30
|
|
|
privacy compilation_privacy,
|
2023-08-03 13:07:21 +05:30
|
|
|
index int8[],
|
2023-08-06 13:29:53 +05:30
|
|
|
first_video_id text,
|
|
|
|
first_video_starting_timestamp_seconds integer,
|
|
|
|
first_video_ending_timestamp_seconds integer
|
2023-06-07 14:31:59 +05:30
|
|
|
);
|
|
|
|
|
2023-06-15 15:55:36 +05:30
|
|
|
GRANT ALL ON public.compilations TO current_user;
|