mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-23 23:00:47 -04:00
Add backend Compilation symbols
This commit is contained in:
parent
d0a3c994f4
commit
24f55a7876
4 changed files with 305 additions and 1 deletions
29
config/sql/compilations.sql
Normal file
29
config/sql/compilations.sql
Normal file
|
@ -0,0 +1,29 @@
|
|||
-- 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;
|
Loading…
Add table
Add a link
Reference in a new issue