From 951e4da065533339f8e4724305489276f7f4026f Mon Sep 17 00:00:00 2001 From: Yohann Dedy Date: Sun, 1 Dec 2019 23:42:18 +0100 Subject: [PATCH] =?UTF-8?q?README.md=20:=20Ajout=20mod=C3=A8le=20BDD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README.md b/README.md index babbddb..2623151 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,42 @@ * Mettre à disposition un script pour créer la BDD * Automatiser le téléchargement des éléments vers un point donné * Récupérer les images illustrant les épisodes + + +## Tables de la base RFScraper + CREATE TABLE station( + id serial PRIMARY KEY, + url text UNIQUE NOT NULL + ); + + CREATE TABLE emission( + id serial PRIMARY KEY, + nom text NOT NULL, + url_page text NOT NULL, + url_rss text, + genre text, + producteur text, + station_id INTEGER REFERENCES station(id) + ); + + CREATE TABLE episode( + id serial PRIMARY KEY, + titre text NOT NULL, + date_diffusion date, + description_lead text, + description_full text, + id_episode_site int UNIQUE NOT NULL, + emission_id INTEGER REFERENCES emission(id) + ); + + CREATE TABLE media( + id serial PRIMARY KEY, + url_file text NOT NULL, + filename_orig text NOT NULL, + filename_local text, + size integer NOT NULL, + date_modif date NOT NULL, + md5 text, + duration real, + episode_id INTEGER REFERENCES episode(id) + );