File: otrs-schema-post.maxdb.sql

package info (click to toggle)
otrs2 2.2.7-2lenny3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,444 kB
  • ctags: 5,808
  • sloc: perl: 129,825; xml: 16,139; sql: 11,400; sh: 1,198; makefile: 31; php: 16
file content (315 lines) | stat: -rw-r--r-- 13,111 bytes parent folder | download
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
// ----------------------------------------------------------
//  driver: maxdb, generated: 2007-06-12 16:52:00
// ----------------------------------------------------------
ALTER TABLE valid ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE valid ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_priority ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_priority ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_type ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_type ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_type ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE ticket_lock_type ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_lock_type ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_lock_type ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE system_user ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE system_user ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE system_user ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE user_preferences ADD FOREIGN KEY (user_id) REFERENCES system_user(id)
//
ALTER TABLE groups ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE groups ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE groups ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE group_user ADD FOREIGN KEY (group_id) REFERENCES groups(id)
//
ALTER TABLE group_user ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE group_user ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE group_user ADD FOREIGN KEY (user_id) REFERENCES system_user(id)
//
ALTER TABLE group_role ADD FOREIGN KEY (role_id) REFERENCES roles(id)
//
ALTER TABLE group_role ADD FOREIGN KEY (group_id) REFERENCES groups(id)
//
ALTER TABLE group_role ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE group_role ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE group_customer_user ADD FOREIGN KEY (group_id) REFERENCES groups(id)
//
ALTER TABLE group_customer_user ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE group_customer_user ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE roles ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE roles ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE roles ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE role_user ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE role_user ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE role_user ADD FOREIGN KEY (user_id) REFERENCES system_user(id)
//
ALTER TABLE personal_queues ADD FOREIGN KEY (queue_id) REFERENCES queue(id)
//
ALTER TABLE personal_queues ADD FOREIGN KEY (user_id) REFERENCES system_user(id)
//
ALTER TABLE theme ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE theme ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE theme ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE ticket_state ADD FOREIGN KEY (type_id) REFERENCES ticket_state_type(id)
//
ALTER TABLE ticket_state ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_state ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_state ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE ticket_state_type ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_state_type ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE salutation ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE salutation ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE salutation ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE signature ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE signature ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE signature ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE system_address ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE system_address ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE system_address ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE follow_up_possible ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE follow_up_possible ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE follow_up_possible ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE queue ADD FOREIGN KEY (salutation_id) REFERENCES salutation(id)
//
ALTER TABLE queue ADD FOREIGN KEY (signature_id) REFERENCES signature(id)
//
ALTER TABLE queue ADD FOREIGN KEY (group_id) REFERENCES groups(id)
//
ALTER TABLE queue ADD FOREIGN KEY (follow_up_id) REFERENCES follow_up_possible(id)
//
ALTER TABLE queue ADD FOREIGN KEY (system_address_id) REFERENCES system_address(id)
//
ALTER TABLE queue ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE queue ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE queue ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (ticket_lock_id) REFERENCES ticket_lock_type(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (ticket_priority_id) REFERENCES ticket_priority(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (user_id) REFERENCES system_user(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (responsible_user_id) REFERENCES system_user(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (service_id) REFERENCES service(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (sla_id) REFERENCES sla(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (ticket_state_id) REFERENCES ticket_state(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (queue_id) REFERENCES queue(id)
//
ALTER TABLE ticket ADD FOREIGN KEY (type_id) REFERENCES ticket_type(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (priority_id) REFERENCES ticket_priority(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (owner_id) REFERENCES system_user(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (state_id) REFERENCES ticket_state(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (history_type_id) REFERENCES ticket_history_type(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (article_id) REFERENCES article(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (queue_id) REFERENCES queue(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (type_id) REFERENCES ticket_type(id)
//
ALTER TABLE ticket_history ADD FOREIGN KEY (ticket_id) REFERENCES ticket(id)
//
ALTER TABLE ticket_history_type ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_history_type ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE ticket_history_type ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE article_type ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE article_type ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE article_type ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE article_sender_type ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE article_sender_type ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE article_sender_type ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE article_flag ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE article ADD FOREIGN KEY (article_sender_type_id) REFERENCES article_sender_type(id)
//
ALTER TABLE article ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE article ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE article ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE article ADD FOREIGN KEY (article_type_id) REFERENCES article_type(id)
//
ALTER TABLE article ADD FOREIGN KEY (ticket_id) REFERENCES ticket(id)
//
ALTER TABLE article_plain ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE article_plain ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE article_plain ADD FOREIGN KEY (article_id) REFERENCES article(id)
//
ALTER TABLE article_attachment ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE article_attachment ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE article_attachment ADD FOREIGN KEY (article_id) REFERENCES article(id)
//
ALTER TABLE standard_response ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE standard_response ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE standard_response ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE queue_standard_response ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE queue_standard_response ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE queue_standard_response ADD FOREIGN KEY (standard_response_id) REFERENCES standard_response(id)
//
ALTER TABLE queue_standard_response ADD FOREIGN KEY (queue_id) REFERENCES queue(id)
//
ALTER TABLE standard_attachment ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE standard_attachment ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE standard_attachment ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE standard_response_attachment ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE standard_response_attachment ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE standard_response_attachment ADD FOREIGN KEY (standard_response_id) REFERENCES standard_response(id)
//
ALTER TABLE standard_response_attachment ADD FOREIGN KEY (standard_attachment_id) REFERENCES standard_attachment(id)
//
ALTER TABLE auto_response_type ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE auto_response_type ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE auto_response_type ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE auto_response ADD FOREIGN KEY (type_id) REFERENCES auto_response_type(id)
//
ALTER TABLE auto_response ADD FOREIGN KEY (system_address_id) REFERENCES system_address(id)
//
ALTER TABLE auto_response ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE auto_response ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE auto_response ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE queue_auto_response ADD FOREIGN KEY (auto_response_id) REFERENCES auto_response(id)
//
ALTER TABLE queue_auto_response ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE queue_auto_response ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE queue_auto_response ADD FOREIGN KEY (queue_id) REFERENCES queue(id)
//
ALTER TABLE time_accounting ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE time_accounting ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE time_accounting ADD FOREIGN KEY (article_id) REFERENCES article(id)
//
ALTER TABLE time_accounting ADD FOREIGN KEY (ticket_id) REFERENCES ticket(id)
//
ALTER TABLE service ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE service ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE service_customer_user ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE sla ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE sla ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE sla ADD FOREIGN KEY (service_id) REFERENCES service(id)
//
ALTER TABLE customer_user ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE customer_user ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE customer_user ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE pop3_account ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE pop3_account ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE pop3_account ADD FOREIGN KEY (valid_id) REFERENCES valid(id)
//
ALTER TABLE notifications ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE notifications ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//
ALTER TABLE package_repository ADD FOREIGN KEY (create_by) REFERENCES system_user(id)
//
ALTER TABLE package_repository ADD FOREIGN KEY (change_by) REFERENCES system_user(id)
//