summaryrefslogtreecommitdiff
path: root/bucky2/schema
diff options
context:
space:
mode:
Diffstat (limited to 'bucky2/schema')
-rw-r--r--bucky2/schema/bucky-db-schema.sql259
-rw-r--r--bucky2/schema/poetaster_log.sql12
-rw-r--r--bucky2/schema/search-log.sql11
-rw-r--r--bucky2/schema/svn.sql12
4 files changed, 294 insertions, 0 deletions
diff --git a/bucky2/schema/bucky-db-schema.sql b/bucky2/schema/bucky-db-schema.sql
new file mode 100644
index 0000000..a34ef14
--- /dev/null
+++ b/bucky2/schema/bucky-db-schema.sql
@@ -0,0 +1,259 @@
+-- MySQL dump 10.13 Distrib 5.5.21, for Linux (x86_64)
+--
+-- Host: carbonpictures.com Database: bucky
+-- ------------------------------------------------------
+-- Server version 5.5.21-cll
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `boxes`
+--
+
+DROP TABLE IF EXISTS `boxes`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `boxes` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `mbox` varchar(64) NOT NULL DEFAULT '',
+ `owner` varchar(16) NOT NULL DEFAULT '',
+ `mcount` int(11) DEFAULT NULL,
+ `editable` tinyint(4) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=536 DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `comments`
+--
+
+DROP TABLE IF EXISTS `comments`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `comments` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `thread` int(11) NOT NULL DEFAULT '0',
+ `parent_id` int(11) NOT NULL DEFAULT '0',
+ `username` varchar(16) NOT NULL DEFAULT '',
+ `date` int(11) NOT NULL DEFAULT '0',
+ `comment` blob,
+ `hidden` int(11) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=9917 DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `files`
+--
+
+DROP TABLE IF EXISTS `files`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `files` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `thread` int(11) DEFAULT NULL,
+ `username` varchar(16) NOT NULL DEFAULT '',
+ `filename` varchar(192) NOT NULL DEFAULT '',
+ `title` varchar(192) DEFAULT NULL,
+ `date` int(11) NOT NULL DEFAULT '0',
+ `size` int(11) DEFAULT NULL,
+ `private` int(11) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=23912 DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `invites`
+--
+
+DROP TABLE IF EXISTS `invites`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `invites` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `hash` varchar(16) DEFAULT '',
+ `state` int(11) NOT NULL DEFAULT '0',
+ `attest` varchar(16) DEFAULT '',
+ `created` int(11) NOT NULL DEFAULT '0',
+ `expired` int(11) DEFAULT '0',
+ `username` varchar(16) DEFAULT '',
+ `password` varchar(16) DEFAULT '',
+ `realname` varchar(64) DEFAULT '',
+ `email` varchar(64) DEFAULT '',
+ `grass` tinyblob,
+ `keywords` varchar(64) DEFAULT '',
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=134 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `keywords`
+--
+
+DROP TABLE IF EXISTS `keywords`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `keywords` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `keyword` varchar(16) NOT NULL DEFAULT '',
+ `threads` blob,
+ `owner` varchar(16) NOT NULL DEFAULT '',
+ `createdate` int(11) NOT NULL DEFAULT '0',
+ `ops` blob,
+ `public` int(11) DEFAULT NULL,
+ `agglutinate` int(11) DEFAULT NULL,
+ `color` varchar(16) DEFAULT NULL,
+ `display` tinyblob,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=65 DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `messages`
+--
+
+DROP TABLE IF EXISTS `messages`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `messages` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `mbox` varchar(64) DEFAULT NULL,
+ `unread` tinyint(4) DEFAULT NULL,
+ `sender` varchar(16) NOT NULL DEFAULT '',
+ `recipient` varchar(16) NOT NULL DEFAULT '',
+ `cc` varchar(64) DEFAULT NULL,
+ `date` int(11) NOT NULL DEFAULT '0',
+ `subject` varchar(64) NOT NULL DEFAULT '',
+ `body` blob,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=3850 DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `search_log`
+--
+
+DROP TABLE IF EXISTS `search_log`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `search_log` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `query` varchar(255) DEFAULT NULL,
+ `date` int(11) DEFAULT NULL,
+ `matches` int(11) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=4541 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `tags`
+--
+
+DROP TABLE IF EXISTS `tags`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `tags` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `tag` varchar(16) NOT NULL DEFAULT '',
+ `createdate` int(11) NOT NULL DEFAULT '0',
+ `owner` varchar(16) NOT NULL DEFAULT '',
+ `ops` blob,
+ `public` int(11) DEFAULT NULL,
+ `display` tinyblob,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=133 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `threads`
+--
+
+DROP TABLE IF EXISTS `threads`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `threads` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `title` varchar(64) NOT NULL DEFAULT '',
+ `username` varchar(16) NOT NULL DEFAULT '',
+ `keyword` varchar(16) DEFAULT NULL,
+ `createdate` int(11) NOT NULL DEFAULT '0',
+ `lastmodified` int(11) DEFAULT NULL,
+ `size` int(11) DEFAULT NULL,
+ `private` smallint(6) DEFAULT NULL,
+ `allowed` tinyblob,
+ `flagged` int(11) DEFAULT NULL,
+ `color` varchar(16) DEFAULT NULL,
+ `display` tinyblob,
+ `zipped` smallint(6) DEFAULT NULL,
+ `viewed` int(11) DEFAULT NULL,
+ `revision` int(11) DEFAULT '0',
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=2237 DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `threadstags`
+--
+
+DROP TABLE IF EXISTS `threadstags`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `threadstags` (
+ `threadid` int(11) NOT NULL DEFAULT '0',
+ `tagid` int(11) NOT NULL DEFAULT '0',
+ `username` varchar(16) NOT NULL DEFAULT '',
+ `createdate` int(11) NOT NULL DEFAULT '0'
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `users`
+--
+
+DROP TABLE IF EXISTS `users`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `users` (
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `username` varchar(16) NOT NULL DEFAULT '',
+ `password` varchar(16) NOT NULL DEFAULT '',
+ `realname` varchar(64) DEFAULT NULL,
+ `email` varchar(64) DEFAULT NULL,
+ `ulevel` int(11) DEFAULT NULL,
+ `grass` blob,
+ `firstseen` int(11) DEFAULT NULL,
+ `lastseen` int(11) DEFAULT NULL,
+ `lastsession` int(11) DEFAULT NULL,
+ `aim` varchar(64) DEFAULT NULL,
+ `phone` varchar(64) DEFAULT NULL,
+ `location` varchar(64) DEFAULT NULL,
+ `timezone` smallint(6) DEFAULT NULL,
+ `keywords` blob,
+ `stickies` blob,
+ `sink` blob,
+ `display` blob,
+ `boxes` blob,
+ `webpage` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=199 DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2012-06-23 18:17:44
diff --git a/bucky2/schema/poetaster_log.sql b/bucky2/schema/poetaster_log.sql
new file mode 100644
index 0000000..09a9189
--- /dev/null
+++ b/bucky2/schema/poetaster_log.sql
@@ -0,0 +1,12 @@
+USE `bucky`;
+
+DROP TABLE IF EXISTS `poetaster_log`;
+CREATE TABLE `poetaster_log` (
+ `id` int(11) NOT NULL auto_increment,
+ `username` varchar(255),
+ `url` varchar(255),
+ `hash` varchar(255),
+ `date` int(11),
+ PRIMARY KEY(`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
diff --git a/bucky2/schema/search-log.sql b/bucky2/schema/search-log.sql
new file mode 100644
index 0000000..ae61893
--- /dev/null
+++ b/bucky2/schema/search-log.sql
@@ -0,0 +1,11 @@
+USE `bucky`;
+
+DROP TABLE IF EXISTS `search_log`;
+CREATE TABLE `search_log` (
+ `id` int(11) NOT NULL auto_increment,
+ `query` varchar(255),
+ `date` int(11),
+ `matches` int(11),
+ PRIMARY KEY(`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
diff --git a/bucky2/schema/svn.sql b/bucky2/schema/svn.sql
new file mode 100644
index 0000000..1459460
--- /dev/null
+++ b/bucky2/schema/svn.sql
@@ -0,0 +1,12 @@
+USE `bucky`;
+
+DROP TABLE IF EXISTS `svn`;
+CREATE TABLE `svn` (
+ `id` int(11) NOT NULL auto_increment,
+ `user` varchar(255),
+ `date` int(11),
+ `revision` int(11),
+ `comment` blob,
+ PRIMARY KEY(`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+