b2e84553e3386173a7f32efbfb2acfdcc3b428e8
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / ext_tables.sql
1 #
2
3 #
4 # Table structure for table 'be_groups'
5 #
6 CREATE TABLE be_groups (
7 uid int(11) unsigned NOT NULL auto_increment,
8 pid int(11) unsigned DEFAULT '0' NOT NULL,
9 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
10 title varchar(50) DEFAULT '' NOT NULL,
11 non_exclude_fields text,
12 explicit_allowdeny text,
13 allowed_languages varchar(255) DEFAULT '' NOT NULL,
14 custom_options text,
15 db_mountpoints varchar(255) DEFAULT '' NOT NULL,
16 pagetypes_select varchar(255) DEFAULT '' NOT NULL,
17 tables_select text,
18 tables_modify text,
19 crdate int(11) unsigned DEFAULT '0' NOT NULL,
20 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
21 groupMods text,
22 file_mountpoints varchar(255) DEFAULT '' NOT NULL,
23 file_permissions text,
24 hidden tinyint(1) unsigned DEFAULT '0' NOT NULL,
25 inc_access_lists tinyint(3) unsigned DEFAULT '0' NOT NULL,
26 description text,
27 lockToDomain varchar(50) DEFAULT '' NOT NULL,
28 deleted tinyint(1) unsigned DEFAULT '0' NOT NULL,
29 TSconfig text,
30 subgroup text,
31 hide_in_lists tinyint(4) DEFAULT '0' NOT NULL,
32 workspace_perms tinyint(3) DEFAULT '1' NOT NULL,
33 category_perms varchar(255) DEFAULT '' NOT NULL,
34 PRIMARY KEY (uid),
35 KEY parent (pid)
36 );
37
38 #
39 # Table structure for table 'be_sessions'
40 #
41 CREATE TABLE be_sessions (
42 ses_id varchar(32) DEFAULT '' NOT NULL,
43 ses_name varchar(32) DEFAULT '' NOT NULL,
44 ses_iplock varchar(39) DEFAULT '' NOT NULL,
45 ses_hashlock int(11) DEFAULT '0' NOT NULL,
46 ses_userid int(11) unsigned DEFAULT '0' NOT NULL,
47 ses_tstamp int(11) unsigned DEFAULT '0' NOT NULL,
48 ses_data longtext,
49 ses_backuserid int(11) NOT NULL default '0',
50 PRIMARY KEY (ses_id,ses_name),
51 KEY ses_tstamp (ses_tstamp)
52 );
53
54 #
55 # Table structure for table 'be_users'
56 #
57 CREATE TABLE be_users (
58 uid int(11) unsigned NOT NULL auto_increment,
59 pid int(11) unsigned DEFAULT '0' NOT NULL,
60 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
61 username varchar(50) DEFAULT '' NOT NULL,
62 password varchar(100) DEFAULT '' NOT NULL,
63 admin tinyint(4) unsigned DEFAULT '0' NOT NULL,
64 usergroup varchar(255) DEFAULT '' NOT NULL,
65 disable tinyint(1) unsigned DEFAULT '0' NOT NULL,
66 starttime int(11) unsigned DEFAULT '0' NOT NULL,
67 endtime int(11) unsigned DEFAULT '0' NOT NULL,
68 lang char(2) DEFAULT '' NOT NULL,
69 email varchar(80) DEFAULT '' NOT NULL,
70 db_mountpoints varchar(255) DEFAULT '' NOT NULL,
71 options tinyint(4) unsigned DEFAULT '0' NOT NULL,
72 crdate int(11) unsigned DEFAULT '0' NOT NULL,
73 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
74 realName varchar(80) DEFAULT '' NOT NULL,
75 userMods text,
76 allowed_languages varchar(255) DEFAULT '' NOT NULL,
77 uc mediumtext,
78 file_mountpoints varchar(255) DEFAULT '' NOT NULL,
79 file_permissions text,
80 workspace_perms tinyint(3) DEFAULT '1' NOT NULL,
81 lockToDomain varchar(50) DEFAULT '' NOT NULL,
82 disableIPlock tinyint(1) unsigned DEFAULT '0' NOT NULL,
83 deleted tinyint(1) unsigned DEFAULT '0' NOT NULL,
84 TSconfig text,
85 lastlogin int(10) unsigned DEFAULT '0' NOT NULL,
86 createdByAction int(11) DEFAULT '0' NOT NULL,
87 usergroup_cached_list text,
88 workspace_id int(11) DEFAULT '0' NOT NULL,
89 workspace_preview tinyint(3) DEFAULT '1' NOT NULL,
90 category_perms varchar(255) DEFAULT '' NOT NULL,
91 PRIMARY KEY (uid),
92 KEY parent (pid),
93 KEY username (username)
94 );
95
96 #
97 # Table structure for table 'cache_imagesizes'
98 #
99 CREATE TABLE cache_imagesizes (
100 md5hash varchar(32) DEFAULT '' NOT NULL,
101 md5filename varchar(32) DEFAULT '' NOT NULL,
102 tstamp int(11) DEFAULT '0' NOT NULL,
103 filename varchar(255) DEFAULT '' NOT NULL,
104 imagewidth mediumint(11) unsigned DEFAULT '0' NOT NULL,
105 imageheight mediumint(11) unsigned DEFAULT '0' NOT NULL,
106 PRIMARY KEY (md5filename)
107 ) ENGINE=InnoDB;
108
109 #
110 # Table structure for table 'pages'
111 #
112 CREATE TABLE pages (
113 uid int(11) NOT NULL auto_increment,
114 pid int(11) DEFAULT '0' NOT NULL,
115 t3ver_oid int(11) DEFAULT '0' NOT NULL,
116 t3ver_id int(11) DEFAULT '0' NOT NULL,
117 t3ver_wsid int(11) DEFAULT '0' NOT NULL,
118 t3ver_label varchar(255) DEFAULT '' NOT NULL,
119 t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
120 t3ver_stage int(11) DEFAULT '0' NOT NULL,
121 t3ver_count int(11) DEFAULT '0' NOT NULL,
122 t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
123 t3ver_move_id int(11) DEFAULT '0' NOT NULL,
124 t3_origuid int(11) DEFAULT '0' NOT NULL,
125 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
126 sorting int(11) unsigned DEFAULT '0' NOT NULL,
127 deleted tinyint(1) unsigned DEFAULT '0' NOT NULL,
128 perms_userid int(11) unsigned DEFAULT '0' NOT NULL,
129 perms_groupid int(11) unsigned DEFAULT '0' NOT NULL,
130 perms_user tinyint(4) unsigned DEFAULT '0' NOT NULL,
131 perms_group tinyint(4) unsigned DEFAULT '0' NOT NULL,
132 perms_everybody tinyint(4) unsigned DEFAULT '0' NOT NULL,
133 editlock tinyint(4) unsigned DEFAULT '0' NOT NULL,
134 crdate int(11) unsigned DEFAULT '0' NOT NULL,
135 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
136 hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
137 title varchar(255) DEFAULT '' NOT NULL,
138 doktype int(11) unsigned DEFAULT '0' NOT NULL,
139 TSconfig text,
140 storage_pid int(11) DEFAULT '0' NOT NULL,
141 is_siteroot tinyint(4) DEFAULT '0' NOT NULL,
142 php_tree_stop tinyint(4) DEFAULT '0' NOT NULL,
143 tx_impexp_origuid int(11) DEFAULT '0' NOT NULL,
144 url varchar(255) DEFAULT '' NOT NULL,
145 starttime int(11) unsigned DEFAULT '0' NOT NULL,
146 endtime int(11) unsigned DEFAULT '0' NOT NULL,
147 urltype tinyint(4) unsigned DEFAULT '0' NOT NULL,
148 shortcut int(10) unsigned DEFAULT '0' NOT NULL,
149 shortcut_mode int(10) unsigned DEFAULT '0' NOT NULL,
150 no_cache int(10) unsigned DEFAULT '0' NOT NULL,
151 fe_group varchar(100) DEFAULT '0' NOT NULL,
152 subtitle varchar(255) DEFAULT '' NOT NULL,
153 layout int(11) unsigned DEFAULT '0' NOT NULL,
154 url_scheme tinyint(3) unsigned DEFAULT '0' NOT NULL,
155 target varchar(80) DEFAULT '' NOT NULL,
156 media text,
157 lastUpdated int(10) unsigned DEFAULT '0' NOT NULL,
158 keywords text,
159 cache_timeout int(10) unsigned DEFAULT '0' NOT NULL,
160 cache_tags varchar(255) DEFAULT '' NOT NULL,
161 newUntil int(10) unsigned DEFAULT '0' NOT NULL,
162 description text,
163 no_search tinyint(3) unsigned DEFAULT '0' NOT NULL,
164 SYS_LASTCHANGED int(10) unsigned DEFAULT '0' NOT NULL,
165 abstract text,
166 module varchar(10) DEFAULT '' NOT NULL,
167 extendToSubpages tinyint(3) unsigned DEFAULT '0' NOT NULL,
168 author varchar(255) DEFAULT '' NOT NULL,
169 author_email varchar(80) DEFAULT '' NOT NULL,
170 nav_title varchar(255) DEFAULT '' NOT NULL,
171 nav_hide tinyint(4) DEFAULT '0' NOT NULL,
172 content_from_pid int(10) unsigned DEFAULT '0' NOT NULL,
173 mount_pid int(10) unsigned DEFAULT '0' NOT NULL,
174 mount_pid_ol tinyint(4) DEFAULT '0' NOT NULL,
175 alias varchar(32) DEFAULT '' NOT NULL,
176 l18n_cfg tinyint(4) DEFAULT '0' NOT NULL,
177 fe_login_mode tinyint(4) DEFAULT '0' NOT NULL,
178 backend_layout varchar(64) DEFAULT '0' NOT NULL,
179 backend_layout_next_level varchar(64) DEFAULT '0' NOT NULL,
180 PRIMARY KEY (uid),
181 KEY t3ver_oid (t3ver_oid,t3ver_wsid),
182 KEY parent (pid,deleted,sorting),
183 KEY alias (alias)
184 );
185
186 #
187 # Table structure for table 'sys_registry'
188 #
189 CREATE TABLE sys_registry (
190 uid int(11) unsigned NOT NULL auto_increment,
191 entry_namespace varchar(128) DEFAULT '' NOT NULL,
192 entry_key varchar(128) DEFAULT '' NOT NULL,
193 entry_value blob,
194 PRIMARY KEY (uid),
195 UNIQUE KEY entry_identifier (entry_namespace,entry_key)
196 );
197
198 #
199 # Table structure for table 'sys_be_shortcuts'
200 #
201 CREATE TABLE sys_be_shortcuts (
202 uid int(11) unsigned NOT NULL auto_increment,
203 userid int(11) unsigned DEFAULT '0' NOT NULL,
204 module_name varchar(255) DEFAULT '' NOT NULL,
205 url text,
206 description varchar(255) DEFAULT '' NOT NULL,
207 sorting int(11) DEFAULT '0' NOT NULL,
208 sc_group tinyint(4) DEFAULT '0' NOT NULL,
209 PRIMARY KEY (uid),
210 KEY event (userid)
211 );
212
213
214 #
215 # Table structure for table 'sys_news'
216 #
217 CREATE TABLE sys_news (
218 uid int(11) unsigned NOT NULL auto_increment,
219 pid int(11) unsigned DEFAULT '0' NOT NULL,
220 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
221 crdate int(11) unsigned DEFAULT '0' NOT NULL,
222 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
223 deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
224 hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
225 starttime int(11) unsigned DEFAULT '0' NOT NULL,
226 endtime int(11) unsigned DEFAULT '0' NOT NULL,
227 title varchar(255) DEFAULT '' NOT NULL,
228 content mediumtext,
229
230 PRIMARY KEY (uid),
231 KEY parent (pid)
232 );
233
234
235 #
236 # Table structure for table 'sys_filemounts'
237 #
238 CREATE TABLE sys_filemounts (
239 uid int(11) unsigned NOT NULL auto_increment,
240 pid int(11) unsigned DEFAULT '0' NOT NULL,
241 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
242 title varchar(30) DEFAULT '' NOT NULL,
243 path varchar(120) DEFAULT '' NOT NULL,
244 base tinyint(4) unsigned DEFAULT '0' NOT NULL,
245 hidden tinyint(3) unsigned DEFAULT '0' NOT NULL,
246 deleted tinyint(1) unsigned DEFAULT '0' NOT NULL,
247 sorting int(11) unsigned DEFAULT '0' NOT NULL,
248 PRIMARY KEY (uid),
249 KEY parent (pid)
250 );
251
252
253 #
254 # Table structure for table 'sys_file_storage'
255 #
256 CREATE TABLE sys_file_storage (
257 uid int(11) NOT NULL auto_increment,
258 pid int(11) DEFAULT '0' NOT NULL,
259 tstamp int(11) DEFAULT '0' NOT NULL,
260 crdate int(11) DEFAULT '0' NOT NULL,
261 cruser_id int(11) DEFAULT '0' NOT NULL,
262 deleted tinyint(4) DEFAULT '0' NOT NULL,
263 hidden tinyint(4) DEFAULT '0' NOT NULL,
264
265 name tinytext,
266 description text,
267 driver tinytext,
268 configuration text,
269 is_browsable tinyint(4) DEFAULT '0' NOT NULL,
270 is_public tinyint(4) DEFAULT '0' NOT NULL,
271 is_writable tinyint(4) DEFAULT '0' NOT NULL,
272 is_online tinyint(4) DEFAULT '1' NOT NULL,
273 processingfolder tinytext,
274
275 PRIMARY KEY (uid),
276 KEY parent (pid,deleted)
277 );
278
279 #
280 # Table structure for table 'sys_file'
281 #
282 CREATE TABLE sys_file (
283 uid int(11) NOT NULL auto_increment,
284 pid int(11) DEFAULT '0' NOT NULL,
285 # update timestamp of the database record, not the file!
286 tstamp int(11) DEFAULT '0' NOT NULL,
287 last_indexed int(11) DEFAULT '0' NOT NULL,
288
289 # management information
290 missing tinyint(4) DEFAULT '0' NOT NULL,
291 storage int(11) DEFAULT '0' NOT NULL,
292 type varchar(10) DEFAULT '' NOT NULL,
293 metadata int(11) DEFAULT '0' NOT NULL,
294
295 # file info data
296 identifier text,
297 identifier_hash varchar(40) DEFAULT '' NOT NULL,
298 folder_hash varchar(40) DEFAULT '' NOT NULL,
299 extension varchar(255) DEFAULT '' NOT NULL,
300 mime_type varchar(255) DEFAULT '' NOT NULL,
301 name tinytext,
302 sha1 tinytext,
303 size int(11) DEFAULT '0' NOT NULL,
304 creation_date int(11) DEFAULT '0' NOT NULL,
305 modification_date int(11) DEFAULT '0' NOT NULL,
306
307 PRIMARY KEY (uid),
308 KEY sel01 (storage,identifier_hash),
309 KEY tstamp (tstamp),
310 KEY lastindex (last_indexed),
311 KEY sha1 (sha1(40))
312 );
313
314 #
315 # Table structure for table 'sys_file_metadata'
316 #
317 CREATE TABLE sys_file_metadata (
318 uid int(11) NOT NULL auto_increment,
319 pid int(11) DEFAULT '0' NOT NULL,
320 tstamp int(11) DEFAULT '0' NOT NULL,
321 crdate int(11) DEFAULT '0' NOT NULL,
322 cruser_id int(11) DEFAULT '0' NOT NULL,
323
324 # Language fields
325 sys_language_uid int(11) DEFAULT '0' NOT NULL,
326 l10n_parent int(11) DEFAULT '0' NOT NULL,
327 l10n_diffsource mediumblob NOT NULL,
328
329 # Versioning fields
330 t3ver_oid int(11) DEFAULT '0' NOT NULL,
331 t3ver_id int(11) DEFAULT '0' NOT NULL,
332 t3ver_wsid int(11) DEFAULT '0' NOT NULL,
333 t3ver_label varchar(30) DEFAULT '' NOT NULL,
334 t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
335 t3ver_stage int(11) DEFAULT '0' NOT NULL,
336 t3ver_count int(11) DEFAULT '0' NOT NULL,
337 t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
338 t3ver_move_id int(11) DEFAULT '0' NOT NULL,
339 t3_origuid int(11) DEFAULT '0' NOT NULL,
340
341 file int(11) DEFAULT '0' NOT NULL,
342 title tinytext,
343 width int(11) DEFAULT '0' NOT NULL,
344 height int(11) DEFAULT '0' NOT NULL,
345 description text,
346 alternative text,
347
348 PRIMARY KEY (uid),
349 KEY file (file),
350 KEY t3ver_oid (t3ver_oid,t3ver_wsid)
351 );
352
353
354 #
355 # Table structure for table 'sys_file_processedfile'.
356 # which is a "temporary" file, like an image preview
357 # This table does not have a TCA representation, as it is only written
358 # to using direct SQL queries in the code
359 #
360 CREATE TABLE sys_file_processedfile (
361 uid int(11) NOT NULL auto_increment,
362 tstamp int(11) DEFAULT '0' NOT NULL,
363 crdate int(11) DEFAULT '0' NOT NULL,
364
365 storage int(11) DEFAULT '0' NOT NULL,
366 original int(11) DEFAULT '0' NOT NULL,
367 identifier varchar(512) DEFAULT '' NOT NULL,
368 name tinytext,
369 configuration text,
370 configurationsha1 varchar(40) DEFAULT '' NOT NULL,
371 originalfilesha1 varchar(40) DEFAULT '' NOT NULL,
372 task_type varchar(200) DEFAULT '' NOT NULL,
373 checksum varchar(255) DEFAULT '' NOT NULL,
374 width int(11) DEFAULT '0',
375 height int(11) DEFAULT '0',
376
377 PRIMARY KEY (uid)
378 );
379
380 #
381 # Table structure for table 'sys_file_reference'
382 # which is one usage of a file with overloaded metadata
383 #
384 CREATE TABLE sys_file_reference (
385 uid int(11) NOT NULL auto_increment,
386 pid int(11) DEFAULT '0' NOT NULL,
387 tstamp int(11) DEFAULT '0' NOT NULL,
388 crdate int(11) DEFAULT '0' NOT NULL,
389 cruser_id int(11) DEFAULT '0' NOT NULL,
390 sorting int(10) DEFAULT '0' NOT NULL,
391 deleted tinyint(4) DEFAULT '0' NOT NULL,
392 hidden tinyint(4) DEFAULT '0' NOT NULL,
393
394 # Versioning fields
395 t3ver_oid int(11) DEFAULT '0' NOT NULL,
396 t3ver_id int(11) DEFAULT '0' NOT NULL,
397 t3ver_wsid int(11) DEFAULT '0' NOT NULL,
398 t3ver_label varchar(30) DEFAULT '' NOT NULL,
399 t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
400 t3ver_stage int(11) DEFAULT '0' NOT NULL,
401 t3ver_count int(11) DEFAULT '0' NOT NULL,
402 t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
403 t3ver_move_id int(11) DEFAULT '0' NOT NULL,
404 t3_origuid int(11) DEFAULT '0' NOT NULL,
405
406 # Language fields
407 sys_language_uid int(11) DEFAULT '0' NOT NULL,
408 l10n_parent int(11) DEFAULT '0' NOT NULL,
409 l10n_diffsource mediumblob NOT NULL,
410
411 # Reference fields (basically same as MM table)
412 uid_local int(11) DEFAULT '0' NOT NULL,
413 uid_foreign int(11) DEFAULT '0' NOT NULL,
414 tablenames varchar(255) DEFAULT '' NOT NULL,
415 fieldname tinytext,
416 sorting_foreign int(11) DEFAULT '0' NOT NULL,
417 table_local varchar(255) DEFAULT '' NOT NULL,
418
419 # Local usage overlay fields
420 title tinytext,
421 description text,
422 alternative tinytext,
423 link tinytext,
424 downloadname tinytext,
425
426 PRIMARY KEY (uid),
427 KEY parent (pid,deleted)
428 );
429
430
431 #
432 # Table structure for table 'sys_file_collection'
433 #
434 CREATE TABLE sys_file_collection (
435 uid int(11) NOT NULL auto_increment,
436 pid int(11) DEFAULT '0' NOT NULL,
437 tstamp int(11) DEFAULT '0' NOT NULL,
438 crdate int(11) DEFAULT '0' NOT NULL,
439 cruser_id int(11) DEFAULT '0' NOT NULL,
440 t3ver_oid int(11) DEFAULT '0' NOT NULL,
441 t3ver_id int(11) DEFAULT '0' NOT NULL,
442 t3ver_wsid int(11) DEFAULT '0' NOT NULL,
443 t3ver_label varchar(30) DEFAULT '' NOT NULL,
444 t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
445 t3ver_stage int(11) DEFAULT '0' NOT NULL,
446 t3ver_count int(11) DEFAULT '0' NOT NULL,
447 t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
448 t3ver_move_id int(11) DEFAULT '0' NOT NULL,
449 t3_origuid int(11) DEFAULT '0' NOT NULL,
450 sys_language_uid int(11) DEFAULT '0' NOT NULL,
451 l10n_parent int(11) DEFAULT '0' NOT NULL,
452 l10n_diffsource mediumtext,
453 deleted tinyint(4) DEFAULT '0' NOT NULL,
454 hidden tinyint(4) DEFAULT '0' NOT NULL,
455 starttime int(11) DEFAULT '0' NOT NULL,
456 endtime int(11) DEFAULT '0' NOT NULL,
457
458 # Actual fields
459 title tinytext,
460 description text,
461 type varchar(30) DEFAULT 'static' NOT NULL,
462
463 # for type=static
464 files int(11) DEFAULT '0' NOT NULL,
465
466 # for type=folder:
467 storage int(11) DEFAULT '0' NOT NULL,
468 folder text NOT NULL,
469
470 # for type=category:
471 category int(11) DEFAULT '0' NOT NULL,
472
473 PRIMARY KEY (uid),
474 KEY parent (pid,deleted),
475 KEY t3ver_oid (t3ver_oid,t3ver_wsid)
476 );
477
478 #
479 # Table structure for table 'sys_collection'
480 #
481 CREATE TABLE sys_collection (
482 uid int(11) NOT NULL auto_increment,
483 pid int(11) DEFAULT '0' NOT NULL,
484 tstamp int(11) DEFAULT '0' NOT NULL,
485 crdate int(11) DEFAULT '0' NOT NULL,
486 cruser_id int(11) DEFAULT '0' NOT NULL,
487 t3ver_oid int(11) DEFAULT '0' NOT NULL,
488 t3ver_id int(11) DEFAULT '0' NOT NULL,
489 t3ver_wsid int(11) DEFAULT '0' NOT NULL,
490 t3ver_label varchar(30) DEFAULT '' NOT NULL,
491 t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
492 t3ver_stage int(11) DEFAULT '0' NOT NULL,
493 t3ver_count int(11) DEFAULT '0' NOT NULL,
494 t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
495 t3ver_move_id int(11) DEFAULT '0' NOT NULL,
496 t3_origuid int(11) DEFAULT '0' NOT NULL,
497 sys_language_uid int(11) DEFAULT '0' NOT NULL,
498 l10n_parent int(11) DEFAULT '0' NOT NULL,
499 l10n_diffsource mediumtext,
500 deleted tinyint(4) DEFAULT '0' NOT NULL,
501 hidden tinyint(4) DEFAULT '0' NOT NULL,
502 starttime int(11) DEFAULT '0' NOT NULL,
503 endtime int(11) DEFAULT '0' NOT NULL,
504 fe_group int(11) DEFAULT '0' NOT NULL,
505
506 title tinytext,
507 description text,
508 type varchar(32) DEFAULT 'static' NOT NULL,
509 table_name tinytext,
510 items int(11) DEFAULT '0' NOT NULL,
511
512 PRIMARY KEY (uid),
513 KEY parent (pid,deleted),
514 KEY t3ver_oid (t3ver_oid,t3ver_wsid)
515 );
516
517 #
518 # Table structure for table 'sys_collection_entries'
519 #
520 CREATE TABLE sys_collection_entries (
521 uid int(11) NOT NULL auto_increment,
522 uid_local int(11) DEFAULT '0' NOT NULL,
523 uid_foreign int(11) DEFAULT '0' NOT NULL,
524 tablenames varchar(30) DEFAULT '' NOT NULL,
525 sorting int(11) DEFAULT '0' NOT NULL,
526
527 KEY uid_local (uid_local),
528 KEY uid_foreign (uid_foreign),
529 PRIMARY KEY (uid)
530 );
531
532 #
533 # Table structure for table 'sys_history'
534 #
535 CREATE TABLE sys_history (
536 uid int(11) unsigned NOT NULL auto_increment,
537 pid int(11) unsigned DEFAULT '0' NOT NULL,
538 sys_log_uid int(11) DEFAULT '0' NOT NULL,
539 history_data mediumtext,
540 fieldlist text,
541 recuid int(11) DEFAULT '0' NOT NULL,
542 tablename varchar(255) DEFAULT '' NOT NULL,
543 tstamp int(11) DEFAULT '0' NOT NULL,
544 history_files mediumtext,
545 snapshot int(11) DEFAULT '0' NOT NULL,
546 PRIMARY KEY (uid),
547 KEY parent (pid),
548 KEY recordident_1 (tablename,recuid),
549 KEY recordident_2 (tablename,tstamp),
550 KEY sys_log_uid (sys_log_uid)
551 ) ENGINE=InnoDB;
552
553 #
554 # Table structure for table 'sys_lockedrecords'
555 #
556 CREATE TABLE sys_lockedrecords (
557 uid int(11) unsigned NOT NULL auto_increment,
558 userid int(11) unsigned DEFAULT '0' NOT NULL,
559 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
560 record_table varchar(255) DEFAULT '' NOT NULL,
561 record_uid int(11) DEFAULT '0' NOT NULL,
562 record_pid int(11) DEFAULT '0' NOT NULL,
563 username varchar(50) DEFAULT '' NOT NULL,
564 feuserid int(11) unsigned DEFAULT '0' NOT NULL,
565 PRIMARY KEY (uid),
566 KEY event (userid,tstamp)
567 );
568
569 #
570 # Table structure for table 'sys_refindex'
571 #
572 CREATE TABLE sys_refindex (
573 hash varchar(32) DEFAULT '' NOT NULL,
574 tablename varchar(255) DEFAULT '' NOT NULL,
575 recuid int(11) DEFAULT '0' NOT NULL,
576 field varchar(40) DEFAULT '' NOT NULL,
577 flexpointer varchar(255) DEFAULT '' NOT NULL,
578 softref_key varchar(30) DEFAULT '' NOT NULL,
579 softref_id varchar(40) DEFAULT '' NOT NULL,
580 sorting int(11) DEFAULT '0' NOT NULL,
581 deleted tinyint(1) DEFAULT '0' NOT NULL,
582 ref_table varchar(255) DEFAULT '' NOT NULL,
583 ref_uid int(11) DEFAULT '0' NOT NULL,
584 ref_string varchar(200) DEFAULT '' NOT NULL,
585
586 PRIMARY KEY (hash),
587 KEY lookup_rec (tablename,recuid),
588 KEY lookup_uid (ref_table,ref_uid),
589 KEY lookup_string (ref_string)
590 );
591
592 #
593 # Table structure for table 'sys_log'
594 #
595 CREATE TABLE sys_log (
596 uid int(11) unsigned NOT NULL auto_increment,
597 pid int(11) unsigned DEFAULT '0' NOT NULL,
598 userid int(11) unsigned DEFAULT '0' NOT NULL,
599 action tinyint(4) unsigned DEFAULT '0' NOT NULL,
600 recuid int(11) unsigned DEFAULT '0' NOT NULL,
601 tablename varchar(255) DEFAULT '' NOT NULL,
602 recpid int(11) DEFAULT '0' NOT NULL,
603 error tinyint(4) unsigned DEFAULT '0' NOT NULL,
604 details text NOT NULL,
605 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
606 type tinyint(3) unsigned DEFAULT '0' NOT NULL,
607 details_nr tinyint(3) unsigned DEFAULT '0' NOT NULL,
608 IP varchar(39) DEFAULT '' NOT NULL,
609 log_data text,
610 event_pid int(11) DEFAULT '-1' NOT NULL,
611 workspace int(11) DEFAULT '0' NOT NULL,
612 NEWid varchar(20) DEFAULT '' NOT NULL,
613 request_id varchar(13) DEFAULT '' NOT NULL,
614 time_micro float DEFAULT '0' NOT NULL,
615 component varchar(255) DEFAULT '' NOT NULL,
616 level tinyint(1) unsigned DEFAULT '0' NOT NULL,
617 message text,
618 data text,
619 PRIMARY KEY (uid),
620 KEY parent (pid),
621 KEY event (userid,event_pid),
622 KEY recuidIdx (recuid,uid),
623 KEY user_auth (type,action,tstamp),
624 KEY request (request_id)
625 ) ENGINE=InnoDB;
626
627 #
628 # Table structure for table 'sys_language'
629 #
630 CREATE TABLE sys_language (
631 uid int(11) unsigned NOT NULL auto_increment,
632 pid int(11) unsigned DEFAULT '0' NOT NULL,
633 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
634 hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
635 title varchar(80) DEFAULT '' NOT NULL,
636 flag varchar(20) DEFAULT '' NOT NULL,
637 static_lang_isocode int(11) unsigned DEFAULT '0' NOT NULL,
638 PRIMARY KEY (uid),
639 KEY parent (pid)
640 );
641
642 #
643 # Table structure for table 'sys_category'
644 #
645 CREATE TABLE sys_category (
646 uid int(11) NOT NULL auto_increment,
647 pid int(11) DEFAULT '0' NOT NULL,
648 tstamp int(11) DEFAULT '0' NOT NULL,
649 crdate int(11) DEFAULT '0' NOT NULL,
650 cruser_id int(11) DEFAULT '0' NOT NULL,
651 deleted tinyint(4) DEFAULT '0' NOT NULL,
652 hidden tinyint(4) DEFAULT '0' NOT NULL,
653 starttime int(11) unsigned DEFAULT '0' NOT NULL,
654 endtime int(11) unsigned DEFAULT '0' NOT NULL,
655
656 t3ver_oid int(11) DEFAULT '0' NOT NULL,
657 t3ver_id int(11) DEFAULT '0' NOT NULL,
658 t3ver_wsid int(11) DEFAULT '0' NOT NULL,
659 t3ver_label varchar(30) DEFAULT '' NOT NULL,
660 t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
661 t3ver_stage int(11) DEFAULT '0' NOT NULL,
662 t3ver_count int(11) DEFAULT '0' NOT NULL,
663 t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
664 t3ver_move_id int(11) DEFAULT '0' NOT NULL,
665 t3_origuid int(11) DEFAULT '0' NOT NULL,
666 sorting int(11) unsigned DEFAULT '0' NOT NULL,
667
668 sys_language_uid int(11) DEFAULT '0' NOT NULL,
669 l10n_parent int(11) DEFAULT '0' NOT NULL,
670 l10n_diffsource mediumblob NOT NULL,
671
672 title tinytext NOT NULL,
673 description text NOT NULL,
674 parent int(11) DEFAULT '0' NOT NULL,
675 items int(11) DEFAULT '0' NOT NULL,
676
677 PRIMARY KEY (uid),
678 KEY parent (pid),
679 KEY t3ver_oid (t3ver_oid,t3ver_wsid)
680 );
681
682 #
683 # Table structure for table 'sys_category_record_mm'
684 #
685 CREATE TABLE sys_category_record_mm (
686 uid_local int(11) DEFAULT '0' NOT NULL,
687 uid_foreign int(11) DEFAULT '0' NOT NULL,
688 tablenames varchar(255) DEFAULT '' NOT NULL,
689 fieldname varchar(255) DEFAULT '' NOT NULL,
690 sorting int(11) DEFAULT '0' NOT NULL,
691 sorting_foreign int(11) DEFAULT '0' NOT NULL,
692
693 KEY uid_local_foreign (uid_local,uid_foreign),
694 KEY uid_foreign_tablenames (uid_foreign,tablenames)
695 );