1
0
Fork 0

Began implementing surveying

This commit is contained in:
Julien Dessaux 2023-06-15 01:02:03 +02:00
parent ec5d09586f
commit 93e6e02bca
Signed by: adyxax
GPG key ID: F92E51B86E07177E
4 changed files with 54 additions and 2 deletions

6
database/003_surveys.sql Normal file
View file

@ -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'));