-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquery_create_table.sql
More file actions
39 lines (38 loc) · 1.47 KB
/
query_create_table.sql
File metadata and controls
39 lines (38 loc) · 1.47 KB
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
-- ----------------------------
-- Table structure for coin_info
-- ----------------------------
DROP TABLE IF EXISTS `coin_info`;
CREATE TABLE `coin_info` (
`id` smallint(6) NOT NULL AUTO_INCREMENT,
`symbol` char(20) DEFAULT NULL,
`minQty` decimal(15,10) DEFAULT NULL,
`tickSize` decimal(15,10) DEFAULT NULL,
`status` char(20) DEFAULT NULL,
`baseAsset` char(10) DEFAULT NULL,
`quoteAsset` char(10) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `symbol` (`symbol`) USING HASH
) ENGINE=InnoDB AUTO_INCREMENT=399 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for candlestick_data
-- ----------------------------
DROP TABLE IF EXISTS `candlestick_data`;
CREATE TABLE `candlestick_data` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idCoin` smallint(6) DEFAULT NULL,
`openTime` bigint(20) DEFAULT NULL,
`open` decimal(20,10) DEFAULT NULL,
`high` decimal(20,10) DEFAULT NULL,
`low` decimal(20,10) DEFAULT NULL,
`close` decimal(20,10) DEFAULT NULL,
`volume` decimal(20,10) DEFAULT NULL,
`closeTime` bigint(20) DEFAULT NULL,
`quoteAssetVolume` decimal(20,10) DEFAULT NULL,
`numberOfTrader` int(11) DEFAULT NULL,
`takerBuyBaseAssetVolume` decimal(20,10) DEFAULT NULL,
`takerBuyQuoteAssetVolume` decimal(20,10) DEFAULT NULL,
`ignore` decimal(20,10) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `openTime` (`openTime`),
KEY `idCoin` (`idCoin`)
) ENGINE=InnoDB AUTO_INCREMENT=2769604 DEFAULT CHARSET=utf8;