diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | bucky-schema.sql | 210 |
2 files changed, 211 insertions, 0 deletions
@@ -8,6 +8,7 @@ v1 node_modules/ dist *.sql +!bucky-schema.sql .env public/data .my.cnf diff --git a/bucky-schema.sql b/bucky-schema.sql new file mode 100644 index 0000000..8f5c347 --- /dev/null +++ b/bucky-schema.sql @@ -0,0 +1,210 @@ +-- MySQL dump 10.13 Distrib 5.6.22, for osx10.10 (x86_64) +-- +-- Host: localhost Database: bucky3 +-- ------------------------------------------------------ +-- Server version 5.6.22 + +/*!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 utf8mb4 */; +/*!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 '', + `editable` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=593 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=24058 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 '', + `date` int(11) NOT NULL DEFAULT '0', + `size` int(11) DEFAULT NULL, + `private` int(11) DEFAULT NULL, + `storage` varchar(32) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=26430 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', + `username` varchar(16) DEFAULT '', + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=159 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 '', + `owner` varchar(16) NOT NULL DEFAULT '', + `createdate` int(11) NOT NULL DEFAULT '0', + `settings` varchar(512) DEFAULT NULL, + `public` int(11) DEFAULT NULL, + `color` varchar(16) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=94 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 '', + `date` int(11) NOT NULL DEFAULT '0', + `subject` varchar(64) NOT NULL DEFAULT '', + `body` blob, + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=6471 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=12711 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` varchar(512) DEFAULT NULL, + `flagged` int(11) DEFAULT NULL, + `color` varchar(16) DEFAULT NULL, + `viewed` int(11) DEFAULT NULL, + `revision` int(11) DEFAULT '0', + `settings` varchar(512) DEFAULT '{}', + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=3401 DEFAULT CHARSET=utf8; +/*!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, + `phone` varchar(64) DEFAULT NULL, + `webpage` varchar(255) DEFAULT NULL, + `location` varchar(64) DEFAULT NULL, + `fb` varchar(255) DEFAULT NULL, + `tw` varchar(255) DEFAULT NULL, + `keywords` varchar(512) DEFAULT '', + `stickies` varchar(512) DEFAULT '', + `settings` varchar(512) DEFAULT '', + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=221 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 2017-12-13 0:31:19 |
