invidious/config/sql/compilations.sql

29 lines
489 B
MySQL
Raw Normal View History

-- Type: public.privacy
-- DROP TYPE public.privacy;
CREATE TYPE public.privacy AS ENUM
(
'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,
privacy privacy,
index int8[]
);
GRANT ALL ON public.compilations TO current_user;