mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-05 04:59:12 +05:30
30 lines
562 B
SQL
30 lines
562 B
SQL
-- Type: public.compilation_privacy
|
|
|
|
-- DROP TYPE public.compilation_privacy;
|
|
|
|
CREATE TYPE public.compilation_privacy AS ENUM
|
|
(
|
|
'Unlisted',
|
|
'Private'
|
|
);
|
|
|
|
-- Table: public.compilations
|
|
|
|
-- DROP TABLE public.compilations;
|
|
|
|
CREATE TABLE IF NOT EXISTS public.compilations
|
|
(
|
|
title text,
|
|
id text primary key,
|
|
author text,
|
|
description text,
|
|
video_count integer,
|
|
created timestamptz,
|
|
updated timestamptz,
|
|
privacy compilation_privacy,
|
|
index int8[],
|
|
first_video_id text
|
|
);
|
|
|
|
GRANT ALL ON public.compilations TO current_user;
|