diff options
Diffstat (limited to 'nodejs/database/002_ships.sql')
-rw-r--r-- | nodejs/database/002_ships.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nodejs/database/002_ships.sql b/nodejs/database/002_ships.sql new file mode 100644 index 0000000..629f739 --- /dev/null +++ b/nodejs/database/002_ships.sql @@ -0,0 +1,6 @@ +CREATE TABLE ships ( + id INTEGER PRIMARY KEY, + data JSON NOT NULL, + updated DATE DEFAULT NULL +); +CREATE UNIQUE INDEX ships_data_symbol on ships (json_extract(data, '$.symbol')); |