mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 13:37:24 +00:00
30 lines
491 B
SQL
30 lines
491 B
SQL
-- Type: public.privacy
|
|
|
|
-- DROP TYPE public.privacy;
|
|
|
|
CREATE TYPE public.privacy AS ENUM
|
|
(
|
|
'Public',
|
|
'Unlisted',
|
|
'Private'
|
|
);
|
|
|
|
-- Table: public.playlists
|
|
|
|
-- DROP TABLE public.playlists;
|
|
|
|
CREATE TABLE IF NOT EXISTS 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 current_user;
|