0.8.1a
[gfh.git] / mb.sql
blobd0160585103b52efc8779b8d1956c32825ae4656
1 # phpMyAdmin MySQL-Dump
2 # version 2.2.3
3 # http://phpwizard.net/phpMyAdmin/
4 # http://phpmyadmin.sourceforge.net/ (download page)
6 # Host: localhost
7 # Generation Time: Feb 23, 2002 at 10:46 PM
8 # Server version: 3.23.41
9 # PHP Version: 4.0.6
10 # Database : `mb`
11 # --------------------------------------------------------
14 # Table structure for table `boardcat`
17 CREATE TABLE boardcat (
18   id bigint(20) NOT NULL auto_increment,
19   name varchar(255) NOT NULL default '',
20   theorder bigint(20) NOT NULL default '0',
21   PRIMARY KEY  (id),
22   UNIQUE KEY id (id)
23 ) TYPE=MyISAM;
24 # --------------------------------------------------------
27 # Table structure for table `boards`
30 CREATE TABLE boards (
31   boardid bigint(10) NOT NULL auto_increment,
32   boardname mediumtext NOT NULL,
33   boardshow tinyint(1) NOT NULL default '0',
34   boardlevel tinyint(2) NOT NULL default '0',
35   type tinyint(1) NOT NULL default '0',
36   clan tinyint(4) NOT NULL default '0',
37   caption mediumtext NOT NULL,
38   theorder bigint(20) NOT NULL default '0',
39   PRIMARY KEY  (boardid),
40   UNIQUE KEY boardid (boardid),
41   KEY type (type)
42 ) TYPE=MyISAM;
43 # --------------------------------------------------------
46 # Table structure for table `favorites`
49 CREATE TABLE favorites (
50   fid bigint(20) NOT NULL auto_increment,
51   fboard bigint(20) NOT NULL default '0',
52   fuser bigint(20) NOT NULL default '0',
53   PRIMARY KEY  (fid),
54   UNIQUE KEY fid (fid),
55   KEY fuser (fuser)
56 ) TYPE=MyISAM;
57 # --------------------------------------------------------
60 # Table structure for table `levels`
63 CREATE TABLE levels (
64   id bigint(20) NOT NULL auto_increment,
65   levnum bigint(20) NOT NULL default '0',
66   caption mediumtext NOT NULL,
67   PRIMARY KEY  (id),
68   UNIQUE KEY id (id)
69 ) TYPE=MyISAM;
70 INSERT INTO levels VALUES (1, 0, '<b>0: Unconfirmed</b><br>User has not confirmed his account.  Cannot read or post messages.');
71 INSERT INTO levels VALUES (2, 5, '<b>5: Asshole</b><br>This user is an asshole.  He cannot post anywhere meaningful.  I hope he dies.');
72 INSERT INTO levels VALUES (3, 20, '<b>20: Normal User</b><br>User has aquired 20 aura or more.  Has access to the Normal User\\\'s Board.');
73 INSERT INTO levels VALUES (4, 15, '<b>15: New User</b><br>User has less than 20 aura.');
74 INSERT INTO levels VALUES (5, 31, '<b>31: Intelligent User</b><br>User has aquired 50 aura or more.');
75 INSERT INTO levels VALUES (6, 32, '<b>32: Legend</b><br>User is a legend.  Has aquired over 500 aura.  This user really kicks ass.');
76 INSERT INTO levels VALUES (7, 50, '<b>50: Moderator</b><br>User can delete messages and suspend user\\\'s posting privelages.');
77 INSERT INTO levels VALUES (8, 60, '<b>60: Administrator</b><br>User has full control over all aspects of the message boards.');
78 # --------------------------------------------------------
81 # Table structure for table `marked`
84 CREATE TABLE marked (
85   markid bigint(10) NOT NULL auto_increment,
86   reason tinyint(1) NOT NULL default '0',
87   markwho mediumtext NOT NULL,
88   message bigint(10) NOT NULL default '0',
89   topic bigint(10) NOT NULL default '0',
90   board bigint(10) NOT NULL default '0',
91   active tinyint(1) NOT NULL default '0',
92   reason2 mediumtext NOT NULL,
93   markedtimes bigint(10) NOT NULL default '0',
94   PRIMARY KEY  (markid),
95   UNIQUE KEY mardid (markid),
96   KEY active (active)
97 ) TYPE=MyISAM;
98 # --------------------------------------------------------
101 # Table structure for table `messages`
104 CREATE TABLE messages (
105   messageid bigint(10) NOT NULL auto_increment,
106   topic bigint(10) NOT NULL default '0',
107   messby mediumtext NOT NULL,
108   messsec bigint(40) NOT NULL default '0',
109   messbody longtext NOT NULL,
110   mesboard bigint(10) NOT NULL default '0',
111   theorder bigint(10) NOT NULL default '0',
112   postdate mediumtext NOT NULL,
113   auraed tinyint(1) NOT NULL default '0',
114   PRIMARY KEY  (messageid),
115   UNIQUE KEY messageid (messageid),
116   KEY topic (topic),
117   KEY mesboard (mesboard)
118 ) TYPE=MyISAM;
119 # --------------------------------------------------------
122 # Table structure for table `modded`
125 CREATE TABLE modded (
126   modid bigint(10) NOT NULL auto_increment,
127   modbod longtext NOT NULL,
128   board bigint(10) NOT NULL default '0',
129   topic bigint(10) NOT NULL default '0',
130   message bigint(10) NOT NULL default '0',
131   modby mediumtext NOT NULL,
132   moddedat mediumtext NOT NULL,
133   postedat mediumtext NOT NULL,
134   PRIMARY KEY  (modid),
135   UNIQUE KEY modid (modid)
136 ) TYPE=MyISAM;
137 # --------------------------------------------------------
140 # Table structure for table `moderators`
143 CREATE TABLE moderators (
144   id bigint(20) NOT NULL auto_increment,
145   modby varchar(255) NOT NULL default '',
146   modid bigint(20) NOT NULL default '0',
147   type varchar(255) NOT NULL default '',
148   action varchar(255) NOT NULL default '',
149   PRIMARY KEY  (id)
150 ) TYPE=MyISAM;
151 # --------------------------------------------------------
154 # Table structure for table `suggest`
157 CREATE TABLE suggest (
158   sugid bigint(10) NOT NULL auto_increment,
159   reason tinyint(1) NOT NULL default '0',
160   sugwho mediumtext NOT NULL,
161   message bigint(10) NOT NULL default '0',
162   topic bigint(10) NOT NULL default '0',
163   board bigint(10) NOT NULL default '0',
164   active tinyint(1) NOT NULL default '0',
165   reason2 mediumtext NOT NULL,
166   sugtimes tinyint(10) NOT NULL default '0',
167   PRIMARY KEY  (sugid),
168   UNIQUE KEY mardid (sugid),
169   KEY active (active)
170 ) TYPE=MyISAM;
171 # --------------------------------------------------------
174 # Table structure for table `systemnot`
177 CREATE TABLE systemnot (
178   sysnotid bigint(10) NOT NULL auto_increment,
179   sysbod mediumtext NOT NULL,
180   sendto bigint(10) NOT NULL default '0',
181   sentat mediumtext NOT NULL,
182   sentfrom tinyint(1) NOT NULL default '0',
183   active tinyint(1) NOT NULL default '0',
184   userid bigint(20) NOT NULL default '0',
185   PRIMARY KEY  (sysnotid)
186 ) TYPE=MyISAM;
187 # --------------------------------------------------------
190 # Table structure for table `topics`
193 CREATE TABLE topics (
194   topicid bigint(10) NOT NULL auto_increment,
195   topicname mediumtext NOT NULL,
196   topicby mediumtext NOT NULL,
197   boardnum bigint(10) NOT NULL default '0',
198   active tinyint(1) NOT NULL default '0',
199   timesec bigint(40) NOT NULL default '0',
200   closed tinyint(1) NOT NULL default '0',
201   postdate mediumtext NOT NULL,
202   PRIMARY KEY  (topicid),
203   UNIQUE KEY topicid (topicid),
204   KEY boardnum (boardnum)
205 ) TYPE=MyISAM;
206 # --------------------------------------------------------
209 # Table structure for table `usermap`
212 CREATE TABLE usermap (
213   mapid bigint(10) NOT NULL auto_increment,
214   userid1 bigint(10) NOT NULL default '0',
215   userid2 bigint(10) NOT NULL default '0',
216   PRIMARY KEY  (mapid),
217   UNIQUE KEY mapid (mapid)
218 ) TYPE=MyISAM;
219 # --------------------------------------------------------
222 # Table structure for table `users`
225 CREATE TABLE users (
226   userid bigint(10) NOT NULL auto_increment,
227   level bigint(2) NOT NULL default '0',
228   username varchar(30) NOT NULL default '',
229   userpass varchar(255) NOT NULL default '',
230   cookies bigint(10) NOT NULL default '0',
231   lastsid mediumtext NOT NULL,
232   poststoday bigint(10) NOT NULL default '0',
233   topicstoday bigint(10) NOT NULL default '0',
234   regsid mediumtext NOT NULL,
235   email mediumtext NOT NULL,
236   regdate mediumtext NOT NULL,
237   lastactivity mediumtext NOT NULL,
238   notify tinyint(1) NOT NULL default '0',
239   regsec bigint(90) NOT NULL default '0',
240   lastsec bigint(90) NOT NULL default '0',
241   faction bigint(10) NOT NULL default '0',
242   lastacip mediumtext NOT NULL,
243   money bigint(90) NOT NULL default '0',
244   turns bigint(20) NOT NULL default '0',
245   attack bigint(20) NOT NULL default '0',
246   attacked tinyint(4) NOT NULL default '0',
247   attackout tinyint(4) NOT NULL default '0',
248   speclev mediumtext NOT NULL,
249   colorsel tinyint(4) NOT NULL default '1',
250   email2 varchar(50) NOT NULL default '',
251   PRIMARY KEY  (userid),
252   UNIQUE KEY userid (userid),
253   KEY username (username),
254   KEY userpass (userpass)
255 ) TYPE=MyISAM;