forked from midou/invidious
		
	Add support for custom playlists
This commit is contained in:
		
							
								
								
									
										19
									
								
								config/sql/playlist_videos.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								config/sql/playlist_videos.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| -- 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; | ||||
							
								
								
									
										18
									
								
								config/sql/playlists.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								config/sql/playlists.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| -- 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; | ||||
							
								
								
									
										10
									
								
								config/sql/privacy.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								config/sql/privacy.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| -- Type: public.privacy | ||||
|  | ||||
| -- DROP TYPE public.privacy; | ||||
|  | ||||
| CREATE TYPE public.privacy AS ENUM | ||||
| ( | ||||
|     'Public', | ||||
|     'Unlisted', | ||||
|     'Private' | ||||
| ); | ||||
		Reference in New Issue
	
	Block a user