From 93e6e02bcafaac0a57b7c1d98dca5ba52f32684b Mon Sep 17 00:00:00 2001
From: Julien Dessaux
Date: Thu, 15 Jun 2023 01:02:03 +0200
Subject: Began implementing surveying

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

(limited to 'database/003_surveys.sql')

diff --git a/database/003_surveys.sql b/database/003_surveys.sql
new file mode 100644
index 0000000..0548796
--- /dev/null
+++ b/database/003_surveys.sql
@@ -0,0 +1,6 @@
+CREATE TABLE surveys (
+       id INTEGER PRIMARY KEY,
+       data JSON NOT NULL
+);
+CREATE INDEX surveys_data_symbol on surveys (json_extract(data, '$.symbol'));
+CREATE INDEX surveys_data_expiration on surveys (json_extract(data, '$.expiration'));
-- 
cgit v1.2.3

