1 CREATE TABLE IF NOT EXISTS `retriever_rule` (
2 `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
3 `uid` int(11) NOT NULL,
4 `contact-id` int(11) NOT NULL,
5 `data` mediumtext NOT NULL,
8 KEY `contact-id` (`contact-id`)
9 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
11 CREATE TABLE IF NOT EXISTS `retriever_item` (
12 `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
13 `item-uri` varchar(800) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,
14 `item-uid` int(10) unsigned NOT NULL DEFAULT '0',
15 `contact-id` int(10) unsigned NOT NULL DEFAULT '0',
16 `resource` int(11) NOT NULL,
17 `parent` int(11) NOT NULL,
18 `finished` tinyint(1) unsigned NOT NULL DEFAULT '0',
19 KEY `resource` (`resource`),
20 KEY `all` (`item-uri`, `item-uid`, `contact-id`),
22 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
24 CREATE TABLE IF NOT EXISTS `retriever_resource` (
25 `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
26 `type` char(255) NOT NULL,
27 `binary` int(1) NOT NULL DEFAULT 0,
28 `url` varchar(800) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,
29 `created` timestamp NOT NULL DEFAULT now(),
30 `completed` timestamp NULL DEFAULT NULL,
31 `last-try` timestamp NULL DEFAULT NULL,
32 `num-tries` int(11) NOT NULL DEFAULT 0,
33 `data` mediumtext NOT NULL,
35 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin