forked from georgringer/news
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.sql
187 lines (169 loc) · 5.18 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
#
# Table structure for table 'tx_news_domain_model_news'
#
CREATE TABLE tx_news_domain_model_news (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
editlock tinyint(4) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumtext,
l10n_source int(11) DEFAULT '0' NOT NULL,
deleted tinyint(4) DEFAULT '0' NOT NULL,
hidden tinyint(4) DEFAULT '0' NOT NULL,
starttime int(11) DEFAULT '0' NOT NULL,
endtime int(11) DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
fe_group varchar(100) DEFAULT '' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
teaser text,
bodytext mediumtext,
datetime bigint(20) DEFAULT '0' NOT NULL,
archive bigint(20) DEFAULT '0' NOT NULL,
author tinytext,
author_email tinytext,
categories int(11) DEFAULT '0' NOT NULL,
related int(11) DEFAULT '0' NOT NULL,
related_from int(11) DEFAULT '0' NOT NULL,
related_files tinytext,
fal_related_files int(11) unsigned DEFAULT '0',
related_links int(11) DEFAULT '0' NOT NULL,
type varchar(100) NOT NULL DEFAULT '0',
keywords text,
description text,
tags int(11) DEFAULT '0' NOT NULL,
media text,
fal_media int(11) unsigned DEFAULT '0',
internalurl text,
externalurl text,
istopnews int(11) DEFAULT '0' NOT NULL,
content_elements int(11) DEFAULT '0' NOT NULL,
path_segment varchar(2048),
alternative_title tinytext,
notes text,
sitemap_changefreq varchar(10) DEFAULT '' NOT NULL,
sitemap_priority decimal(2,1) DEFAULT '0.5' NOT NULL,
import_id varchar(100) DEFAULT '' NOT NULL,
import_source varchar(100) DEFAULT '' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid),
KEY sys_language_uid_l10n_parent (sys_language_uid,l10n_parent),
KEY path_segment (path_segment(185), uid),
KEY import (import_id,import_source)
);
#
# Extend table structure of table 'sys_category'
#
CREATE TABLE sys_category (
fe_group varchar(100) DEFAULT '0' NOT NULL,
images int(11) unsigned DEFAULT '0',
single_pid int(11) unsigned DEFAULT '0' NOT NULL,
shortcut int(11) DEFAULT '0' NOT NULL,
import_id varchar(100) DEFAULT '' NOT NULL,
import_source varchar(100) DEFAULT '' NOT NULL,
seo_title varchar(255) NOT NULL DEFAULT '',
seo_description text,
seo_headline varchar(255) NOT NULL DEFAULT '',
seo_text text,
slug varchar(2048),
KEY import (import_id,import_source)
);
#
# Table structure for table 'tx_news_domain_model_news_ttcontent_mm'
#
#
CREATE TABLE tx_news_domain_model_news_ttcontent_mm (
uid_local int(11) DEFAULT '0' NOT NULL,
uid_foreign int(11) DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_news_domain_model_news_related_mm'
#
#
CREATE TABLE tx_news_domain_model_news_related_mm (
uid_local int(11) DEFAULT '0' NOT NULL,
uid_foreign int(11) DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
sorting_foreign int(11) DEFAULT '0' NOT NULL,
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_news_domain_model_link'
#
CREATE TABLE tx_news_domain_model_link (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumtext,
l10n_source int(11) DEFAULT '0' NOT NULL,
sorting int(10) DEFAULT '0' NOT NULL,
deleted tinyint(4) DEFAULT '0' NOT NULL,
hidden tinyint(4) DEFAULT '0' NOT NULL,
parent int(11) DEFAULT '0' NOT NULL,
title tinytext,
description text,
uri text,
PRIMARY KEY (uid),
KEY parent (pid),
KEY news (parent)
);
#
# Table structure for table 'tx_news_domain_model_tag'
#
CREATE TABLE tx_news_domain_model_tag (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
deleted tinyint(4) DEFAULT '0' NOT NULL,
hidden tinyint(4) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumtext,
l10n_source int(11) DEFAULT '0' NOT NULL,
title tinytext,
slug varchar(2048),
seo_title varchar(255) NOT NULL DEFAULT '',
seo_description text,
seo_headline varchar(255) NOT NULL DEFAULT '',
seo_text text,
notes text,
PRIMARY KEY (uid),
KEY parent (pid)
);
#
# Table structure for table 'tx_news_domain_model_news_tag_mm'
#
CREATE TABLE tx_news_domain_model_news_tag_mm (
uid_local int(11) DEFAULT '0' NOT NULL,
uid_foreign int(11) DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tt_content'
#
CREATE TABLE tt_content (
tx_news_related_news int(11) DEFAULT '0' NOT NULL,
KEY index_newscontent (tx_news_related_news)
);
#
# Table structure for table 'sys_file_reference'
#
CREATE TABLE sys_file_reference (
showinpreview tinyint(4) DEFAULT '0' NOT NULL
);