chiark / gitweb /
refactor to put findparents/spouses/children in one place
[familyTree.git] / familyTree / makeTables.py
1 #!/usr/bin/python
2
3 s = 'CREATE TABLE people\n(\nID int,\nName text,\nFirstName'\
4         +' text,\nBorn text,\nbornYear int,\nDied text,'\
5         +'\ndiedYear int,\nbornMonth int,\ndiedMonth,'\
6         +'\nURL text,\nPicture text);'
7
8 print s
9
10 s = 'CREATE TABLE styles\n(\nID int,\nStyle text,\nStart text,\nstartYear int'\
11         +',\nStop text,\nstopYear int);'
12
13 print s
14
15 s = 'CREATE TABLE territories\n(\nID int,\nTerritory text,'\
16         +'\nStart text,\nstartYear,\nStop text,\nstopYear);'
17
18 print s
19
20 s = 'CREATE TABLE parents\n(\nID int,\nparentID text);'
21
22 print s
23