]> git.mxchange.org Git - friendica-addons.git/blob - retriever/database.sql
Merge remote-tracking branch 'upstream/master'
[friendica-addons.git] / retriever / database.sql
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,
6        PRIMARY KEY (`id`),
7        KEY `uid` (`uid`),
8        KEY `contact-id` (`contact-id`)
9 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
10
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`),
21        PRIMARY KEY (`id`)
22 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
23
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,
34        PRIMARY KEY (`id`)
35 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin