Various; 3 new access control modes; CSH changes; moving sys_language to core (see...
[Packages/TYPO3.CMS.git] / t3lib / stddb / tables.sql
1 # MySQL dump 6.4
2 #
3 # Host: localhost Database: t3_testsite
4 #--------------------------------------------------------
5 # Server version 3.22.27
6 #
7 # TYPO3 CVS ID: $Id$
8
9 #
10 # Table structure for table 'be_groups'
11 #
12 CREATE TABLE be_groups (
13 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
14 pid int(11) unsigned DEFAULT '0' NOT NULL,
15 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
16 title varchar(20) DEFAULT '' NOT NULL,
17 non_exclude_fields blob NOT NULL,
18 explicit_allowdeny blob NOT NULL,
19 allowed_languages tinyblob NOT NULL,
20 custom_options blob NOT NULL,
21 db_mountpoints varchar(40) DEFAULT '' NOT NULL,
22 pagetypes_select tinyblob NOT NULL,
23 tables_select blob NOT NULL,
24 tables_modify blob NOT NULL,
25 crdate int(11) unsigned DEFAULT '0' NOT NULL,
26 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
27 groupMods tinyblob NOT NULL,
28 file_mountpoints varchar(40) DEFAULT '' NOT NULL,
29 hidden tinyint(3) unsigned DEFAULT '0' NOT NULL,
30 inc_access_lists tinyint(3) unsigned DEFAULT '0' NOT NULL,
31 description text NOT NULL,
32 lockToDomain varchar(50) DEFAULT '' NOT NULL,
33 deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
34 TSconfig blob NOT NULL,
35 subgroup tinyblob NOT NULL,
36 hide_in_lists tinyint(4) DEFAULT '0' NOT NULL,
37 PRIMARY KEY (uid),
38 KEY parent (pid)
39 );
40
41 #
42 # Table structure for table 'be_sessions'
43 #
44 CREATE TABLE be_sessions (
45 ses_id varchar(32) DEFAULT '' NOT NULL,
46 ses_name varchar(32) DEFAULT '' NOT NULL,
47 ses_iplock varchar(15) DEFAULT '' NOT NULL,
48 ses_hashlock int(11) DEFAULT '0' NOT NULL,
49 ses_userid int(11) unsigned DEFAULT '0' NOT NULL,
50 ses_tstamp int(11) unsigned DEFAULT '0' NOT NULL,
51 ses_data mediumblob NOT NULL,
52 PRIMARY KEY (ses_id,ses_name)
53 );
54
55 #
56 # Table structure for table 'be_users'
57 #
58 CREATE TABLE be_users (
59 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
60 pid int(11) unsigned DEFAULT '0' NOT NULL,
61 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
62 username varchar(20) DEFAULT '' NOT NULL,
63 password varchar(40) DEFAULT '' NOT NULL,
64 admin tinyint(4) unsigned DEFAULT '0' NOT NULL,
65 usergroup tinyblob NOT NULL,
66 disable tinyint(4) unsigned DEFAULT '0' NOT NULL,
67 starttime int(11) unsigned DEFAULT '0' NOT NULL,
68 endtime int(11) unsigned DEFAULT '0' NOT NULL,
69 lang char(2) DEFAULT '' NOT NULL,
70 email varchar(80) DEFAULT '' NOT NULL,
71 db_mountpoints varchar(40) DEFAULT '' NOT NULL,
72 options tinyint(4) unsigned DEFAULT '0' NOT NULL,
73 crdate int(11) unsigned DEFAULT '0' NOT NULL,
74 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
75 realName varchar(80) DEFAULT '' NOT NULL,
76 userMods tinyblob NOT NULL,
77 allowed_languages tinyblob NOT NULL,
78 uc blob NOT NULL,
79 file_mountpoints varchar(40) DEFAULT '' NOT NULL,
80 fileoper_perms tinyint(4) DEFAULT '0' NOT NULL,
81 lockToDomain varchar(50) DEFAULT '' NOT NULL,
82 disableIPlock tinyint(3) unsigned DEFAULT '0' NOT NULL,
83 deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
84 TSconfig blob NOT NULL,
85 lastlogin int(10) unsigned DEFAULT '0' NOT NULL,
86 createdByAction int(11) DEFAULT '0' NOT NULL,
87 usergroup_cached_list tinytext NOT NULL,
88 PRIMARY KEY (uid),
89 KEY parent (pid),
90 KEY username (username)
91 );
92
93 #
94 # Table structure for table 'cache_hash'
95 #
96 CREATE TABLE cache_hash (
97 hash varchar(32) DEFAULT '' NOT NULL,
98 content mediumblob NOT NULL,
99 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
100 ident varchar(20) DEFAULT '' NOT NULL,
101 PRIMARY KEY (hash)
102 );
103
104 #
105 # Table structure for table 'cache_imagesizes'
106 #
107 CREATE TABLE cache_imagesizes (
108 md5hash varchar(32) DEFAULT '' NOT NULL,
109 md5filename varchar(32) DEFAULT '' NOT NULL,
110 tstamp int(11) DEFAULT '0' NOT NULL,
111 filename tinytext NOT NULL,
112 imagewidth mediumint(11) unsigned DEFAULT '0' NOT NULL,
113 imageheight mediumint(11) unsigned DEFAULT '0' NOT NULL,
114 PRIMARY KEY (md5filename)
115 );
116
117 #
118 # Table structure for table 'pages'
119 #
120 CREATE TABLE pages (
121 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
122 pid int(11) unsigned DEFAULT '0' NOT NULL,
123 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
124 sorting int(11) unsigned DEFAULT '0' NOT NULL,
125 deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
126 perms_userid int(11) unsigned DEFAULT '0' NOT NULL,
127 perms_groupid int(11) unsigned DEFAULT '0' NOT NULL,
128 perms_user tinyint(4) unsigned DEFAULT '0' NOT NULL,
129 perms_group tinyint(4) unsigned DEFAULT '0' NOT NULL,
130 perms_everybody tinyint(4) unsigned DEFAULT '0' NOT NULL,
131 crdate int(11) unsigned DEFAULT '0' NOT NULL,
132 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
133 title tinytext NOT NULL,
134 doktype tinyint(3) unsigned DEFAULT '0' NOT NULL,
135 TSconfig blob NOT NULL,
136 storage_pid int(11) DEFAULT '0' NOT NULL,
137 is_siteroot tinyint(4) DEFAULT '0' NOT NULL,
138 php_tree_stop tinyint(4) DEFAULT '0' NOT NULL,
139 tx_impexp_origuid int(11) DEFAULT '0' NOT NULL,
140 PRIMARY KEY (uid),
141 KEY parent (pid),
142 );
143
144 #
145 # Table structure for table 'sys_be_shortcuts'
146 #
147 CREATE TABLE sys_be_shortcuts (
148 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
149 userid int(11) unsigned DEFAULT '0' NOT NULL,
150 module_name tinytext NOT NULL,
151 url text NOT NULL,
152 description tinytext NOT NULL,
153 sorting int(11) DEFAULT '0' NOT NULL,
154 sc_group tinyint(4) DEFAULT '0' NOT NULL,
155 PRIMARY KEY (uid),
156 KEY event (userid)
157 );
158
159 #
160 # Table structure for table 'sys_filemounts'
161 #
162 CREATE TABLE sys_filemounts (
163 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
164 pid int(11) unsigned DEFAULT '0' NOT NULL,
165 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
166 title varchar(30) DEFAULT '' NOT NULL,
167 path varchar(120) DEFAULT '' NOT NULL,
168 base tinyint(4) unsigned DEFAULT '0' NOT NULL,
169 hidden tinyint(3) unsigned DEFAULT '0' NOT NULL,
170 deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
171 PRIMARY KEY (uid),
172 KEY parent (pid)
173 );
174
175 #
176 # Table structure for table 'sys_history'
177 #
178 CREATE TABLE sys_history (
179 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
180 sys_log_uid int(11) DEFAULT '0' NOT NULL,
181 history_data mediumblob NOT NULL,
182 fieldlist blob NOT NULL,
183 recuid int(11) DEFAULT '0' NOT NULL,
184 tablename varchar(40) DEFAULT '' NOT NULL,
185 tstamp int(11) DEFAULT '0' NOT NULL,
186 history_files mediumblob NOT NULL,
187 snapshot tinyint(4) DEFAULT '0' NOT NULL,
188 PRIMARY KEY (uid),
189 KEY recordident (tablename,recuid),
190 KEY sys_log_uid (sys_log_uid)
191 );
192
193 #
194 # Table structure for table 'sys_lockedrecords'
195 #
196 CREATE TABLE sys_lockedrecords (
197 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
198 userid int(11) unsigned DEFAULT '0' NOT NULL,
199 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
200 record_table varchar(40) DEFAULT '' NOT NULL,
201 record_uid int(11) DEFAULT '0' NOT NULL,
202 record_pid int(11) DEFAULT '0' NOT NULL,
203 username varchar(20) DEFAULT '' NOT NULL,
204 PRIMARY KEY (uid),
205 KEY event (userid,tstamp)
206 );
207
208 #
209 # Table structure for table 'sys_log'
210 #
211 CREATE TABLE sys_log (
212 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
213 userid int(11) unsigned DEFAULT '0' NOT NULL,
214 action tinyint(4) unsigned DEFAULT '0' NOT NULL,
215 recuid int(11) unsigned DEFAULT '0' NOT NULL,
216 tablename varchar(40) DEFAULT '' NOT NULL,
217 recpid int(11) DEFAULT '0' NOT NULL,
218 error tinyint(4) unsigned DEFAULT '0' NOT NULL,
219 details tinytext NOT NULL,
220 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
221 type tinyint(3) unsigned DEFAULT '0' NOT NULL,
222 details_nr tinyint(3) unsigned DEFAULT '0' NOT NULL,
223 IP varchar(15) DEFAULT '' NOT NULL,
224 log_data tinyblob NOT NULL,
225 event_pid int(11) DEFAULT '-1' NOT NULL,
226 NEWid varchar(20) DEFAULT '' NOT NULL,
227 PRIMARY KEY (uid),
228 KEY event (userid,event_pid)
229 );
230
231 #
232 # Table structure for table 'sys_language'
233 #
234 CREATE TABLE sys_language (
235 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
236 pid int(11) unsigned DEFAULT '0' NOT NULL,
237 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
238 hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
239 title varchar(80) DEFAULT '' NOT NULL,
240 flag varchar(20) DEFAULT '' NOT NULL,
241 static_lang_isocode int(11) unsigned DEFAULT '0' NOT NULL,
242 PRIMARY KEY (uid),
243 KEY parent (pid)
244 );
245