diff options
Diffstat (limited to 'schema.sql')
| -rw-r--r-- | schema.sql | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/schema.sql b/schema.sql new file mode 100644 index 0000000..0045372 --- /dev/null +++ b/schema.sql | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | CREATE TABLE IF NOT EXISTS location ( | ||
| 2 | timestamp REAL NOT NULL, | ||
| 3 | latitude REAL NOT NULL, | ||
| 4 | longitude REAL NOT NULL, | ||
| 5 | accuracy REAL NOT NULL, | ||
| 6 | heading REAL NOT NULL | ||
| 7 | ); | ||
| 8 | |||
| 9 | CREATE TABLE IF NOT EXISTS shape ( | ||
| 10 | id INTEGER NOT NULL, | ||
| 11 | kind VARCHAR NOT NULL | ||
| 12 | ); | ||
| 13 | |||
| 14 | CREATE TABLE IF NOT EXISTS shape_point ( | ||
| 15 | shape INTEGER NOT NULL, | ||
| 16 | latitude REAL NOT NULL, | ||
| 17 | longitude REAL NOT NULL | ||
| 18 | ); | ||
