-
Notifications
You must be signed in to change notification settings - Fork 0
/
00-schema.sql
223 lines (188 loc) · 6.42 KB
/
00-schema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
-- $Id$
--
-- Table structure for table `usebb_badwords`
--
CREATE TABLE usebb_badwords (
word varchar(255) NOT NULL default '',
replacement varchar(255) NOT NULL default '',
PRIMARY KEY (word)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_bans`
--
CREATE TABLE usebb_bans (
id int(11) NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
email varchar(255) NOT NULL default '',
ip_addr varchar(23) NOT NULL default '',
PRIMARY KEY (id)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_cats`
--
CREATE TABLE usebb_cats (
id int(11) NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
sort_id int(11) NOT NULL default '0',
PRIMARY KEY (id)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_forums`
--
CREATE TABLE usebb_forums (
id int(11) NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
cat_id int(11) NOT NULL default '0',
descr text NOT NULL,
status int(1) NOT NULL default '1',
topics int(11) NOT NULL default '0',
posts int(11) NOT NULL default '0',
last_topic_id int(11) NOT NULL default '0',
sort_id int(11) NOT NULL default '0',
auth varchar(10) NOT NULL default '0011222223',
auto_lock int(11) NOT NULL default '0',
increase_post_count int(1) NOT NULL default '1',
hide_mods_list int(1) NOT NULL default '0',
PRIMARY KEY (id)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_members`
--
CREATE TABLE usebb_members (
id int(11) NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
email varchar(255) NOT NULL default '',
email_show int(1) NOT NULL default '0',
passwd varchar(32) NOT NULL default '',
regdate int(10) NOT NULL default '0',
level int(1) NOT NULL default '0',
rank varchar(255) NOT NULL default '',
active int(1) NOT NULL default '0',
active_key varchar(32) NOT NULL default '',
banned int(1) NOT NULL default '0',
banned_reason text NOT NULL,
last_login int(10) NOT NULL default '0',
last_login_show int(1) NOT NULL default '0',
last_pageview int(10) NOT NULL default '0',
hide_from_online_list int(1) NOT NULL default '0',
posts int(11) NOT NULL default '0',
template varchar(255) NOT NULL default '',
language varchar(255) NOT NULL default '',
date_format varchar(255) NOT NULL default '',
timezone float NOT NULL default '0',
dst int(1) NOT NULL default '0',
enable_quickreply int(1) NOT NULL default '0',
return_to_topic_after_posting int(1) NOT NULL default '0',
target_blank int(1) NOT NULL default '0',
hide_avatars int(1) NOT NULL default '0',
hide_userinfo int(1) NOT NULL default '0',
hide_signatures int(1) NOT NULL default '0',
auto_subscribe_topic int(1) NOT NULL default '0',
auto_subscribe_reply int(1) NOT NULL default '0',
avatar_type int(1) NOT NULL default '0',
avatar_remote varchar(255) NOT NULL default '',
displayed_name varchar(255) NOT NULL default '',
real_name varchar(255) NOT NULL default '',
signature text NOT NULL,
birthday int(8) NOT NULL default '0',
location varchar(255) NOT NULL default '',
website varchar(255) NOT NULL default '',
occupation varchar(255) NOT NULL default '',
interests varchar(255) NOT NULL default '',
msnm varchar(255) NOT NULL default '',
yahoom varchar(255) NOT NULL default '',
aim varchar(255) NOT NULL default '',
icq varchar(255) NOT NULL default '',
jabber varchar(255) NOT NULL default '',
skype varchar(255) NOT NULL default '',
PRIMARY KEY (id)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_moderators`
--
CREATE TABLE usebb_moderators (
forum_id int(11) NOT NULL default '0',
user_id int(11) NOT NULL default '0'
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_posts`
--
CREATE TABLE usebb_posts (
id int(11) NOT NULL auto_increment,
topic_id int(11) NOT NULL default '0',
poster_id int(11) NOT NULL default '0',
poster_guest varchar(255) NOT NULL default '',
poster_ip_addr varchar(23) NOT NULL default '',
content text NOT NULL,
post_time int(10) NOT NULL default '0',
post_edit_time int(10) NOT NULL default '0',
post_edit_by int(11) NOT NULL default '0',
enable_bbcode int(1) NOT NULL default '1',
enable_smilies int(1) NOT NULL default '1',
enable_sig int(1) NOT NULL default '1',
enable_html int(1) NOT NULL default '0',
PRIMARY KEY (id)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_searches`
--
CREATE TABLE usebb_searches (
sess_id varchar(32) NOT NULL default '',
time int(10) NOT NULL default '0',
results text NOT NULL,
PRIMARY KEY (sess_id)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_sessions`
--
CREATE TABLE usebb_sessions (
sess_id varchar(32) NOT NULL default '',
user_id int(11) NOT NULL default '0',
ip_addr varchar(23) NOT NULL default '',
started int(10) NOT NULL default '0',
updated int(10) NOT NULL default '0',
location varchar(255) NOT NULL default '',
pages int(11) NOT NULL default '0',
PRIMARY KEY (sess_id)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_stats`
--
CREATE TABLE usebb_stats (
name varchar(255) NOT NULL default '',
content text NOT NULL,
PRIMARY KEY (name)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_subscriptions`
--
CREATE TABLE usebb_subscriptions (
topic_id int(11) NOT NULL default '0',
user_id int(11) NOT NULL default '0'
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Table structure for table `usebb_topics`
--
CREATE TABLE usebb_topics (
id int(11) NOT NULL auto_increment,
forum_id int(11) NOT NULL default '0',
topic_title varchar(255) NOT NULL default '',
first_post_id int(11) NOT NULL default '0',
last_post_id int(11) NOT NULL default '0',
count_replies int(11) NOT NULL default '0',
count_views int(11) NOT NULL default '0',
status_locked int(1) NOT NULL default '0',
status_sticky int(1) NOT NULL default '0',
PRIMARY KEY (id)
) ENGINE=MyISAM;