-
Notifications
You must be signed in to change notification settings - Fork 18
/
tables.sql
52 lines (47 loc) · 1.79 KB
/
tables.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `tvix`;
CREATE TABLE `tvix` (
`start` datetime NOT NULL,
`open` decimal(15, 4) unsigned DEFAULT NULL,
`high` decimal(15, 4) unsigned DEFAULT NULL,
`low` decimal(15, 4) unsigned DEFAULT NULL,
`close` decimal(15, 4) unsigned DEFAULT NULL,
`volume` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`start`),
KEY `close` (`close`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `spy`;
CREATE TABLE `spy` (
`start` datetime NOT NULL,
`open` decimal(15, 4) unsigned DEFAULT NULL,
`high` decimal(15, 4) unsigned DEFAULT NULL,
`low` decimal(15, 4) unsigned DEFAULT NULL,
`close` decimal(15, 4) unsigned DEFAULT NULL,
`volume` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`start`),
KEY `close` (`close`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `fb`;
CREATE TABLE `fb` (
`start` datetime NOT NULL,
`open` decimal(15, 4) unsigned DEFAULT NULL,
`high` decimal(15, 4) unsigned DEFAULT NULL,
`low` decimal(15, 4) unsigned DEFAULT NULL,
`close` decimal(15, 4) unsigned DEFAULT NULL,
`volume` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`start`),
KEY `close` (`close`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `nflx`;
CREATE TABLE `nflx` (
`start` datetime NOT NULL,
`open` decimal(15, 4) unsigned DEFAULT NULL,
`high` decimal(15, 4) unsigned DEFAULT NULL,
`low` decimal(15, 4) unsigned DEFAULT NULL,
`close` decimal(15, 4) unsigned DEFAULT NULL,
`volume` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`start`),
KEY `close` (`close`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
SET FOREIGN_KEY_CHECKS = 1;