From 36cc33f9e96a38ecea98ac8d26275b4828347d80 Mon Sep 17 00:00:00 2001
From: Julien Dessaux
Date: Sat, 1 Jul 2023 23:13:13 +0200
Subject: Moved the nodejs agent to its own subfolder to make room for my
 haskell agent

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

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

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

