forked from johsw/tagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DATABASE.txt
74 lines (59 loc) · 1.86 KB
/
DATABASE.txt
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
-- --------------------------------------------------------
--
-- Table structure for table `canonical`
--
CREATE TABLE `canonical` (
`tid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`vid` int(10) unsigned NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`tid`),
KEY `vid_name` (`vid`,`name`),
KEY `taxonomy_tree` (`vid`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `linked_data_sources`
--
CREATE TABLE `linked_data_sources` (
`dsid` int(11) unsigned NOT NULL AUTO_INCREMENT,
`dstid` int(11) unsigned NOT NULL,
`tid` int(11) unsigned NOT NULL,
`uri` varchar(255) NOT NULL,
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`dsid`),
KEY `dstid` (`dstid`),
KEY `tid` (`tid`),
KEY `uri` (`uri`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `lookup`
--
CREATE TABLE `lookup` (
`tid` int(10) NOT NULL,
`vid` int(10) NOT NULL,
`name` varchar(255) NOT NULL,
KEY `redirect` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `relations`
--
CREATE TABLE `relations` (
`tid` int(10) NOT NULL,
`rtid` int(10) NOT NULL,
UNIQUE KEY `rtid_tid` (`tid`,`rtid`),
KEY `rtid` (`rtid`),
KEY `tid` (`tid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `unmatched`
--
CREATE TABLE `unmatched` (
`name` varchar(255) NOT NULL,
`count` int(11) NOT NULL,
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;