invidious/config/sql/compilations.sql

30 lines
562 B
MySQL
Raw Normal View History

2023-06-18 07:12:33 +00:00
-- Type: public.compilation_privacy
2023-06-18 07:12:33 +00:00
-- DROP TYPE public.compilation_privacy;
2023-06-18 07:12:33 +00:00
CREATE TYPE public.compilation_privacy AS ENUM
(
'Unlisted',
'Private'
);
2023-06-15 05:53:02 +00:00
-- Table: public.compilations
2023-06-07 09:01:59 +00:00
2023-06-15 05:53:02 +00:00
-- DROP TABLE public.compilations;
2023-06-07 09:01:59 +00:00
2023-06-15 05:53:02 +00:00
CREATE TABLE IF NOT EXISTS public.compilations
2023-06-07 09:01:59 +00:00
(
title text,
id text primary key,
author text,
description text,
video_count integer,
created timestamptz,
updated timestamptz,
2023-06-18 07:12:33 +00:00
privacy compilation_privacy,
index int8[],
first_video_id text
2023-06-07 09:01:59 +00:00
);
GRANT ALL ON public.compilations TO current_user;