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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
|
#
# SQLite Schema for phpBB 3.x - (c) phpBB Group, 2005
#
# $Id$
#
BEGIN TRANSACTION;
# Table: phpbb_attachments
CREATE TABLE phpbb_attachments (
attach_id INTEGER PRIMARY KEY NOT NULL,
post_msg_id mediumint(8) NOT NULL DEFAULT '0',
topic_id mediumint(8) NOT NULL DEFAULT '0',
in_message tinyint(1) NOT NULL DEFAULT '0',
poster_id mediumint(8) NOT NULL DEFAULT '0',
physical_filename varchar(255) NOT NULL,
real_filename varchar(255) NOT NULL,
download_count mediumint(8) NOT NULL DEFAULT '0',
comment varchar(255),
extension varchar(100),
mimetype varchar(100),
filesize int(20) NOT NULL,
filetime int(11) NOT NULL DEFAULT '0',
thumbnail tinyint(1) NOT NULL DEFAULT '0'
);
CREATE INDEX filetime_phpbb_attachments on phpbb_attachments (filetime);
CREATE INDEX post_msg_id_phpbb_attachments on phpbb_attachments (post_msg_id);
CREATE INDEX topic_id_phpbb_attachments on phpbb_attachments (topic_id);
CREATE INDEX poster_id_phpbb_attachments on phpbb_attachments (poster_id);
CREATE INDEX physical_filename_phpbb_attach on phpbb_attachments (physical_filename);
CREATE INDEX filesize_phpbb_attachments on phpbb_attachments (filesize);
# Table: phpbb_auth_groups
CREATE TABLE phpbb_auth_groups (
group_id mediumint(8) NOT NULL DEFAULT '0',
forum_id mediumint(8) NOT NULL DEFAULT '0',
auth_option_id mediumint(8) NOT NULL DEFAULT '0',
auth_role_id mediumint(8) NOT NULL DEFAULT '0',
auth_setting tinyint(4) NOT NULL DEFAULT '0'
);
CREATE INDEX group_id_phpbb_auth_groups on phpbb_auth_groups (group_id);
CREATE INDEX auth_option_id_phpbb_auth_grou on phpbb_auth_groups (auth_option_id);
# Table: phpbb_auth_options
CREATE TABLE phpbb_auth_options (
auth_option_id INTEGER PRIMARY KEY NOT NULL,
auth_option char(20) NOT NULL,
is_global tinyint(1) NOT NULL DEFAULT '0',
is_local tinyint(1) NOT NULL DEFAULT '0',
founder_only tinyint(1) NOT NULL DEFAULT '0'
);
CREATE INDEX auth_option_phpbb_auth_options on phpbb_auth_options (auth_option);
# Table: phpbb_auth_roles
CREATE TABLE phpbb_auth_roles (
role_id INTEGER PRIMARY KEY NOT NULL,
role_name varchar(50) NOT NULL DEFAULT '',
role_type varchar(10) NOT NULL DEFAULT '',
role_group_ids varchar(255) NOT NULL DEFAULT ''
);
CREATE INDEX role_type_phpbb_auth_roles on phpbb_auth_roles (role_type);
# Table: phpbb_auth_roles_data
CREATE TABLE phpbb_auth_roles_data (
role_id mediumint(8) NOT NULL DEFAULT '0',
auth_option_id mediumint(8) NOT NULL DEFAULT '0',
auth_setting tinyint(2) NOT NULL DEFAULT '0',
PRIMARY KEY (role_id, auth_option_id)
);
# Table: phpbb_auth_users
CREATE TABLE phpbb_auth_users (
user_id mediumint(8) NOT NULL DEFAULT '0',
forum_id mediumint(8) NOT NULL DEFAULT '0',
auth_option_id mediumint(8) NOT NULL DEFAULT '0',
auth_role_id mediumint(8) NOT NULL DEFAULT '0',
auth_setting tinyint(4) NOT NULL DEFAULT '0'
);
CREATE INDEX user_id_phpbb_auth_users on phpbb_auth_users (user_id);
CREATE INDEX auth_option_id_phpbb_auth_user on phpbb_auth_users (auth_option_id);
# Table: phpbb_banlist
CREATE TABLE phpbb_banlist (
ban_id INTEGER PRIMARY KEY NOT NULL,
ban_userid mediumint(8) NOT NULL DEFAULT '0',
ban_ip varchar(40) NOT NULL DEFAULT '',
ban_email varchar(50) NOT NULL DEFAULT '',
ban_start int(11) NOT NULL DEFAULT '0',
ban_end int(11) NOT NULL DEFAULT '0',
ban_exclude tinyint(1) NOT NULL DEFAULT '0',
ban_reason varchar(255) NOT NULL DEFAULT '',
ban_give_reason varchar(255) NOT NULL DEFAULT ''
);
# Table: phpbb_bbcodes
CREATE TABLE phpbb_bbcodes (
bbcode_id INTEGER PRIMARY KEY NOT NULL DEFAULT '0',
bbcode_tag varchar(16) NOT NULL DEFAULT '',
display_on_posting tinyint(1) NOT NULL DEFAULT '0',
bbcode_match varchar(255) NOT NULL DEFAULT '',
bbcode_tpl text(65535) NOT NULL DEFAULT '',
first_pass_match varchar(255) NOT NULL DEFAULT '',
first_pass_replace varchar(255) NOT NULL DEFAULT '',
second_pass_match varchar(255) NOT NULL DEFAULT '',
second_pass_replace text(65535) NOT NULL DEFAULT ''
);
CREATE INDEX display_on_posting_phpbb_bbcodes on phpbb_bbcodes (display_on_posting);
# Table: phpbb_bookmarks
CREATE TABLE phpbb_bookmarks (
topic_id mediumint(8) NOT NULL DEFAULT '0',
user_id mediumint(8) NOT NULL DEFAULT '0',
order_id mediumint(8) NOT NULL DEFAULT '0'
);
CREATE INDEX order_id_phpbb_bookmarks on phpbb_bookmarks (order_id);
CREATE INDEX topic_user_id_phpbb_bookmarks on phpbb_bookmarks (topic_id, user_id);
# Table: phpbb_bots
CREATE TABLE phpbb_bots (
bot_id INTEGER PRIMARY KEY NOT NULL,
bot_active tinyint(1) NOT NULL DEFAULT '1',
bot_name varchar(255) NOT NULL DEFAULT '',
user_id mediumint(8) NOT NULL DEFAULT '0',
bot_agent varchar(255) NOT NULL DEFAULT '',
bot_ip varchar(255) NOT NULL DEFAULT ''
);
CREATE INDEX bot_active_phpbb_bots on phpbb_bots (bot_active);
# Table: phpbb_cache
CREATE TABLE phpbb_cache (
var_name varchar(255) NOT NULL DEFAULT '',
var_expires int(10) NOT NULL DEFAULT '0',
var_data mediumtext(16777215) NOT NULL,
PRIMARY KEY (var_name)
);
# Table: phpbb_config
CREATE TABLE phpbb_config (
config_name varchar(255) NOT NULL,
config_value varchar(255) NOT NULL,
is_dynamic tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (config_name)
);
CREATE INDEX is_dynamic_phpbb_config on phpbb_config (is_dynamic);
# Table: phpbb_confirm
CREATE TABLE phpbb_confirm (
confirm_id char(32) NOT NULL DEFAULT '',
session_id char(32) NOT NULL DEFAULT '',
code char(8) NOT NULL DEFAULT '',
PRIMARY KEY (session_id, confirm_id)
);
# Table: phpbb_disallow
CREATE TABLE phpbb_disallow (
disallow_id INTEGER PRIMARY KEY NOT NULL,
disallow_username varchar(30) NOT NULL DEFAULT ''
);
# Table: phpbb_drafts
CREATE TABLE phpbb_drafts (
draft_id INTEGER PRIMARY KEY NOT NULL,
user_id mediumint(8) NOT NULL DEFAULT '0',
topic_id mediumint(8) NOT NULL DEFAULT '0',
forum_id mediumint(8) NOT NULL DEFAULT '0',
save_time int(11) NOT NULL DEFAULT '0',
draft_subject varchar(60),
draft_message mediumtext(16777215) NOT NULL DEFAULT ''
);
CREATE INDEX save_time_phpbb_drafts on phpbb_drafts (save_time);
# Table: phpbb_extensions
CREATE TABLE phpbb_extensions (
extension_id INTEGER PRIMARY KEY NOT NULL,
group_id mediumint(8) NOT NULL DEFAULT '0',
extension varchar(100) NOT NULL DEFAULT ''
);
# Table: phpbb_extension_groups
CREATE TABLE phpbb_extension_groups (
group_id INTEGER PRIMARY KEY NOT NULL,
group_name char(20) NOT NULL,
cat_id tinyint(2) NOT NULL DEFAULT '0',
allow_group tinyint(1) NOT NULL DEFAULT '0',
download_mode tinyint(1) NOT NULL DEFAULT '1',
upload_icon varchar(100) NOT NULL DEFAULT '',
max_filesize int(20) NOT NULL DEFAULT '0',
allowed_forums text(65535) NOT NULL,
allow_in_pm tinyint(1) NOT NULL DEFAULT '0'
);
# Table: phpbb_forums
CREATE TABLE phpbb_forums (
forum_id INTEGER PRIMARY KEY NOT NULL,
parent_id smallint(5) NOT NULL,
left_id smallint(5) NOT NULL,
right_id smallint(5) NOT NULL,
forum_parents text(65535),
forum_name varchar(150) NOT NULL,
forum_desc text(65535),
forum_link varchar(200) NOT NULL DEFAULT '',
forum_password varchar(32) NOT NULL DEFAULT '',
forum_style tinyint(4),
forum_image varchar(50) NOT NULL DEFAULT '',
forum_rules text(65535) NOT NULL DEFAULT '',
forum_rules_link varchar(200) NOT NULL DEFAULT '',
forum_rules_flags tinyint(4) NOT NULL DEFAULT '0',
forum_rules_bbcode_bitfield int(11) NOT NULL DEFAULT '0',
forum_rules_bbcode_uid varchar(5) NOT NULL DEFAULT '',
forum_topics_per_page tinyint(4) NOT NULL DEFAULT '0',
forum_type tinyint(4) NOT NULL DEFAULT '0',
forum_status tinyint(4) NOT NULL DEFAULT '0',
forum_posts mediumint(8) NOT NULL DEFAULT '0',
forum_topics mediumint(8) NOT NULL DEFAULT '0',
forum_topics_real mediumint(8) NOT NULL DEFAULT '0',
forum_last_post_id mediumint(8) NOT NULL DEFAULT '0',
forum_last_poster_id mediumint(8) NOT NULL DEFAULT '0',
forum_last_post_time int(11) NOT NULL DEFAULT '0',
forum_last_poster_name varchar(30),
forum_flags tinyint(4) NOT NULL DEFAULT '0',
display_on_index tinyint(1) NOT NULL DEFAULT '1',
enable_indexing tinyint(1) NOT NULL DEFAULT '1',
enable_icons tinyint(1) NOT NULL DEFAULT '1',
enable_prune tinyint(1) NOT NULL DEFAULT '0',
prune_next int(11),
prune_days tinyint(4) NOT NULL,
prune_viewed tinyint(4) NOT NULL,
prune_freq tinyint(4) NOT NULL DEFAULT '0'
);
CREATE INDEX left_right_id_phpbb_forums on phpbb_forums (left_id, right_id);
CREATE INDEX forum_last_post_id_phpbb_forum on phpbb_forums (forum_last_post_id);
# Table: phpbb_forum_access
CREATE TABLE phpbb_forum_access (
forum_id mediumint(8) NOT NULL DEFAULT '0',
user_id mediumint(8) NOT NULL DEFAULT '0',
session_id char(32) NOT NULL DEFAULT '',
PRIMARY KEY (forum_id, user_id, session_id)
);
# Table: phpbb_forums_marking
CREATE TABLE phpbb_forums_marking (
user_id mediumint(9) NOT NULL DEFAULT '0',
forum_id mediumint(9) NOT NULL DEFAULT '0',
mark_time int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (user_id, forum_id)
);
# Table: phpbb_forums_watch
CREATE TABLE phpbb_forums_watch (
forum_id smallint(5) NOT NULL DEFAULT '0',
user_id mediumint(8) NOT NULL DEFAULT '0',
notify_status tinyint(1) NOT NULL DEFAULT '0'
);
CREATE INDEX forum_id_phpbb_forums_watch on phpbb_forums_watch (forum_id);
CREATE INDEX user_id_phpbb_forums_watch on phpbb_forums_watch (user_id);
CREATE INDEX notify_status_phpbb_forums_wat on phpbb_forums_watch (notify_status);
# Table: phpbb_groups
CREATE TABLE phpbb_groups (
group_id INTEGER PRIMARY KEY NOT NULL,
group_type tinyint(4) NOT NULL DEFAULT '1',
group_name varchar(40) NOT NULL DEFAULT '',
group_display tinyint(1) NOT NULL DEFAULT '0',
group_avatar varchar(100) NOT NULL DEFAULT '',
group_avatar_type tinyint(4) NOT NULL DEFAULT '0',
group_avatar_width tinyint(4) NOT NULL DEFAULT '0',
group_avatar_height tinyint(4) NOT NULL DEFAULT '0',
group_rank smallint(5) NOT NULL DEFAULT '-1',
group_colour varchar(6) NOT NULL DEFAULT '',
group_sig_chars mediumint(8) NOT NULL DEFAULT '0',
group_receive_pm tinyint(1) NOT NULL DEFAULT '0',
group_message_limit mediumint(8) NOT NULL DEFAULT '0',
group_chgpass smallint(6) NOT NULL DEFAULT '0',
group_description varchar(255) NOT NULL DEFAULT '',
group_legend tinyint(1) NOT NULL DEFAULT '1'
);
CREATE INDEX group_legend_phpbb_groups on phpbb_groups (group_legend);
# Table: phpbb_icons
CREATE TABLE phpbb_icons (
icons_id INTEGER PRIMARY KEY NOT NULL,
icons_url varchar(50),
icons_width tinyint(4) NOT NULL,
icons_height tinyint(4) NOT NULL,
icons_order tinyint(4) NOT NULL,
display_on_posting tinyint(1) NOT NULL DEFAULT '1'
);
# Table: phpbb_lang
CREATE TABLE phpbb_lang (
lang_id INTEGER PRIMARY KEY NOT NULL,
lang_iso varchar(5) NOT NULL,
lang_dir varchar(30) NOT NULL,
lang_english_name varchar(30),
lang_local_name varchar(100),
lang_author varchar(100)
);
# Table: phpbb_log
CREATE TABLE phpbb_log (
log_id INTEGER PRIMARY KEY NOT NULL,
log_type tinyint(4) NOT NULL DEFAULT '0',
user_id mediumint(8) NOT NULL DEFAULT '0',
forum_id mediumint(8) NOT NULL DEFAULT '0',
topic_id mediumint(8) NOT NULL DEFAULT '0',
reportee_id mediumint(8) NOT NULL DEFAULT '0',
log_ip varchar(40) NOT NULL,
log_time int(11) NOT NULL,
log_operation text(65535),
log_data text(65535)
);
CREATE INDEX log_type_phpbb_log on phpbb_log (log_type);
CREATE INDEX forum_id_phpbb_log on phpbb_log (forum_id);
CREATE INDEX topic_id_phpbb_log on phpbb_log (topic_id);
CREATE INDEX reportee_id_phpbb_log on phpbb_log (reportee_id);
CREATE INDEX user_id_phpbb_log on phpbb_log (user_id);
# Table: phpbb_moderator_cache
CREATE TABLE phpbb_moderator_cache (
forum_id mediumint(8) NOT NULL,
user_id mediumint(8) NOT NULL DEFAULT '0',
username char(30) NOT NULL DEFAULT '',
group_id mediumint(8) NOT NULL DEFAULT '0',
groupname char(30) NOT NULL DEFAULT '',
display_on_index tinyint(1) NOT NULL DEFAULT '1'
);
CREATE INDEX display_on_index_phpbb_moderat on phpbb_moderator_cache (display_on_index);
CREATE INDEX forum_id_phpbb_moderator_cache on phpbb_moderator_cache (forum_id);
# Table: phpbb_modules
CREATE TABLE phpbb_modules (
module_id INTEGER PRIMARY KEY NOT NULL,
module_enabled tinyint(1) NOT NULL DEFAULT '1',
module_display tinyint(1) NOT NULL DEFAULT '1',
module_name varchar(20) NOT NULL DEFAULT '',
module_class varchar(4) NOT NULL DEFAULT '',
parent_id smallint(5) NOT NULL DEFAULT '0',
left_id smallint(5) NOT NULL DEFAULT '0',
right_id smallint(5) NOT NULL DEFAULT '0',
module_langname varchar(50) NOT NULL DEFAULT '',
module_mode varchar(255) NOT NULL DEFAULT '',
module_auth varchar(255) NOT NULL DEFAULT ''
);
CREATE INDEX module_enabled_phpbb_modules on phpbb_modules (module_enabled);
CREATE INDEX left_id_phpbb_modules on phpbb_modules (left_id);
# Table: phpbb_poll_results
CREATE TABLE phpbb_poll_results (
poll_option_id tinyint(4) NOT NULL DEFAULT '0',
topic_id mediumint(8) NOT NULL,
poll_option_text varchar(255) NOT NULL,
poll_option_total mediumint(8) NOT NULL DEFAULT '0'
);
CREATE INDEX poll_option_id_phpbb_poll_resu on phpbb_poll_results (poll_option_id);
CREATE INDEX topic_id_phpbb_poll_results on phpbb_poll_results (topic_id);
# Table: phpbb_poll_voters
CREATE TABLE phpbb_poll_voters (
topic_id mediumint(8) NOT NULL DEFAULT '0',
poll_option_id tinyint(4) NOT NULL DEFAULT '0',
vote_user_id mediumint(8) NOT NULL DEFAULT '0',
vote_user_ip varchar(40) NOT NULL
);
CREATE INDEX topic_id_phpbb_poll_voters on phpbb_poll_voters (topic_id);
CREATE INDEX vote_user_id_phpbb_poll_voters on phpbb_poll_voters (vote_user_id);
CREATE INDEX vote_user_ip_phpbb_poll_voters on phpbb_poll_voters (vote_user_ip);
# Table: phpbb_posts
CREATE TABLE phpbb_posts (
post_id INTEGER PRIMARY KEY NOT NULL,
topic_id mediumint(8) NOT NULL DEFAULT '0',
forum_id smallint(5) NOT NULL DEFAULT '0',
poster_id mediumint(8) NOT NULL DEFAULT '0',
icon_id tinyint(4) NOT NULL DEFAULT '1',
poster_ip varchar(40) NOT NULL,
post_time int(11) NOT NULL DEFAULT '0',
post_approved tinyint(1) NOT NULL DEFAULT '1',
post_reported tinyint(1) NOT NULL DEFAULT '0',
enable_bbcode tinyint(1) NOT NULL DEFAULT '1',
enable_smilies tinyint(1) NOT NULL DEFAULT '1',
enable_magic_url tinyint(1) NOT NULL DEFAULT '1',
enable_sig tinyint(1) NOT NULL DEFAULT '1',
post_username varchar(30),
post_subject varchar(60),
post_text mediumtext(16777215),
post_checksum varchar(32) NOT NULL,
post_encoding varchar(11) NOT NULL DEFAULT 'iso-8859-1',
post_attachment tinyint(1) NOT NULL DEFAULT '0',
bbcode_bitfield int(11) NOT NULL DEFAULT '0',
bbcode_uid varchar(5) NOT NULL DEFAULT '',
post_edit_time int(11) NOT NULL DEFAULT '0',
post_edit_reason varchar(100),
post_edit_user mediumint(8) NOT NULL DEFAULT '0',
post_edit_count smallint(5) NOT NULL DEFAULT '0',
post_edit_locked tinyint(1) NOT NULL DEFAULT '0'
);
CREATE INDEX forum_id_phpbb_posts on phpbb_posts (forum_id);
CREATE INDEX topic_id_phpbb_posts on phpbb_posts (topic_id);
CREATE INDEX poster_ip_phpbb_posts on phpbb_posts (poster_ip);
CREATE INDEX poster_id_phpbb_posts on phpbb_posts (poster_id);
CREATE INDEX post_approved_phpbb_posts on phpbb_posts (post_approved);
CREATE INDEX post_time_phpbb_posts on phpbb_posts (post_time);
# Table: phpbb_privmsgs
CREATE TABLE phpbb_privmsgs (
msg_id INTEGER PRIMARY KEY NOT NULL,
root_level mediumint(8) NOT NULL DEFAULT '0',
author_id mediumint(8) NOT NULL DEFAULT '0',
icon_id tinyint(4) NOT NULL DEFAULT '1',
author_ip varchar(40) NOT NULL DEFAULT '',
message_time int(11) NOT NULL DEFAULT '0',
message_reported tinyint(1) NOT NULL DEFAULT '0',
enable_bbcode tinyint(1) NOT NULL DEFAULT '1',
enable_smilies tinyint(1) NOT NULL DEFAULT '1',
enable_magic_url tinyint(1) NOT NULL DEFAULT '1',
enable_sig tinyint(1) NOT NULL DEFAULT '1',
message_subject varchar(60),
message_text mediumtext(16777215),
message_edit_reason varchar(100),
message_edit_user mediumint(8) NOT NULL DEFAULT '0',
message_checksum varchar(32) NOT NULL DEFAULT '',
message_encoding varchar(11) NOT NULL DEFAULT 'iso-8859-1',
message_attachment tinyint(1) NOT NULL DEFAULT '0',
bbcode_bitfield int(11) NOT NULL DEFAULT '0',
bbcode_uid varchar(5) NOT NULL DEFAULT '',
message_edit_time int(11) NOT NULL DEFAULT '0',
message_edit_count smallint(5) NOT NULL DEFAULT '0',
to_address text(65535),
bcc_address text(65535)
);
CREATE INDEX author_ip_phpbb_privmsgs on phpbb_privmsgs (author_ip);
CREATE INDEX message_time_phpbb_privmsgs on phpbb_privmsgs (message_time);
CREATE INDEX author_id_phpbb_privmsgs on phpbb_privmsgs (author_id);
CREATE INDEX root_level_phpbb_privmsgs on phpbb_privmsgs (root_level);
# Table: phpbb_privmsgs_folder
CREATE TABLE phpbb_privmsgs_folder (
folder_id INTEGER PRIMARY KEY NOT NULL,
user_id mediumint(8) NOT NULL DEFAULT '0',
folder_name varchar(40) NOT NULL DEFAULT '',
pm_count mediumint(8) NOT NULL DEFAULT '0'
);
CREATE INDEX user_id_phpbb_privmsgs_folder on phpbb_privmsgs_folder (user_id);
# Table: phpbb_privmsgs_rules
CREATE TABLE phpbb_privmsgs_rules (
rule_id INTEGER PRIMARY KEY NOT NULL,
user_id mediumint(8) NOT NULL DEFAULT '0',
rule_check mediumint(4) NOT NULL DEFAULT '0',
rule_connection mediumint(4) NOT NULL DEFAULT '0',
rule_string varchar(255) NOT NULL DEFAULT '',
rule_user_id mediumint(8) NOT NULL DEFAULT '0',
rule_group_id mediumint(8) NOT NULL DEFAULT '0',
rule_action mediumint(4) NOT NULL DEFAULT '0',
rule_folder_id mediumint(8) NOT NULL DEFAULT '0'
);
# Table: phpbb_privmsgs_to
CREATE TABLE phpbb_privmsgs_to (
msg_id mediumint(8) NOT NULL DEFAULT '0',
user_id mediumint(8) NOT NULL DEFAULT '0',
author_id mediumint(8) NOT NULL DEFAULT '0',
deleted tinyint(1) NOT NULL DEFAULT '0',
new tinyint(1) NOT NULL DEFAULT '1',
unread tinyint(1) NOT NULL DEFAULT '1',
replied tinyint(1) NOT NULL DEFAULT '0',
marked tinyint(1) NOT NULL DEFAULT '0',
forwarded tinyint(1) NOT NULL DEFAULT '0',
folder_id int(10) NOT NULL DEFAULT '0'
);
CREATE INDEX msg_id_phpbb_privmsgs_to on phpbb_privmsgs_to (msg_id);
CREATE INDEX user_id_phpbb_privmsgs_to on phpbb_privmsgs_to (user_id, folder_id);
# Table: phpbb_profile_fields
CREATE TABLE phpbb_profile_fields (
field_id INTEGER PRIMARY KEY NOT NULL,
field_name varchar(50) NOT NULL DEFAULT '',
field_desc varchar(255) NOT NULL DEFAULT '',
field_type mediumint(8) NOT NULL,
field_ident varchar(20) NOT NULL DEFAULT '',
field_length varchar(20) NOT NULL DEFAULT '',
field_minlen varchar(255) NOT NULL DEFAULT '',
field_maxlen varchar(255) NOT NULL DEFAULT '',
field_novalue varchar(255) NOT NULL DEFAULT '',
field_default_value varchar(255) NOT NULL DEFAULT '0',
field_validation varchar(20) NOT NULL DEFAULT '',
field_required tinyint(1) NOT NULL DEFAULT '0',
field_show_on_reg tinyint(1) NOT NULL DEFAULT '0',
field_hide tinyint(1) NOT NULL DEFAULT '0',
field_no_view tinyint(1) NOT NULL DEFAULT '0',
field_active tinyint(1) NOT NULL DEFAULT '0',
field_order tinyint(4) NOT NULL DEFAULT '0'
);
CREATE INDEX field_type_phpbb_profile_field on phpbb_profile_fields (field_type);
CREATE INDEX field_order_phpbb_profile_fiel on phpbb_profile_fields (field_order);
# Table: phpbb_profile_fields_data
CREATE TABLE phpbb_profile_fields_data (
user_id INTEGER PRIMARY KEY NOT NULL DEFAULT '0'
);
# Table: phpbb_profile_fields_lang
CREATE TABLE phpbb_profile_fields_lang (
field_id mediumint(8) NOT NULL DEFAULT '0',
lang_id mediumint(8) NOT NULL DEFAULT '0',
option_id mediumint(8) NOT NULL DEFAULT '0',
field_type tinyint(4) NOT NULL DEFAULT '0',
value varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (field_id, lang_id, option_id)
);
# Table: phpbb_profile_lang
CREATE TABLE phpbb_profile_lang (
field_id mediumint(8) NOT NULL DEFAULT '0',
lang_id tinyint(4) NOT NULL DEFAULT '0',
lang_name varchar(255) NOT NULL DEFAULT '',
lang_explain text(65535) NOT NULL,
lang_default_value varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (field_id, lang_id)
);
# Table: phpbb_ranks
CREATE TABLE phpbb_ranks (
rank_id INTEGER PRIMARY KEY NOT NULL,
rank_title varchar(50) NOT NULL,
rank_min mediumint(8) NOT NULL DEFAULT '0',
rank_special tinyint(1) DEFAULT '0',
rank_image varchar(100)
);
# Table: phpbb_reports_reasons
CREATE TABLE phpbb_reports_reasons (
reason_id INTEGER PRIMARY KEY NOT NULL,
reason_priority tinyint(4) NOT NULL DEFAULT '0',
reason_name varchar(255) NOT NULL DEFAULT '',
reason_description text(65535) NOT NULL
);
# Table: phpbb_reports
CREATE TABLE phpbb_reports (
report_id INTEGER PRIMARY KEY NOT NULL,
reason_id smallint(5) NOT NULL DEFAULT '0',
post_id mediumint(8) NOT NULL DEFAULT '0',
msg_id mediumint(8) NOT NULL DEFAULT '0',
user_id mediumint(8) NOT NULL DEFAULT '0',
user_notify tinyint(1) NOT NULL DEFAULT '0',
report_time int(10) NOT NULL DEFAULT '0',
report_text text(65535) NOT NULL
);
# Table: phpbb_search_results
CREATE TABLE phpbb_search_results (
search_key varchar(32) NOT NULL DEFAULT '',
search_time int(11) NOT NULL DEFAULT '0',
search_keywords mediumtext(16777215) NOT NULL,
search_authors mediumtext(16777215) NOT NULL,
PRIMARY KEY (search_key)
);
# Table: phpbb_search_wordlist
CREATE TABLE phpbb_search_wordlist (
word_text varchar(50) NOT NULL DEFAULT '',
word_id mediumint NOT NULL,
word_common tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (word_text)
);
CREATE INDEX word_id_phpbb_search_wordlist on phpbb_search_wordlist (word_id);
# Table: phpbb_search_wordmatch
CREATE TABLE phpbb_search_wordmatch (
post_id mediumint(8) NOT NULL DEFAULT '0',
word_id mediumint(8) NOT NULL DEFAULT '0',
title_match tinyint(1) NOT NULL DEFAULT '0'
);
CREATE INDEX word_id_phpbb_search_wordmatch on phpbb_search_wordmatch (word_id);
# Table: phpbb_sessions
CREATE TABLE phpbb_sessions (
session_id varchar(32) NOT NULL DEFAULT '',
session_user_id mediumint(8) NOT NULL DEFAULT '0',
session_last_visit int(11) NOT NULL DEFAULT '0',
session_start int(11) NOT NULL DEFAULT '0',
session_time int(11) NOT NULL DEFAULT '0',
session_ip varchar(40) NOT NULL DEFAULT '0',
session_browser varchar(150) NOT NULL DEFAULT '',
session_page varchar(100) NOT NULL DEFAULT '',
session_viewonline tinyint(1) NOT NULL DEFAULT '1',
session_admin tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (session_id)
);
CREATE INDEX session_time_phpbb_sessions on phpbb_sessions (session_time);
CREATE INDEX session_user_id_phpbb_sessions on phpbb_sessions (session_user_id);
# Table: phpbb_sessions_keys
CREATE TABLE phpbb_sessions_keys (
key_id varchar(32) NOT NULL DEFAULT '',
user_id mediumint(8) NOT NULL DEFAULT '0',
last_ip varchar(40) NOT NULL DEFAULT '',
last_login int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (key_id,user_id)
);
CREATE INDEX last_login_phpbb_sessions_keys on phpbb_sessions_keys (last_login);
# Table: phpbb_sitelist
CREATE TABLE phpbb_sitelist (
site_id INTEGER PRIMARY KEY NOT NULL,
site_ip varchar(40) NOT NULL DEFAULT '',
site_hostname varchar(255) NOT NULL DEFAULT '',
ip_exclude tinyint(1) NOT NULL DEFAULT '0'
);
# Table: phpbb_smilies
CREATE TABLE phpbb_smilies (
smiley_id INTEGER PRIMARY KEY NOT NULL,
code char(10),
emotion char(50),
smiley_url char(50),
smiley_width tinyint(4) NOT NULL,
smiley_height tinyint(4) NOT NULL,
smiley_order tinyint(4) NOT NULL,
display_on_posting tinyint(1) NOT NULL DEFAULT '1'
);
# Table: phpbb_styles
CREATE TABLE phpbb_styles (
style_id INTEGER PRIMARY KEY NOT NULL,
style_name varchar(30) NOT NULL DEFAULT '',
style_copyright varchar(50) NOT NULL DEFAULT '',
style_active tinyint(1) NOT NULL DEFAULT '1',
template_id tinyint(4) NOT NULL,
theme_id tinyint(4) NOT NULL,
imageset_id tinyint(4) NOT NULL
);
CREATE INDEX B_phpbb_styles on phpbb_styles (template_id);
CREATE INDEX C_phpbb_styles on phpbb_styles (theme_id);
CREATE INDEX D_phpbb_styles on phpbb_styles (imageset_id);
CREATE UNIQUE INDEX style_name_phpbb_styles on phpbb_styles (style_name);
# Table: phpbb_styles_template
CREATE TABLE phpbb_styles_template (
template_id INTEGER PRIMARY KEY NOT NULL,
template_name varchar(30) NOT NULL,
template_copyright varchar(50) NOT NULL,
template_path varchar(30) NOT NULL,
bbcode_bitfield int(11) NOT NULL DEFAULT '0',
template_storedb tinyint(1) NOT NULL DEFAULT '0'
);
CREATE UNIQUE INDEX template_name_phpbb_styles_tem on phpbb_styles_template (template_name);
# Table: phpbb_styles_template_data
CREATE TABLE phpbb_styles_template_data (
template_id tinyint(4) NOT NULL,
template_filename varchar(50) NOT NULL DEFAULT '',
template_included text(65535) NOT NULL,
template_mtime int(11) NOT NULL DEFAULT '0',
template_data mediumtext(16777215)
);
CREATE INDEX B_phpbb_styles_template_data on phpbb_styles_template_data (template_id);
CREATE INDEX C_phpbb_styles_template_data on phpbb_styles_template_data (template_filename);
# Table: phpbb_styles_theme
CREATE TABLE phpbb_styles_theme (
theme_id INTEGER PRIMARY KEY NOT NULL,
theme_name varchar(30) NOT NULL DEFAULT '',
theme_copyright varchar(50) NOT NULL DEFAULT '',
theme_path varchar(30) NOT NULL DEFAULT '',
theme_storedb tinyint(1) NOT NULL DEFAULT '0',
theme_mtime int(11) NOT NULL DEFAULT '0',
theme_data mediumtext(16777215) NOT NULL DEFAULT ''
);
CREATE UNIQUE INDEX theme_name_phpbb_styles_theme on phpbb_styles_theme (theme_name);
# Table: phpbb_styles_imageset
CREATE TABLE phpbb_styles_imageset (
imageset_id INTEGER PRIMARY KEY NOT NULL,
imageset_name varchar(30) NOT NULL DEFAULT '',
imageset_copyright varchar(50) NOT NULL DEFAULT '',
imageset_path varchar(30) NOT NULL DEFAULT '',
site_logo varchar(200) NOT NULL DEFAULT '',
btn_post varchar(200) NOT NULL DEFAULT '',
btn_post_pm varchar(200) NOT NULL DEFAULT '',
btn_reply varchar(200) NOT NULL DEFAULT '',
btn_reply_pm varchar(200) NOT NULL DEFAULT '',
btn_locked varchar(200) NOT NULL DEFAULT '',
btn_profile varchar(200) NOT NULL DEFAULT '',
btn_pm varchar(200) NOT NULL DEFAULT '',
btn_delete varchar(200) NOT NULL DEFAULT '',
btn_info varchar(200) NOT NULL DEFAULT '',
btn_quote varchar(200) NOT NULL DEFAULT '',
btn_search varchar(200) NOT NULL DEFAULT '',
btn_edit varchar(200) NOT NULL DEFAULT '',
btn_report varchar(200) NOT NULL DEFAULT '',
btn_email varchar(200) NOT NULL DEFAULT '',
btn_www varchar(200) NOT NULL DEFAULT '',
btn_icq varchar(200) NOT NULL DEFAULT '',
btn_aim varchar(200) NOT NULL DEFAULT '',
btn_yim varchar(200) NOT NULL DEFAULT '',
btn_msnm varchar(200) NOT NULL DEFAULT '',
btn_jabber varchar(200) NOT NULL DEFAULT '',
btn_online varchar(200) NOT NULL DEFAULT '',
btn_offline varchar(200) NOT NULL DEFAULT '',
btn_friend varchar(200) NOT NULL DEFAULT '',
btn_foe varchar(200) NOT NULL DEFAULT '',
icon_unapproved varchar(200) NOT NULL DEFAULT '',
icon_reported varchar(200) NOT NULL DEFAULT '',
icon_attach varchar(200) NOT NULL DEFAULT '',
icon_post varchar(200) NOT NULL DEFAULT '',
icon_post_new varchar(200) NOT NULL DEFAULT '',
icon_post_latest varchar(200) NOT NULL DEFAULT '',
icon_post_newest varchar(200) NOT NULL DEFAULT '',
forum varchar(200) NOT NULL DEFAULT '',
forum_new varchar(200) NOT NULL DEFAULT '',
forum_locked varchar(200) NOT NULL DEFAULT '',
forum_link varchar(200) NOT NULL DEFAULT '',
sub_forum varchar(200) NOT NULL DEFAULT '',
sub_forum_new varchar(200) NOT NULL DEFAULT '',
folder varchar(200) NOT NULL DEFAULT '',
folder_moved varchar(200) NOT NULL DEFAULT '',
folder_posted varchar(200) NOT NULL DEFAULT '',
folder_new varchar(200) NOT NULL DEFAULT '',
folder_new_posted varchar(200) NOT NULL DEFAULT '',
folder_hot varchar(200) NOT NULL DEFAULT '',
folder_hot_posted varchar(200) NOT NULL DEFAULT '',
folder_hot_new varchar(200) NOT NULL DEFAULT '',
folder_hot_new_posted varchar(200) NOT NULL DEFAULT '',
folder_locked varchar(200) NOT NULL DEFAULT '',
folder_locked_posted varchar(200) NOT NULL DEFAULT '',
folder_locked_new varchar(200) NOT NULL DEFAULT '',
folder_locked_new_posted varchar(200) NOT NULL DEFAULT '',
folder_sticky varchar(200) NOT NULL DEFAULT '',
folder_sticky_posted varchar(200) NOT NULL DEFAULT '',
folder_sticky_new varchar(200) NOT NULL DEFAULT '',
folder_sticky_new_posted varchar(200) NOT NULL DEFAULT '',
folder_announce varchar(200) NOT NULL DEFAULT '',
folder_announce_posted varchar(200) NOT NULL DEFAULT '',
folder_announce_new varchar(200) NOT NULL DEFAULT '',
folder_announce_new_posted varchar(200) NOT NULL DEFAULT '',
folder_global varchar(200) NOT NULL DEFAULT '',
folder_global_posted varchar(200) NOT NULL DEFAULT '',
folder_global_new varchar(200) NOT NULL DEFAULT '',
folder_global_new_posted varchar(200) NOT NULL DEFAULT '',
poll_left varchar(200) NOT NULL DEFAULT '',
poll_center varchar(200) NOT NULL DEFAULT '',
poll_right varchar(200) NOT NULL DEFAULT '',
attach_progress_bar varchar(200) NOT NULL DEFAULT '',
user_icon1 varchar(200) NOT NULL DEFAULT '',
user_icon2 varchar(200) NOT NULL DEFAULT '',
user_icon3 varchar(200) NOT NULL DEFAULT '',
user_icon4 varchar(200) NOT NULL DEFAULT '',
user_icon5 varchar(200) NOT NULL DEFAULT '',
user_icon6 varchar(200) NOT NULL DEFAULT '',
user_icon7 varchar(200) NOT NULL DEFAULT '',
user_icon8 varchar(200) NOT NULL DEFAULT '',
user_icon9 varchar(200) NOT NULL DEFAULT '',
user_icon10 varchar(200) NOT NULL DEFAULT ''
);
CREATE UNIQUE INDEX imageset_name_phpbb_styles_ima on phpbb_styles_imageset (imageset_name);
# Table: phpbb_topics
CREATE TABLE phpbb_topics (
topic_id INTEGER PRIMARY KEY NOT NULL,
forum_id smallint(8) NOT NULL DEFAULT '0',
icon_id tinyint(4) NOT NULL DEFAULT '1',
topic_attachment tinyint(1) NOT NULL DEFAULT '0',
topic_approved tinyint(1) NOT NULL DEFAULT '1',
topic_reported tinyint(1) NOT NULL DEFAULT '0',
topic_title varchar(60) NOT NULL,
topic_poster mediumint(8) NOT NULL DEFAULT '0',
topic_time int(11) NOT NULL DEFAULT '0',
topic_time_limit int(11) NOT NULL DEFAULT '0',
topic_views mediumint(8) NOT NULL DEFAULT '0',
topic_replies mediumint(8) NOT NULL DEFAULT '0',
topic_replies_real mediumint(8) NOT NULL DEFAULT '0',
topic_status tinyint(3) NOT NULL DEFAULT '0',
topic_type tinyint(3) NOT NULL DEFAULT '0',
topic_first_post_id mediumint(8) NOT NULL DEFAULT '0',
topic_first_poster_name varchar(30),
topic_last_post_id mediumint(8) NOT NULL DEFAULT '0',
topic_last_poster_id mediumint(8) NOT NULL DEFAULT '0',
topic_last_poster_name varchar(30),
topic_last_post_time int(11) NOT NULL DEFAULT '0',
topic_last_view_time int(11) NOT NULL DEFAULT '0',
topic_moved_id mediumint(8) NOT NULL DEFAULT '0',
topic_bumped tinyint(1) NOT NULL DEFAULT '0',
topic_bumper mediumint(8) NOT NULL DEFAULT '0',
poll_title varchar(255) NOT NULL,
poll_start int(11) NOT NULL DEFAULT '0',
poll_length int(11) NOT NULL DEFAULT '0',
poll_max_options tinyint(4) NOT NULL DEFAULT '1',
poll_last_vote int(11) DEFAULT '0',
poll_vote_change tinyint(1) NOT NULL DEFAULT '0'
);
CREATE INDEX forum_id_phpbb_topics on phpbb_topics (forum_id);
CREATE INDEX forum_id_type_phpbb_topics on phpbb_topics (forum_id, topic_type);
CREATE INDEX topic_last_post_time_phpbb_top on phpbb_topics (topic_last_post_time);
# Table: phpbb_topics_marking
CREATE TABLE phpbb_topics_marking (
user_id mediumint(8) NOT NULL DEFAULT '0',
topic_id mediumint(8) NOT NULL DEFAULT '0',
forum_id mediumint(8) NOT NULL DEFAULT '0',
mark_time int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (user_id, topic_id)
);
CREATE INDEX forum_id_phpbb_topics_posted on phpbb_topics_posted (forum_id);
# Table: phpbb_topics_posted
CREATE TABLE phpbb_topics_posted (
user_id mediumint(8) NOT NULL DEFAULT '0',
topic_id mediumint(8) NOT NULL DEFAULT '0',
topic_posted tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (user_id, topic_id)
);
# Table: phpbb_topics_watch
CREATE TABLE phpbb_topics_watch (
topic_id mediumint(8) NOT NULL DEFAULT '0',
user_id mediumint(8) NOT NULL DEFAULT '0',
notify_status tinyint(1) NOT NULL DEFAULT '0'
);
CREATE INDEX topic_id_phpbb_topics_watch on phpbb_topics_watch (topic_id);
CREATE INDEX user_id_phpbb_topics_watch on phpbb_topics_watch (user_id);
CREATE INDEX notify_status_phpbb_topics_wat on phpbb_topics_watch (notify_status);
# Table: phpbb_user_group
CREATE TABLE phpbb_user_group (
group_id mediumint(8) NOT NULL DEFAULT '0',
user_id mediumint(8) NOT NULL DEFAULT '0',
group_leader tinyint(1) NOT NULL DEFAULT '0',
user_pending tinyint(1)
);
CREATE INDEX group_id_phpbb_user_group on phpbb_user_group (group_id);
CREATE INDEX user_id_phpbb_user_group on phpbb_user_group (user_id);
CREATE INDEX group_leader_phpbb_user_group on phpbb_user_group (group_leader);
# Table: phpbb_users
CREATE TABLE phpbb_users (
user_id INTEGER PRIMARY KEY NOT NULL,
user_type tinyint(1) NOT NULL DEFAULT '0',
group_id mediumint(8) NOT NULL DEFAULT '3',
user_permissions text(65535) NOT NULL DEFAULT '',
user_ip varchar(40) NOT NULL DEFAULT '',
user_regdate int(11) NOT NULL DEFAULT '0',
username varchar(30) NOT NULL DEFAULT '',
user_password varchar(32) NOT NULL DEFAULT '',
user_passchg int(11) NOT NULL DEFAULT '0',
user_email varchar(60) NOT NULL DEFAULT '',
user_email_hash bigint(20) NOT NULL DEFAULT '0',
user_birthday varchar(10) NOT NULL DEFAULT '',
user_lastvisit int(11) NOT NULL DEFAULT '0',
user_lastmark int(11) NOT NULL DEFAULT '0',
user_lastpost_time int(11) NOT NULL DEFAULT '0',
user_lastpage varchar(100) NOT NULL DEFAULT '',
user_last_confirm_key varchar(10) NOT NULL DEFAULT '',
user_warnings tinyint(4) NOT NULL DEFAULT '0',
user_posts mediumint(8) NOT NULL DEFAULT '0',
user_lang varchar(30) NOT NULL DEFAULT '',
user_timezone decimal(5,2) NOT NULL DEFAULT '0.0',
user_dst tinyint(1) NOT NULL DEFAULT '0',
user_dateformat varchar(15) NOT NULL DEFAULT 'd M Y H:i',
user_style tinyint(4) NOT NULL DEFAULT '0',
user_rank int(11) DEFAULT '0',
user_colour varchar(6) NOT NULL DEFAULT '',
user_new_privmsg tinyint(4) NOT NULL DEFAULT '0',
user_unread_privmsg tinyint(4) NOT NULL DEFAULT '0',
user_last_privmsg int(11) NOT NULL DEFAULT '0',
user_message_rules tinyint(1) NOT NULL DEFAULT '0',
user_full_folder int(11) NOT NULL DEFAULT '-3',
user_emailtime int(11) NOT NULL DEFAULT '0',
user_topic_show_days smallint(4) NOT NULL DEFAULT '0',
user_topic_sortby_type varchar(1) NOT NULL DEFAULT 't',
user_topic_sortby_dir varchar(1) NOT NULL DEFAULT 'd',
user_post_show_days smallint(4) NOT NULL DEFAULT '0',
user_post_sortby_type varchar(1) NOT NULL DEFAULT 't',
user_post_sortby_dir varchar(1) NOT NULL DEFAULT 'a',
user_notify tinyint(1) NOT NULL DEFAULT '0',
user_notify_pm tinyint(1) NOT NULL DEFAULT '1',
user_notify_type tinyint(4) NOT NULL DEFAULT '0',
user_allow_pm tinyint(1) NOT NULL DEFAULT '1',
user_allow_email tinyint(1) NOT NULL DEFAULT '1',
user_allow_viewonline tinyint(1) NOT NULL DEFAULT '1',
user_allow_viewemail tinyint(1) NOT NULL DEFAULT '1',
user_allow_massemail tinyint(1) NOT NULL DEFAULT '1',
user_options int(11) NOT NULL DEFAULT '893',
user_avatar varchar(100) NOT NULL DEFAULT '',
user_avatar_type tinyint(2) NOT NULL DEFAULT '0',
user_avatar_width tinyint(4) NOT NULL DEFAULT '0',
user_avatar_height tinyint(4) NOT NULL DEFAULT '0',
user_sig text(65535) NOT NULL DEFAULT '',
user_sig_bbcode_uid varchar(5) NOT NULL DEFAULT '',
user_sig_bbcode_bitfield int(11) NOT NULL DEFAULT '0',
user_from varchar(100) NOT NULL DEFAULT '',
user_icq varchar(15) NOT NULL DEFAULT '',
user_aim varchar(255) NOT NULL DEFAULT '',
user_yim varchar(255) NOT NULL DEFAULT '',
user_msnm varchar(255) NOT NULL DEFAULT '',
user_jabber varchar(255) NOT NULL DEFAULT '',
user_website varchar(100) NOT NULL DEFAULT '',
user_occ varchar(255) NOT NULL DEFAULT '',
user_interests varchar(255) NOT NULL DEFAULT '',
user_actkey varchar(32) NOT NULL DEFAULT '',
user_newpasswd varchar(32) NOT NULL DEFAULT ''
);
CREATE INDEX user_birthday_phpbb_users on phpbb_users (user_birthday);
CREATE INDEX user_email_hash_phpbb_users on phpbb_users (user_email_hash);
CREATE INDEX username_phpbb_users on phpbb_users (username);
# Table: phpbb_words
CREATE TABLE phpbb_words (
word_id INTEGER PRIMARY KEY NOT NULL,
word char(100) NOT NULL,
replacement char(100) NOT NULL
);
# Table: phpbb_zebra
CREATE TABLE phpbb_zebra (
user_id mediumint(8) NOT NULL DEFAULT '0',
zebra_id mediumint(8) NOT NULL DEFAULT '0',
friend tinyint(1) NOT NULL DEFAULT '0',
foe tinyint(1) NOT NULL DEFAULT '0'
);
CREATE INDEX user_id_phpbb_zebra on phpbb_zebra (user_id);
CREATE INDEX zebra_id_phpbb_zebra on phpbb_zebra (zebra_id);
COMMIT;
|