2020-04-14 16:08:58 -07:00
|
|
|
-- Type: public.privacy
|
|
|
|
|
|
|
|
-- DROP TYPE public.privacy;
|
|
|
|
|
|
|
|
CREATE TYPE public.privacy AS ENUM
|
|
|
|
(
|
|
|
|
'Public',
|
|
|
|
'Unlisted',
|
|
|
|
'Private'
|
|
|
|
);
|
|
|
|
|
2019-08-05 16:49:13 -07:00
|
|
|
-- Table: public.playlists
|
|
|
|
|
|
|
|
-- DROP TABLE public.playlists;
|
|
|
|
|
|
|
|
CREATE TABLE public.playlists
|
|
|
|
(
|
|
|
|
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.playlists TO kemal;
|