|
|
@ -3,8 +3,8 @@ |
|
|
|
const init_queries = [ |
|
|
|
`CREATE TABLE IF NOT EXISTS FloodZones (
|
|
|
|
Id integer PRIMARY KEY autoincrement, |
|
|
|
Description text NOT NULL, |
|
|
|
Images text NOT NULL, |
|
|
|
Description text, |
|
|
|
Images text, |
|
|
|
Latitude real NOT NULL, |
|
|
|
Longitude real NOT NULL, |
|
|
|
Passable INTERGER NOT NULL |
|
|
@ -12,7 +12,7 @@ const init_queries = [ |
|
|
|
`CREATE TABLE IF NOT EXISTS Pluviometer (
|
|
|
|
Id integer PRIMARY KEY autoincrement, |
|
|
|
Date text NOT NULL, |
|
|
|
Images text NOT NULL, |
|
|
|
Images text, |
|
|
|
Latitude real NOT NULL, |
|
|
|
Longitude real NOT NULL, |
|
|
|
Precipitation real NOT NULL |
|
|
@ -20,14 +20,14 @@ const init_queries = [ |
|
|
|
`CREATE TABLE IF NOT EXISTS RainLevel (
|
|
|
|
Id integer PRIMARY KEY autoincrement, |
|
|
|
RainIdx INTEGER NOT NULL, |
|
|
|
Images text NOT NULL, |
|
|
|
Images text, |
|
|
|
Latitude real NOT NULL, |
|
|
|
Longitude real NOT NULL |
|
|
|
);`,
|
|
|
|
`CREATE TABLE IF NOT EXISTS RiverLevel (
|
|
|
|
Id integer PRIMARY KEY autoincrement, |
|
|
|
RiverIdx INTEGER NOT NULL, |
|
|
|
Images text NOT NULL, |
|
|
|
Images text, |
|
|
|
Latitude real NOT NULL, |
|
|
|
Longitude real NOT NULL |
|
|
|
);`,
|
|
|
|