Remove files that were prematurely added and add backend Compilation files

This commit is contained in:
broquemonsieur
2023-06-15 03:25:36 -07:00
parent bef234fd74
commit 6b984c6677
17 changed files with 115 additions and 111 deletions

View File

@@ -0,0 +1,20 @@
-- Table: public.compilation_videos
-- DROP TABLE public.compilation_videos;
CREATE TABLE IF NOT EXISTS public.compilation_videos
(
title text,
id text,
author text,
ucid text,
length_seconds integer,
starting_timestamp_seconds integer,
ending_timestamp_seconds integer,
published timestamptz,
compid text references compilations(id),
index int8,
PRIMARY KEY (index,compid)
);
GRANT ALL ON TABLE public.compilation_videos TO current_user;

View File

@@ -1,3 +1,13 @@
-- Type: public.privacy
-- DROP TYPE public.privacy;
CREATE TYPE public.privacy AS ENUM
(
'Unlisted',
'Private'
);
-- Table: public.compilations
-- DROP TABLE public.compilations;
@@ -15,4 +25,4 @@ CREATE TABLE IF NOT EXISTS public.compilations
index int8[]
);
GRANT ALL ON public.playlists TO current_user;
GRANT ALL ON public.compilations TO current_user;