Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
249 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
-- TODO: Playlist stub, add playlist thumbnail(?) | ||
create table playlist_videos (title text, id text, author text, ucid text, length_seconds integer, published timestamptz, plid text references playlists(id), index int8, live_now boolean, primary key (index,plid)); | ||
-- Table: public.playlist_videos | ||
|
||
-- DROP TABLE public.playlist_videos; | ||
|
||
CREATE TABLE playlist_videos | ||
( | ||
title text, | ||
id text, | ||
author text, | ||
ucid text, | ||
length_seconds integer, | ||
published timestamptz, | ||
plid text references playlists(id), | ||
index int8, | ||
live_now boolean, | ||
PRIMARY KEY (index,plid) | ||
); | ||
|
||
GRANT ALL ON TABLE public.playlist_videos TO kemal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
-- TODO: Playlist stub, check for missing enum when check_tables: true | ||
create type privacy as enum ('Public', 'Unlisted', 'Private'); | ||
create table playlists (title text, id text primary key, author text, description text, video_count integer, created timestamptz, updated timestamptz, privacy privacy, index int8[]); | ||
-- 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Type: public.privacy | ||
|
||
-- DROP TYPE public.privacy; | ||
|
||
CREATE TYPE public.privacy AS ENUM | ||
( | ||
'Public', | ||
'Unlisted', | ||
'Private' | ||
); |
Oops, something went wrong.