Parent Directory | Revision Log
restructure IMDB trivia parser, added db target to create trivia database in PostgreSQL
1 | create table films ( |
2 | id serial, |
3 | title text not null, |
4 | year int, |
5 | primary key(id) |
6 | ); |
7 | |
8 | create table trivias ( |
9 | id serial, |
10 | film_id int references films(id), |
11 | trivia text not null, |
12 | primary key(id) |
13 | ); |
14 | |
15 | create table quotes ( |
16 | id serial, |
17 | trivia_id int references trivias(id), |
18 | quote text not null, |
19 | primary key(id) |
20 | ); |
21 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |