A community web log for monkey niches.

schema.sql 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. -- MySQL dump 10.9
  2. --
  3. -- Host: localhost Database: mofi
  4. -- ------------------------------------------------------
  5. -- Server version 4.1.15-Debian_1ubuntu5
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  11. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  12. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  13. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  14. --
  15. -- Table structure for table `1_accesslog`
  16. --
  17. DROP TABLE IF EXISTS `1_accesslog`;
  18. CREATE TABLE `1_accesslog` (
  19. `title` varchar(255) default NULL,
  20. `path` varchar(255) default NULL,
  21. `url` varchar(255) default NULL,
  22. `hostname` varchar(128) default NULL,
  23. `uid` int(10) unsigned default '0',
  24. `timestamp` int(11) unsigned NOT NULL default '0',
  25. `run_time` float default NULL,
  26. KEY `accesslog_timestamp` (`timestamp`)
  27. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  28. --
  29. -- Dumping data for table `1_accesslog`
  30. --
  31. /*!40000 ALTER TABLE `1_accesslog` DISABLE KEYS */;
  32. LOCK TABLES `1_accesslog` WRITE;
  33. UNLOCK TABLES;
  34. /*!40000 ALTER TABLE `1_accesslog` ENABLE KEYS */;
  35. --
  36. -- Table structure for table `1_comments`
  37. --
  38. DROP TABLE IF EXISTS `1_comments`;
  39. CREATE TABLE `1_comments` (
  40. `commentID` int(10) unsigned NOT NULL auto_increment,
  41. `linkID` int(10) unsigned NOT NULL default '0',
  42. `userID` int(10) unsigned NOT NULL default '0',
  43. `philterID` int(3) unsigned NOT NULL default '1',
  44. `content` text NOT NULL,
  45. `timestamp` int(14) NOT NULL default '0',
  46. PRIMARY KEY (`commentID`),
  47. KEY `linkID` (`linkID`),
  48. KEY `userID` (`userID`),
  49. KEY `timestamp` (`timestamp`)
  50. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  51. --
  52. -- Dumping data for table `1_comments`
  53. --
  54. /*!40000 ALTER TABLE `1_comments` DISABLE KEYS */;
  55. LOCK TABLES `1_comments` WRITE;
  56. UNLOCK TABLES;
  57. /*!40000 ALTER TABLE `1_comments` ENABLE KEYS */;
  58. --
  59. -- Table structure for table `1_links`
  60. --
  61. DROP TABLE IF EXISTS `1_links`;
  62. CREATE TABLE `1_links` (
  63. `linkID` int(10) unsigned NOT NULL auto_increment,
  64. `userID` int(10) unsigned NOT NULL default '0',
  65. `philterID` int(3) unsigned NOT NULL default '1',
  66. `category` int(4) unsigned NOT NULL default '0',
  67. `timestamp` int(14) unsigned NOT NULL default '0',
  68. `title` tinytext NOT NULL,
  69. `URL` tinytext NOT NULL,
  70. `URL_description` mediumtext NOT NULL,
  71. `description` mediumtext NOT NULL,
  72. `extended` mediumtext NOT NULL,
  73. `closed` int(2) default '0',
  74. `hidden` int(2) default '0',
  75. PRIMARY KEY (`linkID`),
  76. KEY `category` (`category`),
  77. KEY `userID` (`userID`),
  78. KEY `timestamp` (`timestamp`)
  79. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  80. --
  81. -- Dumping data for table `1_links`
  82. --
  83. /*!40000 ALTER TABLE `1_links` DISABLE KEYS */;
  84. LOCK TABLES `1_links` WRITE;
  85. UNLOCK TABLES;
  86. /*!40000 ALTER TABLE `1_links` ENABLE KEYS */;
  87. --
  88. -- Table structure for table `1_pings`
  89. --
  90. DROP TABLE IF EXISTS `1_pings`;
  91. CREATE TABLE `1_pings` (
  92. `linkID` int(10) NOT NULL default '0',
  93. `URL` tinytext NOT NULL,
  94. `title` text NOT NULL,
  95. `excerpt` text NOT NULL,
  96. `blog_name` tinytext NOT NULL,
  97. `timestamp` int(14) NOT NULL default '0',
  98. PRIMARY KEY (`linkID`)
  99. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  100. --
  101. -- Dumping data for table `1_pings`
  102. --
  103. /*!40000 ALTER TABLE `1_pings` DISABLE KEYS */;
  104. LOCK TABLES `1_pings` WRITE;
  105. UNLOCK TABLES;
  106. /*!40000 ALTER TABLE `1_pings` ENABLE KEYS */;
  107. --
  108. -- Table structure for table `1_users`
  109. --
  110. DROP TABLE IF EXISTS `1_users`;
  111. CREATE TABLE `1_users` (
  112. `userID` int(10) unsigned NOT NULL auto_increment,
  113. `user_group` int(4) unsigned NOT NULL default '1',
  114. `username` tinytext NOT NULL,
  115. `password` tinytext NOT NULL,
  116. `added` int(14) unsigned NOT NULL default '0',
  117. `email` tinytext NOT NULL,
  118. `realname` tinytext NOT NULL,
  119. `aim` varchar(30) NOT NULL default '',
  120. `homepage` tinytext NOT NULL,
  121. `bio` mediumtext NOT NULL,
  122. `preferences` text,
  123. `last_visit` int(14) unsigned NOT NULL default '0',
  124. `contacts` text,
  125. PRIMARY KEY (`userID`)
  126. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  127. --
  128. -- Dumping data for table `1_users`
  129. --
  130. /*!40000 ALTER TABLE `1_users` DISABLE KEYS */;
  131. LOCK TABLES `1_users` WRITE;
  132. UNLOCK TABLES;
  133. /*!40000 ALTER TABLE `1_users` ENABLE KEYS */;
  134. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  135. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  136. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  137. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  138. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  139. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  140. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  141. CREATE TABLE `1_likes` (
  142. `likeID` int(10) unsigned NOT NULL auto_increment,
  143. `commentID` int(10) unsigned NOT NULL,
  144. `userID` int(10) unsigned NOT NULL default '0',
  145. KEY `likeID` (`likeID`),
  146. KEY `commentID` (`commentID`),
  147. KEY `userID` (`userID`)
  148. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;