Began implementing surveying
This commit is contained in:
parent
ec5d09586f
commit
93e6e02bca
4 changed files with 54 additions and 2 deletions
6
database/003_surveys.sql
Normal file
6
database/003_surveys.sql
Normal 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'));
|
Loading…
Add table
Add a link
Reference in a new issue