1 |
|
create table Address (
|
2 |
|
id integer not null,
|
3 |
|
created timestamp,
|
4 |
|
uuid varchar(36),
|
5 |
|
updated timestamp,
|
6 |
|
locality varchar(255),
|
7 |
|
location_errorradius integer,
|
8 |
|
location_latitude double,
|
9 |
|
location_longitude double,
|
10 |
|
pobox varchar(255),
|
11 |
|
postcode varchar(255),
|
12 |
|
region varchar(255),
|
13 |
|
street varchar(255),
|
14 |
|
createdby_id integer,
|
15 |
|
updatedby_id integer,
|
16 |
|
country_id integer,
|
17 |
|
location_referencesystem_id integer,
|
18 |
|
primary key (id),
|
19 |
|
unique (uuid)
|
20 |
|
);
|
21 |
|
|
22 |
|
create table Address_AUD (
|
23 |
|
id integer not null,
|
24 |
|
REV integer not null,
|
25 |
|
revtype tinyint,
|
26 |
|
created timestamp,
|
27 |
|
uuid varchar(36),
|
28 |
|
updated timestamp,
|
29 |
|
locality varchar(255),
|
30 |
|
location_errorradius integer,
|
31 |
|
location_latitude double,
|
32 |
|
location_longitude double,
|
33 |
|
pobox varchar(255),
|
34 |
|
postcode varchar(255),
|
35 |
|
region varchar(255),
|
36 |
|
street varchar(255),
|
37 |
|
createdby_id integer,
|
38 |
|
updatedby_id integer,
|
39 |
|
country_id integer,
|
40 |
|
location_referencesystem_id integer,
|
41 |
|
primary key (id, REV)
|
42 |
|
);
|
43 |
|
|
44 |
|
create table AgentBase (
|
45 |
|
DTYPE varchar(31) not null,
|
46 |
|
id integer not null,
|
47 |
|
created timestamp,
|
48 |
|
uuid varchar(36),
|
49 |
|
updated timestamp,
|
50 |
|
lsid_authority varchar(255),
|
51 |
|
lsid_lsid varchar(255),
|
52 |
|
lsid_namespace varchar(255),
|
53 |
|
lsid_object varchar(255),
|
54 |
|
lsid_revision varchar(255),
|
55 |
|
protectedtitlecache bit not null,
|
56 |
|
titleCache varchar(255),
|
57 |
|
code varchar(255),
|
58 |
|
name varchar(255),
|
59 |
|
nomenclaturaltitle varchar(255),
|
60 |
|
firstname varchar(255),
|
61 |
|
lastname varchar(255),
|
62 |
|
lifespan_end varchar(255),
|
63 |
|
lifespan_freetext varchar(255),
|
64 |
|
lifespan_start varchar(255),
|
65 |
|
prefix varchar(255),
|
66 |
|
suffix varchar(255),
|
67 |
|
protectednomenclaturaltitlecache bit,
|
68 |
|
createdby_id integer,
|
69 |
|
updatedby_id integer,
|
70 |
|
ispartof_id integer,
|
71 |
|
primary key (id),
|
72 |
|
unique (uuid)
|
73 |
|
);
|
74 |
|
|
75 |
|
create table AgentBase_AUD (
|
76 |
|
DTYPE varchar(31) not null,
|
77 |
|
id integer not null,
|
78 |
|
REV integer not null,
|
79 |
|
revtype tinyint,
|
80 |
|
created timestamp,
|
81 |
|
uuid varchar(36),
|
82 |
|
updated timestamp,
|
83 |
|
lsid_authority varchar(255),
|
84 |
|
lsid_lsid varchar(255),
|
85 |
|
lsid_namespace varchar(255),
|
86 |
|
lsid_object varchar(255),
|
87 |
|
lsid_revision varchar(255),
|
88 |
|
protectedtitlecache bit,
|
89 |
|
titleCache varchar(255),
|
90 |
|
createdby_id integer,
|
91 |
|
updatedby_id integer,
|
92 |
|
code varchar(255),
|
93 |
|
name varchar(255),
|
94 |
|
ispartof_id integer,
|
95 |
|
nomenclaturaltitle varchar(255),
|
96 |
|
firstname varchar(255),
|
97 |
|
lastname varchar(255),
|
98 |
|
lifespan_end varchar(255),
|
99 |
|
lifespan_freetext varchar(255),
|
100 |
|
lifespan_start varchar(255),
|
101 |
|
prefix varchar(255),
|
102 |
|
suffix varchar(255),
|
103 |
|
protectednomenclaturaltitlecache bit,
|
104 |
|
primary key (id, REV)
|
105 |
|
);
|
106 |
|
|
107 |
|
create table AgentBase_Address (
|
108 |
|
AgentBase_id integer not null,
|
109 |
|
contact_addresses_id integer not null,
|
110 |
|
primary key (AgentBase_id, contact_addresses_id),
|
111 |
|
unique (contact_addresses_id)
|
112 |
|
);
|
113 |
|
|
114 |
|
create table AgentBase_Address_AUD (
|
115 |
|
REV integer not null,
|
116 |
|
AgentBase_id integer not null,
|
117 |
|
contact_addresses_id integer not null,
|
118 |
|
revtype tinyint,
|
119 |
|
primary key (REV, AgentBase_id, contact_addresses_id)
|
120 |
|
);
|
121 |
|
|
122 |
|
create table AgentBase_AgentBase (
|
123 |
|
AgentBase_id integer not null,
|
124 |
|
teammembers_id integer not null,
|
125 |
|
sortIndex integer not null,
|
126 |
|
primary key (AgentBase_id, sortIndex)
|
127 |
|
);
|
128 |
|
|
129 |
|
create table AgentBase_AgentBase_AUD (
|
130 |
|
REV integer not null,
|
131 |
|
AgentBase_id integer not null,
|
132 |
|
teammembers_id integer not null,
|
133 |
|
sortIndex integer not null,
|
134 |
|
revtype tinyint,
|
135 |
|
primary key (REV, AgentBase_id, teammembers_id, sortIndex)
|
136 |
|
);
|
137 |
|
|
138 |
|
create table AgentBase_Annotation (
|
139 |
|
AgentBase_id integer not null,
|
140 |
|
annotations_id integer not null,
|
141 |
|
primary key (AgentBase_id, annotations_id),
|
142 |
|
unique (annotations_id)
|
143 |
|
);
|
144 |
|
|
145 |
|
create table AgentBase_Annotation_AUD (
|
146 |
|
REV integer not null,
|
147 |
|
AgentBase_id integer not null,
|
148 |
|
annotations_id integer not null,
|
149 |
|
revtype tinyint,
|
150 |
|
primary key (REV, AgentBase_id, annotations_id)
|
151 |
|
);
|
152 |
|
|
153 |
|
create table AgentBase_Credit (
|
154 |
|
AgentBase_id integer not null,
|
155 |
|
credits_id integer not null,
|
156 |
|
sortIndex integer not null,
|
157 |
|
primary key (AgentBase_id, sortIndex),
|
158 |
|
unique (credits_id)
|
159 |
|
);
|
160 |
|
|
161 |
|
create table AgentBase_Credit_AUD (
|
162 |
|
REV integer not null,
|
163 |
|
AgentBase_id integer not null,
|
164 |
|
credits_id integer not null,
|
165 |
|
sortIndex integer not null,
|
166 |
|
revtype tinyint,
|
167 |
|
primary key (REV, AgentBase_id, credits_id, sortIndex)
|
168 |
|
);
|
169 |
|
|
170 |
|
create table AgentBase_DefinedTermBase (
|
171 |
|
AgentBase_id integer not null,
|
172 |
|
types_id integer not null,
|
173 |
|
primary key (AgentBase_id, types_id)
|
174 |
|
);
|
175 |
|
|
176 |
|
create table AgentBase_DefinedTermBase_AUD (
|
177 |
|
REV integer not null,
|
178 |
|
AgentBase_id integer not null,
|
179 |
|
types_id integer not null,
|
180 |
|
revtype tinyint,
|
181 |
|
primary key (REV, AgentBase_id, types_id)
|
182 |
|
);
|
183 |
|
|
184 |
|
create table AgentBase_Extension (
|
185 |
|
AgentBase_id integer not null,
|
186 |
|
extensions_id integer not null,
|
187 |
|
primary key (AgentBase_id, extensions_id),
|
188 |
|
unique (extensions_id)
|
189 |
|
);
|
190 |
|
|
191 |
|
create table AgentBase_Extension_AUD (
|
192 |
|
REV integer not null,
|
193 |
|
AgentBase_id integer not null,
|
194 |
|
extensions_id integer not null,
|
195 |
|
revtype tinyint,
|
196 |
|
primary key (REV, AgentBase_id, extensions_id)
|
197 |
|
);
|
198 |
|
|
199 |
|
create table AgentBase_Marker (
|
200 |
|
AgentBase_id integer not null,
|
201 |
|
markers_id integer not null,
|
202 |
|
primary key (AgentBase_id, markers_id),
|
203 |
|
unique (markers_id)
|
204 |
|
);
|
205 |
|
|
206 |
|
create table AgentBase_Marker_AUD (
|
207 |
|
REV integer not null,
|
208 |
|
AgentBase_id integer not null,
|
209 |
|
markers_id integer not null,
|
210 |
|
revtype tinyint,
|
211 |
|
primary key (REV, AgentBase_id, markers_id)
|
212 |
|
);
|
213 |
|
|
214 |
|
create table AgentBase_Media (
|
215 |
|
AgentBase_id integer not null,
|
216 |
|
media_id integer not null,
|
217 |
|
primary key (AgentBase_id, media_id)
|
218 |
|
);
|
219 |
|
|
220 |
|
create table AgentBase_Media_AUD (
|
221 |
|
REV integer not null,
|
222 |
|
AgentBase_id integer not null,
|
223 |
|
media_id integer not null,
|
224 |
|
revtype tinyint,
|
225 |
|
primary key (REV, AgentBase_id, media_id)
|
226 |
|
);
|
227 |
|
|
228 |
|
create table AgentBase_OriginalSourceBase (
|
229 |
|
AgentBase_id integer not null,
|
230 |
|
sources_id integer not null,
|
231 |
|
primary key (AgentBase_id, sources_id),
|
232 |
|
unique (sources_id)
|
233 |
|
);
|
234 |
|
|
235 |
|
create table AgentBase_OriginalSourceBase_AUD (
|
236 |
|
REV integer not null,
|
237 |
|
AgentBase_id integer not null,
|
238 |
|
sources_id integer not null,
|
239 |
|
revtype tinyint,
|
240 |
|
primary key (REV, AgentBase_id, sources_id)
|
241 |
|
);
|
242 |
|
|
243 |
|
create table AgentBase_Rights (
|
244 |
|
AgentBase_id integer not null,
|
245 |
|
rights_id integer not null,
|
246 |
|
primary key (AgentBase_id, rights_id),
|
247 |
|
unique (rights_id)
|
248 |
|
);
|
249 |
|
|
250 |
|
create table AgentBase_Rights_AUD (
|
251 |
|
REV integer not null,
|
252 |
|
AgentBase_id integer not null,
|
253 |
|
rights_id integer not null,
|
254 |
|
revtype tinyint,
|
255 |
|
primary key (REV, AgentBase_id, rights_id)
|
256 |
|
);
|
257 |
|
|
258 |
|
create table AgentBase_contact_emailaddresses (
|
259 |
|
AgentBase_id integer not null,
|
260 |
|
contact_emailaddresses_element varchar(255)
|
261 |
|
);
|
262 |
|
|
263 |
|
create table AgentBase_contact_emailaddresses_AUD (
|
264 |
|
REV integer not null,
|
265 |
|
AgentBase_id integer not null,
|
266 |
|
contact_emailaddresses_element varchar(255) not null,
|
267 |
|
revtype tinyint,
|
268 |
|
primary key (REV, AgentBase_id, contact_emailaddresses_element)
|
269 |
|
);
|
270 |
|
|
271 |
|
create table AgentBase_contact_faxnumbers (
|
272 |
|
AgentBase_id integer not null,
|
273 |
|
contact_faxnumbers_element varchar(255)
|
274 |
|
);
|
275 |
|
|
276 |
|
create table AgentBase_contact_faxnumbers_AUD (
|
277 |
|
REV integer not null,
|
278 |
|
AgentBase_id integer not null,
|
279 |
|
contact_faxnumbers_element varchar(255) not null,
|
280 |
|
revtype tinyint,
|
281 |
|
primary key (REV, AgentBase_id, contact_faxnumbers_element)
|
282 |
|
);
|
283 |
|
|
284 |
|
create table AgentBase_contact_phonenumbers (
|
285 |
|
AgentBase_id integer not null,
|
286 |
|
contact_phonenumbers_element varchar(255)
|
287 |
|
);
|
288 |
|
|
289 |
|
create table AgentBase_contact_phonenumbers_AUD (
|
290 |
|
REV integer not null,
|
291 |
|
AgentBase_id integer not null,
|
292 |
|
contact_phonenumbers_element varchar(255) not null,
|
293 |
|
revtype tinyint,
|
294 |
|
primary key (REV, AgentBase_id, contact_phonenumbers_element)
|
295 |
|
);
|
296 |
|
|
297 |
|
create table AgentBase_contact_urls (
|
298 |
|
AgentBase_id integer not null,
|
299 |
|
contact_urls_element varchar(255)
|
300 |
|
);
|
301 |
|
|
302 |
|
create table AgentBase_contact_urls_AUD (
|
303 |
|
REV integer not null,
|
304 |
|
AgentBase_id integer not null,
|
305 |
|
contact_urls_element varchar(255) not null,
|
306 |
|
revtype tinyint,
|
307 |
|
primary key (REV, AgentBase_id, contact_urls_element)
|
308 |
|
);
|
309 |
|
|
310 |
|
create table Annotation (
|
311 |
|
id integer not null,
|
312 |
|
created timestamp,
|
313 |
|
uuid varchar(36),
|
314 |
|
updated timestamp,
|
315 |
|
text longvarchar,
|
316 |
|
annotatedObj_type varchar(255),
|
317 |
|
annotatedObj_id integer not null,
|
318 |
|
linkbackurl varbinary(255),
|
319 |
|
createdby_id integer,
|
320 |
|
updatedby_id integer,
|
321 |
|
language_id integer,
|
322 |
|
annotationtype_id integer,
|
323 |
|
commentator_id integer,
|
324 |
|
primary key (id),
|
325 |
|
unique (uuid)
|
326 |
|
);
|
327 |
|
|
328 |
|
create table Annotation_AUD (
|
329 |
|
id integer not null,
|
330 |
|
REV integer not null,
|
331 |
|
revtype tinyint,
|
332 |
|
created timestamp,
|
333 |
|
uuid varchar(36),
|
334 |
|
updated timestamp,
|
335 |
|
text longvarchar,
|
336 |
|
linkbackurl varbinary(255),
|
337 |
|
createdby_id integer,
|
338 |
|
updatedby_id integer,
|
339 |
|
language_id integer,
|
340 |
|
annotationtype_id integer,
|
341 |
|
commentator_id integer,
|
342 |
|
primary key (id, REV)
|
343 |
|
);
|
344 |
|
|
345 |
|
create table Annotation_Annotation (
|
346 |
|
Annotation_id integer not null,
|
347 |
|
annotations_id integer not null,
|
348 |
|
primary key (Annotation_id, annotations_id),
|
349 |
|
unique (annotations_id)
|
350 |
|
);
|
351 |
|
|
352 |
|
create table Annotation_Annotation_AUD (
|
353 |
|
REV integer not null,
|
354 |
|
Annotation_id integer not null,
|
355 |
|
annotations_id integer not null,
|
356 |
|
revtype tinyint,
|
357 |
|
primary key (REV, Annotation_id, annotations_id)
|
358 |
|
);
|
359 |
|
|
360 |
|
create table Annotation_Marker (
|
361 |
|
Annotation_id integer not null,
|
362 |
|
markers_id integer not null,
|
363 |
|
primary key (Annotation_id, markers_id),
|
364 |
|
unique (markers_id)
|
365 |
|
);
|
366 |
|
|
367 |
|
create table Annotation_Marker_AUD (
|
368 |
|
REV integer not null,
|
369 |
|
Annotation_id integer not null,
|
370 |
|
markers_id integer not null,
|
371 |
|
revtype tinyint,
|
372 |
|
primary key (REV, Annotation_id, markers_id)
|
373 |
|
);
|
374 |
|
|
375 |
|
create table AuditEvent (
|
376 |
|
revisionnumber integer generated by default as identity (start with 1),
|
377 |
|
date timestamp,
|
378 |
|
timestamp bigint,
|
379 |
|
uuid varchar(255),
|
380 |
|
primary key (revisionnumber)
|
381 |
|
);
|
382 |
|
|
383 |
|
create table CDM_VIEW (
|
384 |
|
id integer not null,
|
385 |
|
created timestamp,
|
386 |
|
uuid varchar(36),
|
387 |
|
description varchar(255),
|
388 |
|
name varchar(255),
|
389 |
|
createdby_id integer,
|
390 |
|
reference_id integer,
|
391 |
|
primary key (id),
|
392 |
|
unique (uuid)
|
393 |
|
);
|
394 |
|
|
395 |
|
create table CDM_VIEW_CDM_VIEW (
|
396 |
|
CDM_VIEW_id integer not null,
|
397 |
|
superviews_id integer not null,
|
398 |
|
primary key (CDM_VIEW_id, superviews_id),
|
399 |
|
unique (superviews_id)
|
400 |
|
);
|
401 |
|
|
402 |
|
|
403 |
|
create table Classification (
|
404 |
|
id integer not null,
|
405 |
|
created timestamp,
|
406 |
|
uuid varchar(36),
|
407 |
|
updated timestamp,
|
408 |
|
lsid_authority varchar(255),
|
409 |
|
lsid_lsid varchar(255),
|
410 |
|
lsid_namespace varchar(255),
|
411 |
|
lsid_object varchar(255),
|
412 |
|
lsid_revision varchar(255),
|
413 |
|
protectedtitlecache bit not null,
|
414 |
|
titleCache varchar(255),
|
415 |
|
microreference varchar(255),
|
416 |
|
createdby_id integer,
|
417 |
|
updatedby_id integer,
|
418 |
|
name_id integer,
|
419 |
|
reference_id integer,
|
420 |
|
primary key (id),
|
421 |
|
unique (uuid)
|
422 |
|
);
|
423 |
|
|
424 |
|
create table Classification_AUD (
|
425 |
|
id integer not null,
|
426 |
|
REV integer not null,
|
427 |
|
revtype tinyint,
|
428 |
|
created timestamp,
|
429 |
|
uuid varchar(36),
|
430 |
|
updated timestamp,
|
431 |
|
lsid_authority varchar(255),
|
432 |
|
lsid_lsid varchar(255),
|
433 |
|
lsid_namespace varchar(255),
|
434 |
|
lsid_object varchar(255),
|
435 |
|
lsid_revision varchar(255),
|
436 |
|
protectedtitlecache bit,
|
437 |
|
titleCache varchar(255),
|
438 |
|
microreference varchar(255),
|
439 |
|
createdby_id integer,
|
440 |
|
updatedby_id integer,
|
441 |
|
name_id integer,
|
442 |
|
reference_id integer,
|
443 |
|
primary key (id, REV)
|
444 |
|
);
|
445 |
|
|
446 |
|
create table Classification_Annotation (
|
447 |
|
Classification_id integer not null,
|
448 |
|
annotations_id integer not null,
|
449 |
|
primary key (Classification_id, annotations_id),
|
450 |
|
unique (annotations_id)
|
451 |
|
);
|
452 |
|
|
453 |
|
create table Classification_Annotation_AUD (
|
454 |
|
REV integer not null,
|
455 |
|
Classification_id integer not null,
|
456 |
|
annotations_id integer not null,
|
457 |
|
revtype tinyint,
|
458 |
|
primary key (REV, Classification_id, annotations_id)
|
459 |
|
);
|
460 |
|
|
461 |
|
create table Classification_Credit (
|
462 |
|
Classification_id integer not null,
|
463 |
|
credits_id integer not null,
|
464 |
|
sortIndex integer not null,
|
465 |
|
primary key (Classification_id, sortIndex),
|
466 |
|
unique (credits_id)
|
467 |
|
);
|
468 |
|
|
469 |
|
create table Classification_Credit_AUD (
|
470 |
|
REV integer not null,
|
471 |
|
Classification_id integer not null,
|
472 |
|
credits_id integer not null,
|
473 |
|
sortIndex integer not null,
|
474 |
|
revtype tinyint,
|
475 |
|
primary key (REV, Classification_id, credits_id, sortIndex)
|
476 |
|
);
|
477 |
|
|
478 |
|
create table Classification_Extension (
|
479 |
|
Classification_id integer not null,
|
480 |
|
extensions_id integer not null,
|
481 |
|
primary key (Classification_id, extensions_id),
|
482 |
|
unique (extensions_id)
|
483 |
|
);
|
484 |
|
|
485 |
|
create table Classification_Extension_AUD (
|
486 |
|
REV integer not null,
|
487 |
|
Classification_id integer not null,
|
488 |
|
extensions_id integer not null,
|
489 |
|
revtype tinyint,
|
490 |
|
primary key (REV, Classification_id, extensions_id)
|
491 |
|
);
|
492 |
|
|
493 |
|
create table Classification_Marker (
|
494 |
|
Classification_id integer not null,
|
495 |
|
markers_id integer not null,
|
496 |
|
primary key (Classification_id, markers_id),
|
497 |
|
unique (markers_id)
|
498 |
|
);
|
499 |
|
|
500 |
|
create table Classification_Marker_AUD (
|
501 |
|
REV integer not null,
|
502 |
|
Classification_id integer not null,
|
503 |
|
markers_id integer not null,
|
504 |
|
revtype tinyint,
|
505 |
|
primary key (REV, Classification_id, markers_id)
|
506 |
|
);
|
507 |
|
|
508 |
|
create table Classification_OriginalSourceBase (
|
509 |
|
Classification_id integer not null,
|
510 |
|
sources_id integer not null,
|
511 |
|
primary key (Classification_id, sources_id),
|
512 |
|
unique (sources_id)
|
513 |
|
);
|
514 |
|
|
515 |
|
create table Classification_OriginalSourceBase_AUD (
|
516 |
|
REV integer not null,
|
517 |
|
Classification_id integer not null,
|
518 |
|
sources_id integer not null,
|
519 |
|
revtype tinyint,
|
520 |
|
primary key (REV, Classification_id, sources_id)
|
521 |
|
);
|
522 |
|
|
523 |
|
create table Classification_Rights (
|
524 |
|
Classification_id integer not null,
|
525 |
|
rights_id integer not null,
|
526 |
|
primary key (Classification_id, rights_id),
|
527 |
|
unique (rights_id)
|
528 |
|
);
|
529 |
|
|
530 |
|
create table Classification_Rights_AUD (
|
531 |
|
REV integer not null,
|
532 |
|
Classification_id integer not null,
|
533 |
|
rights_id integer not null,
|
534 |
|
revtype tinyint,
|
535 |
|
primary key (REV, Classification_id, rights_id)
|
536 |
|
);
|
537 |
|
|
538 |
|
create table Classification_TaxonNode (
|
539 |
|
Classification_id integer not null,
|
540 |
|
rootnodes_id integer not null,
|
541 |
|
primary key (Classification_id, rootnodes_id),
|
542 |
|
unique (rootnodes_id)
|
543 |
|
);
|
544 |
|
|
545 |
|
create table Classification_TaxonNode_AUD (
|
546 |
|
REV integer not null,
|
547 |
|
Classification_id integer not null,
|
548 |
|
rootnodes_id integer not null,
|
549 |
|
revtype tinyint,
|
550 |
|
primary key (REV, Classification_id, rootnodes_id)
|
551 |
|
);
|
552 |
|
|
553 |
|
|
554 |
|
create table Collection (
|
555 |
|
id integer not null,
|
556 |
|
created timestamp,
|
557 |
|
uuid varchar(36),
|
558 |
|
updated timestamp,
|
559 |
|
lsid_authority varchar(255),
|
560 |
|
lsid_lsid varchar(255),
|
561 |
|
lsid_namespace varchar(255),
|
562 |
|
lsid_object varchar(255),
|
563 |
|
lsid_revision varchar(255),
|
564 |
|
protectedtitlecache bit not null,
|
565 |
|
titleCache varchar(255),
|
566 |
|
code varchar(255),
|
567 |
|
codestandard varchar(255),
|
568 |
|
name varchar(255),
|
569 |
|
townorlocation varchar(255),
|
570 |
|
createdby_id integer,
|
571 |
|
updatedby_id integer,
|
572 |
|
institute_id integer,
|
573 |
|
supercollection_id integer,
|
574 |
|
primary key (id),
|
575 |
|
unique (uuid)
|
576 |
|
);
|
577 |
|
|
578 |
|
create table Collection_AUD (
|
579 |
|
id integer not null,
|
580 |
|
REV integer not null,
|
581 |
|
revtype tinyint,
|
582 |
|
created timestamp,
|
583 |
|
uuid varchar(36),
|
584 |
|
updated timestamp,
|
585 |
|
lsid_authority varchar(255),
|
586 |
|
lsid_lsid varchar(255),
|
587 |
|
lsid_namespace varchar(255),
|
588 |
|
lsid_object varchar(255),
|
589 |
|
lsid_revision varchar(255),
|
590 |
|
protectedtitlecache bit,
|
591 |
|
titleCache varchar(255),
|
592 |
|
code varchar(255),
|
593 |
|
codestandard varchar(255),
|
594 |
|
name varchar(255),
|
595 |
|
townorlocation varchar(255),
|
596 |
|
createdby_id integer,
|
597 |
|
updatedby_id integer,
|
598 |
|
institute_id integer,
|
599 |
|
supercollection_id integer,
|
600 |
|
primary key (id, REV)
|
601 |
|
);
|
602 |
|
|
603 |
|
create table Collection_Annotation (
|
604 |
|
Collection_id integer not null,
|
605 |
|
annotations_id integer not null,
|
606 |
|
primary key (Collection_id, annotations_id),
|
607 |
|
unique (annotations_id)
|
608 |
|
);
|
609 |
|
|
610 |
|
create table Collection_Annotation_AUD (
|
611 |
|
REV integer not null,
|
612 |
|
Collection_id integer not null,
|
613 |
|
annotations_id integer not null,
|
614 |
|
revtype tinyint,
|
615 |
|
primary key (REV, Collection_id, annotations_id)
|
616 |
|
);
|
617 |
|
|
618 |
|
create table Collection_Credit (
|
619 |
|
Collection_id integer not null,
|
620 |
|
credits_id integer not null,
|
621 |
|
sortIndex integer not null,
|
622 |
|
primary key (Collection_id, sortIndex),
|
623 |
|
unique (credits_id)
|
624 |
|
);
|
625 |
|
|
626 |
|
create table Collection_Credit_AUD (
|
627 |
|
REV integer not null,
|
628 |
|
Collection_id integer not null,
|
629 |
|
credits_id integer not null,
|
630 |
|
sortIndex integer not null,
|
631 |
|
revtype tinyint,
|
632 |
|
primary key (REV, Collection_id, credits_id, sortIndex)
|
633 |
|
);
|
634 |
|
|
635 |
|
create table Collection_Extension (
|
636 |
|
Collection_id integer not null,
|
637 |
|
extensions_id integer not null,
|
638 |
|
primary key (Collection_id, extensions_id),
|
639 |
|
unique (extensions_id)
|
640 |
|
);
|
641 |
|
|
642 |
|
create table Collection_Extension_AUD (
|
643 |
|
REV integer not null,
|
644 |
|
Collection_id integer not null,
|
645 |
|
extensions_id integer not null,
|
646 |
|
revtype tinyint,
|
647 |
|
primary key (REV, Collection_id, extensions_id)
|
648 |
|
);
|
649 |
|
|
650 |
|
create table Collection_Marker (
|
651 |
|
Collection_id integer not null,
|
652 |
|
markers_id integer not null,
|
653 |
|
primary key (Collection_id, markers_id),
|
654 |
|
unique (markers_id)
|
655 |
|
);
|
656 |
|
|
657 |
|
create table Collection_Marker_AUD (
|
658 |
|
REV integer not null,
|
659 |
|
Collection_id integer not null,
|
660 |
|
markers_id integer not null,
|
661 |
|
revtype tinyint,
|
662 |
|
primary key (REV, Collection_id, markers_id)
|
663 |
|
);
|
664 |
|
|
665 |
|
create table Collection_Media (
|
666 |
|
Collection_id integer not null,
|
667 |
|
media_id integer not null,
|
668 |
|
primary key (Collection_id, media_id)
|
669 |
|
);
|
670 |
|
|
671 |
|
create table Collection_Media_AUD (
|
672 |
|
REV integer not null,
|
673 |
|
Collection_id integer not null,
|
674 |
|
media_id integer not null,
|
675 |
|
revtype tinyint,
|
676 |
|
primary key (REV, Collection_id, media_id)
|
677 |
|
);
|
678 |
|
|
679 |
|
create table Collection_OriginalSourceBase (
|
680 |
|
Collection_id integer not null,
|
681 |
|
sources_id integer not null,
|
682 |
|
primary key (Collection_id, sources_id),
|
683 |
|
unique (sources_id)
|
684 |
|
);
|
685 |
|
|
686 |
|
create table Collection_OriginalSourceBase_AUD (
|
687 |
|
REV integer not null,
|
688 |
|
Collection_id integer not null,
|
689 |
|
sources_id integer not null,
|
690 |
|
revtype tinyint,
|
691 |
|
primary key (REV, Collection_id, sources_id)
|
692 |
|
);
|
693 |
|
|
694 |
|
create table Collection_Rights (
|
695 |
|
Collection_id integer not null,
|
696 |
|
rights_id integer not null,
|
697 |
|
primary key (Collection_id, rights_id),
|
698 |
|
unique (rights_id)
|
699 |
|
);
|
700 |
|
|
701 |
|
create table Collection_Rights_AUD (
|
702 |
|
REV integer not null,
|
703 |
|
Collection_id integer not null,
|
704 |
|
rights_id integer not null,
|
705 |
|
revtype tinyint,
|
706 |
|
primary key (REV, Collection_id, rights_id)
|
707 |
|
);
|
708 |
|
|
709 |
|
create table Credit (
|
710 |
|
id integer not null,
|
711 |
|
created timestamp,
|
712 |
|
uuid varchar(36),
|
713 |
|
updated timestamp,
|
714 |
|
text longvarchar,
|
715 |
|
abbreviatedtext varchar(255),
|
716 |
|
createdby_id integer,
|
717 |
|
updatedby_id integer,
|
718 |
|
language_id integer,
|
719 |
|
agent_id integer,
|
720 |
|
primary key (id),
|
721 |
|
unique (uuid)
|
722 |
|
);
|
723 |
|
|
724 |
|
create table Credit_AUD (
|
725 |
|
id integer not null,
|
726 |
|
REV integer not null,
|
727 |
|
revtype tinyint,
|
728 |
|
created timestamp,
|
729 |
|
uuid varchar(36),
|
730 |
|
updated timestamp,
|
731 |
|
text longvarchar,
|
732 |
|
abbreviatedtext varchar(255),
|
733 |
|
createdby_id integer,
|
734 |
|
updatedby_id integer,
|
735 |
|
language_id integer,
|
736 |
|
agent_id integer,
|
737 |
|
primary key (id, REV)
|
738 |
|
);
|
739 |
|
|
740 |
|
create table Credit_Annotation (
|
741 |
|
Credit_id integer not null,
|
742 |
|
annotations_id integer not null,
|
743 |
|
primary key (Credit_id, annotations_id),
|
744 |
|
unique (annotations_id)
|
745 |
|
);
|
746 |
|
|
747 |
|
create table Credit_Annotation_AUD (
|
748 |
|
REV integer not null,
|
749 |
|
Credit_id integer not null,
|
750 |
|
annotations_id integer not null,
|
751 |
|
revtype tinyint,
|
752 |
|
primary key (REV, Credit_id, annotations_id)
|
753 |
|
);
|
754 |
|
|
755 |
|
create table Credit_Marker (
|
756 |
|
Credit_id integer not null,
|
757 |
|
markers_id integer not null,
|
758 |
|
primary key (Credit_id, markers_id),
|
759 |
|
unique (markers_id)
|
760 |
|
);
|
761 |
|
|
762 |
|
create table Credit_Marker_AUD (
|
763 |
|
REV integer not null,
|
764 |
|
Credit_id integer not null,
|
765 |
|
markers_id integer not null,
|
766 |
|
revtype tinyint,
|
767 |
|
primary key (REV, Credit_id, markers_id)
|
768 |
|
);
|
769 |
|
|
770 |
|
create table DefinedTermBase (
|
771 |
|
DTYPE varchar(31) not null,
|
772 |
|
id integer not null,
|
773 |
|
created timestamp,
|
774 |
|
uuid varchar(36),
|
775 |
|
updated timestamp,
|
776 |
|
lsid_authority varchar(255),
|
777 |
|
lsid_lsid varchar(255),
|
778 |
|
lsid_namespace varchar(255),
|
779 |
|
lsid_object varchar(255),
|
780 |
|
lsid_revision varchar(255),
|
781 |
|
protectedtitlecache bit not null,
|
782 |
|
titleCache varchar(255),
|
783 |
|
uri varchar(255),
|
784 |
|
iso639_1 varchar(2),
|
785 |
|
iso639_2 varchar(3),
|
786 |
|
istechnical bit,
|
787 |
|
orderindex integer,
|
788 |
|
symmetrical bit,
|
789 |
|
transitive bit,
|
790 |
|
defaultcolor varchar(255),
|
791 |
|
supportscategoricaldata bit,
|
792 |
|
supportscommontaxonname bit,
|
793 |
|
supportsdistribution bit,
|
794 |
|
supportsindividualassociation bit,
|
795 |
|
supportsquantitativedata bit,
|
796 |
|
supportstaxoninteraction bit,
|
797 |
|
supportstextdata bit,
|
798 |
|
pointapproximation_errorradius integer,
|
799 |
|
pointapproximation_latitude double,
|
800 |
|
pointapproximation_longitude double,
|
801 |
|
validperiod_end varchar(255),
|
802 |
|
validperiod_freetext varchar(255),
|
803 |
|
validperiod_start varchar(255),
|
804 |
|
iso3166_a2 varchar(2),
|
805 |
|
createdby_id integer,
|
806 |
|
updatedby_id integer,
|
807 |
|
kindof_id integer,
|
808 |
|
partof_id integer,
|
809 |
|
vocabulary_id integer,
|
810 |
|
level_id integer,
|
811 |
|
pointapproximation_referencesystem_id integer,
|
812 |
|
shape_id integer,
|
813 |
|
type_id integer,
|
814 |
|
primary key (id),
|
815 |
|
unique (uuid)
|
816 |
|
);
|
817 |
|
|
818 |
|
create table DefinedTermBase_AUD (
|
819 |
|
DTYPE varchar(31) not null,
|
820 |
|
id integer not null,
|
821 |
|
REV integer not null,
|
822 |
|
revtype tinyint,
|
823 |
|
created timestamp,
|
824 |
|
uuid varchar(36),
|
825 |
|
updated timestamp,
|
826 |
|
lsid_authority varchar(255),
|
827 |
|
lsid_lsid varchar(255),
|
828 |
|
lsid_namespace varchar(255),
|
829 |
|
lsid_object varchar(255),
|
830 |
|
lsid_revision varchar(255),
|
831 |
|
protectedtitlecache bit,
|
832 |
|
titleCache varchar(255),
|
833 |
|
uri varchar(255),
|
834 |
|
createdby_id integer,
|
835 |
|
updatedby_id integer,
|
836 |
|
kindof_id integer,
|
837 |
|
partof_id integer,
|
838 |
|
vocabulary_id integer,
|
839 |
|
istechnical bit,
|
840 |
|
orderindex integer,
|
841 |
|
iso639_1 varchar(2),
|
842 |
|
iso639_2 varchar(3),
|
843 |
|
symmetrical bit,
|
844 |
|
transitive bit,
|
845 |
|
pointapproximation_errorradius integer,
|
846 |
|
pointapproximation_latitude double,
|
847 |
|
pointapproximation_longitude double,
|
848 |
|
validperiod_end varchar(255),
|
849 |
|
validperiod_freetext varchar(255),
|
850 |
|
validperiod_start varchar(255),
|
851 |
|
level_id integer,
|
852 |
|
pointapproximation_referencesystem_id integer,
|
853 |
|
shape_id integer,
|
854 |
|
type_id integer,
|
855 |
|
iso3166_a2 varchar(2),
|
856 |
|
defaultcolor varchar(255),
|
857 |
|
supportscategoricaldata bit,
|
858 |
|
supportscommontaxonname bit,
|
859 |
|
supportsdistribution bit,
|
860 |
|
supportsindividualassociation bit,
|
861 |
|
supportsquantitativedata bit,
|
862 |
|
supportstaxoninteraction bit,
|
863 |
|
supportstextdata bit,
|
864 |
|
primary key (id, REV)
|
865 |
|
);
|
866 |
|
|
867 |
|
create table DefinedTermBase_Annotation (
|
868 |
|
DefinedTermBase_id integer not null,
|
869 |
|
annotations_id integer not null,
|
870 |
|
primary key (DefinedTermBase_id, annotations_id),
|
871 |
|
unique (annotations_id)
|
872 |
|
);
|
873 |
|
|
874 |
|
create table DefinedTermBase_Annotation_AUD (
|
875 |
|
REV integer not null,
|
876 |
|
DefinedTermBase_id integer not null,
|
877 |
|
annotations_id integer not null,
|
878 |
|
revtype tinyint,
|
879 |
|
primary key (REV, DefinedTermBase_id, annotations_id)
|
880 |
|
);
|
881 |
|
|
882 |
|
create table DefinedTermBase_Continent (
|
883 |
|
DefinedTermBase_id integer not null,
|
884 |
|
continents_id integer not null,
|
885 |
|
primary key (DefinedTermBase_id, continents_id)
|
886 |
|
);
|
887 |
|
|
888 |
|
create table DefinedTermBase_Continent_AUD (
|
889 |
|
REV integer not null,
|
890 |
|
DefinedTermBase_id integer not null,
|
891 |
|
continents_id integer not null,
|
892 |
|
revtype tinyint,
|
893 |
|
primary key (REV, DefinedTermBase_id, continents_id)
|
894 |
|
);
|
895 |
|
|
896 |
|
create table DefinedTermBase_Credit (
|
897 |
|
DefinedTermBase_id integer not null,
|
898 |
|
credits_id integer not null,
|
899 |
|
sortIndex integer not null,
|
900 |
|
primary key (DefinedTermBase_id, sortIndex),
|
901 |
|
unique (credits_id)
|
902 |
|
);
|
903 |
|
|
904 |
|
create table DefinedTermBase_Credit_AUD (
|
905 |
|
REV integer not null,
|
906 |
|
DefinedTermBase_id integer not null,
|
907 |
|
credits_id integer not null,
|
908 |
|
sortIndex integer not null,
|
909 |
|
revtype tinyint,
|
910 |
|
primary key (REV, DefinedTermBase_id, credits_id, sortIndex)
|
911 |
|
);
|
912 |
|
|
913 |
|
create table DefinedTermBase_Extension (
|
914 |
|
DefinedTermBase_id integer not null,
|
915 |
|
extensions_id integer not null,
|
916 |
|
primary key (DefinedTermBase_id, extensions_id),
|
917 |
|
unique (extensions_id)
|
918 |
|
);
|
919 |
|
|
920 |
|
create table DefinedTermBase_Extension_AUD (
|
921 |
|
REV integer not null,
|
922 |
|
DefinedTermBase_id integer not null,
|
923 |
|
extensions_id integer not null,
|
924 |
|
revtype tinyint,
|
925 |
|
primary key (REV, DefinedTermBase_id, extensions_id)
|
926 |
|
);
|
927 |
|
|
928 |
|
create table DefinedTermBase_Marker (
|
929 |
|
DefinedTermBase_id integer not null,
|
930 |
|
markers_id integer not null,
|
931 |
|
primary key (DefinedTermBase_id, markers_id),
|
932 |
|
unique (markers_id)
|
933 |
|
);
|
934 |
|
|
935 |
|
create table DefinedTermBase_Marker_AUD (
|
936 |
|
REV integer not null,
|
937 |
|
DefinedTermBase_id integer not null,
|
938 |
|
markers_id integer not null,
|
939 |
|
revtype tinyint,
|
940 |
|
primary key (REV, DefinedTermBase_id, markers_id)
|
941 |
|
);
|
942 |
|
|
943 |
|
create table DefinedTermBase_MeasurementUnit (
|
944 |
|
DefinedTermBase_id integer not null,
|
945 |
|
recommendedmeasurementunits_id integer not null,
|
946 |
|
primary key (DefinedTermBase_id, recommendedmeasurementunits_id)
|
947 |
|
);
|
948 |
|
|
949 |
|
create table DefinedTermBase_MeasurementUnit_AUD (
|
950 |
|
REV integer not null,
|
951 |
|
DefinedTermBase_id integer not null,
|
952 |
|
recommendedmeasurementunits_id integer not null,
|
953 |
|
revtype tinyint,
|
954 |
|
primary key (REV, DefinedTermBase_id, recommendedmeasurementunits_id)
|
955 |
|
);
|
956 |
|
|
957 |
|
create table DefinedTermBase_Media (
|
958 |
|
DefinedTermBase_id integer not null,
|
959 |
|
media_id integer not null,
|
960 |
|
primary key (DefinedTermBase_id, media_id),
|
961 |
|
unique (media_id)
|
962 |
|
);
|
963 |
|
|
964 |
|
create table DefinedTermBase_Media_AUD (
|
965 |
|
REV integer not null,
|
966 |
|
DefinedTermBase_id integer not null,
|
967 |
|
media_id integer not null,
|
968 |
|
revtype tinyint,
|
969 |
|
primary key (REV, DefinedTermBase_id, media_id)
|
970 |
|
);
|
971 |
|
|
972 |
|
create table DefinedTermBase_OriginalSourceBase (
|
973 |
|
DefinedTermBase_id integer not null,
|
974 |
|
sources_id integer not null,
|
975 |
|
primary key (DefinedTermBase_id, sources_id),
|
976 |
|
unique (sources_id)
|
977 |
|
);
|
978 |
|
|
979 |
|
create table DefinedTermBase_OriginalSourceBase_AUD (
|
980 |
|
REV integer not null,
|
981 |
|
DefinedTermBase_id integer not null,
|
982 |
|
sources_id integer not null,
|
983 |
|
revtype tinyint,
|
984 |
|
primary key (REV, DefinedTermBase_id, sources_id)
|
985 |
|
);
|
986 |
|
|
987 |
|
create table DefinedTermBase_RecommendedModifierEnumeration (
|
988 |
|
DefinedTermBase_id integer not null,
|
989 |
|
recommendedmodifierenumeration_id integer not null,
|
990 |
|
primary key (DefinedTermBase_id, recommendedmodifierenumeration_id),
|
991 |
|
unique (recommendedmodifierenumeration_id)
|
992 |
|
);
|
993 |
|
|
994 |
|
create table DefinedTermBase_RecommendedModifierEnumeration_AUD (
|
995 |
|
REV integer not null,
|
996 |
|
DefinedTermBase_id integer not null,
|
997 |
|
recommendedmodifierenumeration_id integer not null,
|
998 |
|
revtype tinyint,
|
999 |
|
primary key (REV, DefinedTermBase_id, recommendedmodifierenumeration_id)
|
1000 |
|
);
|
1001 |
|
|
1002 |
|
create table DefinedTermBase_Representation (
|
1003 |
|
DefinedTermBase_id integer not null,
|
1004 |
|
representations_id integer not null,
|
1005 |
|
primary key (DefinedTermBase_id, representations_id),
|
1006 |
|
unique (representations_id)
|
1007 |
|
);
|
1008 |
|
|
1009 |
|
create table DefinedTermBase_Representation_AUD (
|
1010 |
|
REV integer not null,
|
1011 |
|
DefinedTermBase_id integer not null,
|
1012 |
|
representations_id integer not null,
|
1013 |
|
revtype tinyint,
|
1014 |
|
primary key (REV, DefinedTermBase_id, representations_id)
|
1015 |
|
);
|
1016 |
|
|
1017 |
|
create table DefinedTermBase_Rights (
|
1018 |
|
DefinedTermBase_id integer not null,
|
1019 |
|
rights_id integer not null,
|
1020 |
|
primary key (DefinedTermBase_id, rights_id),
|
1021 |
|
unique (rights_id)
|
1022 |
|
);
|
1023 |
|
|
1024 |
|
create table DefinedTermBase_Rights_AUD (
|
1025 |
|
REV integer not null,
|
1026 |
|
DefinedTermBase_id integer not null,
|
1027 |
|
rights_id integer not null,
|
1028 |
|
revtype tinyint,
|
1029 |
|
primary key (REV, DefinedTermBase_id, rights_id)
|
1030 |
|
);
|
1031 |
|
|
1032 |
|
create table DefinedTermBase_StatisticalMeasure (
|
1033 |
|
DefinedTermBase_id integer not null,
|
1034 |
|
recommendedstatisticalmeasures_id integer not null,
|
1035 |
|
primary key (DefinedTermBase_id, recommendedstatisticalmeasures_id)
|
1036 |
|
);
|
1037 |
|
|
1038 |
|
create table DefinedTermBase_StatisticalMeasure_AUD (
|
1039 |
|
REV integer not null,
|
1040 |
|
DefinedTermBase_id integer not null,
|
1041 |
|
recommendedstatisticalmeasures_id integer not null,
|
1042 |
|
revtype tinyint,
|
1043 |
|
primary key (REV, DefinedTermBase_id, recommendedstatisticalmeasures_id)
|
1044 |
|
);
|
1045 |
|
|
1046 |
|
create table DefinedTermBase_SupportedCategoricalEnumeration (
|
1047 |
|
DefinedTermBase_id integer not null,
|
1048 |
|
supportedcategoricalenumerations_id integer not null,
|
1049 |
|
primary key (DefinedTermBase_id, supportedcategoricalenumerations_id),
|
1050 |
|
unique (supportedcategoricalenumerations_id)
|
1051 |
|
);
|
1052 |
|
|
1053 |
|
create table DefinedTermBase_SupportedCategoricalEnumeration_AUD (
|
1054 |
|
REV integer not null,
|
1055 |
|
DefinedTermBase_id integer not null,
|
1056 |
|
supportedcategoricalenumerations_id integer not null,
|
1057 |
|
revtype tinyint,
|
1058 |
|
primary key (REV, DefinedTermBase_id, supportedcategoricalenumerations_id)
|
1059 |
|
);
|
1060 |
|
|
1061 |
|
create table DefinedTermBase_WaterbodyOrCountry (
|
1062 |
|
DefinedTermBase_id integer not null,
|
1063 |
|
waterbodiesorcountries_id integer not null,
|
1064 |
|
primary key (DefinedTermBase_id, waterbodiesorcountries_id)
|
1065 |
|
);
|
1066 |
|
|
1067 |
|
create table DefinedTermBase_WaterbodyOrCountry_AUD (
|
1068 |
|
REV integer not null,
|
1069 |
|
DefinedTermBase_id integer not null,
|
1070 |
|
waterbodiesorcountries_id integer not null,
|
1071 |
|
revtype tinyint,
|
1072 |
|
primary key (REV, DefinedTermBase_id, waterbodiesorcountries_id)
|
1073 |
|
);
|
1074 |
|
|
1075 |
|
create table DerivationEvent (
|
1076 |
|
id integer not null,
|
1077 |
|
created timestamp,
|
1078 |
|
uuid varchar(36),
|
1079 |
|
updated timestamp,
|
1080 |
|
description varchar(255),
|
1081 |
|
timeperiod_end varchar(255),
|
1082 |
|
timeperiod_freetext varchar(255),
|
1083 |
|
timeperiod_start varchar(255),
|
1084 |
|
createdby_id integer,
|
1085 |
|
updatedby_id integer,
|
1086 |
|
actor_id integer,
|
1087 |
|
type_id integer,
|
1088 |
|
primary key (id),
|
1089 |
|
unique (uuid)
|
1090 |
|
);
|
1091 |
|
|
1092 |
|
create table DerivationEvent_AUD (
|
1093 |
|
id integer not null,
|
1094 |
|
REV integer not null,
|
1095 |
|
revtype tinyint,
|
1096 |
|
created timestamp,
|
1097 |
|
uuid varchar(36),
|
1098 |
|
updated timestamp,
|
1099 |
|
description varchar(255),
|
1100 |
|
timeperiod_end varchar(255),
|
1101 |
|
timeperiod_freetext varchar(255),
|
1102 |
|
timeperiod_start varchar(255),
|
1103 |
|
createdby_id integer,
|
1104 |
|
updatedby_id integer,
|
1105 |
|
actor_id integer,
|
1106 |
|
type_id integer,
|
1107 |
|
primary key (id, REV)
|
1108 |
|
);
|
1109 |
|
|
1110 |
|
create table DerivationEvent_Annotation (
|
1111 |
|
DerivationEvent_id integer not null,
|
1112 |
|
annotations_id integer not null,
|
1113 |
|
primary key (DerivationEvent_id, annotations_id),
|
1114 |
|
unique (annotations_id)
|
1115 |
|
);
|
1116 |
|
|
1117 |
|
create table DerivationEvent_Annotation_AUD (
|
1118 |
|
REV integer not null,
|
1119 |
|
DerivationEvent_id integer not null,
|
1120 |
|
annotations_id integer not null,
|
1121 |
|
revtype tinyint,
|
1122 |
|
primary key (REV, DerivationEvent_id, annotations_id)
|
1123 |
|
);
|
1124 |
|
|
1125 |
|
create table DerivationEvent_Marker (
|
1126 |
|
DerivationEvent_id integer not null,
|
1127 |
|
markers_id integer not null,
|
1128 |
|
primary key (DerivationEvent_id, markers_id),
|
1129 |
|
unique (markers_id)
|
1130 |
|
);
|
1131 |
|
|
1132 |
|
create table DerivationEvent_Marker_AUD (
|
1133 |
|
REV integer not null,
|
1134 |
|
DerivationEvent_id integer not null,
|
1135 |
|
markers_id integer not null,
|
1136 |
|
revtype tinyint,
|
1137 |
|
primary key (REV, DerivationEvent_id, markers_id)
|
1138 |
|
);
|
1139 |
|
|
1140 |
|
create table DescriptionBase (
|
1141 |
|
DTYPE varchar(31) not null,
|
1142 |
|
id integer not null,
|
1143 |
|
created timestamp,
|
1144 |
|
uuid varchar(36),
|
1145 |
|
updated timestamp,
|
1146 |
|
lsid_authority varchar(255),
|
1147 |
|
lsid_lsid varchar(255),
|
1148 |
|
lsid_namespace varchar(255),
|
1149 |
|
lsid_object varchar(255),
|
1150 |
|
lsid_revision varchar(255),
|
1151 |
|
protectedtitlecache bit not null,
|
1152 |
|
titleCache varchar(255),
|
1153 |
|
imagegallery bit not null,
|
1154 |
|
createdby_id integer,
|
1155 |
|
updatedby_id integer,
|
1156 |
|
taxon_id integer,
|
1157 |
|
taxonname_id integer,
|
1158 |
|
primary key (id),
|
1159 |
|
unique (uuid)
|
1160 |
|
);
|
1161 |
|
|
1162 |
|
create table DescriptionBase_AUD (
|
1163 |
|
DTYPE varchar(31) not null,
|
1164 |
|
id integer not null,
|
1165 |
|
REV integer not null,
|
1166 |
|
revtype tinyint,
|
1167 |
|
created timestamp,
|
1168 |
|
uuid varchar(36),
|
1169 |
|
updated timestamp,
|
1170 |
|
lsid_authority varchar(255),
|
1171 |
|
lsid_lsid varchar(255),
|
1172 |
|
lsid_namespace varchar(255),
|
1173 |
|
lsid_object varchar(255),
|
1174 |
|
lsid_revision varchar(255),
|
1175 |
|
protectedtitlecache bit,
|
1176 |
|
titleCache varchar(255),
|
1177 |
|
imagegallery bit,
|
1178 |
|
createdby_id integer,
|
1179 |
|
updatedby_id integer,
|
1180 |
|
taxon_id integer,
|
1181 |
|
taxonname_id integer,
|
1182 |
|
primary key (id, REV)
|
1183 |
|
);
|
1184 |
|
|
1185 |
|
create table DescriptionBase_Annotation (
|
1186 |
|
DescriptionBase_id integer not null,
|
1187 |
|
annotations_id integer not null,
|
1188 |
|
primary key (DescriptionBase_id, annotations_id),
|
1189 |
|
unique (annotations_id)
|
1190 |
|
);
|
1191 |
|
|
1192 |
|
create table DescriptionBase_Annotation_AUD (
|
1193 |
|
REV integer not null,
|
1194 |
|
DescriptionBase_id integer not null,
|
1195 |
|
annotations_id integer not null,
|
1196 |
|
revtype tinyint,
|
1197 |
|
primary key (REV, DescriptionBase_id, annotations_id)
|
1198 |
|
);
|
1199 |
|
|
1200 |
|
create table DescriptionBase_Credit (
|
1201 |
|
DescriptionBase_id integer not null,
|
1202 |
|
credits_id integer not null,
|
1203 |
|
sortIndex integer not null,
|
1204 |
|
primary key (DescriptionBase_id, sortIndex),
|
1205 |
|
unique (credits_id)
|
1206 |
|
);
|
1207 |
|
|
1208 |
|
create table DescriptionBase_Credit_AUD (
|
1209 |
|
REV integer not null,
|
1210 |
|
DescriptionBase_id integer not null,
|
1211 |
|
credits_id integer not null,
|
1212 |
|
sortIndex integer not null,
|
1213 |
|
revtype tinyint,
|
1214 |
|
primary key (REV, DescriptionBase_id, credits_id, sortIndex)
|
1215 |
|
);
|
1216 |
|
|
1217 |
|
create table DescriptionBase_Extension (
|
1218 |
|
DescriptionBase_id integer not null,
|
1219 |
|
extensions_id integer not null,
|
1220 |
|
primary key (DescriptionBase_id, extensions_id),
|
1221 |
|
unique (extensions_id)
|
1222 |
|
);
|
1223 |
|
|
1224 |
|
create table DescriptionBase_Extension_AUD (
|
1225 |
|
REV integer not null,
|
1226 |
|
DescriptionBase_id integer not null,
|
1227 |
|
extensions_id integer not null,
|
1228 |
|
revtype tinyint,
|
1229 |
|
primary key (REV, DescriptionBase_id, extensions_id)
|
1230 |
|
);
|
1231 |
|
|
1232 |
|
create table DescriptionBase_Feature (
|
1233 |
|
DescriptionBase_id integer not null,
|
1234 |
|
descriptivesystem_id integer not null,
|
1235 |
|
primary key (DescriptionBase_id, descriptivesystem_id)
|
1236 |
|
);
|
1237 |
|
|
1238 |
|
create table DescriptionBase_Feature_AUD (
|
1239 |
|
REV integer not null,
|
1240 |
|
DescriptionBase_id integer not null,
|
1241 |
|
descriptivesystem_id integer not null,
|
1242 |
|
revtype tinyint,
|
1243 |
|
primary key (REV, DescriptionBase_id, descriptivesystem_id)
|
1244 |
|
);
|
1245 |
|
|
1246 |
|
create table DescriptionBase_GeoScope (
|
1247 |
|
DescriptionBase_id integer not null,
|
1248 |
|
geoscopes_id integer not null,
|
1249 |
|
primary key (DescriptionBase_id, geoscopes_id)
|
1250 |
|
);
|
1251 |
|
|
1252 |
|
create table DescriptionBase_GeoScope_AUD (
|
1253 |
|
REV integer not null,
|
1254 |
|
DescriptionBase_id integer not null,
|
1255 |
|
geoscopes_id integer not null,
|
1256 |
|
revtype tinyint,
|
1257 |
|
primary key (REV, DescriptionBase_id, geoscopes_id)
|
1258 |
|
);
|
1259 |
|
|
1260 |
|
create table DescriptionBase_Marker (
|
1261 |
|
DescriptionBase_id integer not null,
|
1262 |
|
markers_id integer not null,
|
1263 |
|
primary key (DescriptionBase_id, markers_id),
|
1264 |
|
unique (markers_id)
|
1265 |
|
);
|
1266 |
|
|
1267 |
|
create table DescriptionBase_Marker_AUD (
|
1268 |
|
REV integer not null,
|
1269 |
|
DescriptionBase_id integer not null,
|
1270 |
|
markers_id integer not null,
|
1271 |
|
revtype tinyint,
|
1272 |
|
primary key (REV, DescriptionBase_id, markers_id)
|
1273 |
|
);
|
1274 |
|
|
1275 |
|
create table DescriptionBase_OriginalSourceBase (
|
1276 |
|
DescriptionBase_id integer not null,
|
1277 |
|
sources_id integer not null,
|
1278 |
|
primary key (DescriptionBase_id, sources_id),
|
1279 |
|
unique (sources_id)
|
1280 |
|
);
|
1281 |
|
|
1282 |
|
create table DescriptionBase_OriginalSourceBase_AUD (
|
1283 |
|
REV integer not null,
|
1284 |
|
DescriptionBase_id integer not null,
|
1285 |
|
sources_id integer not null,
|
1286 |
|
revtype tinyint,
|
1287 |
|
primary key (REV, DescriptionBase_id, sources_id)
|
1288 |
|
);
|
1289 |
|
|
1290 |
|
create table DescriptionBase_Reference (
|
1291 |
|
DescriptionBase_id integer not null,
|
1292 |
|
descriptionsources_id integer not null,
|
1293 |
|
primary key (DescriptionBase_id, descriptionsources_id)
|
1294 |
|
);
|
1295 |
|
|
1296 |
|
create table DescriptionBase_Reference_AUD (
|
1297 |
|
REV integer not null,
|
1298 |
|
DescriptionBase_id integer not null,
|
1299 |
|
descriptionsources_id integer not null,
|
1300 |
|
revtype tinyint,
|
1301 |
|
primary key (REV, DescriptionBase_id, descriptionsources_id)
|
1302 |
|
);
|
1303 |
|
|
1304 |
|
create table DescriptionBase_Rights (
|
1305 |
|
DescriptionBase_id integer not null,
|
1306 |
|
rights_id integer not null,
|
1307 |
|
primary key (DescriptionBase_id, rights_id),
|
1308 |
|
unique (rights_id)
|
1309 |
|
);
|
1310 |
|
|
1311 |
|
create table DescriptionBase_Rights_AUD (
|
1312 |
|
REV integer not null,
|
1313 |
|
DescriptionBase_id integer not null,
|
1314 |
|
rights_id integer not null,
|
1315 |
|
revtype tinyint,
|
1316 |
|
primary key (REV, DescriptionBase_id, rights_id)
|
1317 |
|
);
|
1318 |
|
|
1319 |
|
create table DescriptionBase_Scope (
|
1320 |
|
DescriptionBase_id integer not null,
|
1321 |
|
scopes_id integer not null,
|
1322 |
|
primary key (DescriptionBase_id, scopes_id)
|
1323 |
|
);
|
1324 |
|
|
1325 |
|
create table DescriptionBase_Scope_AUD (
|
1326 |
|
REV integer not null,
|
1327 |
|
DescriptionBase_id integer not null,
|
1328 |
|
scopes_id integer not null,
|
1329 |
|
revtype tinyint,
|
1330 |
|
primary key (REV, DescriptionBase_id, scopes_id)
|
1331 |
|
);
|
1332 |
|
|
1333 |
|
create table DescriptionBase_SpecimenOrObservationBase (
|
1334 |
|
descriptions_id integer not null,
|
1335 |
|
describedspecimenorobservations_id integer not null,
|
1336 |
|
primary key (descriptions_id, describedspecimenorobservations_id)
|
1337 |
|
);
|
1338 |
|
|
1339 |
|
create table DescriptionBase_SpecimenOrObservationBase_AUD (
|
1340 |
|
REV integer not null,
|
1341 |
|
descriptions_id integer not null,
|
1342 |
|
describedspecimenorobservations_id integer not null,
|
1343 |
|
revtype tinyint,
|
1344 |
|
primary key (REV, descriptions_id, describedspecimenorobservations_id)
|
1345 |
|
);
|
1346 |
|
|
1347 |
|
create table DescriptionElementBase (
|
1348 |
|
DTYPE varchar(31) not null,
|
1349 |
|
id integer not null,
|
1350 |
|
created timestamp,
|
1351 |
|
uuid varchar(36),
|
1352 |
|
updated timestamp,
|
1353 |
|
orderrelevant bit,
|
1354 |
|
name varchar(255),
|
1355 |
|
createdby_id integer,
|
1356 |
|
updatedby_id integer,
|
1357 |
|
feature_id integer,
|
1358 |
|
indescription_id integer,
|
1359 |
|
language_id integer,
|
1360 |
|
area_id integer,
|
1361 |
|
status_id integer,
|
1362 |
|
associatedspecimenorobservation_id integer,
|
1363 |
|
unit_id integer,
|
1364 |
|
taxon2_id integer,
|
1365 |
|
format_id integer,
|
1366 |
|
primary key (id),
|
1367 |
|
unique (uuid)
|
1368 |
|
);
|
1369 |
|
|
1370 |
|
create table DescriptionElementBase_AUD (
|
1371 |
|
DTYPE varchar(31) not null,
|
1372 |
|
id integer not null,
|
1373 |
|
REV integer not null,
|
1374 |
|
revtype tinyint,
|
1375 |
|
created timestamp,
|
1376 |
|
uuid varchar(36),
|
1377 |
|
updated timestamp,
|
1378 |
|
createdby_id integer,
|
1379 |
|
updatedby_id integer,
|
1380 |
|
feature_id integer,
|
1381 |
|
indescription_id integer,
|
1382 |
|
orderrelevant bit,
|
1383 |
|
associatedspecimenorobservation_id integer,
|
1384 |
|
name varchar(255),
|
1385 |
|
language_id integer,
|
1386 |
|
taxon2_id integer,
|
1387 |
|
area_id integer,
|
1388 |
|
status_id integer,
|
1389 |
|
unit_id integer,
|
1390 |
|
format_id integer,
|
1391 |
|
primary key (id, REV)
|
1392 |
|
);
|
1393 |
|
|
1394 |
|
create table DescriptionElementBase_Annotation (
|
1395 |
|
DescriptionElementBase_id integer not null,
|
1396 |
|
annotations_id integer not null,
|
1397 |
|
primary key (DescriptionElementBase_id, annotations_id),
|
1398 |
|
unique (annotations_id)
|
1399 |
|
);
|
1400 |
|
|
1401 |
|
create table DescriptionElementBase_Annotation_AUD (
|
1402 |
|
REV integer not null,
|
1403 |
|
DescriptionElementBase_id integer not null,
|
1404 |
|
annotations_id integer not null,
|
1405 |
|
revtype tinyint,
|
1406 |
|
primary key (REV, DescriptionElementBase_id, annotations_id)
|
1407 |
|
);
|
1408 |
|
|
1409 |
|
create table DescriptionElementBase_LanguageString (
|
1410 |
|
DescriptionElementBase_id integer not null,
|
1411 |
|
multilanguagetext_id integer not null,
|
1412 |
|
multilanguagetext_mapkey_id integer not null,
|
1413 |
|
primary key (DescriptionElementBase_id, multilanguagetext_mapkey_id),
|
1414 |
|
unique (multilanguagetext_id)
|
1415 |
|
);
|
1416 |
|
|
1417 |
|
create table DescriptionElementBase_LanguageString_AUD (
|
1418 |
|
REV integer not null,
|
1419 |
|
DescriptionElementBase_id integer not null,
|
1420 |
|
multilanguagetext_id integer not null,
|
1421 |
|
multilanguagetext_mapkey_id integer not null,
|
1422 |
|
revtype tinyint,
|
1423 |
|
primary key (REV, DescriptionElementBase_id, multilanguagetext_id, multilanguagetext_mapkey_id)
|
1424 |
|
);
|
1425 |
|
|
1426 |
|
create table DescriptionElementBase_Marker (
|
1427 |
|
DescriptionElementBase_id integer not null,
|
1428 |
|
markers_id integer not null,
|
1429 |
|
primary key (DescriptionElementBase_id, markers_id),
|
1430 |
|
unique (markers_id)
|
1431 |
|
);
|
1432 |
|
|
1433 |
|
create table DescriptionElementBase_Marker_AUD (
|
1434 |
|
REV integer not null,
|
1435 |
|
DescriptionElementBase_id integer not null,
|
1436 |
|
markers_id integer not null,
|
1437 |
|
revtype tinyint,
|
1438 |
|
primary key (REV, DescriptionElementBase_id, markers_id)
|
1439 |
|
);
|
1440 |
|
|
1441 |
|
create table DescriptionElementBase_Media (
|
1442 |
|
DescriptionElementBase_id integer not null,
|
1443 |
|
media_id integer not null,
|
1444 |
|
sortIndex integer not null,
|
1445 |
|
primary key (DescriptionElementBase_id, sortIndex)
|
1446 |
|
);
|
1447 |
|
|
1448 |
|
create table DescriptionElementBase_Media_AUD (
|
1449 |
|
REV integer not null,
|
1450 |
|
DescriptionElementBase_id integer not null,
|
1451 |
|
media_id integer not null,
|
1452 |
|
sortIndex integer not null,
|
1453 |
|
revtype tinyint,
|
1454 |
|
primary key (REV, DescriptionElementBase_id, media_id, sortIndex)
|
1455 |
|
);
|
1456 |
|
|
1457 |
|
create table DescriptionElementBase_Modifier (
|
1458 |
|
DescriptionElementBase_id integer not null,
|
1459 |
|
modifiers_id integer not null,
|
1460 |
|
primary key (DescriptionElementBase_id, modifiers_id)
|
1461 |
|
);
|
1462 |
|
|
1463 |
|
create table DescriptionElementBase_Modifier_AUD (
|
1464 |
|
REV integer not null,
|
1465 |
|
DescriptionElementBase_id integer not null,
|
1466 |
|
modifiers_id integer not null,
|
1467 |
|
revtype tinyint,
|
1468 |
|
primary key (REV, DescriptionElementBase_id, modifiers_id)
|
1469 |
|
);
|
1470 |
|
|
1471 |
|
create table DescriptionElementBase_ModifyingText (
|
1472 |
|
DescriptionElementBase_id integer not null,
|
1473 |
|
modifyingtext_id integer not null,
|
1474 |
|
modifyingtext_mapkey_id integer not null,
|
1475 |
|
primary key (DescriptionElementBase_id, modifyingtext_mapkey_id),
|
1476 |
|
unique (modifyingtext_id)
|
1477 |
|
);
|
remove 001_cdm.dll which is not used anymore