Compare commits
1 Commits
69f69ba534
...
3b5aa9c7e0
| Author | SHA1 | Date |
|---|---|---|
|
|
3b5aa9c7e0 |
39
README.md
39
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)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue