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