Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. CREATE TABLE `linktable` (
  2. `id1` bigint(20) unsigned NOT NULL DEFAULT '0',
  3. `id1_type` int(10) unsigned NOT NULL DEFAULT '0',
  4. `id2` bigint(20) unsigned NOT NULL DEFAULT '0',
  5. `id2_type` int(10) unsigned NOT NULL DEFAULT '0',
  6. `link_type` bigint(20) unsigned NOT NULL DEFAULT '0',
  7. `visibility` tinyint(3) NOT NULL DEFAULT '0',
  8. `data` varchar(255) NOT NULL DEFAULT '',
  9. `time` bigint(20) unsigned NOT NULL DEFAULT '0',
  10. `version` int(11) unsigned NOT NULL DEFAULT '0',
  11. PRIMARY KEY (link_type, `id1`,`id2`),
  12. KEY `id1_type` (`id1`,`link_type`,`visibility`,`time`,`id2`,`version`,`data`)
  13. ) ENGINE=InnoDB DEFAULT CHARSET=latin1
  14. key_block_size 4;
  15.  
  16. CREATE TABLE `counttable` (
  17. `id` bigint(20) unsigned NOT NULL DEFAULT '0',
  18. `id_type` int(10) unsigned NOT NULL DEFAULT '0',
  19. `link_type` bigint(20) unsigned NOT NULL DEFAULT '0',
  20. `count` int(10) unsigned NOT NULL DEFAULT '0',
  21. `time` bigint(20) unsigned NOT NULL DEFAULT '0',
  22. `version` bigint(20) unsigned NOT NULL DEFAULT '0',
  23. PRIMARY KEY (`id`,`link_type`)
  24. ) ENGINE=InnoDB DEFAULT CHARSET=latin1
  25. key_block_size 4;
  26.  
  27. CREATE TABLE `nodetable` (
  28. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  29. `type` int(10) unsigned NOT NULL,
  30. `version` bigint(20) unsigned NOT NULL,
  31. `time` int(10) unsigned NOT NULL,
  32. `data` mediumtext NOT NULL,
  33. primary key(`id`)
  34. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement