diff --git a/db/initdb.sql b/db/initdb.sql index be78bada95..1214bc1a9a 100644 --- a/db/initdb.sql +++ b/db/initdb.sql @@ -1,9 +1,83 @@ DROP TABLE IF EXISTS videos CASCADE; -CREATE TABLE videos ( - title VARCHAR, - src VARCHAR -); +CREATE TABLE videos (title VARCHAR, src VARCHAR); -INSERT INTO videos (title,src) VALUES ('Never Gonna Give You Up','https://www.youtube.com/watch?v=dQw4w9WgXcQ'); --- you can insert more rows using example data from the example_data.csv file \ No newline at end of file +INSERT INTO + videos (title, src) +VALUES + ( + 'Never Gonna Give You Up', + 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' + ); + +INSERT INTO + videos (title, src) +VALUES + ( + 'The Coding Train', + 'https://www.youtube.com/watch?v=HerCR8bw_GE' + ); + +INSERT INTO + videos (title, src) +VALUES + ( + 'Mac & Cheese | Basics with Babish', + 'https://www.youtube.com/watch?v=FUeyrEN14Rk' + ); + +INSERT INTO + videos (title, src) +VALUES + ( + 'Videos for Cats to Watch - 8 Hour Bird Bonanza', + 'https://www.youtube.com/watch?v=xbs7FT7dXYc' + ); + +INSERT INTO + videos (title, src) +VALUES + ( + 'The Complete London 2012 Opening Ceremony | London 2012 Olympic Games', + 'https://www.youtube.com/watch?v=4As0e4de-rI' + ); + +INSERT INTO + videos (title, src) +VALUES + ( + 'Learn Unity - Beginner''s Game Development Course', + 'https://www.youtube.com/watch?v=gB1F9G0JXOo' + ); + +INSERT INTO + videos (title, src) +VALUES + ( + 'Cracking Enigma in 2021 - Computerphile', + 'https://www.youtube.com/watch?v=RzWB5jL5RX0' + ); + +INSERT INTO + videos (title, src) +VALUES + ( + 'Coding Adventure: Chess AI', + 'https://www.youtube.com/watch?v=U4ogK0MIzqk' + ); + +INSERT INTO + videos (title, src) +VALUES + ( + 'Why the Tour de France is so brutal', + 'https://www.youtube.com/watch?v=ZacOS8NBK6U' + ); + +INSERT INTO + videos (title, src) +VALUES + ( + 'Coding Adventure: Ant and Slime Simulations', + 'https://www.youtube.com/watch?v=X-iSQQgOd1A' + ); diff --git a/package-lock.json b/package-lock.json index fb66990541..4b6732a523 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1877,6 +1877,34 @@ "node": ">=14.0.0" } }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.5.tgz", + "integrity": "sha512-idWaG8xeSRCfRq9KpRysDHJ/rEHBEXcHuJ82XY0yYFIWnLMjZv9vF/7DOq8djQ2n3Lk6+3qfSH8AqlmHlmi1MA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.5.tgz", + "integrity": "sha512-f14d7uhAMtsCGjAYwZGv6TwuS3IFaM4ZnGMUn3aCBgkcHAYErhV1Ad97WzBvS2o0aaDv4mVz+syiN0ElMyfBPg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true + }, "node_modules/@rollup/rollup-darwin-arm64": { "version": "4.9.5", "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.5.tgz", @@ -9251,6 +9279,20 @@ "fsevents": "~2.3.2" } }, + "node_modules/rollup/node_modules/@rollup/rollup-darwin-x64": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.5.tgz", + "integrity": "sha512-UmElV1OY2m/1KEEqTlIjieKfVwRg0Zwg4PLgNf0s3glAHXBN99KLpw5A5lrSYCa1Kp63czTpVll2MAqbZYIHoA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true + }, "node_modules/rrweb-cssom": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz", diff --git a/videorec_backup.sql.gz b/videorec_backup.sql.gz new file mode 100644 index 0000000000..69af7700c2 --- /dev/null +++ b/videorec_backup.sql.gz @@ -0,0 +1,56 @@ +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 14.11 (Ubuntu 14.11-0ubuntu0.22.04.1) +-- Dumped by pg_dump version 14.11 (Ubuntu 14.11-0ubuntu0.22.04.1) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: videos; Type: TABLE; Schema: public; Owner: adniya +-- + +CREATE TABLE public.videos ( + title character varying, + src character varying +); + + +ALTER TABLE public.videos OWNER TO adniya; + +-- +-- Data for Name: videos; Type: TABLE DATA; Schema: public; Owner: adniya +-- + +COPY public.videos (title, src) FROM stdin; +Never Gonna Give You Up https://www.youtube.com/watch?v=dQw4w9WgXcQ +The Coding Train https://www.youtube.com/watch?v=HerCR8bw_GE +Mac & Cheese | Basics with Babish https://www.youtube.com/watch?v=FUeyrEN14Rk +Videos for Cats to Watch - 8 Hour Bird Bonanza https://www.youtube.com/watch?v=xbs7FT7dXYc +The Complete London 2012 Opening Ceremony | London 2012 Olympic Games https://www.youtube.com/watch?v=4As0e4de-rI +Learn Unity - Beginner's Game Development Course https://www.youtube.com/watch?v=gB1F9G0JXOo +Cracking Enigma in 2021 - Computerphile https://www.youtube.com/watch?v=RzWB5jL5RX0 +Coding Adventure: Chess AI https://www.youtube.com/watch?v=U4ogK0MIzqk +Why the Tour de France is so brutal https://www.youtube.com/watch?v=ZacOS8NBK6U +Coding Adventure: Ant and Slime Simulations https://www.youtube.com/watch?v=X-iSQQgOd1A +\. + + +-- +-- PostgreSQL database dump complete +-- +