| 1 | # phpMyAdmin MySQL-Dump |
|---|
| 2 | # version 2.2.2 |
|---|
| 3 | # http://phpwizard.net/phpMyAdmin/ |
|---|
| 4 | # http://phpmyadmin.sourceforge.net/ (download page) |
|---|
| 5 | # |
|---|
| 6 | # -------------------------------------------------------- |
|---|
| 7 | |
|---|
| 8 | # |
|---|
| 9 | # Table structure for table `bb_categories` |
|---|
| 10 | # |
|---|
| 11 | |
|---|
| 12 | CREATE TABLE bb_categories ( |
|---|
| 13 | cat_id smallint(3) unsigned NOT NULL auto_increment, |
|---|
| 14 | cat_title varchar(100) NOT NULL default '', |
|---|
| 15 | cat_order varchar(10) default NULL, |
|---|
| 16 | PRIMARY KEY (cat_id) |
|---|
| 17 | ) TYPE=MyISAM; |
|---|
| 18 | # -------------------------------------------------------- |
|---|
| 19 | |
|---|
| 20 | # |
|---|
| 21 | # Table structure for table `bb_forum_access` |
|---|
| 22 | # |
|---|
| 23 | |
|---|
| 24 | CREATE TABLE bb_forum_access ( |
|---|
| 25 | forum_id int(4) unsigned NOT NULL default '0', |
|---|
| 26 | user_id int(5) unsigned NOT NULL default '0', |
|---|
| 27 | can_post tinyint(1) NOT NULL default '0', |
|---|
| 28 | PRIMARY KEY (forum_id,user_id) |
|---|
| 29 | ) TYPE=MyISAM; |
|---|
| 30 | # -------------------------------------------------------- |
|---|
| 31 | |
|---|
| 32 | # |
|---|
| 33 | # Table structure for table `bb_forum_mods` |
|---|
| 34 | # |
|---|
| 35 | |
|---|
| 36 | CREATE TABLE bb_forum_mods ( |
|---|
| 37 | forum_id int(4) unsigned NOT NULL default '0', |
|---|
| 38 | user_id int(5) unsigned NOT NULL default '0', |
|---|
| 39 | KEY forum_user_id (forum_id,user_id) |
|---|
| 40 | ) TYPE=MyISAM; |
|---|
| 41 | # -------------------------------------------------------- |
|---|
| 42 | |
|---|
| 43 | # |
|---|
| 44 | # Table structure for table `bb_forums` |
|---|
| 45 | # |
|---|
| 46 | |
|---|
| 47 | CREATE TABLE bb_forums ( |
|---|
| 48 | forum_id int(4) unsigned NOT NULL auto_increment, |
|---|
| 49 | forum_name varchar(150) NOT NULL default '', |
|---|
| 50 | forum_desc text, |
|---|
| 51 | forum_access tinyint(2) NOT NULL default '1', |
|---|
| 52 | forum_moderator int(2) default NULL, |
|---|
| 53 | forum_topics int(8) NOT NULL default '0', |
|---|
| 54 | forum_posts int(8) NOT NULL default '0', |
|---|
| 55 | forum_last_post_id int(5) unsigned NOT NULL default '0', |
|---|
| 56 | cat_id int(2) NOT NULL default '0', |
|---|
| 57 | forum_type int(10) default '0', |
|---|
| 58 | allow_html ENUM('0','1') DEFAULT '0' NOT NULL, |
|---|
| 59 | allow_sig ENUM('0','1') DEFAULT '0' NOT NULL, |
|---|
| 60 | posts_per_page TINYINT(3) UNSIGNED DEFAULT '20' NOT NULL, |
|---|
| 61 | hot_threshold TINYINT(3) UNSIGNED DEFAULT '10' NOT NULL, |
|---|
| 62 | topics_per_page TINYINT(3) UNSIGNED DEFAULT '20' NOT NULL, |
|---|
| 63 | PRIMARY KEY (forum_id), |
|---|
| 64 | KEY forum_last_post_id (forum_last_post_id), |
|---|
| 65 | KEY cat_id (cat_id) |
|---|
| 66 | ) TYPE=MyISAM; |
|---|
| 67 | # -------------------------------------------------------- |
|---|
| 68 | |
|---|
| 69 | # |
|---|
| 70 | # Table structure for table `bb_posts` |
|---|
| 71 | # |
|---|
| 72 | |
|---|
| 73 | CREATE TABLE bb_posts ( |
|---|
| 74 | post_id int(8) unsigned NOT NULL auto_increment, |
|---|
| 75 | pid int(8) NOT NULL default '0', |
|---|
| 76 | topic_id int(8) NOT NULL default '0', |
|---|
| 77 | forum_id int(4) NOT NULL default '0', |
|---|
| 78 | post_time int(10) NOT NULL default '0', |
|---|
| 79 | uid int(5) unsigned NOT NULL default '0', |
|---|
| 80 | poster_ip varchar(15) NOT NULL default '', |
|---|
| 81 | subject varchar(255) NOT NULL default '', |
|---|
| 82 | nohtml tinyint(1) NOT NULL default '0', |
|---|
| 83 | nosmiley tinyint(1) NOT NULL default '0', |
|---|
| 84 | icon varchar(25) NOT NULL default '', |
|---|
| 85 | attachsig tinyint(1) NOT NULL default '0', |
|---|
| 86 | PRIMARY KEY (post_id), |
|---|
| 87 | KEY uid (uid), |
|---|
| 88 | KEY pid (pid), |
|---|
| 89 | KEY subject (subject(40)), |
|---|
| 90 | KEY forumid_uid (forum_id, uid), |
|---|
| 91 | KEY topicid_uid (topic_id, uid), |
|---|
| 92 | KEY topicid_postid_pid (topic_id, post_id, pid), |
|---|
| 93 | FULLTEXT KEY search (subject) |
|---|
| 94 | ) TYPE=MyISAM; |
|---|
| 95 | # -------------------------------------------------------- |
|---|
| 96 | |
|---|
| 97 | # |
|---|
| 98 | # Table structure for table `bb_posts_text` |
|---|
| 99 | # |
|---|
| 100 | |
|---|
| 101 | CREATE TABLE bb_posts_text ( |
|---|
| 102 | post_id int(8) unsigned NOT NULL auto_increment, |
|---|
| 103 | post_text text, |
|---|
| 104 | PRIMARY KEY (post_id), |
|---|
| 105 | FULLTEXT KEY search (post_text) |
|---|
| 106 | ) TYPE=MyISAM; |
|---|
| 107 | # -------------------------------------------------------- |
|---|
| 108 | |
|---|
| 109 | # |
|---|
| 110 | # Table structure for table `bb_topics` |
|---|
| 111 | # |
|---|
| 112 | |
|---|
| 113 | CREATE TABLE bb_topics ( |
|---|
| 114 | topic_id int(8) unsigned NOT NULL auto_increment, |
|---|
| 115 | topic_title varchar(255) default NULL, |
|---|
| 116 | topic_poster int(5) NOT NULL default '0', |
|---|
| 117 | topic_time int(10) NOT NULL default '0', |
|---|
| 118 | topic_views int(5) NOT NULL default '0', |
|---|
| 119 | topic_replies int(4) NOT NULL default '0', |
|---|
| 120 | topic_last_post_id int(8) unsigned NOT NULL default '0', |
|---|
| 121 | forum_id int(4) NOT NULL default '0', |
|---|
| 122 | topic_status tinyint(1) NOT NULL default '0', |
|---|
| 123 | topic_sticky tinyint(1) NOT NULL default '0', |
|---|
| 124 | PRIMARY KEY (topic_id), |
|---|
| 125 | KEY forum_id (forum_id), |
|---|
| 126 | KEY topic_last_post_id (topic_last_post_id), |
|---|
| 127 | KEY topic_poster (topic_poster), |
|---|
| 128 | KEY topic_forum (topic_id,forum_id), |
|---|
| 129 | KEY topic_sticky (topic_sticky) |
|---|
| 130 | ) TYPE=MyISAM; |
|---|