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