forked from kingrock/BitcoinExchange
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdb.sql
124 lines (115 loc) · 4.25 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `addresses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(100) NOT NULL,
`coin1` varchar(200) NOT NULL,
`coin2` varchar(200) NOT NULL,
`coin3` varchar(200) NOT NULL,
`coin4` varchar(200) NOT NULL,
`coin5` varchar(200) NOT NULL,
`coin6` varchar(200) NOT NULL,
`coin7` varchar(200) NOT NULL,
`coin8` varchar(200) NOT NULL,
`coin9` varchar(200) NOT NULL,
`coin10` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
CREATE TABLE IF NOT EXISTS `apis` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(100) NOT NULL,
`apikey` text NOT NULL,
`privkey` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `balances` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(100) NOT NULL,
`coin1` varchar(200) NOT NULL,
`coin2` varchar(200) NOT NULL,
`coin3` varchar(200) NOT NULL,
`coin4` varchar(200) NOT NULL,
`coin5` varchar(200) NOT NULL,
`coin6` varchar(200) NOT NULL,
`coin7` varchar(200) NOT NULL,
`coin8` varchar(200) NOT NULL,
`coin9` varchar(200) NOT NULL,
`coin10` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
CREATE TABLE IF NOT EXISTS `buy_orderbook` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` varchar(300) NOT NULL,
`ip` varchar(30) NOT NULL,
`username` varchar(100) NOT NULL,
`action` varchar(100) NOT NULL,
`want` varchar(100) NOT NULL,
`initial_amount` varchar(200) NOT NULL,
`amount` varchar(200) NOT NULL,
`rate` varchar(200) NOT NULL,
`processed` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
CREATE TABLE IF NOT EXISTS `ordersfilled` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` varchar(100) NOT NULL,
`ip` varchar(100) NOT NULL,
`username` varchar(100) NOT NULL,
`trader` varchar(100) NOT NULL,
`oid` varchar(100) NOT NULL,
`action` varchar(100) NOT NULL,
`want` varchar(100) NOT NULL,
`amount` varchar(200) NOT NULL,
`rate` varchar(200) NOT NULL,
`total` varchar(200) NOT NULL,
`processed` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `sell_orderbook` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` varchar(300) NOT NULL,
`ip` varchar(30) NOT NULL,
`username` varchar(100) NOT NULL,
`action` varchar(100) NOT NULL,
`want` varchar(100) NOT NULL,
`initial_amount` varchar(200) NOT NULL,
`amount` varchar(200) NOT NULL,
`rate` varchar(200) NOT NULL,
`processed` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
CREATE TABLE IF NOT EXISTS `transactions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` varchar(300) NOT NULL,
`username` varchar(100) NOT NULL,
`action` varchar(100) NOT NULL,
`coin` varchar(100) NOT NULL,
`address` text NOT NULL,
`txid` text NOT NULL,
`amount` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=31 ;
CREATE TABLE IF NOT EXISTS `who_is_online` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`username` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`botname` varchar(300) COLLATE utf8_unicode_ci NOT NULL,
`user` varchar(300) COLLATE utf8_unicode_ci NOT NULL,
`bot` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`guest` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`country` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`countrycode` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
`city` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `ip` (`ip`),
KEY `countrycode` (`countrycode`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=22 ;
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` varchar(300) NOT NULL,
`ip` varchar(30) NOT NULL,
`username` varchar(65) NOT NULL,
`password` varchar(300) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;