Files
OptiTrainer/server/quoteDBs/createTable.sql
Joe Tretter 1fdf705eb5 Add a table to hold only the Symbols
to improve performance.
2020-09-23 10:14:12 -05:00

9 lines
255 B
SQL

CREATE TABLE IF NOT EXISTS "OptionQuotes"( "TimeStamp"DateTime DEFAULT CURRENT_TIMESTAMP,
"Symbol" Text,
"Data" Text);
CREATE INDEX IF NOT EXISTS smbDaTi on OptionQuotes (Symbol,timestamp);
CREATE TABLE IF NOT EXISTS "Symbols" (
"Symbol" TEXT UNIQUE
);