-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.sql
42 lines (36 loc) · 985 Bytes
/
db.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
CREATE DATABASE harpun;
USE harpun;
# Dump of table stocks
# ------------------------------------------------------------
CREATE TABLE `stocks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`avanzaId` int(11),
`ticker` text UNIQUE,
`name` text,
`avgTradeAmount` int(11),
PRIMARY KEY (`id`),
KEY `avanzaId` (`avanzaId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table trades
# ------------------------------------------------------------
CREATE TABLE `trades` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ticker` text,
`buyer` text,
`seller` text,
`amount`int(11),
`price` text,
`time` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table alerts
# ------------------------------------------------------------
CREATE TABLE `alerts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ticker` text,
`amount`int(11),
`price` text,
`totalPrice` text,
`time` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;