diff options
| author | diogo464 <[email protected]> | 2024-10-01 15:55:43 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2024-10-01 15:55:43 +0100 |
| commit | 1422e5893b7e8563431507a2058967082ec4f4cb (patch) | |
| tree | f959735232ae75736950ea32f71c05ec16b7912f /schema.sql | |
init
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 | ); | ||
