forked from hacash/explorer1
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmysqlcreate.js
54 lines (24 loc) · 859 Bytes
/
mysqlcreate.js
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
create_sql =
```
CREATE DATABASE hacash_trsdb;
CREATE TABLE `settings` (
`name` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL,
PRIMARY KEY (`name`,`value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `transferlog` (
`id` int(4) unsigned NOT NULL AUTO_INCREMENT,
`blockheight` int(4) unsigned NOT NULL DEFAULT '0',
`fromaddr` varchar(255) NOT NULL,
`toaddr` varchar(255) NOT NULL,
`amountstr` varchar(255) NOT NULL,
`timestamp` int(4) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `blockheight` (`blockheight`,`fromaddr`,`toaddr`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `diamondcount` (
`address` char(34) NOT NULL,
`count` int(4) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`address`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
```