-
Notifications
You must be signed in to change notification settings - Fork 16
/
ext_tables.sql
223 lines (194 loc) · 9.61 KB
/
ext_tables.sql
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
CREATE TABLE tt_content (
tx_h5p_content int(11) unsigned DEFAULT '0',
tx_h5p_display_options tinyint(3) unsigned NOT NULL DEFAULT '0'
);
CREATE TABLE tx_h5p_domain_model_cachedasset (
uid int(11) unsigned NOT NULL auto_increment,
pid int(11) unsigned NOT NULL DEFAULT '0',
tstamp int(11) unsigned NOT NULL DEFAULT '0',
crdate int(11) unsigned NOT NULL DEFAULT '0',
cruser_id int(11) unsigned NOT NULL DEFAULT '0',
deleted tinyint(4) unsigned NOT NULL DEFAULT '0',
hidden tinyint(4) unsigned NOT NULL DEFAULT '0',
resource VARCHAR(40) DEFAULT NULL,
hash_key VARCHAR(255) NOT NULL DEFAULT '',
type VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY (uid),
KEY hashkey (hash_key)
);
CREATE TABLE tx_h5p_domain_model_content (
uid int(11) unsigned NOT NULL auto_increment,
pid int(11) unsigned NOT NULL DEFAULT '0',
package int(11) unsigned DEFAULT '0',
tstamp int(11) unsigned NOT NULL DEFAULT '0',
crdate int(11) unsigned NOT NULL DEFAULT '0',
cruser_id int(11) unsigned NOT NULL DEFAULT '0',
deleted tinyint(4) unsigned NOT NULL DEFAULT '0',
hidden tinyint(4) unsigned NOT NULL DEFAULT '0',
created_at int(11) unsigned NOT NULL DEFAULT '0',
updated_at int(11) unsigned NOT NULL DEFAULT '0',
user_id int(10) unsigned NOT NULL default '0',
title VARCHAR(255) NOT NULL default '',
library int(10) unsigned NOT NULL default '0',
parameters longtext NOT NULL,
filtered longtext NOT NULL,
slug VARCHAR(127) NOT NULL default '',
embed_type VARCHAR(127) NOT NULL default '',
disable int(10) unsigned NOT NULL DEFAULT '0',
content_type VARCHAR(127) NOT NULL default '',
author VARCHAR(127) NOT NULL default '',
license VARCHAR(7) NOT NULL default '',
authors text,
source text,
year_from int(5) unsigned NOT NULL DEFAULT '0',
year_to int(5) unsigned NOT NULL DEFAULT '0',
license_version VARCHAR(255) NOT NULL default '',
license_extras text,
author_comments text,
changes text,
keywords text,
description text,
PRIMARY KEY (uid),
KEY title (title)
);
CREATE TABLE tx_h5p_domain_model_contentdependency (
uid int(11) unsigned NOT NULL auto_increment,
pid int(11) unsigned NOT NULL DEFAULT '0',
package int(11) unsigned DEFAULT '0',
tstamp int(11) unsigned NOT NULL DEFAULT '0',
crdate int(11) unsigned NOT NULL DEFAULT '0',
cruser_id int(11) unsigned NOT NULL DEFAULT '0',
deleted tinyint(4) unsigned NOT NULL DEFAULT '0',
hidden tinyint(4) unsigned NOT NULL DEFAULT '0',
content int(10) unsigned NOT NULL DEFAULT '0',
library int(10) unsigned NOT NULL DEFAULT '0',
dependency_type VARCHAR(255) NOT NULL DEFAULT '',
weight int(11) NOT NULL DEFAULT '0',
drop_css tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
KEY content_library (content,library)
);
CREATE TABLE tx_h5p_domain_model_contentresult (
uid int(11) unsigned NOT NULL auto_increment,
pid int(11) unsigned NOT NULL DEFAULT '0',
tstamp int(11) unsigned NOT NULL DEFAULT '0',
crdate int(11) unsigned NOT NULL DEFAULT '0',
cruser_id int(11) unsigned NOT NULL DEFAULT '0',
deleted tinyint(4) unsigned NOT NULL DEFAULT '0',
hidden tinyint(4) unsigned NOT NULL DEFAULT '0',
content int(11) unsigned NOT NULL DEFAULT '0',
user int(11) unsigned NOT NULL DEFAULT '0',
score int(11) unsigned NOT NULL DEFAULT '0',
max_score int(11) unsigned NOT NULL DEFAULT '0',
opened int(11) unsigned NOT NULL DEFAULT '0',
finished int(11) unsigned NOT NULL DEFAULT '0',
time int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
KEY content (content),
KEY contentAndUser (content,user),
KEY user (user)
);
CREATE TABLE tx_h5p_domain_model_configsetting (
uid int(11) unsigned NOT NULL auto_increment,
pid int(11) unsigned NOT NULL DEFAULT '0',
tstamp int(11) unsigned NOT NULL DEFAULT '0',
crdate int(11) unsigned NOT NULL DEFAULT '0',
cruser_id int(11) unsigned NOT NULL DEFAULT '0',
deleted tinyint(4) unsigned NOT NULL DEFAULT '0',
hidden tinyint(4) unsigned NOT NULL DEFAULT '0',
config_key VARCHAR(255) NOT NULL DEFAULT '',
config_value longtext NOT NULL,
PRIMARY KEY (uid),
KEY config_key (config_key)
);
CREATE TABLE tx_h5p_domain_model_contenttypecacheentry (
uid int(11) unsigned NOT NULL auto_increment,
pid int(11) unsigned NOT NULL DEFAULT '0',
tstamp int(11) unsigned NOT NULL DEFAULT '0',
crdate int(11) unsigned NOT NULL DEFAULT '0',
cruser_id int(11) unsigned NOT NULL DEFAULT '0',
deleted tinyint(4) unsigned NOT NULL DEFAULT '0',
hidden tinyint(4) unsigned NOT NULL DEFAULT '0',
machine_name VARCHAR(255) NOT NULL default '',
major_version int(11) unsigned NOT NULL DEFAULT '0',
minor_version int(11) unsigned NOT NULL DEFAULT '0',
patch_version int(11) unsigned NOT NULL DEFAULT '0',
h5p_major_version int(11) unsigned NOT NULL DEFAULT '0',
h5p_minor_version int(11) unsigned NOT NULL DEFAULT '0',
title VARCHAR(255) NOT NULL default '',
summary longtext NOT NULL,
description longtext NOT NULL,
icon longtext NOT NULL,
created_at int(11) unsigned NOT NULL DEFAULT '0',
updated_at int(11) unsigned NOT NULL DEFAULT '0',
is_recommended tinyint(1) unsigned NOT NULL DEFAULT '0',
popularity int(11) unsigned NOT NULL DEFAULT '0',
screenshots longtext,
license longtext,
example longtext NOT NULL,
tutorial longtext,
keywords longtext,
categories longtext,
owner longtext,
PRIMARY KEY (uid)
);
CREATE TABLE tx_h5p_domain_model_library (
uid int(11) unsigned NOT NULL auto_increment,
pid int(11) unsigned NOT NULL DEFAULT '0',
tstamp int(11) unsigned NOT NULL DEFAULT '0',
crdate int(11) unsigned NOT NULL DEFAULT '0',
cruser_id int(11) unsigned NOT NULL DEFAULT '0',
deleted tinyint(4) unsigned NOT NULL DEFAULT '0',
hidden tinyint(4) unsigned NOT NULL DEFAULT '0',
add_to longtext,
created_at int(11) unsigned NOT NULL DEFAULT '0',
updated_at int(11) unsigned NOT NULL DEFAULT '0',
machine_name VARCHAR(127) NOT NULL default '',
title VARCHAR(255) NOT NULL default '',
major_version int(10) unsigned NOT NULL default '0',
minor_version int(10) unsigned NOT NULL default '0',
patch_version int(10) unsigned NOT NULL default '0',
runnable int(10) unsigned NOT NULL default '0',
restricted int(10) unsigned NOT NULL DEFAULT '0',
fullscreen int(10) unsigned NOT NULL default '0',
embed_types VARCHAR(255) NOT NULL default '',
preloaded_js text,
preloaded_css text,
drop_library_css text,
drop_library_js text,
semantics text NOT NULL,
tutorial_url VARCHAR(1023) NOT NULL default '',
has_icon int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
KEY name_version (machine_name,major_version,minor_version,patch_version),
KEY runnable (runnable)
);
CREATE TABLE tx_h5p_domain_model_librarydependency (
uid int(11) unsigned NOT NULL auto_increment,
pid int(11) unsigned NOT NULL DEFAULT '0',
tstamp int(11) unsigned NOT NULL DEFAULT '0',
crdate int(11) unsigned NOT NULL DEFAULT '0',
cruser_id int(11) unsigned NOT NULL DEFAULT '0',
deleted tinyint(4) unsigned NOT NULL DEFAULT '0',
hidden tinyint(4) unsigned NOT NULL DEFAULT '0',
library int(10) unsigned NOT NULL DEFAULT '0',
required_library int(10) unsigned NOT NULL DEFAULT '0',
dependency_type VARCHAR(255) NOT NULL default '',
PRIMARY KEY (uid),
KEY library (library),
KEY requiredlibrary (required_library)
);
CREATE TABLE tx_h5p_domain_model_librarytranslation (
uid int(11) unsigned NOT NULL auto_increment,
pid int(11) unsigned NOT NULL DEFAULT '0',
tstamp int(11) unsigned NOT NULL DEFAULT '0',
crdate int(11) unsigned NOT NULL DEFAULT '0',
cruser_id int(11) unsigned NOT NULL DEFAULT '0',
deleted tinyint(4) unsigned NOT NULL DEFAULT '0',
hidden tinyint(4) unsigned NOT NULL DEFAULT '0',
library int(10) unsigned NOT NULL DEFAULT '0',
language_code VARCHAR(10) NOT NULL DEFAULT '',
translation longtext NOT NULL,
PRIMARY KEY (uid),
KEY languagecode (language_code)
);