This repository has been archived by the owner on Sep 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.sql
348 lines (281 loc) · 10.5 KB
/
ext_tables.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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
#
# Table structure for table 'tx_typo3bb_domain_model_forumcategory'
#
CREATE TABLE tx_typo3bb_domain_model_forumcategory (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
boards int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumblob,
PRIMARY KEY (uid),
KEY parent (pid),
KEY language (l10n_parent,sys_language_uid),
KEY deleted (deleted),
KEY hidden (hidden)
);
#
# Table structure for table 'tx_typo3bb_domain_model_board'
#
CREATE TABLE tx_typo3bb_domain_model_board (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
description text NOT NULL,
redirect varchar(255) DEFAULT '' NOT NULL,
redirect_count int(11) unsigned DEFAULT '0' NOT NULL,
topics int(11) unsigned DEFAULT '0' NOT NULL,
sub_boards int(11) unsigned DEFAULT '0' NOT NULL,
read_permissions varchar(255) DEFAULT '' NOT NULL,
write_permissions varchar(255) DEFAULT '' NOT NULL,
moderator_groups varchar(255) DEFAULT '' NOT NULL,
parent_board int(11) unsigned DEFAULT '0',
forum_category int(11) unsigned DEFAULT '0',
subscribers int(11) unsigned DEFAULT '0' NOT NULL,
tx_kesearch_index tinyint(4) unsigned DEFAULT '1' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumblob,
PRIMARY KEY (uid),
KEY parent (pid),
KEY parent_board (parent_board),
KEY forum_category(forum_category),
KEY language (l10n_parent,sys_language_uid),
KEY deleted (deleted),
KEY hidden (hidden)
);
#
# Table structure for table 'tx_typo3bb_domain_model_topic'
#
CREATE TABLE tx_typo3bb_domain_model_topic (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
sticky tinyint(1) unsigned DEFAULT '0' NOT NULL,
closed tinyint(1) unsigned DEFAULT '0' NOT NULL,
latest_post_crdate int(11) unsigned DEFAULT '0' NOT NULL,
posts int(11) unsigned DEFAULT '0' NOT NULL,
poll int(11) unsigned DEFAULT '0',
author int(11) unsigned DEFAULT '0',
author_name varchar(255) DEFAULT '',
subscribers int(11) unsigned DEFAULT '0' NOT NULL,
readers int(11) unsigned DEFAULT '0' NOT NULL,
board int(11) unsigned DEFAULT '0' NOT NULL,
views int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid),
KEY board (board),
KEY deleted (deleted),
KEY author (author)
);
#
# Table structure for table 'tx_typo3bb_domain_model_post'
#
CREATE TABLE tx_typo3bb_domain_model_post (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
topic int(11) unsigned DEFAULT '0' NOT NULL,
text text NOT NULL,
author_name varchar(255) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
attachments int(11) unsigned NOT NULL default '0',
author int(11) unsigned DEFAULT '0',
editor int(11) unsigned DEFAULT '0',
editor_name varchar(255) DEFAULT '' NOT NULL,
edited tinyint(1) unsigned DEFAULT '0',
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid),
KEY topic (topic),
KEY deleted (deleted),
KEY author (author),
KEY editor (editor)
);
#
# Table structure for table 'tx_typo3bb_domain_model_poll'
#
CREATE TABLE tx_typo3bb_domain_model_poll (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
question varchar(255) DEFAULT '' NOT NULL,
max_choices_select int(11) DEFAULT '0' NOT NULL,
change_vote_allowed tinyint(1) unsigned DEFAULT '0' NOT NULL,
vote_count int(11) DEFAULT '0' NOT NULL,
result_hidden tinyint(1) unsigned DEFAULT '0' NOT NULL,
choices int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
endtime int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid)
);
#
# Table structure for table 'tx_typo3bb_domain_model_pollchoice'
#
CREATE TABLE tx_typo3bb_domain_model_pollchoice (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
text varchar(255) DEFAULT '' NOT NULL,
vote_count int(11) DEFAULT '0' NOT NULL,
poll int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid),
KEY poll (poll)
);
#
# Table structure for table 'fe_users'
#
CREATE TABLE fe_users (
tx_typo3bb_display_name varchar(255) DEFAULT '' NOT NULL,
signature text NOT NULL,
created_topics int(11) unsigned DEFAULT '0' NOT NULL,
subscribed_topics int(11) unsigned DEFAULT '0' NOT NULL,
subscribed_boards int(11) unsigned DEFAULT '0' NOT NULL,
created_posts int(11) unsigned DEFAULT '0' NOT NULL,
edited_posts int(11) unsigned DEFAULT '0' NOT NULL,
selected_poll_choices varchar(255) DEFAULT '' NOT NULL,
voted_polls varchar(255) DEFAULT '' NOT NULL,
sent_messages int(11) unsigned DEFAULT '0' NOT NULL,
received_messages int(11) unsigned DEFAULT '0' NOT NULL,
hide_sensitive_data tinyint(1) unsigned DEFAULT '1' NOT NULL,
show_online tinyint(1) unsigned DEFAULT '1' NOT NULL,
message_notification tinyint(1) unsigned DEFAULT '1' NOT NULL,
login_time int(11) unsigned DEFAULT '0' NOT NULL,
last_read_post int(11) unsigned DEFAULT '0' NOT NULL,
read_topics int(11) unsigned DEFAULT '0' NOT NULL,
tx_extbase_type varchar(255) DEFAULT '0' NOT NULL
);
#
# Table structure for table 'fe_groups'
#
CREATE TABLE fe_groups (
tx_typo3bb_global_moderator_group tinyint(4) DEFAULT '0' NOT NULL
);
CREATE TABLE tx_typo3bb_domain_model_reader (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
user int(11) unsigned DEFAULT '0' NOT NULL,
topic int(11) unsigned DEFAULT '0' NOT NULL,
post int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY uid_local (user),
KEY uid_foreign (topic),
KEY post (post),
KEY `user` (user),
KEY topic (topic)
);
#
# Table structure for table 'tx_typo3bb_topic_subscribers_mm'
#
CREATE TABLE tx_typo3bb_topic_subscribers_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_typo3bb_board_subscribers_mm'
#
CREATE TABLE tx_typo3bb_board_subscribers_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_typo3bb_frontenduser_pollchoice_mm'
#
CREATE TABLE tx_typo3bb_frontenduser_pollchoice_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_typo3bb_domain_model_message'
#
CREATE TABLE tx_typo3bb_domain_model_message (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
subject varchar(255) DEFAULT '' NOT NULL,
text text NOT NULL,
sender int(11) unsigned DEFAULT '0' NOT NULL,
receivers int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid),
KEY sender (sender)
);
#
# Table structure for table 'tx_typo3bb_domain_model_messageparticipant
#
CREATE TABLE tx_typo3bb_domain_model_messageparticipant (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
sent_message int(11) unsigned DEFAULT '0' NOT NULL,
received_message int(11) unsigned DEFAULT '0' NOT NULL,
viewed tinyint(1) unsigned DEFAULT '0' NOT NULL,
user int(11) unsigned DEFAULT '0' NOT NULL,
user_name varchar(255) DEFAULT '' NOT NULL,
deleted tinyint(1) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid),
KEY `user` (user)
);
#
# Table structure for table 'tx_typo3bb_domain_model_attachment
#
CREATE TABLE tx_typo3bb_domain_model_attachment (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
post int(11) unsigned NOT NULL DEFAULT '0',
file int(11) unsigned NOT NULL DEFAULT '0',
original_file_name varchar(255) DEFAULT '' NOT NULL,
download_count int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
KEY parent (pid),
KEY post (post)
);
CREATE TABLE tx_typo3bb_domain_model_statistic (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
date date DEFAULT '1000-01-01' NOT NULL,
topics int(11) DEFAULT '0' NOT NULL,
posts int(11) DEFAULT '0' NOT NULL,
registers int(11) DEFAULT '0' NOT NULL,
most_on int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid),
UNIQUE KEY unique_date (date)
);