Compare commits
1 Commits
3b5aa9c7e0
...
69f69ba534
| Author | SHA1 | Date |
|---|---|---|
|
|
69f69ba534 |
60
README.md
60
README.md
|
|
@ -14,39 +14,41 @@
|
||||||
|
|
||||||
|
|
||||||
## Tables de la base RFScraper
|
## Tables de la base RFScraper
|
||||||
CREATE TABLE station(
|
'''
|
||||||
id serial PRIMARY KEY,
|
CREATE TABLE station(
|
||||||
url text UNIQUE NOT NULL
|
id serial PRIMARY KEY,
|
||||||
);
|
url text UNIQUE NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
CREATE TABLE emission(
|
CREATE TABLE emission(
|
||||||
id serial PRIMARY KEY,
|
id serial PRIMARY KEY,
|
||||||
nom text NOT NULL,
|
nom text NOT NULL,
|
||||||
url_page text NOT NULL,
|
url_page text NOT NULL,
|
||||||
url_rss text,
|
url_rss text,
|
||||||
genre text,
|
genre text,
|
||||||
producteur text,
|
producteur text,
|
||||||
station_id INTEGER REFERENCES station(id)
|
station_id INTEGER REFERENCES station(id)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE episode(
|
CREATE TABLE episode(
|
||||||
id serial PRIMARY KEY,
|
id serial PRIMARY KEY,
|
||||||
titre text NOT NULL,
|
titre text NOT NULL,
|
||||||
date_diffusion date,
|
date_diffusion date,
|
||||||
description_lead text,
|
description_lead text,
|
||||||
description_full text,
|
description_full text,
|
||||||
id_episode_site int UNIQUE NOT NULL,
|
id_episode_site int UNIQUE NOT NULL,
|
||||||
emission_id INTEGER REFERENCES emission(id)
|
emission_id INTEGER REFERENCES emission(id)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE media(
|
CREATE TABLE media(
|
||||||
id serial PRIMARY KEY,
|
id serial PRIMARY KEY,
|
||||||
url_file text NOT NULL,
|
url_file text NOT NULL,
|
||||||
filename_orig text NOT NULL,
|
filename_orig text NOT NULL,
|
||||||
filename_local text,
|
filename_local text,
|
||||||
size integer NOT NULL,
|
size integer NOT NULL,
|
||||||
date_modif date NOT NULL,
|
date_modif date NOT NULL,
|
||||||
md5 text,
|
md5 text,
|
||||||
duration real,
|
duration real,
|
||||||
episode_id INTEGER REFERENCES episode(id)
|
episode_id INTEGER REFERENCES episode(id)
|
||||||
);
|
);
|
||||||
|
'''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue