diff --git a/_sql/Create_Table_Contributors.sql b/_sql/Create_Table_Contributors.sql new file mode 100644 index 0000000..477e62f --- /dev/null +++ b/_sql/Create_Table_Contributors.sql @@ -0,0 +1,8 @@ +CREATE TABLE Contributors ( + id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, + handle varchar(255) NOT NULL, + email varchar(255) NOT NULL, + avatar varchar(255) DEFAULT 'hpr_logo.png' NOT NULL, + default_license VARCHAR(25) DEFAULT 'CC BY-SA 4.0' NOT NULL, + profile TEXT +); diff --git a/_sql/Create_Table_Episodes.sql b/_sql/Create_Table_Episodes.sql new file mode 100644 index 0000000..77345dc --- /dev/null +++ b/_sql/Create_Table_Episodes.sql @@ -0,0 +1,13 @@ +CREATE TABLE Episodes ( + id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, + correspondent_id INTEGER NOT NULL, + is_explicit BOOLEAN DEFAULT 1 NOT NULL, + submitted DATETIME NOT NULL, + published DATETIME, + license VARCHAR(25) DEFAULT 'CC BY-SA 4.0' NOT NULL, + title VARCHAR(100) NOT NULL, + summary VARCHAR(100) NOT NULL, + series VARCHAR(100), + show_notes TEXT NOT NULL, + CONSTRAINT Episodes_FK FOREIGN KEY (correspondent_id) REFERENCES Episodes(id) +); diff --git a/_sql/Create_Table_Tag_To_Episodes.sql b/_sql/Create_Table_Tag_To_Episodes.sql new file mode 100644 index 0000000..bf8f3f9 --- /dev/null +++ b/_sql/Create_Table_Tag_To_Episodes.sql @@ -0,0 +1,5 @@ +CREATE TABLE Tag_To_Episodes ( + tag_id INTEGER NOT NULL, + episode_id INTEGER NOT NULL, + CONSTRAINT Tag_To_Episodes_PK PRIMARY KEY (tag_id,episode_id) +); diff --git a/_sql/Create_Table_Tags.sql b/_sql/Create_Table_Tags.sql new file mode 100644 index 0000000..57ede92 --- /dev/null +++ b/_sql/Create_Table_Tags.sql @@ -0,0 +1,5 @@ +CREATE TABLE Tags ( + id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, + tag varchar(100) +); +CREATE UNIQUE INDEX Tags_tag_IDX ON Tags (tag); diff --git a/_sql/Insert_Test_Data.sql b/_sql/Insert_Test_Data.sql new file mode 100644 index 0000000..593a9eb --- /dev/null +++ b/_sql/Insert_Test_Data.sql @@ -0,0 +1,27 @@ +INSERT INTO Contributors +(id, handle, email, avatar, default_license, profile) +VALUES(1, 'droops', 'droops.nospam@nospam.gmail.com', '1.png', 'CC-BY-NC-SA', 'nomicon.info'); +INSERT INTO Contributors +(id, handle, email, avatar, default_license, profile) +VALUES(3, 'dosman', 'dosman.nospam@nospam.packetsniffers.org', 'hpr_logo.png', 'CC-BY-SA', 'packetsniffers.org'); + +INSERT INTO Episodes +(id, correspondent_id, is_explicit, submitted, published, license, title, summary, series, show_notes) +VALUES(6, 3, 1, '2008-01-08', '2008-01-08', 'CC-BY-NC-SA', 'Part 15 Broadcasting', 'dosman and zach from the packetsniffers talk about Part 15 Broadcasting which is low power', NULL, '

dosman and zach from the packetsniffers talk about Part 15 Broadcasting which is low power broadcasting for the local area. Used to do community radio around an event, a church, concerts etc. They discuss what the regulations are in the US, what you need, how to get started, what things to consider. All in all great introduction to the topic. +

+

links

+'); +INSERT INTO Episodes +(id, correspondent_id, is_explicit, submitted, published, license, title, summary, series, show_notes) +VALUES(35, 1, 1, '2008-02-18', '2008-02-18', 'CC-BY-NC-SA', 'An interview with John Whaley', 'droops interviews John Whaley from Moka5', 'Interviews', '

+droops interviews John Whaley from Moka5. +

+

+John Whaley is responsible for the technical vision of Moka5. He holds a doctorate in computer science from Stanford University, where he made key contributions to the fields of program analysis, compilers, and virtual machines. He is the winner of numerous awards including the Arthur L. Samuel Thesis Award for Best Thesis at Stanford, and has worked at IBM’s T.J. Watson Research Center and Tokyo Research Lab. John was named one of the top 15 programmers in the USA Computing Olympiad. He also holds bachelor’s and master’s degrees in computer science from MIT and speaks fluent Japanese. +

'); +