From 7008c91c6fb74f7106c4d9903849d3f1fc17b2f1 Mon Sep 17 00:00:00 2001
From: Julien Dessaux
Date: Fri, 2 Jun 2023 00:00:09 +0200
Subject: Improved ships lib with ships db caching

---
 database/002_ships.sql | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 database/002_ships.sql

(limited to 'database/002_ships.sql')

diff --git a/database/002_ships.sql b/database/002_ships.sql
new file mode 100644
index 0000000..629f739
--- /dev/null
+++ b/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'));
-- 
cgit v1.2.3

