-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.sql
25 lines (23 loc) · 1.01 KB
/
create.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
CREATE TABLE `tb_report` (
`report_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`coin` varchar(11) DEFAULT NULL,
`wallet_address` varchar(512) DEFAULT NULL,
`url` varchar(1024) NOT NULL DEFAULT '',
`reason` varchar(8096) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`report_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
CREATE TABLE `tb_scam` (
`scam_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(128) NOT NULL DEFAULT '',
`report_id` int(11) DEFAULT NULL,
`category` varchar(32) NOT NULL DEFAULT '',
`subcategory` varchar(32) NOT NULL DEFAULT '',
`coin` varchar(32) DEFAULT NULL,
`status` tinyint(1) NOT NULL,
`url` varchar(128) NOT NULL DEFAULT '',
`wallet_address` varchar(512) DEFAULT '',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`scam_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;