From 4cb5c7853c75eb3d9e99a525065f0816ebb5dd62 Mon Sep 17 00:00:00 2001
From: Julien Dessaux
Date: Mon, 20 May 2024 22:50:33 +0200
Subject: [node] implement shipyard info retrieval and database caching

---
 nodejs/database/005_shipyards.sql | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 nodejs/database/005_shipyards.sql

(limited to 'nodejs/database/005_shipyards.sql')

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'));
-- 
cgit v1.2.3

