* Added some file icons from Ben and Emile
[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 db_mountpoints varchar(40) DEFAULT '' NOT NULL,
19 pagetypes_select tinyblob NOT NULL,
20 tables_select blob NOT NULL,
21 tables_modify blob NOT NULL,
22 crdate int(11) unsigned DEFAULT '0' NOT NULL,
23 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
24 groupMods tinyblob NOT NULL,
25 file_mountpoints varchar(40) DEFAULT '' NOT NULL,
26 hidden tinyint(3) unsigned DEFAULT '0' NOT NULL,
27 inc_access_lists tinyint(3) unsigned DEFAULT '0' NOT NULL,
28 description text NOT NULL,
29 lockToDomain varchar(50) DEFAULT '' NOT NULL,
30 deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
31 TSconfig blob NOT NULL,
32 subgroup tinyblob NOT NULL,
33 hide_in_lists tinyint(4) DEFAULT '0' 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(15) DEFAULT '' NOT NULL,
45 ses_userid int(11) unsigned DEFAULT '0' NOT NULL,
46 ses_tstamp int(11) unsigned DEFAULT '0' NOT NULL,
47 ses_data blob NOT NULL,
48 PRIMARY KEY (ses_id,ses_name)
49 );
50
51 #
52 # Table structure for table 'be_users'
53 #
54 CREATE TABLE be_users (
55 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
56 pid int(11) unsigned DEFAULT '0' NOT NULL,
57 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
58 username varchar(20) DEFAULT '' NOT NULL,
59 password varchar(40) DEFAULT '' NOT NULL,
60 admin tinyint(4) unsigned DEFAULT '0' NOT NULL,
61 usergroup tinyblob NOT NULL,
62 disable tinyint(4) unsigned DEFAULT '0' NOT NULL,
63 starttime int(11) unsigned DEFAULT '0' NOT NULL,
64 endtime int(11) unsigned DEFAULT '0' NOT NULL,
65 lang char(2) DEFAULT '' NOT NULL,
66 email varchar(80) DEFAULT '' NOT NULL,
67 db_mountpoints varchar(40) DEFAULT '' NOT NULL,
68 options tinyint(4) unsigned DEFAULT '0' NOT NULL,
69 crdate int(11) unsigned DEFAULT '0' NOT NULL,
70 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
71 realName varchar(80) DEFAULT '' NOT NULL,
72 userMods tinyblob NOT NULL,
73 uc blob NOT NULL,
74 file_mountpoints varchar(40) DEFAULT '' NOT NULL,
75 fileoper_perms tinyint(4) DEFAULT '0' NOT NULL,
76 lockToDomain varchar(50) DEFAULT '' NOT NULL,
77 disableIPlock tinyint(3) unsigned DEFAULT '0' NOT NULL,
78 deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
79 TSconfig blob NOT NULL,
80 lastlogin int(10) unsigned DEFAULT '0' NOT NULL,
81 createdByAction int(11) DEFAULT '0' NOT NULL,
82 usergroup_cached_list tinytext NOT NULL,
83 PRIMARY KEY (uid),
84 KEY parent (pid),
85 KEY username (username)
86 );
87
88 #
89 # Table structure for table 'cache_hash'
90 #
91 CREATE TABLE cache_hash (
92 hash varchar(32) DEFAULT '' NOT NULL,
93 content mediumblob NOT NULL,
94 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
95 ident varchar(20) DEFAULT '' NOT NULL,
96 PRIMARY KEY (hash)
97 );
98
99 #
100 # Table structure for table 'pages'
101 #
102 CREATE TABLE pages (
103 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
104 pid int(11) unsigned DEFAULT '0' NOT NULL,
105 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
106 sorting int(11) unsigned DEFAULT '0' NOT NULL,
107 deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
108 perms_userid int(11) unsigned DEFAULT '0' NOT NULL,
109 perms_groupid int(11) unsigned DEFAULT '0' NOT NULL,
110 perms_user tinyint(4) unsigned DEFAULT '0' NOT NULL,
111 perms_group tinyint(4) unsigned DEFAULT '0' NOT NULL,
112 perms_everybody tinyint(4) unsigned DEFAULT '0' NOT NULL,
113 crdate int(11) unsigned DEFAULT '0' NOT NULL,
114 cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
115 title tinytext NOT NULL,
116 doktype tinyint(3) unsigned DEFAULT '0' NOT NULL,
117 TSconfig blob NOT NULL,
118 storage_pid int(11) DEFAULT '0' NOT NULL,
119 is_siteroot tinyint(4) DEFAULT '0' NOT NULL,
120 php_tree_stop tinyint(4) DEFAULT '0' NOT NULL,
121 tx_impexp_origuid int(11) DEFAULT '0' NOT NULL,
122 PRIMARY KEY (uid),
123 KEY parent (pid),
124 );
125
126 #
127 # Table structure for table 'sys_be_shortcuts'
128 #
129 CREATE TABLE sys_be_shortcuts (
130 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
131 userid int(11) unsigned DEFAULT '0' NOT NULL,
132 module_name tinytext NOT NULL,
133 url text NOT NULL,
134 description tinytext NOT NULL,
135 sorting int(11) DEFAULT '0' NOT NULL,
136 sc_group tinyint(4) DEFAULT '0' NOT NULL,
137 PRIMARY KEY (uid),
138 KEY event (userid)
139 );
140
141 #
142 # Table structure for table 'sys_filemounts'
143 #
144 CREATE TABLE sys_filemounts (
145 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
146 pid int(11) unsigned DEFAULT '0' NOT NULL,
147 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
148 title varchar(30) DEFAULT '' NOT NULL,
149 path varchar(120) DEFAULT '' NOT NULL,
150 base tinyint(4) unsigned DEFAULT '0' NOT NULL,
151 hidden tinyint(3) unsigned DEFAULT '0' NOT NULL,
152 deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
153 PRIMARY KEY (uid),
154 KEY parent (pid)
155 );
156
157 #
158 # Table structure for table 'sys_history'
159 #
160 CREATE TABLE sys_history (
161 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
162 sys_log_uid int(11) DEFAULT '0' NOT NULL,
163 history_data mediumblob NOT NULL,
164 fieldlist blob NOT NULL,
165 recuid int(11) DEFAULT '0' NOT NULL,
166 tablename varchar(40) DEFAULT '' NOT NULL,
167 tstamp int(11) DEFAULT '0' NOT NULL,
168 history_files mediumblob NOT NULL,
169 snapshot tinyint(4) DEFAULT '0' NOT NULL,
170 PRIMARY KEY (uid),
171 KEY recordident (tablename,recuid),
172 KEY sys_log_uid (sys_log_uid)
173 );
174
175 #
176 # Table structure for table 'sys_lockedrecords'
177 #
178 CREATE TABLE sys_lockedrecords (
179 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
180 userid int(11) unsigned DEFAULT '0' NOT NULL,
181 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
182 record_table varchar(40) DEFAULT '' NOT NULL,
183 record_uid int(11) DEFAULT '0' NOT NULL,
184 record_pid int(11) DEFAULT '0' NOT NULL,
185 username varchar(20) DEFAULT '' NOT NULL,
186 PRIMARY KEY (uid),
187 KEY event (userid,tstamp)
188 );
189
190 #
191 # Table structure for table 'sys_log'
192 #
193 CREATE TABLE sys_log (
194 uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
195 userid int(11) unsigned DEFAULT '0' NOT NULL,
196 action tinyint(4) unsigned DEFAULT '0' NOT NULL,
197 recuid int(11) unsigned DEFAULT '0' NOT NULL,
198 tablename varchar(40) DEFAULT '' NOT NULL,
199 recpid int(11) DEFAULT '0' NOT NULL,
200 error tinyint(4) unsigned DEFAULT '0' NOT NULL,
201 details tinytext NOT NULL,
202 tstamp int(11) unsigned DEFAULT '0' NOT NULL,
203 type tinyint(3) unsigned DEFAULT '0' NOT NULL,
204 details_nr tinyint(3) unsigned DEFAULT '0' NOT NULL,
205 IP varchar(15) DEFAULT '' NOT NULL,
206 log_data tinyblob NOT NULL,
207 event_pid int(11) DEFAULT '-1' NOT NULL,
208 NEWid varchar(20) DEFAULT '' NOT NULL,
209 PRIMARY KEY (uid),
210 KEY event (userid,event_pid)
211 );
212
213
214
215
216
217