[node] implement shipyard info retrieval and database caching
This commit is contained in:
parent
ccbfd9deb9
commit
4cb5c7853c
5 changed files with 81 additions and 10 deletions
6
nodejs/database/005_shipyards.sql
Normal file
6
nodejs/database/005_shipyards.sql
Normal file
|
@ -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'));
|
Loading…
Add table
Add a link
Reference in a new issue