From 57b0a3635eb789ee2f0191179c212bca80523749 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Mon, 19 Feb 2024 21:30:39 -0500 Subject: [PATCH] Format the organize the KCB example feed, add some new tables to the SQL folder. --- etc/example-podbean-rss.xml | 11 +++++++++-- server/sql/channels.sql | 21 +++++++++++++++++++++ server/sql/episodes.sql | 19 +++++++++++++++++++ server/sql/images.sql | 10 ++++++++++ server/sql/users.sql | 8 +++++--- 5 files changed, 64 insertions(+), 5 deletions(-) create mode 100644 server/sql/channels.sql create mode 100644 server/sql/episodes.sql create mode 100644 server/sql/images.sql diff --git a/etc/example-podbean-rss.xml b/etc/example-podbean-rss.xml index 65ee1a6..e0a65f1 100644 --- a/etc/example-podbean-rss.xml +++ b/etc/example-podbean-rss.xml @@ -17,10 +17,13 @@ Tue, 12 May 2020 21:30:08 -0300 https://podbean.com/?v=5.5 en + ca + Copyright 2019 All rights reserved. Comedy 1440 + episodic Kevys Country Breakfast Beers, buds, and the great game of baseball. @@ -33,6 +36,7 @@ No yes + https://pbcdn1.podbean.com/imglogo/image-logo/4943691/kcb-banner.jpg Kevys Country Breakfast @@ -40,18 +44,20 @@ 144 144 + Episode #5: Sarasota Sizzle Episode #5: Sarasota Sizzle + https://kevyscountrybreakfast.podbean.com/e/episode-5-sarasota-sizzle/ https://kevyscountrybreakfast.podbean.com/e/episode-5-sarasota-sizzle/#comments Tue, 12 May 2020 21:30:08 -0300 kevyscountrybreakfast.podbean.com/d7b42df5-ecf9-593a-803f-40d3a054cc6f Ah, the sounds of spring. Birds chirping, dogs grilling, and the triumphant return of Kevys Country Breakfast. Join us for an all access guided tour as the Princes of Pod prepare to reclaim their crown of audio royalty. Plus, Taiwanese Baseball and Dave’s perverted palate.

]]>
- Ah, the sounds of spring. Birds chirping, dogs grilling, and the triumphant return of Kevys Country Breakfast. Join us for an all access guided tour as the Princes of Pod prepare to reclaim their crown of audio royalty. Plus, Taiwanese Baseball and Dave’s perverted palate.

]]>
+ Ah, the sounds of spring. Birds chirping, dogs grilling, and the triumphant return of Kevys Country Breakfast. Join us for an all access guided tour as the Princes of Pod prepare to reclaim their crown of audio royalty. Plus, Taiwanese Baseball and Dave’... Ah, the sounds of spring. Birds chirping, dogs grilling, and the triumphant return of Kevys Country Breakfast. Join us for an all access guided tour as the Princes of Pod prepare to reclaim their crown of audio royalty. Plus, Taiwanese Baseball and Dave’s perverted palate. Kevys Country Breakfast @@ -60,7 +66,8 @@ 41:12 5 full -
+ + Episode #4: Oh Barry, Where Art Thou? Episode #4: Oh Barry, Where Art Thou? diff --git a/server/sql/channels.sql b/server/sql/channels.sql new file mode 100644 index 0000000..9895993 --- /dev/null +++ b/server/sql/channels.sql @@ -0,0 +1,21 @@ +CREATE TABLE channels ( + id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, + name VARCHAR(255) NOT NULL, + description TEXT NOT NULL, + link VARCHAR(255) NULL, + language VARCHAR(2) NOT NULL, + copyright VARCHAR(255) NULL, + explicit BOOLEAN DEFAULT false, + category VARCHAR(255), + + owner_id INT(11) UNSIGNED NOT NULL, + image_id INT(11) UNSIGNED NOT NULL, + + created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, + updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + + PRIMARY KEY(`id`), + FOREIGN KEY(`owner_id`) REFERENCES users(`id`), + FOREIGN KEY(`image_id`) REFERENCES images(`id`), + UNIQUE KEY(`name`) +) Engine=InnoDb; diff --git a/server/sql/episodes.sql b/server/sql/episodes.sql new file mode 100644 index 0000000..be34bba --- /dev/null +++ b/server/sql/episodes.sql @@ -0,0 +1,19 @@ +CREATE TABLE episodes ( + id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, + title VARCHAR(255) NOT NULL, + link VARCHAR(255) NOT NULL, + duration VARCHAR(127) NOT NULL, + description TEXT NOT NULL, + + explicit BOOLEAN NOT NULL DEFAULT true, + + channel_id INT(11) UNSIGNED NOT NULL, + image_id INT(11) UNSIGNED NOT NULL, + + created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, + updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + + PRIMARY KEY(`id`), + FOREIGN KEY(`channel_id`) REFERENCES channels(`id`), + FOREIGN KEY(`image_id`) REFERENCES images(`id`) +) Engine=InnoDb; diff --git a/server/sql/images.sql b/server/sql/images.sql new file mode 100644 index 0000000..8365a7b --- /dev/null +++ b/server/sql/images.sql @@ -0,0 +1,10 @@ +CREATE TABLE images ( + id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, + url TEXT NOT NULL, + title TEXT NULL, + width INT(11) UNSIGNED NULL, + height INT(11) UNSIGNED NULL, + + PRIMARY KEY(`id`), + UNIQUE KEY(`url`) +) Engine=InnoDb; diff --git a/server/sql/users.sql b/server/sql/users.sql index 316eeed..4f4ff9d 100644 --- a/server/sql/users.sql +++ b/server/sql/users.sql @@ -1,10 +1,12 @@ CREATE TABLE users ( id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, - username VARCHAR(255) NOT NULL, + email VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, + name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY(`id`) -); + PRIMARY KEY(`id`), + UNIQUE KEY(`email`) +) Engine=InnoDb;