Created
January 15, 2016 00:00
-
-
Save mdcallag/ecf35db2a0bfc167d09a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `linktable` ( | |
`id1` bigint(20) unsigned NOT NULL DEFAULT '0', | |
`id1_type` int(10) unsigned NOT NULL DEFAULT '0', | |
`id2` bigint(20) unsigned NOT NULL DEFAULT '0', | |
`id2_type` int(10) unsigned NOT NULL DEFAULT '0', | |
`link_type` bigint(20) unsigned NOT NULL DEFAULT '0', | |
`visibility` tinyint(3) NOT NULL DEFAULT '0', | |
`data` varchar(255) NOT NULL DEFAULT '', | |
`time` bigint(20) unsigned NOT NULL DEFAULT '0', | |
`version` int(11) unsigned NOT NULL DEFAULT '0', | |
PRIMARY KEY (`link_type`,`id1`,`id2`), | |
KEY `id1_type` (`id1`,`link_type`,`visibility`,`time`,`id2`,`version`,`data`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
CREATE TABLE `counttable` ( | |
`id` bigint(20) unsigned NOT NULL DEFAULT '0', | |
`id_type` int(10) unsigned NOT NULL DEFAULT '0', | |
`link_type` bigint(20) unsigned NOT NULL DEFAULT '0', | |
`count` int(10) unsigned NOT NULL DEFAULT '0', | |
`time` bigint(20) unsigned NOT NULL DEFAULT '0', | |
`version` bigint(20) unsigned NOT NULL DEFAULT '0', | |
PRIMARY KEY (`id`,`link_type`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
CREATE TABLE `nodetable` ( | |
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | |
`type` int(10) unsigned NOT NULL, | |
`version` bigint(20) unsigned NOT NULL, | |
`time` int(10) unsigned NOT NULL, | |
`data` mediumtext NOT NULL, | |
primary key(`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment