forked from TYPO3-CMS/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.sql
More file actions
412 lines (374 loc) · 11.8 KB
/
ext_tables.sql
File metadata and controls
412 lines (374 loc) · 11.8 KB
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
#
# Table structure for table 'be_groups'
#
CREATE TABLE be_groups (
title varchar(50) DEFAULT '' NOT NULL,
non_exclude_fields text,
explicit_allowdeny text,
allowed_languages varchar(255) DEFAULT '' NOT NULL,
custom_options text,
db_mountpoints text,
pagetypes_select text,
tables_select text,
tables_modify text,
groupMods text,
availableWidgets text,
mfa_providers text,
file_mountpoints text,
file_permissions text,
TSconfig text,
subgroup text,
workspace_perms tinyint(3) DEFAULT '1' NOT NULL
);
#
# Table structure for table 'be_sessions'
#
CREATE TABLE be_sessions (
ses_id varchar(190) DEFAULT '' NOT NULL,
ses_iplock varchar(39) DEFAULT '' NOT NULL,
ses_userid int(11) unsigned DEFAULT '0' NOT NULL,
ses_tstamp int(11) unsigned DEFAULT '0' NOT NULL,
ses_data longblob,
PRIMARY KEY (ses_id),
KEY ses_tstamp (ses_tstamp)
);
#
# Table structure for table 'be_users'
#
CREATE TABLE be_users (
username varchar(50) DEFAULT '' NOT NULL,
avatar int(11) unsigned NOT NULL default '0',
password varchar(100) DEFAULT '' NOT NULL,
admin tinyint(4) unsigned DEFAULT '0' NOT NULL,
usergroup text,
lang varchar(10) DEFAULT 'default' NOT NULL,
email varchar(255) DEFAULT '' NOT NULL,
db_mountpoints text,
options tinyint(4) unsigned DEFAULT '0' NOT NULL,
realName varchar(80) DEFAULT '' NOT NULL,
userMods text,
allowed_languages varchar(255) DEFAULT '' NOT NULL,
uc mediumblob,
file_mountpoints text,
file_permissions text,
workspace_perms tinyint(3) DEFAULT '1' NOT NULL,
TSconfig text,
lastlogin int(10) unsigned DEFAULT '0' NOT NULL,
workspace_id int(11) DEFAULT '0' NOT NULL,
mfa mediumblob,
KEY username (username)
);
#
# Table structure for table 'pages'
#
CREATE TABLE pages (
perms_userid int(11) unsigned DEFAULT '0' NOT NULL,
perms_groupid int(11) unsigned DEFAULT '0' NOT NULL,
perms_user tinyint(4) unsigned DEFAULT '0' NOT NULL,
perms_group tinyint(4) unsigned DEFAULT '0' NOT NULL,
perms_everybody tinyint(4) unsigned DEFAULT '0' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
slug varchar(2048),
doktype int(11) unsigned DEFAULT '0' NOT NULL,
TSconfig text,
is_siteroot tinyint(4) DEFAULT '0' NOT NULL,
php_tree_stop tinyint(4) DEFAULT '0' NOT NULL,
url varchar(255) DEFAULT '' NOT NULL,
shortcut int(10) unsigned DEFAULT '0' NOT NULL,
shortcut_mode int(10) unsigned DEFAULT '0' NOT NULL,
subtitle varchar(255) DEFAULT '' NOT NULL,
layout int(11) unsigned DEFAULT '0' NOT NULL,
target varchar(80) DEFAULT '' NOT NULL,
media int(11) unsigned DEFAULT '0' NOT NULL,
lastUpdated int(10) unsigned DEFAULT '0' NOT NULL,
keywords text,
cache_timeout int(10) unsigned DEFAULT '0' NOT NULL,
cache_tags varchar(255) DEFAULT '' NOT NULL,
newUntil int(10) unsigned DEFAULT '0' NOT NULL,
description text,
no_search tinyint(3) unsigned DEFAULT '0' NOT NULL,
SYS_LASTCHANGED int(10) unsigned DEFAULT '0' NOT NULL,
abstract text,
module varchar(255) DEFAULT '' NOT NULL,
extendToSubpages tinyint(3) unsigned DEFAULT '0' NOT NULL,
author varchar(255) DEFAULT '' NOT NULL,
author_email varchar(255) DEFAULT '' NOT NULL,
nav_title varchar(255) DEFAULT '' NOT NULL,
nav_hide tinyint(4) DEFAULT '0' NOT NULL,
content_from_pid int(10) unsigned DEFAULT '0' NOT NULL,
mount_pid int(10) unsigned DEFAULT '0' NOT NULL,
mount_pid_ol tinyint(4) DEFAULT '0' NOT NULL,
l18n_cfg tinyint(4) DEFAULT '0' NOT NULL,
fe_login_mode tinyint(4) DEFAULT '0' NOT NULL,
backend_layout varchar(64) DEFAULT '' NOT NULL,
backend_layout_next_level varchar(64) DEFAULT '' NOT NULL,
tsconfig_includes text,
KEY determineSiteRoot (is_siteroot),
KEY language_identifier (l10n_parent,sys_language_uid),
KEY slug (slug(127))
);
#
# Table structure for table 'sys_registry'
#
CREATE TABLE sys_registry (
uid int(11) unsigned NOT NULL auto_increment,
entry_namespace varchar(128) DEFAULT '' NOT NULL,
entry_key varchar(128) DEFAULT '' NOT NULL,
entry_value mediumblob,
PRIMARY KEY (uid),
UNIQUE KEY entry_identifier (entry_namespace,entry_key)
);
#
# Table structure for table 'sys_be_shortcuts'
#
CREATE TABLE sys_be_shortcuts (
uid int(11) unsigned NOT NULL auto_increment,
userid int(11) unsigned DEFAULT '0' NOT NULL,
route varchar(255) DEFAULT '' NOT NULL,
arguments text,
description varchar(255) DEFAULT '' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
sc_group tinyint(4) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY event (userid)
);
#
# Table structure for table 'sys_news'
#
CREATE TABLE sys_news (
title varchar(255) DEFAULT '' NOT NULL,
content mediumtext
);
#
# Table structure for table 'sys_filemounts'
#
CREATE TABLE sys_filemounts (
title varchar(255) DEFAULT '' NOT NULL,
path varchar(255) DEFAULT '' NOT NULL,
base int(11) unsigned DEFAULT '0' NOT NULL,
read_only tinyint(1) unsigned DEFAULT '0' NOT NULL
);
#
# Table structure for table 'sys_file_storage'
#
CREATE TABLE sys_file_storage (
name varchar(255) DEFAULT '' NOT NULL,
driver tinytext,
configuration text,
is_default tinyint(4) DEFAULT '0' NOT NULL,
is_browsable tinyint(4) DEFAULT '0' NOT NULL,
is_public tinyint(4) DEFAULT '0' NOT NULL,
is_writable tinyint(4) DEFAULT '0' NOT NULL,
is_online tinyint(4) DEFAULT '1' NOT NULL,
auto_extract_metadata tinyint(4) DEFAULT '1' NOT NULL,
processingfolder tinytext
);
#
# Table structure for table 'sys_file'
#
CREATE TABLE sys_file (
last_indexed int(11) DEFAULT '0' NOT NULL,
# management information
missing tinyint(4) DEFAULT '0' NOT NULL,
storage int(11) DEFAULT '0' NOT NULL,
type varchar(10) DEFAULT '' NOT NULL,
metadata int(11) DEFAULT '0' NOT NULL,
# file info data
identifier text,
identifier_hash char(40) DEFAULT '' NOT NULL,
folder_hash char(40) DEFAULT '' NOT NULL,
extension varchar(255) DEFAULT '' NOT NULL,
mime_type varchar(255) DEFAULT '' NOT NULL,
name tinytext,
sha1 char(40) DEFAULT '' NOT NULL,
size bigint(20) unsigned DEFAULT '0' NOT NULL,
creation_date int(11) DEFAULT '0' NOT NULL,
modification_date int(11) DEFAULT '0' NOT NULL,
KEY sel01 (storage,identifier_hash),
KEY folder (storage,folder_hash),
KEY tstamp (tstamp),
KEY lastindex (last_indexed),
KEY sha1 (sha1)
);
#
# Table structure for table 'sys_file_metadata'
#
CREATE TABLE sys_file_metadata (
file int(11) DEFAULT '0' NOT NULL,
title tinytext,
width int(11) DEFAULT '0' NOT NULL,
height int(11) DEFAULT '0' NOT NULL,
description text,
alternative text,
KEY file (file),
KEY fal_filelist (l10n_parent,sys_language_uid)
);
#
# Table structure for table 'sys_file_processedfile'.
# which is a "temporary" file, like an image preview
# This table does not have a TCA representation, as it is only written
# to using direct SQL queries in the code
#
CREATE TABLE sys_file_processedfile (
uid int(11) NOT NULL auto_increment,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
storage int(11) DEFAULT '0' NOT NULL,
original int(11) DEFAULT '0' NOT NULL,
identifier varchar(512) DEFAULT '' NOT NULL,
name tinytext,
processing_url text,
configuration blob,
configurationsha1 char(40) DEFAULT '' NOT NULL,
originalfilesha1 char(40) DEFAULT '' NOT NULL,
task_type varchar(200) DEFAULT '' NOT NULL,
checksum char(32) DEFAULT '' NOT NULL,
width int(11) DEFAULT '0',
height int(11) DEFAULT '0',
PRIMARY KEY (uid),
KEY combined_1 (original,task_type(100),configurationsha1),
KEY identifier (storage,identifier(180))
);
#
# Table structure for table 'sys_file_reference'
# which is one usage of a file with overloaded metadata
#
CREATE TABLE sys_file_reference (
# Reference fields (basically same as MM table)
uid_local int(11) DEFAULT '0' NOT NULL,
uid_foreign int(11) DEFAULT '0' NOT NULL,
tablenames varchar(64) DEFAULT '' NOT NULL,
fieldname varchar(64) DEFAULT '' NOT NULL,
sorting_foreign int(11) DEFAULT '0' NOT NULL,
table_local varchar(64) DEFAULT '' NOT NULL,
# Local usage overlay fields
title tinytext,
description text,
alternative text,
link varchar(1024) DEFAULT '' NOT NULL,
crop varchar(4000) DEFAULT '' NOT NULL,
autoplay tinyint(4) DEFAULT '0' NOT NULL,
KEY tablenames_fieldname (tablenames(32),fieldname(12)),
KEY deleted (deleted),
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign),
KEY combined_1 (l10n_parent, t3ver_oid, t3ver_wsid, t3ver_state, deleted)
);
#
# Table structure for table 'sys_file_collection'
#
CREATE TABLE sys_file_collection (
title tinytext,
type varchar(30) DEFAULT 'static' NOT NULL,
# for type=static
files int(11) DEFAULT '0' NOT NULL,
# for type=folder:
storage int(11) DEFAULT '0' NOT NULL,
folder text,
recursive tinyint(4) DEFAULT '0' NOT NULL,
);
#
# Table structure for table 'sys_history'
#
CREATE TABLE sys_history (
uid int(11) unsigned NOT NULL auto_increment,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
actiontype tinyint(3) DEFAULT '0' NOT NULL,
usertype varchar(2) DEFAULT 'BE' NOT NULL,
userid int(11) unsigned,
originaluserid int(11) unsigned,
recuid int(11) DEFAULT '0' NOT NULL,
tablename varchar(255) DEFAULT '' NOT NULL,
history_data mediumtext,
workspace int(11) DEFAULT '0',
correlation_id varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (uid),
KEY recordident_1 (tablename(100),recuid),
KEY recordident_2 (tablename(100),tstamp)
) ENGINE=InnoDB;
#
# Table structure for table 'sys_lockedrecords'
#
CREATE TABLE sys_lockedrecords (
uid int(11) unsigned NOT NULL auto_increment,
userid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
record_table varchar(255) DEFAULT '' NOT NULL,
record_uid int(11) DEFAULT '0' NOT NULL,
record_pid int(11) DEFAULT '0' NOT NULL,
username varchar(50) DEFAULT '' NOT NULL,
feuserid int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY event (userid,tstamp)
);
#
# Table structure for table 'sys_refindex'
#
CREATE TABLE sys_refindex (
hash varchar(32) DEFAULT '' NOT NULL,
tablename varchar(255) DEFAULT '' NOT NULL,
recuid int(11) DEFAULT '0' NOT NULL,
field varchar(64) DEFAULT '' NOT NULL,
flexpointer varchar(255) DEFAULT '' NOT NULL,
softref_key varchar(30) DEFAULT '' NOT NULL,
softref_id varchar(40) DEFAULT '' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
workspace int(11) DEFAULT '0' NOT NULL,
ref_table varchar(255) DEFAULT '' NOT NULL,
ref_uid int(11) DEFAULT '0' NOT NULL,
ref_string varchar(1024) DEFAULT '' NOT NULL,
PRIMARY KEY (hash),
KEY lookup_rec (tablename(100),recuid),
KEY lookup_uid (ref_table(100),ref_uid),
KEY lookup_string (ref_string(191))
);
#
# Table structure for table 'sys_log'
#
CREATE TABLE sys_log (
userid int(11) unsigned DEFAULT '0' NOT NULL,
action tinyint(4) unsigned DEFAULT '0' NOT NULL,
recuid int(11) unsigned DEFAULT '0' NOT NULL,
tablename varchar(255) DEFAULT '' NOT NULL,
recpid int(11) DEFAULT '0' NOT NULL,
error tinyint(4) unsigned DEFAULT '0' NOT NULL,
details text,
type tinyint(3) unsigned DEFAULT '0' NOT NULL,
channel varchar(20) DEFAULT 'default' NOT NULL,
details_nr tinyint(3) DEFAULT '0' NOT NULL,
IP varchar(39) DEFAULT '' NOT NULL,
log_data text,
event_pid int(11) DEFAULT '-1' NOT NULL,
workspace int(11) DEFAULT '0' NOT NULL,
NEWid varchar(30) DEFAULT '' NOT NULL,
request_id varchar(13) DEFAULT '' NOT NULL,
time_micro float DEFAULT '0' NOT NULL,
component varchar(255) DEFAULT '' NOT NULL,
level varchar(10) DEFAULT 'info' NOT NULL,
message text,
data text,
KEY event (userid,event_pid),
KEY recuidIdx (recuid),
KEY user_auth (type,action,tstamp),
KEY request (request_id),
KEY combined_1 (tstamp, type, userid),
KEY errorcount (tstamp,error)
) ENGINE=InnoDB;
#
# Table structure for table 'sys_language'
# This table is deprecated and will be removed in TYPO3 v12
#
CREATE TABLE sys_language (
title varchar(80) DEFAULT '' NOT NULL,
flag varchar(20) DEFAULT '' NOT NULL,
language_isocode varchar(2) DEFAULT '' NOT NULL
);
#
# Table structure for table 'sys_category'
#
CREATE TABLE sys_category (
title tinytext NOT NULL,
items int(11) DEFAULT '0' NOT NULL,
KEY category_parent (parent),
KEY category_list (pid,deleted,sys_language_uid)
);