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/001_systems.sql | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 nodejs/database/001_systems.sql

(limited to 'nodejs/database/001_systems.sql')

diff --git a/nodejs/database/001_systems.sql b/nodejs/database/001_systems.sql
new file mode 100644
index 0000000..9ad76b1
--- /dev/null
+++ b/nodejs/database/001_systems.sql
@@ -0,0 +1,6 @@
+CREATE TABLE systems (
+       id INTEGER PRIMARY KEY,
+       data JSON NOT NULL,
+       updated DATE DEFAULT NULL
+);
+CREATE UNIQUE INDEX systems_data_symbol on systems (json_extract(data, '$.symbol'));
-- 
cgit v1.2.3

