invidious-experimenting/config/sql/playlists.sql

30 lines
491 B
MySQL
Raw Permalink Normal View History

2020-04-15 04:38:58 +05:30
-- Type: public.privacy
-- DROP TYPE public.privacy;
CREATE TYPE public.privacy AS ENUM
(
'Public',
'Unlisted',
'Private'
);
2019-08-06 05:19:13 +05:30
-- Table: public.playlists
-- DROP TABLE public.playlists;
2021-01-17 07:14:31 +05:30
CREATE TABLE IF NOT EXISTS public.playlists
2019-08-06 05:19:13 +05:30
(
title text,
id text primary key,
author text,
description text,
video_count integer,
created timestamptz,
updated timestamptz,
privacy privacy,
index int8[]
);
2021-01-17 07:14:31 +05:30
GRANT ALL ON public.playlists TO current_user;