-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.sql
25 lines (23 loc) · 892 Bytes
/
schema.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 `qdb_captchas` (
`pid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`text` varchar(8) NOT NULL,
PRIMARY KEY (`pid`)
) ENGINE=MyISAM AUTO_INCREMENT=16624 DEFAULT CHARSET=latin1;
CREATE TABLE `qdb_quotes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`score` int(11) NOT NULL DEFAULT '0',
`votes` int(10) unsigned NOT NULL DEFAULT '0',
`status` int(11) NOT NULL DEFAULT '0',
`rand` double NOT NULL,
`quote` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=16979 DEFAULT CHARSET=latin1;
CREATE TABLE `qdb_votes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`qid` int(10) unsigned NOT NULL,
`ip` varchar(15) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`value` int(1),
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;