invidious/config/sql/compilations.sql

29 lines
537 B
MySQL
Raw Normal View History

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