1 | -- |
---|
2 | -- PostgreSQL database dump |
---|
3 | -- |
---|
4 | |
---|
5 | -- Started on 2012-07-04 13:22:28 |
---|
6 | |
---|
7 | SET statement_timeout = 0; |
---|
8 | SET client_encoding = 'UTF8'; |
---|
9 | SET standard_conforming_strings = off; |
---|
10 | SET check_function_bodies = false; |
---|
11 | SET client_min_messages = warning; |
---|
12 | SET escape_string_warning = off; |
---|
13 | |
---|
14 | -- |
---|
15 | -- TOC entry 552 (class 2612 OID 16386) |
---|
16 | -- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: - |
---|
17 | -- |
---|
18 | |
---|
19 | --CREATE PROCEDURAL LANGUAGE plpgsql; |
---|
20 | |
---|
21 | |
---|
22 | SET search_path = public, pg_catalog; |
---|
23 | |
---|
24 | -- |
---|
25 | -- TOC entry 326 (class 1247 OID 358980) |
---|
26 | -- Dependencies: 6 |
---|
27 | -- Name: access_rights_enum; Type: TYPE; Schema: public; Owner: - |
---|
28 | -- |
---|
29 | |
---|
30 | CREATE TYPE access_rights_enum AS ENUM ( |
---|
31 | 'r', |
---|
32 | 'ru', |
---|
33 | 'rud' |
---|
34 | ); |
---|
35 | |
---|
36 | |
---|
37 | -- |
---|
38 | -- TOC entry 328 (class 1247 OID 358985) |
---|
39 | -- Dependencies: 6 |
---|
40 | -- Name: administration_status_enum; Type: TYPE; Schema: public; Owner: - |
---|
41 | -- |
---|
42 | |
---|
43 | CREATE TYPE administration_status_enum AS ENUM ( |
---|
44 | 'private', |
---|
45 | 'submission', |
---|
46 | 'pre-evaluation', |
---|
47 | 'evaluation', |
---|
48 | 'rejected-TDG', |
---|
49 | 'accepted-TDG', |
---|
50 | 'pre-validation', |
---|
51 | 'validation', |
---|
52 | 'accepted', |
---|
53 | 'rejected-DCRB', |
---|
54 | 'external', |
---|
55 | 'finished' |
---|
56 | ); |
---|
57 | |
---|
58 | |
---|
59 | -- |
---|
60 | -- TOC entry 330 (class 1247 OID 358999) |
---|
61 | -- Dependencies: 6 |
---|
62 | -- Name: check_result_enum; Type: TYPE; Schema: public; Owner: - |
---|
63 | -- |
---|
64 | |
---|
65 | CREATE TYPE check_result_enum AS ENUM ( |
---|
66 | 'unchecked', |
---|
67 | 'fatal', |
---|
68 | 'error', |
---|
69 | 'warning', |
---|
70 | 'ok' |
---|
71 | ); |
---|
72 | |
---|
73 | |
---|
74 | -- |
---|
75 | -- TOC entry 332 (class 1247 OID 359006) |
---|
76 | -- Dependencies: 6 |
---|
77 | -- Name: lock_type_enum; Type: TYPE; Schema: public; Owner: - |
---|
78 | -- |
---|
79 | |
---|
80 | CREATE TYPE lock_type_enum AS ENUM ( |
---|
81 | 'data category' |
---|
82 | ); |
---|
83 | |
---|
84 | |
---|
85 | -- |
---|
86 | -- TOC entry 334 (class 1247 OID 359009) |
---|
87 | -- Dependencies: 6 |
---|
88 | -- Name: member_status_enum; Type: TYPE; Schema: public; Owner: - |
---|
89 | -- |
---|
90 | |
---|
91 | CREATE TYPE member_status_enum AS ENUM ( |
---|
92 | 'invite', |
---|
93 | 'invited', |
---|
94 | 'accepted', |
---|
95 | 'declined' |
---|
96 | ); |
---|
97 | |
---|
98 | |
---|
99 | -- |
---|
100 | -- TOC entry 336 (class 1247 OID 359015) |
---|
101 | -- Dependencies: 6 |
---|
102 | -- Name: member_type_enum; Type: TYPE; Schema: public; Owner: - |
---|
103 | -- |
---|
104 | |
---|
105 | CREATE TYPE member_type_enum AS ENUM ( |
---|
106 | 'member', |
---|
107 | 'chair' |
---|
108 | ); |
---|
109 | |
---|
110 | |
---|
111 | -- |
---|
112 | -- TOC entry 338 (class 1247 OID 359019) |
---|
113 | -- Dependencies: 6 |
---|
114 | -- Name: message_status_enum; Type: TYPE; Schema: public; Owner: - |
---|
115 | -- |
---|
116 | |
---|
117 | CREATE TYPE message_status_enum AS ENUM ( |
---|
118 | 'valid', |
---|
119 | 'read', |
---|
120 | 'obsolete', |
---|
121 | 'deleted' |
---|
122 | ); |
---|
123 | |
---|
124 | |
---|
125 | -- |
---|
126 | -- TOC entry 340 (class 1247 OID 359025) |
---|
127 | -- Dependencies: 6 |
---|
128 | -- Name: message_type_enum; Type: TYPE; Schema: public; Owner: - |
---|
129 | -- |
---|
130 | |
---|
131 | CREATE TYPE message_type_enum AS ENUM ( |
---|
132 | 'message', |
---|
133 | 'invitation', |
---|
134 | 'request', |
---|
135 | 'news', |
---|
136 | 'broadcast' |
---|
137 | ); |
---|
138 | |
---|
139 | |
---|
140 | -- |
---|
141 | -- TOC entry 342 (class 1247 OID 359032) |
---|
142 | -- Dependencies: 6 |
---|
143 | -- Name: name_status_enum; Type: TYPE; Schema: public; Owner: - |
---|
144 | -- |
---|
145 | |
---|
146 | CREATE TYPE name_status_enum AS ENUM ( |
---|
147 | 'standardized name', |
---|
148 | 'preferred name', |
---|
149 | 'admitted name', |
---|
150 | 'deprecated name', |
---|
151 | 'superseded name' |
---|
152 | ); |
---|
153 | |
---|
154 | |
---|
155 | -- |
---|
156 | -- TOC entry 344 (class 1247 OID 359039) |
---|
157 | -- Dependencies: 6 |
---|
158 | -- Name: name_type_enum; Type: TYPE; Schema: public; Owner: - |
---|
159 | -- |
---|
160 | |
---|
161 | CREATE TYPE name_type_enum AS ENUM ( |
---|
162 | 'name section', |
---|
163 | 'data element name' |
---|
164 | ); |
---|
165 | |
---|
166 | |
---|
167 | -- |
---|
168 | -- TOC entry 346 (class 1247 OID 359043) |
---|
169 | -- Dependencies: 6 |
---|
170 | -- Name: owner_type_enum; Type: TYPE; Schema: public; Owner: - |
---|
171 | -- |
---|
172 | |
---|
173 | CREATE TYPE owner_type_enum AS ENUM ( |
---|
174 | 'data category', |
---|
175 | 'language section', |
---|
176 | 'linguistic section', |
---|
177 | 'text', |
---|
178 | 'change request' |
---|
179 | ); |
---|
180 | |
---|
181 | |
---|
182 | -- |
---|
183 | -- TOC entry 348 (class 1247 OID 359050) |
---|
184 | -- Dependencies: 6 |
---|
185 | -- Name: registration_status_enum; Type: TYPE; Schema: public; Owner: - |
---|
186 | -- |
---|
187 | |
---|
188 | CREATE TYPE registration_status_enum AS ENUM ( |
---|
189 | 'private', |
---|
190 | 'candidate', |
---|
191 | 'standard', |
---|
192 | 'deprecated', |
---|
193 | 'superseded' |
---|
194 | ); |
---|
195 | |
---|
196 | |
---|
197 | -- |
---|
198 | -- TOC entry 350 (class 1247 OID 359057) |
---|
199 | -- Dependencies: 6 |
---|
200 | -- Name: text_type_enum; Type: TYPE; Schema: public; Owner: - |
---|
201 | -- |
---|
202 | |
---|
203 | CREATE TYPE text_type_enum AS ENUM ( |
---|
204 | 'text', |
---|
205 | 'explanatory comment', |
---|
206 | 'unresolved issue', |
---|
207 | 'change', |
---|
208 | 'explanation', |
---|
209 | 'linguistic explanation', |
---|
210 | 'definition', |
---|
211 | 'example', |
---|
212 | 'linguistic example', |
---|
213 | 'note', |
---|
214 | 'administration note' |
---|
215 | ); |
---|
216 | |
---|
217 | |
---|
218 | -- |
---|
219 | -- TOC entry 352 (class 1247 OID 359070) |
---|
220 | -- Dependencies: 6 |
---|
221 | -- Name: user_type_enum; Type: TYPE; Schema: public; Owner: - |
---|
222 | -- |
---|
223 | |
---|
224 | CREATE TYPE user_type_enum AS ENUM ( |
---|
225 | 'basic', |
---|
226 | 'expert', |
---|
227 | 'admin' |
---|
228 | ); |
---|
229 | |
---|
230 | |
---|
231 | -- |
---|
232 | -- TOC entry 19 (class 1255 OID 359074) |
---|
233 | -- Dependencies: 6 |
---|
234 | -- Name: concat(text, text); Type: FUNCTION; Schema: public; Owner: - |
---|
235 | -- |
---|
236 | |
---|
237 | CREATE FUNCTION concat(text, text) RETURNS text |
---|
238 | LANGUAGE sql IMMUTABLE |
---|
239 | AS $_$ |
---|
240 | SELECT CASE WHEN $1 = '' THEN $2 ELSE $1 || ' ' || $2 END |
---|
241 | $_$; |
---|
242 | |
---|
243 | |
---|
244 | -- |
---|
245 | -- TOC entry 20 (class 1255 OID 359075) |
---|
246 | -- Dependencies: 552 6 |
---|
247 | -- Name: dc_profiles(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
248 | -- |
---|
249 | |
---|
250 | CREATE FUNCTION dc_profiles(dcid integer) RETURNS SETOF integer |
---|
251 | LANGUAGE plpgsql |
---|
252 | AS $$ |
---|
253 | DECLARE |
---|
254 | profile RECORD; |
---|
255 | path RECORD; |
---|
256 | BEGIN |
---|
257 | FOR profile IN SELECT DISTINCT link_profile_members.profile FROM link_profile_members WHERE link_profile_members.dc = dcid LOOP |
---|
258 | FOR path IN SELECT * FROM profile_path(profile.profile) LOOP |
---|
259 | RETURN NEXT path.profile_path; |
---|
260 | END LOOP; |
---|
261 | END LOOP; |
---|
262 | END; |
---|
263 | $$; |
---|
264 | |
---|
265 | |
---|
266 | -- |
---|
267 | -- TOC entry 21 (class 1255 OID 359076) |
---|
268 | -- Dependencies: 6 552 |
---|
269 | -- Name: dc_super_cycle(integer[], integer); Type: FUNCTION; Schema: public; Owner: - |
---|
270 | -- |
---|
271 | |
---|
272 | CREATE FUNCTION dc_super_cycle(path integer[], super integer) RETURNS boolean |
---|
273 | LANGUAGE plpgsql |
---|
274 | AS $$ |
---|
275 | DECLARE |
---|
276 | isa RECORD; |
---|
277 | BEGIN |
---|
278 | IF |
---|
279 | (path @> ARRAY[super]) |
---|
280 | THEN |
---|
281 | RAISE NOTICE 'dc_super_cycle(path[%],super[%]) found a cycle',path,super; |
---|
282 | RETURN true; |
---|
283 | ELSE |
---|
284 | SELECT |
---|
285 | * |
---|
286 | FROM |
---|
287 | link_simple_data_category_super |
---|
288 | WHERE |
---|
289 | dc = super |
---|
290 | INTO |
---|
291 | isa |
---|
292 | ; |
---|
293 | IF |
---|
294 | isa IS NULL |
---|
295 | THEN |
---|
296 | RETURN false; |
---|
297 | ELSE |
---|
298 | RETURN dc_super_cycle(path || super,isa.super); |
---|
299 | END IF; |
---|
300 | END IF; |
---|
301 | END; |
---|
302 | $$; |
---|
303 | |
---|
304 | |
---|
305 | -- |
---|
306 | -- TOC entry 22 (class 1255 OID 359077) |
---|
307 | -- Dependencies: 552 6 |
---|
308 | -- Name: dcs_self_or_descendants(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
309 | -- |
---|
310 | |
---|
311 | CREATE FUNCTION dcs_self_or_descendants(dcs integer) RETURNS SETOF integer |
---|
312 | LANGUAGE plpgsql |
---|
313 | AS $$ |
---|
314 | DECLARE |
---|
315 | child RECORD; |
---|
316 | descendant RECORD; |
---|
317 | BEGIN |
---|
318 | FOR child IN SELECT * FROM core_data_category_selection WHERE parent=dcs LOOP |
---|
319 | FOR descendant IN SELECT * FROM dcs_self_or_descendants(child.id) LOOP |
---|
320 | RETURN NEXT descendant.dcs_self_or_descendants; |
---|
321 | END LOOP; |
---|
322 | END LOOP; |
---|
323 | RETURN NEXT dcs; |
---|
324 | END; |
---|
325 | $$; |
---|
326 | |
---|
327 | |
---|
328 | -- |
---|
329 | -- TOC entry 23 (class 1255 OID 359078) |
---|
330 | -- Dependencies: 6 552 |
---|
331 | -- Name: delete_generic_name(); Type: FUNCTION; Schema: public; Owner: - |
---|
332 | -- |
---|
333 | |
---|
334 | CREATE FUNCTION delete_generic_name() RETURNS trigger |
---|
335 | LANGUAGE plpgsql |
---|
336 | AS $$ |
---|
337 | DECLARE |
---|
338 | id integer; |
---|
339 | tp owner_type_enum; |
---|
340 | BEGIN |
---|
341 | |
---|
342 | IF (TG_OP = 'DELETE') THEN |
---|
343 | |
---|
344 | IF (TG_TABLE_NAME = 'core_data_category') THEN |
---|
345 | |
---|
346 | tp = 'data category'; |
---|
347 | |
---|
348 | ELSIF (TG_TABLE_NAME = 'core_language_section') THEN |
---|
349 | |
---|
350 | tp = 'language section'; |
---|
351 | |
---|
352 | END IF; |
---|
353 | |
---|
354 | id = OLD.id; |
---|
355 | |
---|
356 | DELETE FROM |
---|
357 | generic_name |
---|
358 | WHERE |
---|
359 | generic_name.owner = id |
---|
360 | AND |
---|
361 | generic_name.owner_type = tp |
---|
362 | ; |
---|
363 | |
---|
364 | END IF; |
---|
365 | |
---|
366 | RETURN NULL; |
---|
367 | |
---|
368 | END; |
---|
369 | $$; |
---|
370 | |
---|
371 | |
---|
372 | -- |
---|
373 | -- TOC entry 24 (class 1255 OID 359079) |
---|
374 | -- Dependencies: 6 552 |
---|
375 | -- Name: delete_generic_text(); Type: FUNCTION; Schema: public; Owner: - |
---|
376 | -- |
---|
377 | |
---|
378 | CREATE FUNCTION delete_generic_text() RETURNS trigger |
---|
379 | LANGUAGE plpgsql |
---|
380 | AS $$ |
---|
381 | DECLARE |
---|
382 | id integer; |
---|
383 | tp owner_type_enum; |
---|
384 | BEGIN |
---|
385 | |
---|
386 | IF (TG_OP = 'DELETE') THEN |
---|
387 | |
---|
388 | IF (TG_TABLE_NAME = 'core_data_category') THEN |
---|
389 | |
---|
390 | tp = 'data category'; |
---|
391 | |
---|
392 | ELSIF (TG_TABLE_NAME = 'core_language_section') THEN |
---|
393 | |
---|
394 | tp = 'language section'; |
---|
395 | |
---|
396 | ELSIF (TG_TABLE_NAME = 'core_linguistic_section') THEN |
---|
397 | |
---|
398 | tp = 'linguistic section'; |
---|
399 | |
---|
400 | ELSIF (TG_TABLE_NAME = 'generic_text') THEN |
---|
401 | |
---|
402 | tp = 'text'; |
---|
403 | |
---|
404 | END IF; |
---|
405 | |
---|
406 | id = OLD.id; |
---|
407 | |
---|
408 | DELETE FROM |
---|
409 | generic_text |
---|
410 | WHERE |
---|
411 | generic_text.owner = id |
---|
412 | AND |
---|
413 | generic_text.owner_type = tp |
---|
414 | ; |
---|
415 | |
---|
416 | END IF; |
---|
417 | |
---|
418 | RETURN NULL; |
---|
419 | |
---|
420 | END; |
---|
421 | $$; |
---|
422 | |
---|
423 | |
---|
424 | -- |
---|
425 | -- TOC entry 25 (class 1255 OID 359080) |
---|
426 | -- Dependencies: 6 552 |
---|
427 | -- Name: get_dc_identifier(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
428 | -- |
---|
429 | |
---|
430 | CREATE FUNCTION get_dc_identifier(dcid integer) RETURNS character varying |
---|
431 | LANGUAGE plpgsql |
---|
432 | AS $$ |
---|
433 | DECLARE |
---|
434 | dc RECORD; |
---|
435 | BEGIN |
---|
436 | SELECT |
---|
437 | * |
---|
438 | INTO |
---|
439 | dc |
---|
440 | FROM |
---|
441 | core_data_category |
---|
442 | WHERE |
---|
443 | core_data_category.id = dcid |
---|
444 | ; |
---|
445 | RETURN dc.identifier; |
---|
446 | END; |
---|
447 | $$; |
---|
448 | |
---|
449 | |
---|
450 | -- |
---|
451 | -- TOC entry 26 (class 1255 OID 359081) |
---|
452 | -- Dependencies: 552 6 |
---|
453 | -- Name: get_dc_name(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
454 | -- |
---|
455 | |
---|
456 | CREATE FUNCTION get_dc_name(dcid integer) RETURNS character varying |
---|
457 | LANGUAGE plpgsql |
---|
458 | AS $$ |
---|
459 | DECLARE |
---|
460 | datcat RECORD; |
---|
461 | BEGIN |
---|
462 | SELECT |
---|
463 | core_data_category.id AS dc, |
---|
464 | COALESCE(get_dc_name_status_language(dcid,'preferred name','en'), get_dc_name_status_language(dcid,'standardized name','en'), get_dc_name_status_language(dcid,'admitted name','en'), identifier, 'ERROR') AS name |
---|
465 | INTO |
---|
466 | datcat |
---|
467 | FROM |
---|
468 | core_data_category |
---|
469 | WHERE |
---|
470 | core_data_category.id = dcid |
---|
471 | ; |
---|
472 | RETURN datcat.name; |
---|
473 | END; |
---|
474 | $$; |
---|
475 | |
---|
476 | |
---|
477 | -- |
---|
478 | -- TOC entry 27 (class 1255 OID 359082) |
---|
479 | -- Dependencies: 552 6 |
---|
480 | -- Name: get_dc_name_status(integer, character varying); Type: FUNCTION; Schema: public; Owner: - |
---|
481 | -- |
---|
482 | |
---|
483 | CREATE FUNCTION get_dc_name_status(dcid integer, dcstatus character varying) RETURNS character varying |
---|
484 | LANGUAGE plpgsql |
---|
485 | AS $$ |
---|
486 | DECLARE |
---|
487 | dc RECORD; |
---|
488 | BEGIN |
---|
489 | SELECT |
---|
490 | * |
---|
491 | INTO |
---|
492 | dc |
---|
493 | FROM |
---|
494 | view_dc_name |
---|
495 | WHERE |
---|
496 | view_dc_name.id = dcid |
---|
497 | AND |
---|
498 | view_dc_name.status = dcstatus::name_status_enum |
---|
499 | AND |
---|
500 | view_dc_name.name IS NOT NULL |
---|
501 | AND |
---|
502 | view_dc_name.name != '' |
---|
503 | ; |
---|
504 | RETURN dc.name; |
---|
505 | END; |
---|
506 | $$; |
---|
507 | |
---|
508 | |
---|
509 | -- |
---|
510 | -- TOC entry 28 (class 1255 OID 359083) |
---|
511 | -- Dependencies: 552 6 |
---|
512 | -- Name: get_dc_name_status_language(integer, character varying, character varying); Type: FUNCTION; Schema: public; Owner: - |
---|
513 | -- |
---|
514 | |
---|
515 | CREATE FUNCTION get_dc_name_status_language(dcid integer, dcstatus character varying, lang character varying) RETURNS character varying |
---|
516 | LANGUAGE plpgsql |
---|
517 | AS $$ |
---|
518 | DECLARE |
---|
519 | dc RECORD; |
---|
520 | BEGIN |
---|
521 | SELECT |
---|
522 | * |
---|
523 | INTO |
---|
524 | dc |
---|
525 | FROM |
---|
526 | view_dc_name |
---|
527 | WHERE |
---|
528 | view_dc_name.id = dcid |
---|
529 | AND |
---|
530 | view_dc_name.status = dcstatus::name_status_enum |
---|
531 | AND |
---|
532 | view_dc_name.name IS NOT NULL |
---|
533 | AND |
---|
534 | view_dc_name.name != '' |
---|
535 | AND |
---|
536 | view_dc_name.tag = lang |
---|
537 | ; |
---|
538 | RETURN dc.name; |
---|
539 | END; |
---|
540 | $$; |
---|
541 | |
---|
542 | |
---|
543 | -- |
---|
544 | -- TOC entry 29 (class 1255 OID 359084) |
---|
545 | -- Dependencies: 6 552 |
---|
546 | -- Name: get_dc_type(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
547 | -- |
---|
548 | |
---|
549 | CREATE FUNCTION get_dc_type(dc integer) RETURNS character varying |
---|
550 | LANGUAGE plpgsql |
---|
551 | AS $$ |
---|
552 | DECLARE |
---|
553 | datcat RECORD; |
---|
554 | BEGIN |
---|
555 | SELECT |
---|
556 | id |
---|
557 | FROM |
---|
558 | core_simple_data_category |
---|
559 | WHERE |
---|
560 | id = dc |
---|
561 | INTO |
---|
562 | datcat |
---|
563 | ; |
---|
564 | IF |
---|
565 | datcat IS NULL |
---|
566 | THEN |
---|
567 | SELECT |
---|
568 | id |
---|
569 | FROM |
---|
570 | core_container_data_category |
---|
571 | WHERE |
---|
572 | id = dc |
---|
573 | INTO |
---|
574 | datcat |
---|
575 | ; |
---|
576 | IF |
---|
577 | datcat IS NULL |
---|
578 | THEN |
---|
579 | SELECT |
---|
580 | id |
---|
581 | FROM |
---|
582 | core_closed_data_category |
---|
583 | WHERE |
---|
584 | id = dc |
---|
585 | INTO |
---|
586 | datcat |
---|
587 | ; |
---|
588 | IF |
---|
589 | datcat IS NULL |
---|
590 | THEN |
---|
591 | SELECT |
---|
592 | id |
---|
593 | FROM |
---|
594 | core_constrained_data_category |
---|
595 | WHERE |
---|
596 | id = dc |
---|
597 | INTO |
---|
598 | datcat |
---|
599 | ; |
---|
600 | IF |
---|
601 | datcat IS NULL |
---|
602 | THEN |
---|
603 | SELECT |
---|
604 | id |
---|
605 | FROM |
---|
606 | core_open_data_category |
---|
607 | WHERE |
---|
608 | id = dc |
---|
609 | INTO |
---|
610 | datcat |
---|
611 | ; |
---|
612 | IF |
---|
613 | datcat IS NULL |
---|
614 | THEN |
---|
615 | RETURN 'unknown'; |
---|
616 | ELSE |
---|
617 | RETURN 'open'; |
---|
618 | END IF; |
---|
619 | ELSE |
---|
620 | RETURN 'constrained'; |
---|
621 | END IF; |
---|
622 | ELSE |
---|
623 | RETURN 'closed'; |
---|
624 | END IF; |
---|
625 | ELSE |
---|
626 | RETURN 'container'; |
---|
627 | END IF; |
---|
628 | ELSE |
---|
629 | RETURN 'simple'; |
---|
630 | END IF; |
---|
631 | END; |
---|
632 | $$; |
---|
633 | |
---|
634 | |
---|
635 | -- |
---|
636 | -- TOC entry 30 (class 1255 OID 359085) |
---|
637 | -- Dependencies: 552 6 |
---|
638 | -- Name: merge_accounts(integer, integer); Type: FUNCTION; Schema: public; Owner: - |
---|
639 | -- |
---|
640 | |
---|
641 | CREATE FUNCTION merge_accounts(keep integer, remove integer) RETURNS integer |
---|
642 | LANGUAGE plpgsql |
---|
643 | AS $$ |
---|
644 | DECLARE |
---|
645 | BEGIN |
---|
646 | -- owned DCs |
---|
647 | UPDATE core_data_category SET owner = keep WHERE owner = remove; |
---|
648 | -- owned DCSs |
---|
649 | UPDATE core_data_category_selection SET owner = keep WHERE owner = remove; |
---|
650 | -- owned groups |
---|
651 | UPDATE core_adhoc_group SET owner = keep WHERE owner = remove; |
---|
652 | -- owned submissions |
---|
653 | UPDATE core_submission_group SET owner = keep WHERE owner = remove; |
---|
654 | -- shared DCs |
---|
655 | DELETE FROM |
---|
656 | link_dc_access |
---|
657 | USING |
---|
658 | link_dc_access AS checker |
---|
659 | WHERE |
---|
660 | link_dc_access.dc = checker.dc |
---|
661 | AND |
---|
662 | checker.account = keep |
---|
663 | AND |
---|
664 | link_dc_access.account = remove |
---|
665 | ; |
---|
666 | UPDATE link_dc_access SET account = keep WHERE account = remove; |
---|
667 | -- shared DCSs |
---|
668 | DELETE FROM |
---|
669 | link_dcs_access |
---|
670 | USING |
---|
671 | link_dcs_access AS checker |
---|
672 | WHERE |
---|
673 | link_dcs_access.dcs = checker.dcs |
---|
674 | AND |
---|
675 | checker.account = keep |
---|
676 | AND |
---|
677 | link_dcs_access.account = remove |
---|
678 | ; |
---|
679 | UPDATE link_dcs_access SET account = keep WHERE account = remove; |
---|
680 | -- votes |
---|
681 | UPDATE core_change_request_vote SET judge = keep WHERE judge = remove; |
---|
682 | -- DC status changes |
---|
683 | UPDATE core_dc_status_log SET "user" = keep WHERE "user" = remove; |
---|
684 | -- messages send |
---|
685 | UPDATE core_message SET "from" = keep WHERE "from" = remove; |
---|
686 | -- messages received |
---|
687 | UPDATE core_message SET "to" = keep WHERE "to" = remove; |
---|
688 | -- texts |
---|
689 | UPDATE generic_text SET "user" = keep WHERE "user" = remove; |
---|
690 | -- group memberships |
---|
691 | DELETE FROM |
---|
692 | link_group_members |
---|
693 | USING |
---|
694 | link_group_members AS checker |
---|
695 | WHERE |
---|
696 | link_group_members."group" = checker."group" |
---|
697 | AND |
---|
698 | checker.member= keep |
---|
699 | AND |
---|
700 | link_group_members.member = remove |
---|
701 | ; |
---|
702 | UPDATE link_group_members SET member = keep WHERE member = remove; |
---|
703 | |
---|
704 | -- SYNTAX residu |
---|
705 | UPDATE link_data_category_selection_users SET "user" = keep WHERE "user" = remove; |
---|
706 | |
---|
707 | -- delete owner |
---|
708 | DELETE FROM core_owner WHERE id = remove; |
---|
709 | -- delete account |
---|
710 | DELETE FROM core_account WHERE id = remove; |
---|
711 | RETURN keep; |
---|
712 | END; |
---|
713 | $$; |
---|
714 | |
---|
715 | |
---|
716 | -- |
---|
717 | -- TOC entry 31 (class 1255 OID 359086) |
---|
718 | -- Dependencies: 6 552 |
---|
719 | -- Name: pid(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
720 | -- |
---|
721 | |
---|
722 | CREATE FUNCTION pid(dcid integer) RETURNS character varying |
---|
723 | LANGUAGE plpgsql |
---|
724 | AS $$ |
---|
725 | DECLARE |
---|
726 | dc RECORD; |
---|
727 | BEGIN |
---|
728 | SELECT |
---|
729 | * |
---|
730 | INTO |
---|
731 | dc |
---|
732 | FROM |
---|
733 | core_data_category |
---|
734 | WHERE |
---|
735 | id = dcid |
---|
736 | ; |
---|
737 | IF |
---|
738 | dc.registration_status = 2 |
---|
739 | THEN |
---|
740 | RETURN 'http://www.isocat.org/datcat/ISO-DC-' || dc.id; |
---|
741 | ELSE |
---|
742 | RETURN 'http://www.isocat.org/datcat/DC-' || dc.id; |
---|
743 | END IF; |
---|
744 | END; |
---|
745 | $$; |
---|
746 | |
---|
747 | |
---|
748 | -- |
---|
749 | -- TOC entry 32 (class 1255 OID 359087) |
---|
750 | -- Dependencies: 6 552 |
---|
751 | -- Name: prevent_super_cycle(); Type: FUNCTION; Schema: public; Owner: - |
---|
752 | -- |
---|
753 | |
---|
754 | CREATE FUNCTION prevent_super_cycle() RETURNS trigger |
---|
755 | LANGUAGE plpgsql |
---|
756 | AS $$ |
---|
757 | DECLARE |
---|
758 | BEGIN |
---|
759 | |
---|
760 | IF (dc_super_cycle(ARRAY[NEW.dc],NEW.super)) |
---|
761 | THEN |
---|
762 | RAISE EXCEPTION 'Making DC[%] the super of simple DC[%] would create a cycle, so the insert was canceled!', NEW.super, NEW.dc; |
---|
763 | END IF; |
---|
764 | |
---|
765 | RETURN NEW; |
---|
766 | |
---|
767 | END; |
---|
768 | $$; |
---|
769 | |
---|
770 | |
---|
771 | -- |
---|
772 | -- TOC entry 33 (class 1255 OID 359088) |
---|
773 | -- Dependencies: 552 6 |
---|
774 | -- Name: profile_ancestors(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
775 | -- |
---|
776 | |
---|
777 | CREATE FUNCTION profile_ancestors(prof integer) RETURNS SETOF integer |
---|
778 | LANGUAGE plpgsql |
---|
779 | AS $$ |
---|
780 | DECLARE |
---|
781 | parent RECORD; |
---|
782 | ancestor RECORD; |
---|
783 | BEGIN |
---|
784 | SELECT |
---|
785 | * |
---|
786 | INTO |
---|
787 | parent |
---|
788 | FROM |
---|
789 | core_profile |
---|
790 | WHERE |
---|
791 | id = prof; |
---|
792 | IF |
---|
793 | parent.parent IS NOT NULL |
---|
794 | THEN |
---|
795 | FOR ancestor IN SELECT * FROM profile_ancestors(parent.parent) LOOP |
---|
796 | RETURN NEXT ancestor.profile_ancestors; |
---|
797 | END LOOP; |
---|
798 | RETURN NEXT parent.parent; |
---|
799 | END IF; |
---|
800 | END; |
---|
801 | $$; |
---|
802 | |
---|
803 | |
---|
804 | -- |
---|
805 | -- TOC entry 34 (class 1255 OID 359089) |
---|
806 | -- Dependencies: 552 6 |
---|
807 | -- Name: profile_path(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
808 | -- |
---|
809 | |
---|
810 | CREATE FUNCTION profile_path(prof integer) RETURNS SETOF integer |
---|
811 | LANGUAGE plpgsql |
---|
812 | AS $$ |
---|
813 | DECLARE |
---|
814 | parent RECORD; |
---|
815 | ancestor RECORD; |
---|
816 | BEGIN |
---|
817 | SELECT |
---|
818 | * |
---|
819 | INTO |
---|
820 | parent |
---|
821 | FROM |
---|
822 | core_profile |
---|
823 | WHERE |
---|
824 | id = prof |
---|
825 | ; |
---|
826 | IF |
---|
827 | parent.parent IS NOT NULL |
---|
828 | THEN |
---|
829 | FOR ancestor IN SELECT * FROM profile_path(parent.parent) LOOP |
---|
830 | RETURN NEXT ancestor.profile_path; |
---|
831 | END LOOP; |
---|
832 | END IF; |
---|
833 | RETURN NEXT prof; |
---|
834 | END; |
---|
835 | $$; |
---|
836 | |
---|
837 | |
---|
838 | -- |
---|
839 | -- TOC entry 35 (class 1255 OID 359090) |
---|
840 | -- Dependencies: 552 6 |
---|
841 | -- Name: profile_self_or_descendants(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
842 | -- |
---|
843 | |
---|
844 | CREATE FUNCTION profile_self_or_descendants(prof integer) RETURNS SETOF integer |
---|
845 | LANGUAGE plpgsql |
---|
846 | AS $$ |
---|
847 | DECLARE |
---|
848 | child RECORD; |
---|
849 | descendant RECORD; |
---|
850 | BEGIN |
---|
851 | FOR child IN SELECT * FROM core_profile WHERE parent=prof LOOP |
---|
852 | FOR descendant IN SELECT * FROM profile_self_or_descendants(child.id) LOOP |
---|
853 | RETURN NEXT descendant.profile_self_or_descendants; |
---|
854 | END LOOP; |
---|
855 | END LOOP; |
---|
856 | RETURN NEXT prof; |
---|
857 | END; |
---|
858 | $$; |
---|
859 | |
---|
860 | |
---|
861 | -- |
---|
862 | -- TOC entry 36 (class 1255 OID 359091) |
---|
863 | -- Dependencies: 6 552 |
---|
864 | -- Name: update_search_identifier(); Type: FUNCTION; Schema: public; Owner: - |
---|
865 | -- |
---|
866 | |
---|
867 | CREATE FUNCTION update_search_identifier() RETURNS trigger |
---|
868 | LANGUAGE plpgsql |
---|
869 | AS $$ |
---|
870 | DECLARE |
---|
871 | lang RECORD; |
---|
872 | BEGIN |
---|
873 | |
---|
874 | -- update the language independent search vector |
---|
875 | NEW.search = to_tsvector('simple',NEW.identifier); |
---|
876 | |
---|
877 | -- update the language specific search vector |
---|
878 | NEW.search_language = to_tsvector('english',NEW.identifier); |
---|
879 | |
---|
880 | RETURN NEW; |
---|
881 | |
---|
882 | END; |
---|
883 | $$; |
---|
884 | |
---|
885 | |
---|
886 | -- |
---|
887 | -- TOC entry 37 (class 1255 OID 359092) |
---|
888 | -- Dependencies: 6 552 |
---|
889 | -- Name: update_search_name(); Type: FUNCTION; Schema: public; Owner: - |
---|
890 | -- |
---|
891 | |
---|
892 | CREATE FUNCTION update_search_name() RETURNS trigger |
---|
893 | LANGUAGE plpgsql |
---|
894 | AS $$ |
---|
895 | DECLARE |
---|
896 | lang RECORD; |
---|
897 | BEGIN |
---|
898 | |
---|
899 | SELECT |
---|
900 | * |
---|
901 | INTO |
---|
902 | lang |
---|
903 | FROM |
---|
904 | core_language |
---|
905 | WHERE |
---|
906 | id = NEW.language |
---|
907 | ; |
---|
908 | |
---|
909 | -- update the language independent search vector |
---|
910 | NEW.search = to_tsvector('simple',NEW.name); |
---|
911 | |
---|
912 | -- update the language specific search vector |
---|
913 | NEW.search_language = to_tsvector(CAST(lang.search AS regconfig),NEW.name); |
---|
914 | |
---|
915 | RETURN NEW; |
---|
916 | |
---|
917 | END; |
---|
918 | $$; |
---|
919 | |
---|
920 | |
---|
921 | -- |
---|
922 | -- TOC entry 38 (class 1255 OID 359093) |
---|
923 | -- Dependencies: 552 6 |
---|
924 | -- Name: update_search_text(); Type: FUNCTION; Schema: public; Owner: - |
---|
925 | -- |
---|
926 | |
---|
927 | CREATE FUNCTION update_search_text() RETURNS trigger |
---|
928 | LANGUAGE plpgsql |
---|
929 | AS $$ |
---|
930 | DECLARE |
---|
931 | lang RECORD; |
---|
932 | BEGIN |
---|
933 | |
---|
934 | SELECT |
---|
935 | * |
---|
936 | INTO |
---|
937 | lang |
---|
938 | FROM |
---|
939 | core_language |
---|
940 | WHERE |
---|
941 | id = NEW.language |
---|
942 | ; |
---|
943 | |
---|
944 | -- update the language independent search vector |
---|
945 | NEW.search = to_tsvector('simple',NEW.text); |
---|
946 | |
---|
947 | -- update the language specific search vector |
---|
948 | NEW.search_language = to_tsvector(CAST(lang.search AS regconfig),NEW.text); |
---|
949 | |
---|
950 | RETURN NEW; |
---|
951 | |
---|
952 | END; |
---|
953 | $$; |
---|
954 | |
---|
955 | |
---|
956 | -- |
---|
957 | -- TOC entry 39 (class 1255 OID 359094) |
---|
958 | -- Dependencies: 552 6 |
---|
959 | -- Name: user_name(integer); Type: FUNCTION; Schema: public; Owner: - |
---|
960 | -- |
---|
961 | |
---|
962 | CREATE FUNCTION user_name(uid integer) RETURNS character varying |
---|
963 | LANGUAGE plpgsql |
---|
964 | AS $$ |
---|
965 | DECLARE |
---|
966 | profile RECORD; |
---|
967 | ancestor RECORD; |
---|
968 | BEGIN |
---|
969 | SELECT |
---|
970 | * |
---|
971 | INTO |
---|
972 | profile |
---|
973 | FROM |
---|
974 | core_user |
---|
975 | WHERE |
---|
976 | id = uid |
---|
977 | ; |
---|
978 | IF |
---|
979 | profile.last_name IS NOT NULL AND TRIM(profile.last_name) != '' |
---|
980 | THEN |
---|
981 | IF |
---|
982 | profile.first_name IS NOT NULL AND TRIM(profile.first_name) != '' |
---|
983 | THEN |
---|
984 | RETURN TRIM(profile.last_name) || ', ' || TRIM(profile.first_name); |
---|
985 | ELSE |
---|
986 | RETURN TRIM(profile.last_name); |
---|
987 | END IF; |
---|
988 | ELSE |
---|
989 | RETURN profile.login; |
---|
990 | END IF; |
---|
991 | END; |
---|
992 | $$; |
---|
993 | |
---|
994 | |
---|
995 | -- |
---|
996 | -- TOC entry 40 (class 1255 OID 359095) |
---|
997 | -- Dependencies: 6 |
---|
998 | -- Name: xpath_list(text, text); Type: FUNCTION; Schema: public; Owner: - |
---|
999 | -- |
---|
1000 | |
---|
1001 | CREATE FUNCTION xpath_list(text, text) RETURNS text |
---|
1002 | LANGUAGE sql IMMUTABLE STRICT |
---|
1003 | AS $_$SELECT xpath_list($1,$2,',')$_$; |
---|
1004 | |
---|
1005 | |
---|
1006 | -- |
---|
1007 | -- TOC entry 41 (class 1255 OID 359096) |
---|
1008 | -- Dependencies: 6 |
---|
1009 | -- Name: xpath_nodeset(text, text); Type: FUNCTION; Schema: public; Owner: - |
---|
1010 | -- |
---|
1011 | |
---|
1012 | CREATE FUNCTION xpath_nodeset(text, text) RETURNS text |
---|
1013 | LANGUAGE sql IMMUTABLE STRICT |
---|
1014 | AS $_$SELECT xpath_nodeset($1,$2,'','')$_$; |
---|
1015 | |
---|
1016 | |
---|
1017 | -- |
---|
1018 | -- TOC entry 42 (class 1255 OID 359097) |
---|
1019 | -- Dependencies: 6 |
---|
1020 | -- Name: xpath_nodeset(text, text, text); Type: FUNCTION; Schema: public; Owner: - |
---|
1021 | -- |
---|
1022 | |
---|
1023 | CREATE FUNCTION xpath_nodeset(text, text, text) RETURNS text |
---|
1024 | LANGUAGE sql IMMUTABLE STRICT |
---|
1025 | AS $_$SELECT xpath_nodeset($1,$2,'',$3)$_$; |
---|
1026 | |
---|
1027 | |
---|
1028 | -- |
---|
1029 | -- TOC entry 553 (class 1255 OID 359098) |
---|
1030 | -- Dependencies: 19 6 |
---|
1031 | -- Name: concat(text); Type: AGGREGATE; Schema: public; Owner: - |
---|
1032 | -- |
---|
1033 | |
---|
1034 | CREATE AGGREGATE concat(text) ( |
---|
1035 | SFUNC = public.concat, |
---|
1036 | STYPE = text, |
---|
1037 | INITCOND = '' |
---|
1038 | ); |
---|
1039 | |
---|
1040 | |
---|
1041 | SET default_tablespace = ''; |
---|
1042 | |
---|
1043 | SET default_with_oids = false; |
---|
1044 | |
---|
1045 | -- |
---|
1046 | -- TOC entry 1740 (class 1259 OID 359099) |
---|
1047 | -- Dependencies: 6 |
---|
1048 | -- Name: core_account; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1049 | -- |
---|
1050 | |
---|
1051 | CREATE TABLE core_account ( |
---|
1052 | id integer NOT NULL |
---|
1053 | ); |
---|
1054 | |
---|
1055 | |
---|
1056 | -- |
---|
1057 | -- TOC entry 2585 (class 0 OID 0) |
---|
1058 | -- Dependencies: 1740 |
---|
1059 | -- Name: TABLE core_account; Type: COMMENT; Schema: public; Owner: - |
---|
1060 | -- |
---|
1061 | |
---|
1062 | COMMENT ON TABLE core_account IS 'The core data table for accounts'; |
---|
1063 | |
---|
1064 | |
---|
1065 | -- |
---|
1066 | -- TOC entry 1741 (class 1259 OID 359102) |
---|
1067 | -- Dependencies: 1740 6 |
---|
1068 | -- Name: core_account_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
1069 | -- |
---|
1070 | |
---|
1071 | CREATE SEQUENCE core_account_id_seq |
---|
1072 | START WITH 1 |
---|
1073 | INCREMENT BY 1 |
---|
1074 | NO MAXVALUE |
---|
1075 | NO MINVALUE |
---|
1076 | CACHE 1; |
---|
1077 | |
---|
1078 | |
---|
1079 | -- |
---|
1080 | -- TOC entry 2586 (class 0 OID 0) |
---|
1081 | -- Dependencies: 1741 |
---|
1082 | -- Name: core_account_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
1083 | -- |
---|
1084 | |
---|
1085 | ALTER SEQUENCE core_account_id_seq OWNED BY core_account.id; |
---|
1086 | |
---|
1087 | |
---|
1088 | -- |
---|
1089 | -- TOC entry 1742 (class 1259 OID 359104) |
---|
1090 | -- Dependencies: 6 |
---|
1091 | -- Name: core_adhoc_group; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1092 | -- |
---|
1093 | |
---|
1094 | CREATE TABLE core_adhoc_group ( |
---|
1095 | id integer NOT NULL, |
---|
1096 | owner integer NOT NULL, |
---|
1097 | description character varying, |
---|
1098 | name character varying NOT NULL |
---|
1099 | ); |
---|
1100 | |
---|
1101 | |
---|
1102 | -- |
---|
1103 | -- TOC entry 2587 (class 0 OID 0) |
---|
1104 | -- Dependencies: 1742 |
---|
1105 | -- Name: TABLE core_adhoc_group; Type: COMMENT; Schema: public; Owner: - |
---|
1106 | -- |
---|
1107 | |
---|
1108 | COMMENT ON TABLE core_adhoc_group IS 'The core table for adhoc groups.'; |
---|
1109 | |
---|
1110 | |
---|
1111 | -- |
---|
1112 | -- TOC entry 1743 (class 1259 OID 359110) |
---|
1113 | -- Dependencies: 2137 328 6 |
---|
1114 | -- Name: core_change_request; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1115 | -- |
---|
1116 | |
---|
1117 | CREATE TABLE core_change_request ( |
---|
1118 | id integer NOT NULL, |
---|
1119 | name character varying NOT NULL, |
---|
1120 | tdg integer NOT NULL, |
---|
1121 | submission_group integer NOT NULL, |
---|
1122 | decision_group_tdg integer, |
---|
1123 | forum integer, |
---|
1124 | forum_group integer, |
---|
1125 | decision_group_dcrb integer, |
---|
1126 | dcs integer NOT NULL, |
---|
1127 | status administration_status_enum DEFAULT 'submission'::administration_status_enum NOT NULL, |
---|
1128 | start timestamp with time zone, |
---|
1129 | stop timestamp with time zone |
---|
1130 | ); |
---|
1131 | |
---|
1132 | |
---|
1133 | -- |
---|
1134 | -- TOC entry 2588 (class 0 OID 0) |
---|
1135 | -- Dependencies: 1743 |
---|
1136 | -- Name: TABLE core_change_request; Type: COMMENT; Schema: public; Owner: - |
---|
1137 | -- |
---|
1138 | |
---|
1139 | COMMENT ON TABLE core_change_request IS 'The core data table for change requests.'; |
---|
1140 | |
---|
1141 | |
---|
1142 | -- |
---|
1143 | -- TOC entry 1744 (class 1259 OID 359117) |
---|
1144 | -- Dependencies: 1743 6 |
---|
1145 | -- Name: core_change_request_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
1146 | -- |
---|
1147 | |
---|
1148 | CREATE SEQUENCE core_change_request_id_seq |
---|
1149 | START WITH 1 |
---|
1150 | INCREMENT BY 1 |
---|
1151 | NO MAXVALUE |
---|
1152 | NO MINVALUE |
---|
1153 | CACHE 1; |
---|
1154 | |
---|
1155 | |
---|
1156 | -- |
---|
1157 | -- TOC entry 2589 (class 0 OID 0) |
---|
1158 | -- Dependencies: 1744 |
---|
1159 | -- Name: core_change_request_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
1160 | -- |
---|
1161 | |
---|
1162 | ALTER SEQUENCE core_change_request_id_seq OWNED BY core_change_request.id; |
---|
1163 | |
---|
1164 | |
---|
1165 | -- |
---|
1166 | -- TOC entry 1745 (class 1259 OID 359119) |
---|
1167 | -- Dependencies: 2139 328 6 |
---|
1168 | -- Name: core_change_request_vote; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1169 | -- |
---|
1170 | |
---|
1171 | CREATE TABLE core_change_request_vote ( |
---|
1172 | id integer NOT NULL, |
---|
1173 | cr integer NOT NULL, |
---|
1174 | judge integer NOT NULL, |
---|
1175 | dc integer NOT NULL, |
---|
1176 | accept boolean, |
---|
1177 | status administration_status_enum NOT NULL, |
---|
1178 | "when" timestamp with time zone DEFAULT ('now'::text)::timestamp with time zone NOT NULL |
---|
1179 | ); |
---|
1180 | |
---|
1181 | |
---|
1182 | -- |
---|
1183 | -- TOC entry 1746 (class 1259 OID 359123) |
---|
1184 | -- Dependencies: 1745 6 |
---|
1185 | -- Name: core_change_request_vote_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
1186 | -- |
---|
1187 | |
---|
1188 | CREATE SEQUENCE core_change_request_vote_id_seq |
---|
1189 | START WITH 1 |
---|
1190 | INCREMENT BY 1 |
---|
1191 | NO MAXVALUE |
---|
1192 | NO MINVALUE |
---|
1193 | CACHE 1; |
---|
1194 | |
---|
1195 | |
---|
1196 | -- |
---|
1197 | -- TOC entry 2590 (class 0 OID 0) |
---|
1198 | -- Dependencies: 1746 |
---|
1199 | -- Name: core_change_request_vote_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
1200 | -- |
---|
1201 | |
---|
1202 | ALTER SEQUENCE core_change_request_vote_id_seq OWNED BY core_change_request_vote.id; |
---|
1203 | |
---|
1204 | |
---|
1205 | -- |
---|
1206 | -- TOC entry 1747 (class 1259 OID 359125) |
---|
1207 | -- Dependencies: 6 |
---|
1208 | -- Name: core_closed_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1209 | -- |
---|
1210 | |
---|
1211 | CREATE TABLE core_closed_data_category ( |
---|
1212 | id integer NOT NULL |
---|
1213 | ); |
---|
1214 | |
---|
1215 | |
---|
1216 | -- |
---|
1217 | -- TOC entry 2591 (class 0 OID 0) |
---|
1218 | -- Dependencies: 1747 |
---|
1219 | -- Name: TABLE core_closed_data_category; Type: COMMENT; Schema: public; Owner: - |
---|
1220 | -- |
---|
1221 | |
---|
1222 | COMMENT ON TABLE core_closed_data_category IS 'The core data table for closed Data Categories.'; |
---|
1223 | |
---|
1224 | |
---|
1225 | -- |
---|
1226 | -- TOC entry 1748 (class 1259 OID 359128) |
---|
1227 | -- Dependencies: 6 |
---|
1228 | -- Name: core_closed_linguistic_section; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1229 | -- |
---|
1230 | |
---|
1231 | CREATE TABLE core_closed_linguistic_section ( |
---|
1232 | id integer NOT NULL, |
---|
1233 | cd integer, |
---|
1234 | dc integer NOT NULL |
---|
1235 | ); |
---|
1236 | |
---|
1237 | |
---|
1238 | -- |
---|
1239 | -- TOC entry 2592 (class 0 OID 0) |
---|
1240 | -- Dependencies: 1748 |
---|
1241 | -- Name: TABLE core_closed_linguistic_section; Type: COMMENT; Schema: public; Owner: - |
---|
1242 | -- |
---|
1243 | |
---|
1244 | COMMENT ON TABLE core_closed_linguistic_section IS 'The core data table for closed linguistic sections.'; |
---|
1245 | |
---|
1246 | |
---|
1247 | -- |
---|
1248 | -- TOC entry 2593 (class 0 OID 0) |
---|
1249 | -- Dependencies: 1748 |
---|
1250 | -- Name: COLUMN core_closed_linguistic_section.cd; Type: COMMENT; Schema: public; Owner: - |
---|
1251 | -- |
---|
1252 | |
---|
1253 | COMMENT ON COLUMN core_closed_linguistic_section.cd IS 'The value domain of this closed linguistic section.'; |
---|
1254 | |
---|
1255 | |
---|
1256 | -- |
---|
1257 | -- TOC entry 1749 (class 1259 OID 359131) |
---|
1258 | -- Dependencies: 6 |
---|
1259 | -- Name: core_complex_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1260 | -- |
---|
1261 | |
---|
1262 | CREATE TABLE core_complex_data_category ( |
---|
1263 | id integer NOT NULL |
---|
1264 | ); |
---|
1265 | |
---|
1266 | |
---|
1267 | -- |
---|
1268 | -- TOC entry 2594 (class 0 OID 0) |
---|
1269 | -- Dependencies: 1749 |
---|
1270 | -- Name: TABLE core_complex_data_category; Type: COMMENT; Schema: public; Owner: - |
---|
1271 | -- |
---|
1272 | |
---|
1273 | COMMENT ON TABLE core_complex_data_category IS 'The core data table for complex Data Categories.'; |
---|
1274 | |
---|
1275 | |
---|
1276 | -- |
---|
1277 | -- TOC entry 2595 (class 0 OID 0) |
---|
1278 | -- Dependencies: 1749 |
---|
1279 | -- Name: COLUMN core_complex_data_category.id; Type: COMMENT; Schema: public; Owner: - |
---|
1280 | -- |
---|
1281 | |
---|
1282 | COMMENT ON COLUMN core_complex_data_category.id IS 'The id of this complex Data Category.'; |
---|
1283 | |
---|
1284 | |
---|
1285 | -- |
---|
1286 | -- TOC entry 1750 (class 1259 OID 359134) |
---|
1287 | -- Dependencies: 2141 6 |
---|
1288 | -- Name: core_conceptual_domain; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1289 | -- |
---|
1290 | |
---|
1291 | CREATE TABLE core_conceptual_domain ( |
---|
1292 | id integer NOT NULL, |
---|
1293 | data_type integer DEFAULT 1 NOT NULL |
---|
1294 | ); |
---|
1295 | |
---|
1296 | |
---|
1297 | -- |
---|
1298 | -- TOC entry 2596 (class 0 OID 0) |
---|
1299 | -- Dependencies: 1750 |
---|
1300 | -- Name: TABLE core_conceptual_domain; Type: COMMENT; Schema: public; Owner: - |
---|
1301 | -- |
---|
1302 | |
---|
1303 | COMMENT ON TABLE core_conceptual_domain IS 'The core data table for conceptual domains.'; |
---|
1304 | |
---|
1305 | |
---|
1306 | -- |
---|
1307 | -- TOC entry 2597 (class 0 OID 0) |
---|
1308 | -- Dependencies: 1750 |
---|
1309 | -- Name: COLUMN core_conceptual_domain.id; Type: COMMENT; Schema: public; Owner: - |
---|
1310 | -- |
---|
1311 | |
---|
1312 | COMMENT ON COLUMN core_conceptual_domain.id IS 'The id of this conceptual domain.'; |
---|
1313 | |
---|
1314 | |
---|
1315 | -- |
---|
1316 | -- TOC entry 2598 (class 0 OID 0) |
---|
1317 | -- Dependencies: 1750 |
---|
1318 | -- Name: COLUMN core_conceptual_domain.data_type; Type: COMMENT; Schema: public; Owner: - |
---|
1319 | -- |
---|
1320 | |
---|
1321 | COMMENT ON COLUMN core_conceptual_domain.data_type IS 'The data type of this conceptual domain.'; |
---|
1322 | |
---|
1323 | |
---|
1324 | -- |
---|
1325 | -- TOC entry 1751 (class 1259 OID 359138) |
---|
1326 | -- Dependencies: 6 1750 |
---|
1327 | -- Name: core_conceptual_domain_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
1328 | -- |
---|
1329 | |
---|
1330 | CREATE SEQUENCE core_conceptual_domain_id_seq |
---|
1331 | START WITH 1 |
---|
1332 | INCREMENT BY 1 |
---|
1333 | NO MAXVALUE |
---|
1334 | NO MINVALUE |
---|
1335 | CACHE 1; |
---|
1336 | |
---|
1337 | |
---|
1338 | -- |
---|
1339 | -- TOC entry 2599 (class 0 OID 0) |
---|
1340 | -- Dependencies: 1751 |
---|
1341 | -- Name: core_conceptual_domain_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
1342 | -- |
---|
1343 | |
---|
1344 | ALTER SEQUENCE core_conceptual_domain_id_seq OWNED BY core_conceptual_domain.id; |
---|
1345 | |
---|
1346 | |
---|
1347 | -- |
---|
1348 | -- TOC entry 1752 (class 1259 OID 359140) |
---|
1349 | -- Dependencies: 6 |
---|
1350 | -- Name: core_conceptual_domain_rule; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1351 | -- |
---|
1352 | |
---|
1353 | CREATE TABLE core_conceptual_domain_rule ( |
---|
1354 | id integer NOT NULL, |
---|
1355 | rule_type integer NOT NULL |
---|
1356 | ); |
---|
1357 | |
---|
1358 | |
---|
1359 | -- |
---|
1360 | -- TOC entry 2600 (class 0 OID 0) |
---|
1361 | -- Dependencies: 1752 |
---|
1362 | -- Name: TABLE core_conceptual_domain_rule; Type: COMMENT; Schema: public; Owner: - |
---|
1363 | -- |
---|
1364 | |
---|
1365 | COMMENT ON TABLE core_conceptual_domain_rule IS 'A constrained conceptual domain consists of rules in a specific rule language.'; |
---|
1366 | |
---|
1367 | |
---|
1368 | -- |
---|
1369 | -- TOC entry 1753 (class 1259 OID 359143) |
---|
1370 | -- Dependencies: 6 |
---|
1371 | -- Name: core_constrained_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1372 | -- |
---|
1373 | |
---|
1374 | CREATE TABLE core_constrained_data_category ( |
---|
1375 | id integer NOT NULL |
---|
1376 | ); |
---|
1377 | |
---|
1378 | |
---|
1379 | -- |
---|
1380 | -- TOC entry 2601 (class 0 OID 0) |
---|
1381 | -- Dependencies: 1753 |
---|
1382 | -- Name: TABLE core_constrained_data_category; Type: COMMENT; Schema: public; Owner: - |
---|
1383 | -- |
---|
1384 | |
---|
1385 | COMMENT ON TABLE core_constrained_data_category IS 'The core data table for constrained Data Categories.'; |
---|
1386 | |
---|
1387 | |
---|
1388 | -- |
---|
1389 | -- TOC entry 2602 (class 0 OID 0) |
---|
1390 | -- Dependencies: 1753 |
---|
1391 | -- Name: COLUMN core_constrained_data_category.id; Type: COMMENT; Schema: public; Owner: - |
---|
1392 | -- |
---|
1393 | |
---|
1394 | COMMENT ON COLUMN core_constrained_data_category.id IS 'The id of this constained Data Category.'; |
---|
1395 | |
---|
1396 | |
---|
1397 | -- |
---|
1398 | -- TOC entry 1754 (class 1259 OID 359146) |
---|
1399 | -- Dependencies: 6 |
---|
1400 | -- Name: core_constrained_linguistic_section; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1401 | -- |
---|
1402 | |
---|
1403 | CREATE TABLE core_constrained_linguistic_section ( |
---|
1404 | id integer NOT NULL, |
---|
1405 | dc integer NOT NULL |
---|
1406 | ); |
---|
1407 | |
---|
1408 | |
---|
1409 | -- |
---|
1410 | -- TOC entry 2603 (class 0 OID 0) |
---|
1411 | -- Dependencies: 1754 |
---|
1412 | -- Name: TABLE core_constrained_linguistic_section; Type: COMMENT; Schema: public; Owner: - |
---|
1413 | -- |
---|
1414 | |
---|
1415 | COMMENT ON TABLE core_constrained_linguistic_section IS 'The core data table for the constrained linguistic sections.'; |
---|
1416 | |
---|
1417 | |
---|
1418 | -- |
---|
1419 | -- TOC entry 1755 (class 1259 OID 359149) |
---|
1420 | -- Dependencies: 6 |
---|
1421 | -- Name: core_container_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1422 | -- |
---|
1423 | |
---|
1424 | CREATE TABLE core_container_data_category ( |
---|
1425 | id integer NOT NULL |
---|
1426 | ); |
---|
1427 | |
---|
1428 | |
---|
1429 | -- |
---|
1430 | -- TOC entry 1756 (class 1259 OID 359152) |
---|
1431 | -- Dependencies: 2143 2144 2145 2146 2147 2148 2149 2150 328 348 330 6 |
---|
1432 | -- Name: core_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1433 | -- |
---|
1434 | |
---|
1435 | CREATE TABLE core_data_category ( |
---|
1436 | id integer NOT NULL, |
---|
1437 | owner integer NOT NULL, |
---|
1438 | administration_status administration_status_enum DEFAULT 'private'::administration_status_enum NOT NULL, |
---|
1439 | registration_status registration_status_enum DEFAULT 'private'::registration_status_enum NOT NULL, |
---|
1440 | origin character varying, |
---|
1441 | effective_date date, |
---|
1442 | until_date date, |
---|
1443 | identifier character varying NOT NULL, |
---|
1444 | version character varying DEFAULT '1:0'::character varying NOT NULL, |
---|
1445 | previous integer, |
---|
1446 | private boolean DEFAULT true NOT NULL, |
---|
1447 | "check" check_result_enum DEFAULT 'unchecked'::check_result_enum NOT NULL, |
---|
1448 | justification character varying, |
---|
1449 | search tsvector, |
---|
1450 | search_language tsvector, |
---|
1451 | next integer, |
---|
1452 | branch character varying DEFAULT '0'::character varying NOT NULL, |
---|
1453 | revision integer DEFAULT 1 NOT NULL, |
---|
1454 | sidebranches integer DEFAULT 0 NOT NULL, |
---|
1455 | pid character varying, |
---|
1456 | name character varying, |
---|
1457 | type character varying |
---|
1458 | ); |
---|
1459 | |
---|
1460 | |
---|
1461 | -- |
---|
1462 | -- TOC entry 2604 (class 0 OID 0) |
---|
1463 | -- Dependencies: 1756 |
---|
1464 | -- Name: TABLE core_data_category; Type: COMMENT; Schema: public; Owner: - |
---|
1465 | -- |
---|
1466 | |
---|
1467 | COMMENT ON TABLE core_data_category IS 'The core data table for Data Categories.'; |
---|
1468 | |
---|
1469 | |
---|
1470 | -- |
---|
1471 | -- TOC entry 2605 (class 0 OID 0) |
---|
1472 | -- Dependencies: 1756 |
---|
1473 | -- Name: COLUMN core_data_category.id; Type: COMMENT; Schema: public; Owner: - |
---|
1474 | -- |
---|
1475 | |
---|
1476 | COMMENT ON COLUMN core_data_category.id IS 'The id of this Data Category.'; |
---|
1477 | |
---|
1478 | |
---|
1479 | -- |
---|
1480 | -- TOC entry 2606 (class 0 OID 0) |
---|
1481 | -- Dependencies: 1756 |
---|
1482 | -- Name: COLUMN core_data_category.owner; Type: COMMENT; Schema: public; Owner: - |
---|
1483 | -- |
---|
1484 | |
---|
1485 | COMMENT ON COLUMN core_data_category.owner IS 'The owner of this Data Category.'; |
---|
1486 | |
---|
1487 | |
---|
1488 | -- |
---|
1489 | -- TOC entry 2607 (class 0 OID 0) |
---|
1490 | -- Dependencies: 1756 |
---|
1491 | -- Name: COLUMN core_data_category.administration_status; Type: COMMENT; Schema: public; Owner: - |
---|
1492 | -- |
---|
1493 | |
---|
1494 | COMMENT ON COLUMN core_data_category.administration_status IS 'The administration status of this Data Category.'; |
---|
1495 | |
---|
1496 | |
---|
1497 | -- |
---|
1498 | -- TOC entry 2608 (class 0 OID 0) |
---|
1499 | -- Dependencies: 1756 |
---|
1500 | -- Name: COLUMN core_data_category.registration_status; Type: COMMENT; Schema: public; Owner: - |
---|
1501 | -- |
---|
1502 | |
---|
1503 | COMMENT ON COLUMN core_data_category.registration_status IS 'The registration status of this Data Category.'; |
---|
1504 | |
---|
1505 | |
---|
1506 | -- |
---|
1507 | -- TOC entry 2609 (class 0 OID 0) |
---|
1508 | -- Dependencies: 1756 |
---|
1509 | -- Name: COLUMN core_data_category.origin; Type: COMMENT; Schema: public; Owner: - |
---|
1510 | -- |
---|
1511 | |
---|
1512 | COMMENT ON COLUMN core_data_category.origin IS 'The origin of this Data Category.'; |
---|
1513 | |
---|
1514 | |
---|
1515 | -- |
---|
1516 | -- TOC entry 2610 (class 0 OID 0) |
---|
1517 | -- Dependencies: 1756 |
---|
1518 | -- Name: COLUMN core_data_category.effective_date; Type: COMMENT; Schema: public; Owner: - |
---|
1519 | -- |
---|
1520 | |
---|
1521 | COMMENT ON COLUMN core_data_category.effective_date IS 'The date this Data Category will become available to users.'; |
---|
1522 | |
---|
1523 | |
---|
1524 | -- |
---|
1525 | -- TOC entry 2611 (class 0 OID 0) |
---|
1526 | -- Dependencies: 1756 |
---|
1527 | -- Name: COLUMN core_data_category.until_date; Type: COMMENT; Schema: public; Owner: - |
---|
1528 | -- |
---|
1529 | |
---|
1530 | COMMENT ON COLUMN core_data_category.until_date IS 'The date this Data Category is no longer effective.'; |
---|
1531 | |
---|
1532 | |
---|
1533 | -- |
---|
1534 | -- TOC entry 2612 (class 0 OID 0) |
---|
1535 | -- Dependencies: 1756 |
---|
1536 | -- Name: COLUMN core_data_category.identifier; Type: COMMENT; Schema: public; Owner: - |
---|
1537 | -- |
---|
1538 | |
---|
1539 | COMMENT ON COLUMN core_data_category.identifier IS 'The human readable identifier of the Data Category.'; |
---|
1540 | |
---|
1541 | |
---|
1542 | -- |
---|
1543 | -- TOC entry 2613 (class 0 OID 0) |
---|
1544 | -- Dependencies: 1756 |
---|
1545 | -- Name: COLUMN core_data_category.version; Type: COMMENT; Schema: public; Owner: - |
---|
1546 | -- |
---|
1547 | |
---|
1548 | COMMENT ON COLUMN core_data_category.version IS 'The version of the Data Category.'; |
---|
1549 | |
---|
1550 | |
---|
1551 | -- |
---|
1552 | -- TOC entry 2614 (class 0 OID 0) |
---|
1553 | -- Dependencies: 1756 |
---|
1554 | -- Name: COLUMN core_data_category.previous; Type: COMMENT; Schema: public; Owner: - |
---|
1555 | -- |
---|
1556 | |
---|
1557 | COMMENT ON COLUMN core_data_category.previous IS 'The id of the previous version of this Data Category.'; |
---|
1558 | |
---|
1559 | |
---|
1560 | -- |
---|
1561 | -- TOC entry 2615 (class 0 OID 0) |
---|
1562 | -- Dependencies: 1756 |
---|
1563 | -- Name: COLUMN core_data_category.private; Type: COMMENT; Schema: public; Owner: - |
---|
1564 | -- |
---|
1565 | |
---|
1566 | COMMENT ON COLUMN core_data_category.private IS 'The private flag of this Data Category.'; |
---|
1567 | |
---|
1568 | |
---|
1569 | -- |
---|
1570 | -- TOC entry 2616 (class 0 OID 0) |
---|
1571 | -- Dependencies: 1756 |
---|
1572 | -- Name: COLUMN core_data_category.justification; Type: COMMENT; Schema: public; Owner: - |
---|
1573 | -- |
---|
1574 | |
---|
1575 | COMMENT ON COLUMN core_data_category.justification IS 'The justification for this Data Category.'; |
---|
1576 | |
---|
1577 | |
---|
1578 | -- |
---|
1579 | -- TOC entry 1757 (class 1259 OID 359166) |
---|
1580 | -- Dependencies: 6 1756 |
---|
1581 | -- Name: core_data_category_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
1582 | -- |
---|
1583 | |
---|
1584 | CREATE SEQUENCE core_data_category_id_seq |
---|
1585 | START WITH 1 |
---|
1586 | INCREMENT BY 1 |
---|
1587 | NO MAXVALUE |
---|
1588 | NO MINVALUE |
---|
1589 | CACHE 1; |
---|
1590 | |
---|
1591 | |
---|
1592 | -- |
---|
1593 | -- TOC entry 2617 (class 0 OID 0) |
---|
1594 | -- Dependencies: 1757 |
---|
1595 | -- Name: core_data_category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
1596 | -- |
---|
1597 | |
---|
1598 | ALTER SEQUENCE core_data_category_id_seq OWNED BY core_data_category.id; |
---|
1599 | |
---|
1600 | |
---|
1601 | -- |
---|
1602 | -- TOC entry 1758 (class 1259 OID 359168) |
---|
1603 | -- Dependencies: 2152 6 |
---|
1604 | -- Name: core_data_category_selection; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1605 | -- |
---|
1606 | |
---|
1607 | CREATE TABLE core_data_category_selection ( |
---|
1608 | id integer NOT NULL, |
---|
1609 | name character varying NOT NULL, |
---|
1610 | owner integer NOT NULL, |
---|
1611 | parent integer, |
---|
1612 | private boolean DEFAULT true NOT NULL |
---|
1613 | ); |
---|
1614 | |
---|
1615 | |
---|
1616 | -- |
---|
1617 | -- TOC entry 2618 (class 0 OID 0) |
---|
1618 | -- Dependencies: 1758 |
---|
1619 | -- Name: TABLE core_data_category_selection; Type: COMMENT; Schema: public; Owner: - |
---|
1620 | -- |
---|
1621 | |
---|
1622 | COMMENT ON TABLE core_data_category_selection IS 'The core data table for Data Category Selections.'; |
---|
1623 | |
---|
1624 | |
---|
1625 | -- |
---|
1626 | -- TOC entry 2619 (class 0 OID 0) |
---|
1627 | -- Dependencies: 1758 |
---|
1628 | -- Name: COLUMN core_data_category_selection.id; Type: COMMENT; Schema: public; Owner: - |
---|
1629 | -- |
---|
1630 | |
---|
1631 | COMMENT ON COLUMN core_data_category_selection.id IS 'The id of this Data Category Selection.'; |
---|
1632 | |
---|
1633 | |
---|
1634 | -- |
---|
1635 | -- TOC entry 2620 (class 0 OID 0) |
---|
1636 | -- Dependencies: 1758 |
---|
1637 | -- Name: COLUMN core_data_category_selection.name; Type: COMMENT; Schema: public; Owner: - |
---|
1638 | -- |
---|
1639 | |
---|
1640 | COMMENT ON COLUMN core_data_category_selection.name IS 'The name of this Data Category Selection.'; |
---|
1641 | |
---|
1642 | |
---|
1643 | -- |
---|
1644 | -- TOC entry 2621 (class 0 OID 0) |
---|
1645 | -- Dependencies: 1758 |
---|
1646 | -- Name: COLUMN core_data_category_selection.owner; Type: COMMENT; Schema: public; Owner: - |
---|
1647 | -- |
---|
1648 | |
---|
1649 | COMMENT ON COLUMN core_data_category_selection.owner IS 'The owner of this Data Category Selection.'; |
---|
1650 | |
---|
1651 | |
---|
1652 | -- |
---|
1653 | -- TOC entry 2622 (class 0 OID 0) |
---|
1654 | -- Dependencies: 1758 |
---|
1655 | -- Name: COLUMN core_data_category_selection.parent; Type: COMMENT; Schema: public; Owner: - |
---|
1656 | -- |
---|
1657 | |
---|
1658 | COMMENT ON COLUMN core_data_category_selection.parent IS 'The parent Data Category Selection of this Data Category Selection.'; |
---|
1659 | |
---|
1660 | |
---|
1661 | -- |
---|
1662 | -- TOC entry 2623 (class 0 OID 0) |
---|
1663 | -- Dependencies: 1758 |
---|
1664 | -- Name: COLUMN core_data_category_selection.private; Type: COMMENT; Schema: public; Owner: - |
---|
1665 | -- |
---|
1666 | |
---|
1667 | COMMENT ON COLUMN core_data_category_selection.private IS 'The private flag of this Data Category Selection.'; |
---|
1668 | |
---|
1669 | |
---|
1670 | -- |
---|
1671 | -- TOC entry 1759 (class 1259 OID 359175) |
---|
1672 | -- Dependencies: 6 1758 |
---|
1673 | -- Name: core_data_category_selection_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
1674 | -- |
---|
1675 | |
---|
1676 | CREATE SEQUENCE core_data_category_selection_id_seq |
---|
1677 | START WITH 1 |
---|
1678 | INCREMENT BY 1 |
---|
1679 | NO MAXVALUE |
---|
1680 | NO MINVALUE |
---|
1681 | CACHE 1; |
---|
1682 | |
---|
1683 | |
---|
1684 | -- |
---|
1685 | -- TOC entry 2624 (class 0 OID 0) |
---|
1686 | -- Dependencies: 1759 |
---|
1687 | -- Name: core_data_category_selection_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
1688 | -- |
---|
1689 | |
---|
1690 | ALTER SEQUENCE core_data_category_selection_id_seq OWNED BY core_data_category_selection.id; |
---|
1691 | |
---|
1692 | |
---|
1693 | -- |
---|
1694 | -- TOC entry 1760 (class 1259 OID 359177) |
---|
1695 | -- Dependencies: 6 |
---|
1696 | -- Name: core_data_type; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1697 | -- |
---|
1698 | |
---|
1699 | CREATE TABLE core_data_type ( |
---|
1700 | id integer NOT NULL, |
---|
1701 | data_type character varying NOT NULL, |
---|
1702 | super integer |
---|
1703 | ); |
---|
1704 | |
---|
1705 | |
---|
1706 | -- |
---|
1707 | -- TOC entry 2625 (class 0 OID 0) |
---|
1708 | -- Dependencies: 1760 |
---|
1709 | -- Name: TABLE core_data_type; Type: COMMENT; Schema: public; Owner: - |
---|
1710 | -- |
---|
1711 | |
---|
1712 | COMMENT ON TABLE core_data_type IS 'The core data table for data types.'; |
---|
1713 | |
---|
1714 | |
---|
1715 | -- |
---|
1716 | -- TOC entry 2626 (class 0 OID 0) |
---|
1717 | -- Dependencies: 1760 |
---|
1718 | -- Name: COLUMN core_data_type.id; Type: COMMENT; Schema: public; Owner: - |
---|
1719 | -- |
---|
1720 | |
---|
1721 | COMMENT ON COLUMN core_data_type.id IS 'The id of this data type.'; |
---|
1722 | |
---|
1723 | |
---|
1724 | -- |
---|
1725 | -- TOC entry 2627 (class 0 OID 0) |
---|
1726 | -- Dependencies: 1760 |
---|
1727 | -- Name: COLUMN core_data_type.data_type; Type: COMMENT; Schema: public; Owner: - |
---|
1728 | -- |
---|
1729 | |
---|
1730 | COMMENT ON COLUMN core_data_type.data_type IS 'The data type.'; |
---|
1731 | |
---|
1732 | |
---|
1733 | -- |
---|
1734 | -- TOC entry 2628 (class 0 OID 0) |
---|
1735 | -- Dependencies: 1760 |
---|
1736 | -- Name: COLUMN core_data_type.super; Type: COMMENT; Schema: public; Owner: - |
---|
1737 | -- |
---|
1738 | |
---|
1739 | COMMENT ON COLUMN core_data_type.super IS 'The super data type of this data type.'; |
---|
1740 | |
---|
1741 | |
---|
1742 | -- |
---|
1743 | -- TOC entry 1761 (class 1259 OID 359183) |
---|
1744 | -- Dependencies: 6 1760 |
---|
1745 | -- Name: core_data_type_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
1746 | -- |
---|
1747 | |
---|
1748 | CREATE SEQUENCE core_data_type_id_seq |
---|
1749 | START WITH 1 |
---|
1750 | INCREMENT BY 1 |
---|
1751 | NO MAXVALUE |
---|
1752 | NO MINVALUE |
---|
1753 | CACHE 1; |
---|
1754 | |
---|
1755 | |
---|
1756 | -- |
---|
1757 | -- TOC entry 2629 (class 0 OID 0) |
---|
1758 | -- Dependencies: 1761 |
---|
1759 | -- Name: core_data_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
1760 | -- |
---|
1761 | |
---|
1762 | ALTER SEQUENCE core_data_type_id_seq OWNED BY core_data_type.id; |
---|
1763 | |
---|
1764 | |
---|
1765 | -- |
---|
1766 | -- TOC entry 1762 (class 1259 OID 359185) |
---|
1767 | -- Dependencies: 2155 6 348 328 |
---|
1768 | -- Name: core_dc_status_log; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1769 | -- |
---|
1770 | |
---|
1771 | CREATE TABLE core_dc_status_log ( |
---|
1772 | id integer NOT NULL, |
---|
1773 | dc integer NOT NULL, |
---|
1774 | administration_status administration_status_enum NOT NULL, |
---|
1775 | registration_status registration_status_enum NOT NULL, |
---|
1776 | comment character varying, |
---|
1777 | "user" integer, |
---|
1778 | "timestamp" timestamp with time zone DEFAULT '2010-07-05 13:11:02.959+02'::timestamp with time zone NOT NULL |
---|
1779 | ); |
---|
1780 | |
---|
1781 | |
---|
1782 | -- |
---|
1783 | -- TOC entry 1763 (class 1259 OID 359192) |
---|
1784 | -- Dependencies: 2157 6 |
---|
1785 | -- Name: core_dcr_board; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1786 | -- |
---|
1787 | |
---|
1788 | CREATE TABLE core_dcr_board ( |
---|
1789 | id integer NOT NULL, |
---|
1790 | name character varying DEFAULT 'DCR Board'::character varying NOT NULL, |
---|
1791 | description character varying |
---|
1792 | ); |
---|
1793 | |
---|
1794 | |
---|
1795 | -- |
---|
1796 | -- TOC entry 1764 (class 1259 OID 359199) |
---|
1797 | -- Dependencies: 6 |
---|
1798 | -- Name: core_decision_group; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1799 | -- |
---|
1800 | |
---|
1801 | CREATE TABLE core_decision_group ( |
---|
1802 | id integer NOT NULL, |
---|
1803 | owner integer NOT NULL, |
---|
1804 | decision_date date, |
---|
1805 | dc integer NOT NULL |
---|
1806 | ); |
---|
1807 | |
---|
1808 | |
---|
1809 | -- |
---|
1810 | -- TOC entry 2630 (class 0 OID 0) |
---|
1811 | -- Dependencies: 1764 |
---|
1812 | -- Name: TABLE core_decision_group; Type: COMMENT; Schema: public; Owner: - |
---|
1813 | -- |
---|
1814 | |
---|
1815 | COMMENT ON TABLE core_decision_group IS 'The core data table for Decision Groups.'; |
---|
1816 | |
---|
1817 | |
---|
1818 | -- |
---|
1819 | -- TOC entry 2631 (class 0 OID 0) |
---|
1820 | -- Dependencies: 1764 |
---|
1821 | -- Name: COLUMN core_decision_group.id; Type: COMMENT; Schema: public; Owner: - |
---|
1822 | -- |
---|
1823 | |
---|
1824 | COMMENT ON COLUMN core_decision_group.id IS 'The id of this Decision Group.'; |
---|
1825 | |
---|
1826 | |
---|
1827 | -- |
---|
1828 | -- TOC entry 2632 (class 0 OID 0) |
---|
1829 | -- Dependencies: 1764 |
---|
1830 | -- Name: COLUMN core_decision_group.owner; Type: COMMENT; Schema: public; Owner: - |
---|
1831 | -- |
---|
1832 | |
---|
1833 | COMMENT ON COLUMN core_decision_group.owner IS 'The owner of this Descision Group.'; |
---|
1834 | |
---|
1835 | |
---|
1836 | -- |
---|
1837 | -- TOC entry 2633 (class 0 OID 0) |
---|
1838 | -- Dependencies: 1764 |
---|
1839 | -- Name: COLUMN core_decision_group.decision_date; Type: COMMENT; Schema: public; Owner: - |
---|
1840 | -- |
---|
1841 | |
---|
1842 | COMMENT ON COLUMN core_decision_group.decision_date IS 'The date this Decision Group reached a decision.'; |
---|
1843 | |
---|
1844 | |
---|
1845 | -- |
---|
1846 | -- TOC entry 2634 (class 0 OID 0) |
---|
1847 | -- Dependencies: 1764 |
---|
1848 | -- Name: COLUMN core_decision_group.dc; Type: COMMENT; Schema: public; Owner: - |
---|
1849 | -- |
---|
1850 | |
---|
1851 | COMMENT ON COLUMN core_decision_group.dc IS 'The Data Category this Decision Group decides upon.'; |
---|
1852 | |
---|
1853 | |
---|
1854 | -- |
---|
1855 | -- TOC entry 1765 (class 1259 OID 359202) |
---|
1856 | -- Dependencies: 2158 6 |
---|
1857 | -- Name: core_group; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1858 | -- |
---|
1859 | |
---|
1860 | CREATE TABLE core_group ( |
---|
1861 | id integer NOT NULL, |
---|
1862 | forum_public integer, |
---|
1863 | forum_private integer, |
---|
1864 | forum_group integer, |
---|
1865 | sync boolean DEFAULT true NOT NULL |
---|
1866 | ); |
---|
1867 | |
---|
1868 | |
---|
1869 | -- |
---|
1870 | -- TOC entry 1766 (class 1259 OID 359206) |
---|
1871 | -- Dependencies: 2159 2160 6 |
---|
1872 | -- Name: core_language; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1873 | -- |
---|
1874 | |
---|
1875 | CREATE TABLE core_language ( |
---|
1876 | id integer NOT NULL, |
---|
1877 | name character varying NOT NULL, |
---|
1878 | tag character varying, |
---|
1879 | search character varying DEFAULT 'simple'::character varying NOT NULL, |
---|
1880 | direction character varying DEFAULT 'ltr'::character varying NOT NULL, |
---|
1881 | tags character varying |
---|
1882 | ); |
---|
1883 | |
---|
1884 | |
---|
1885 | -- |
---|
1886 | -- TOC entry 2635 (class 0 OID 0) |
---|
1887 | -- Dependencies: 1766 |
---|
1888 | -- Name: TABLE core_language; Type: COMMENT; Schema: public; Owner: - |
---|
1889 | -- |
---|
1890 | |
---|
1891 | COMMENT ON TABLE core_language IS 'The core data table for languages.'; |
---|
1892 | |
---|
1893 | |
---|
1894 | -- |
---|
1895 | -- TOC entry 2636 (class 0 OID 0) |
---|
1896 | -- Dependencies: 1766 |
---|
1897 | -- Name: COLUMN core_language.id; Type: COMMENT; Schema: public; Owner: - |
---|
1898 | -- |
---|
1899 | |
---|
1900 | COMMENT ON COLUMN core_language.id IS 'The id of this language.'; |
---|
1901 | |
---|
1902 | |
---|
1903 | -- |
---|
1904 | -- TOC entry 2637 (class 0 OID 0) |
---|
1905 | -- Dependencies: 1766 |
---|
1906 | -- Name: COLUMN core_language.name; Type: COMMENT; Schema: public; Owner: - |
---|
1907 | -- |
---|
1908 | |
---|
1909 | COMMENT ON COLUMN core_language.name IS 'The full name of this language.'; |
---|
1910 | |
---|
1911 | |
---|
1912 | -- |
---|
1913 | -- TOC entry 2638 (class 0 OID 0) |
---|
1914 | -- Dependencies: 1766 |
---|
1915 | -- Name: COLUMN core_language.tag; Type: COMMENT; Schema: public; Owner: - |
---|
1916 | -- |
---|
1917 | |
---|
1918 | COMMENT ON COLUMN core_language.tag IS 'The tag for this language as used by the xml:lang attribute (see IETF RFC 3066).'; |
---|
1919 | |
---|
1920 | |
---|
1921 | -- |
---|
1922 | -- TOC entry 1767 (class 1259 OID 359214) |
---|
1923 | -- Dependencies: 1766 6 |
---|
1924 | -- Name: core_language_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
1925 | -- |
---|
1926 | |
---|
1927 | CREATE SEQUENCE core_language_id_seq |
---|
1928 | START WITH 1 |
---|
1929 | INCREMENT BY 1 |
---|
1930 | NO MAXVALUE |
---|
1931 | NO MINVALUE |
---|
1932 | CACHE 1; |
---|
1933 | |
---|
1934 | |
---|
1935 | -- |
---|
1936 | -- TOC entry 2639 (class 0 OID 0) |
---|
1937 | -- Dependencies: 1767 |
---|
1938 | -- Name: core_language_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
1939 | -- |
---|
1940 | |
---|
1941 | ALTER SEQUENCE core_language_id_seq OWNED BY core_language.id; |
---|
1942 | |
---|
1943 | |
---|
1944 | -- |
---|
1945 | -- TOC entry 1768 (class 1259 OID 359216) |
---|
1946 | -- Dependencies: 2162 6 |
---|
1947 | -- Name: core_language_section; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
1948 | -- |
---|
1949 | |
---|
1950 | CREATE TABLE core_language_section ( |
---|
1951 | id integer NOT NULL, |
---|
1952 | dc integer NOT NULL, |
---|
1953 | language integer DEFAULT 1 NOT NULL |
---|
1954 | ); |
---|
1955 | |
---|
1956 | |
---|
1957 | -- |
---|
1958 | -- TOC entry 2640 (class 0 OID 0) |
---|
1959 | -- Dependencies: 1768 |
---|
1960 | -- Name: TABLE core_language_section; Type: COMMENT; Schema: public; Owner: - |
---|
1961 | -- |
---|
1962 | |
---|
1963 | COMMENT ON TABLE core_language_section IS 'The core data table for language sections.'; |
---|
1964 | |
---|
1965 | |
---|
1966 | -- |
---|
1967 | -- TOC entry 2641 (class 0 OID 0) |
---|
1968 | -- Dependencies: 1768 |
---|
1969 | -- Name: COLUMN core_language_section.id; Type: COMMENT; Schema: public; Owner: - |
---|
1970 | -- |
---|
1971 | |
---|
1972 | COMMENT ON COLUMN core_language_section.id IS 'The id of the language section.'; |
---|
1973 | |
---|
1974 | |
---|
1975 | -- |
---|
1976 | -- TOC entry 2642 (class 0 OID 0) |
---|
1977 | -- Dependencies: 1768 |
---|
1978 | -- Name: COLUMN core_language_section.dc; Type: COMMENT; Schema: public; Owner: - |
---|
1979 | -- |
---|
1980 | |
---|
1981 | COMMENT ON COLUMN core_language_section.dc IS 'The Data Category of this language section.'; |
---|
1982 | |
---|
1983 | |
---|
1984 | -- |
---|
1985 | -- TOC entry 2643 (class 0 OID 0) |
---|
1986 | -- Dependencies: 1768 |
---|
1987 | -- Name: COLUMN core_language_section.language; Type: COMMENT; Schema: public; Owner: - |
---|
1988 | -- |
---|
1989 | |
---|
1990 | COMMENT ON COLUMN core_language_section.language IS 'The language of this language section.'; |
---|
1991 | |
---|
1992 | |
---|
1993 | -- |
---|
1994 | -- TOC entry 1769 (class 1259 OID 359220) |
---|
1995 | -- Dependencies: 6 1768 |
---|
1996 | -- Name: core_language_section_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
1997 | -- |
---|
1998 | |
---|
1999 | CREATE SEQUENCE core_language_section_id_seq |
---|
2000 | START WITH 1 |
---|
2001 | INCREMENT BY 1 |
---|
2002 | NO MAXVALUE |
---|
2003 | NO MINVALUE |
---|
2004 | CACHE 1; |
---|
2005 | |
---|
2006 | |
---|
2007 | -- |
---|
2008 | -- TOC entry 2644 (class 0 OID 0) |
---|
2009 | -- Dependencies: 1769 |
---|
2010 | -- Name: core_language_section_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2011 | -- |
---|
2012 | |
---|
2013 | ALTER SEQUENCE core_language_section_id_seq OWNED BY core_language_section.id; |
---|
2014 | |
---|
2015 | |
---|
2016 | -- |
---|
2017 | -- TOC entry 1770 (class 1259 OID 359222) |
---|
2018 | -- Dependencies: 2164 6 |
---|
2019 | -- Name: core_linguistic_section; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2020 | -- |
---|
2021 | |
---|
2022 | CREATE TABLE core_linguistic_section ( |
---|
2023 | id integer NOT NULL, |
---|
2024 | language integer DEFAULT 1 NOT NULL |
---|
2025 | ); |
---|
2026 | |
---|
2027 | |
---|
2028 | -- |
---|
2029 | -- TOC entry 2645 (class 0 OID 0) |
---|
2030 | -- Dependencies: 1770 |
---|
2031 | -- Name: TABLE core_linguistic_section; Type: COMMENT; Schema: public; Owner: - |
---|
2032 | -- |
---|
2033 | |
---|
2034 | COMMENT ON TABLE core_linguistic_section IS 'The core data table for linguistic sections.'; |
---|
2035 | |
---|
2036 | |
---|
2037 | -- |
---|
2038 | -- TOC entry 2646 (class 0 OID 0) |
---|
2039 | -- Dependencies: 1770 |
---|
2040 | -- Name: COLUMN core_linguistic_section.id; Type: COMMENT; Schema: public; Owner: - |
---|
2041 | -- |
---|
2042 | |
---|
2043 | COMMENT ON COLUMN core_linguistic_section.id IS 'The id of this linguistic section.'; |
---|
2044 | |
---|
2045 | |
---|
2046 | -- |
---|
2047 | -- TOC entry 2647 (class 0 OID 0) |
---|
2048 | -- Dependencies: 1770 |
---|
2049 | -- Name: COLUMN core_linguistic_section.language; Type: COMMENT; Schema: public; Owner: - |
---|
2050 | -- |
---|
2051 | |
---|
2052 | COMMENT ON COLUMN core_linguistic_section.language IS 'The language of this linguistic section.'; |
---|
2053 | |
---|
2054 | |
---|
2055 | -- |
---|
2056 | -- TOC entry 1771 (class 1259 OID 359226) |
---|
2057 | -- Dependencies: 6 1770 |
---|
2058 | -- Name: core_linguistic_section_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2059 | -- |
---|
2060 | |
---|
2061 | CREATE SEQUENCE core_linguistic_section_id_seq |
---|
2062 | START WITH 1 |
---|
2063 | INCREMENT BY 1 |
---|
2064 | NO MAXVALUE |
---|
2065 | NO MINVALUE |
---|
2066 | CACHE 1; |
---|
2067 | |
---|
2068 | |
---|
2069 | -- |
---|
2070 | -- TOC entry 2648 (class 0 OID 0) |
---|
2071 | -- Dependencies: 1771 |
---|
2072 | -- Name: core_linguistic_section_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2073 | -- |
---|
2074 | |
---|
2075 | ALTER SEQUENCE core_linguistic_section_id_seq OWNED BY core_linguistic_section.id; |
---|
2076 | |
---|
2077 | |
---|
2078 | -- |
---|
2079 | -- TOC entry 1772 (class 1259 OID 359228) |
---|
2080 | -- Dependencies: 2166 2167 2168 2169 338 6 340 |
---|
2081 | -- Name: core_message; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2082 | -- |
---|
2083 | |
---|
2084 | CREATE TABLE core_message ( |
---|
2085 | id integer NOT NULL, |
---|
2086 | "from" integer NOT NULL, |
---|
2087 | "to" integer, |
---|
2088 | message character varying NOT NULL, |
---|
2089 | created timestamp with time zone DEFAULT ('now'::text)::timestamp with time zone NOT NULL, |
---|
2090 | read timestamp with time zone, |
---|
2091 | status message_status_enum DEFAULT 'valid'::message_status_enum NOT NULL, |
---|
2092 | type message_type_enum DEFAULT 'message'::message_type_enum NOT NULL, |
---|
2093 | subject character varying DEFAULT '(no subject)'::character varying NOT NULL, |
---|
2094 | action character varying, |
---|
2095 | token character varying |
---|
2096 | ); |
---|
2097 | |
---|
2098 | |
---|
2099 | -- |
---|
2100 | -- TOC entry 1773 (class 1259 OID 359238) |
---|
2101 | -- Dependencies: 1772 6 |
---|
2102 | -- Name: core_message_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2103 | -- |
---|
2104 | |
---|
2105 | CREATE SEQUENCE core_message_id_seq |
---|
2106 | START WITH 1 |
---|
2107 | INCREMENT BY 1 |
---|
2108 | NO MAXVALUE |
---|
2109 | NO MINVALUE |
---|
2110 | CACHE 1; |
---|
2111 | |
---|
2112 | |
---|
2113 | -- |
---|
2114 | -- TOC entry 2649 (class 0 OID 0) |
---|
2115 | -- Dependencies: 1773 |
---|
2116 | -- Name: core_message_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2117 | -- |
---|
2118 | |
---|
2119 | ALTER SEQUENCE core_message_id_seq OWNED BY core_message.id; |
---|
2120 | |
---|
2121 | |
---|
2122 | -- |
---|
2123 | -- TOC entry 1774 (class 1259 OID 359240) |
---|
2124 | -- Dependencies: 6 |
---|
2125 | -- Name: core_open_conceptual_domain; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2126 | -- |
---|
2127 | |
---|
2128 | CREATE TABLE core_open_conceptual_domain ( |
---|
2129 | id integer NOT NULL |
---|
2130 | ); |
---|
2131 | |
---|
2132 | |
---|
2133 | -- |
---|
2134 | -- TOC entry 2650 (class 0 OID 0) |
---|
2135 | -- Dependencies: 1774 |
---|
2136 | -- Name: TABLE core_open_conceptual_domain; Type: COMMENT; Schema: public; Owner: - |
---|
2137 | -- |
---|
2138 | |
---|
2139 | COMMENT ON TABLE core_open_conceptual_domain IS 'The core data table for open conceptual domains.'; |
---|
2140 | |
---|
2141 | |
---|
2142 | -- |
---|
2143 | -- TOC entry 1775 (class 1259 OID 359243) |
---|
2144 | -- Dependencies: 6 |
---|
2145 | -- Name: core_open_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2146 | -- |
---|
2147 | |
---|
2148 | CREATE TABLE core_open_data_category ( |
---|
2149 | id integer NOT NULL |
---|
2150 | ); |
---|
2151 | |
---|
2152 | |
---|
2153 | -- |
---|
2154 | -- TOC entry 2651 (class 0 OID 0) |
---|
2155 | -- Dependencies: 1775 |
---|
2156 | -- Name: TABLE core_open_data_category; Type: COMMENT; Schema: public; Owner: - |
---|
2157 | -- |
---|
2158 | |
---|
2159 | COMMENT ON TABLE core_open_data_category IS 'The core data table for open Data Categories.'; |
---|
2160 | |
---|
2161 | |
---|
2162 | -- |
---|
2163 | -- TOC entry 1776 (class 1259 OID 359246) |
---|
2164 | -- Dependencies: 6 |
---|
2165 | -- Name: core_owner; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2166 | -- |
---|
2167 | |
---|
2168 | CREATE TABLE core_owner ( |
---|
2169 | id integer NOT NULL |
---|
2170 | ); |
---|
2171 | |
---|
2172 | |
---|
2173 | -- |
---|
2174 | -- TOC entry 2652 (class 0 OID 0) |
---|
2175 | -- Dependencies: 1776 |
---|
2176 | -- Name: TABLE core_owner; Type: COMMENT; Schema: public; Owner: - |
---|
2177 | -- |
---|
2178 | |
---|
2179 | COMMENT ON TABLE core_owner IS 'The core data table for owners.'; |
---|
2180 | |
---|
2181 | |
---|
2182 | -- |
---|
2183 | -- TOC entry 2653 (class 0 OID 0) |
---|
2184 | -- Dependencies: 1776 |
---|
2185 | -- Name: COLUMN core_owner.id; Type: COMMENT; Schema: public; Owner: - |
---|
2186 | -- |
---|
2187 | |
---|
2188 | COMMENT ON COLUMN core_owner.id IS 'The id of this owner.'; |
---|
2189 | |
---|
2190 | |
---|
2191 | -- |
---|
2192 | -- TOC entry 1777 (class 1259 OID 359249) |
---|
2193 | -- Dependencies: 6 |
---|
2194 | -- Name: core_profile; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2195 | -- |
---|
2196 | |
---|
2197 | CREATE TABLE core_profile ( |
---|
2198 | id integer NOT NULL, |
---|
2199 | name character varying NOT NULL, |
---|
2200 | tdg integer, |
---|
2201 | parent integer, |
---|
2202 | "order" integer |
---|
2203 | ); |
---|
2204 | |
---|
2205 | |
---|
2206 | -- |
---|
2207 | -- TOC entry 2654 (class 0 OID 0) |
---|
2208 | -- Dependencies: 1777 |
---|
2209 | -- Name: TABLE core_profile; Type: COMMENT; Schema: public; Owner: - |
---|
2210 | -- |
---|
2211 | |
---|
2212 | COMMENT ON TABLE core_profile IS 'The core data table for profiles.'; |
---|
2213 | |
---|
2214 | |
---|
2215 | -- |
---|
2216 | -- TOC entry 2655 (class 0 OID 0) |
---|
2217 | -- Dependencies: 1777 |
---|
2218 | -- Name: COLUMN core_profile.id; Type: COMMENT; Schema: public; Owner: - |
---|
2219 | -- |
---|
2220 | |
---|
2221 | COMMENT ON COLUMN core_profile.id IS 'The id of this profile.'; |
---|
2222 | |
---|
2223 | |
---|
2224 | -- |
---|
2225 | -- TOC entry 2656 (class 0 OID 0) |
---|
2226 | -- Dependencies: 1777 |
---|
2227 | -- Name: COLUMN core_profile.name; Type: COMMENT; Schema: public; Owner: - |
---|
2228 | -- |
---|
2229 | |
---|
2230 | COMMENT ON COLUMN core_profile.name IS 'The name of this profile.'; |
---|
2231 | |
---|
2232 | |
---|
2233 | -- |
---|
2234 | -- TOC entry 2657 (class 0 OID 0) |
---|
2235 | -- Dependencies: 1777 |
---|
2236 | -- Name: COLUMN core_profile.tdg; Type: COMMENT; Schema: public; Owner: - |
---|
2237 | -- |
---|
2238 | |
---|
2239 | COMMENT ON COLUMN core_profile.tdg IS 'The Thematic Domain Group this profile belongs to.'; |
---|
2240 | |
---|
2241 | |
---|
2242 | -- |
---|
2243 | -- TOC entry 2658 (class 0 OID 0) |
---|
2244 | -- Dependencies: 1777 |
---|
2245 | -- Name: COLUMN core_profile.parent; Type: COMMENT; Schema: public; Owner: - |
---|
2246 | -- |
---|
2247 | |
---|
2248 | COMMENT ON COLUMN core_profile.parent IS 'The parent profile of this profile.'; |
---|
2249 | |
---|
2250 | |
---|
2251 | -- |
---|
2252 | -- TOC entry 1778 (class 1259 OID 359255) |
---|
2253 | -- Dependencies: 6 1777 |
---|
2254 | -- Name: core_profile_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2255 | -- |
---|
2256 | |
---|
2257 | CREATE SEQUENCE core_profile_id_seq |
---|
2258 | START WITH 1 |
---|
2259 | INCREMENT BY 1 |
---|
2260 | NO MAXVALUE |
---|
2261 | NO MINVALUE |
---|
2262 | CACHE 1; |
---|
2263 | |
---|
2264 | |
---|
2265 | -- |
---|
2266 | -- TOC entry 2659 (class 0 OID 0) |
---|
2267 | -- Dependencies: 1778 |
---|
2268 | -- Name: core_profile_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2269 | -- |
---|
2270 | |
---|
2271 | ALTER SEQUENCE core_profile_id_seq OWNED BY core_profile.id; |
---|
2272 | |
---|
2273 | |
---|
2274 | -- |
---|
2275 | -- TOC entry 1779 (class 1259 OID 359257) |
---|
2276 | -- Dependencies: 6 |
---|
2277 | -- Name: core_profile_value_domain; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2278 | -- |
---|
2279 | |
---|
2280 | CREATE TABLE core_profile_value_domain ( |
---|
2281 | id integer NOT NULL, |
---|
2282 | profile integer NOT NULL |
---|
2283 | ); |
---|
2284 | |
---|
2285 | |
---|
2286 | -- |
---|
2287 | -- TOC entry 2660 (class 0 OID 0) |
---|
2288 | -- Dependencies: 1779 |
---|
2289 | -- Name: TABLE core_profile_value_domain; Type: COMMENT; Schema: public; Owner: - |
---|
2290 | -- |
---|
2291 | |
---|
2292 | COMMENT ON TABLE core_profile_value_domain IS 'The core data table for profile value domains.'; |
---|
2293 | |
---|
2294 | |
---|
2295 | -- |
---|
2296 | -- TOC entry 2661 (class 0 OID 0) |
---|
2297 | -- Dependencies: 1779 |
---|
2298 | -- Name: COLUMN core_profile_value_domain.profile; Type: COMMENT; Schema: public; Owner: - |
---|
2299 | -- |
---|
2300 | |
---|
2301 | COMMENT ON COLUMN core_profile_value_domain.profile IS 'The profile of this profile value domain.'; |
---|
2302 | |
---|
2303 | |
---|
2304 | -- |
---|
2305 | -- TOC entry 1780 (class 1259 OID 359260) |
---|
2306 | -- Dependencies: 6 |
---|
2307 | -- Name: core_registration_authority; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2308 | -- |
---|
2309 | |
---|
2310 | CREATE TABLE core_registration_authority ( |
---|
2311 | id integer NOT NULL, |
---|
2312 | registration_authority character varying NOT NULL |
---|
2313 | ); |
---|
2314 | |
---|
2315 | |
---|
2316 | -- |
---|
2317 | -- TOC entry 2662 (class 0 OID 0) |
---|
2318 | -- Dependencies: 1780 |
---|
2319 | -- Name: TABLE core_registration_authority; Type: COMMENT; Schema: public; Owner: - |
---|
2320 | -- |
---|
2321 | |
---|
2322 | COMMENT ON TABLE core_registration_authority IS 'The core data table for registration authorities.'; |
---|
2323 | |
---|
2324 | |
---|
2325 | -- |
---|
2326 | -- TOC entry 2663 (class 0 OID 0) |
---|
2327 | -- Dependencies: 1780 |
---|
2328 | -- Name: COLUMN core_registration_authority.id; Type: COMMENT; Schema: public; Owner: - |
---|
2329 | -- |
---|
2330 | |
---|
2331 | COMMENT ON COLUMN core_registration_authority.id IS 'The id of the registration authority.'; |
---|
2332 | |
---|
2333 | |
---|
2334 | -- |
---|
2335 | -- TOC entry 2664 (class 0 OID 0) |
---|
2336 | -- Dependencies: 1780 |
---|
2337 | -- Name: COLUMN core_registration_authority.registration_authority; Type: COMMENT; Schema: public; Owner: - |
---|
2338 | -- |
---|
2339 | |
---|
2340 | COMMENT ON COLUMN core_registration_authority.registration_authority IS 'The name of the registration authority.'; |
---|
2341 | |
---|
2342 | |
---|
2343 | -- |
---|
2344 | -- TOC entry 1781 (class 1259 OID 359266) |
---|
2345 | -- Dependencies: 1780 6 |
---|
2346 | -- Name: core_registration_authority_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2347 | -- |
---|
2348 | |
---|
2349 | CREATE SEQUENCE core_registration_authority_id_seq |
---|
2350 | START WITH 1 |
---|
2351 | INCREMENT BY 1 |
---|
2352 | NO MAXVALUE |
---|
2353 | NO MINVALUE |
---|
2354 | CACHE 1; |
---|
2355 | |
---|
2356 | |
---|
2357 | -- |
---|
2358 | -- TOC entry 2665 (class 0 OID 0) |
---|
2359 | -- Dependencies: 1781 |
---|
2360 | -- Name: core_registration_authority_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2361 | -- |
---|
2362 | |
---|
2363 | ALTER SEQUENCE core_registration_authority_id_seq OWNED BY core_registration_authority.id; |
---|
2364 | |
---|
2365 | |
---|
2366 | -- |
---|
2367 | -- TOC entry 1782 (class 1259 OID 359268) |
---|
2368 | -- Dependencies: 2173 6 |
---|
2369 | -- Name: core_registration_group; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2370 | -- |
---|
2371 | |
---|
2372 | CREATE TABLE core_registration_group ( |
---|
2373 | id integer NOT NULL, |
---|
2374 | dc integer NOT NULL, |
---|
2375 | registration_authority integer DEFAULT 1 NOT NULL |
---|
2376 | ); |
---|
2377 | |
---|
2378 | |
---|
2379 | -- |
---|
2380 | -- TOC entry 2666 (class 0 OID 0) |
---|
2381 | -- Dependencies: 1782 |
---|
2382 | -- Name: TABLE core_registration_group; Type: COMMENT; Schema: public; Owner: - |
---|
2383 | -- |
---|
2384 | |
---|
2385 | COMMENT ON TABLE core_registration_group IS 'The core data table for Registration Groups.'; |
---|
2386 | |
---|
2387 | |
---|
2388 | -- |
---|
2389 | -- TOC entry 2667 (class 0 OID 0) |
---|
2390 | -- Dependencies: 1782 |
---|
2391 | -- Name: COLUMN core_registration_group.id; Type: COMMENT; Schema: public; Owner: - |
---|
2392 | -- |
---|
2393 | |
---|
2394 | COMMENT ON COLUMN core_registration_group.id IS 'The id of this Registration Group.'; |
---|
2395 | |
---|
2396 | |
---|
2397 | -- |
---|
2398 | -- TOC entry 2668 (class 0 OID 0) |
---|
2399 | -- Dependencies: 1782 |
---|
2400 | -- Name: COLUMN core_registration_group.dc; Type: COMMENT; Schema: public; Owner: - |
---|
2401 | -- |
---|
2402 | |
---|
2403 | COMMENT ON COLUMN core_registration_group.dc IS 'The Data Category this Registration Group registers.'; |
---|
2404 | |
---|
2405 | |
---|
2406 | -- |
---|
2407 | -- TOC entry 2669 (class 0 OID 0) |
---|
2408 | -- Dependencies: 1782 |
---|
2409 | -- Name: COLUMN core_registration_group.registration_authority; Type: COMMENT; Schema: public; Owner: - |
---|
2410 | -- |
---|
2411 | |
---|
2412 | COMMENT ON COLUMN core_registration_group.registration_authority IS 'The Registration Authority of this registration group.'; |
---|
2413 | |
---|
2414 | |
---|
2415 | -- |
---|
2416 | -- TOC entry 1783 (class 1259 OID 359272) |
---|
2417 | -- Dependencies: 6 |
---|
2418 | -- Name: core_rule; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2419 | -- |
---|
2420 | |
---|
2421 | CREATE TABLE core_rule ( |
---|
2422 | id integer NOT NULL, |
---|
2423 | rule character varying NOT NULL, |
---|
2424 | cd integer NOT NULL |
---|
2425 | ); |
---|
2426 | |
---|
2427 | |
---|
2428 | -- |
---|
2429 | -- TOC entry 2670 (class 0 OID 0) |
---|
2430 | -- Dependencies: 1783 |
---|
2431 | -- Name: TABLE core_rule; Type: COMMENT; Schema: public; Owner: - |
---|
2432 | -- |
---|
2433 | |
---|
2434 | COMMENT ON TABLE core_rule IS 'The rules in the constrained conceptual domains.'; |
---|
2435 | |
---|
2436 | |
---|
2437 | -- |
---|
2438 | -- TOC entry 1784 (class 1259 OID 359278) |
---|
2439 | -- Dependencies: 6 1783 |
---|
2440 | -- Name: core_rule_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2441 | -- |
---|
2442 | |
---|
2443 | CREATE SEQUENCE core_rule_id_seq |
---|
2444 | START WITH 1 |
---|
2445 | INCREMENT BY 1 |
---|
2446 | NO MAXVALUE |
---|
2447 | NO MINVALUE |
---|
2448 | CACHE 1; |
---|
2449 | |
---|
2450 | |
---|
2451 | -- |
---|
2452 | -- TOC entry 2671 (class 0 OID 0) |
---|
2453 | -- Dependencies: 1784 |
---|
2454 | -- Name: core_rule_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2455 | -- |
---|
2456 | |
---|
2457 | ALTER SEQUENCE core_rule_id_seq OWNED BY core_rule.id; |
---|
2458 | |
---|
2459 | |
---|
2460 | -- |
---|
2461 | -- TOC entry 1785 (class 1259 OID 359280) |
---|
2462 | -- Dependencies: 6 |
---|
2463 | -- Name: core_rule_type; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2464 | -- |
---|
2465 | |
---|
2466 | CREATE TABLE core_rule_type ( |
---|
2467 | id integer NOT NULL, |
---|
2468 | rule_type character varying NOT NULL, |
---|
2469 | xml boolean |
---|
2470 | ); |
---|
2471 | |
---|
2472 | |
---|
2473 | -- |
---|
2474 | -- TOC entry 1786 (class 1259 OID 359286) |
---|
2475 | -- Dependencies: 6 1785 |
---|
2476 | -- Name: core_rule_type_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2477 | -- |
---|
2478 | |
---|
2479 | CREATE SEQUENCE core_rule_type_id_seq |
---|
2480 | START WITH 1 |
---|
2481 | INCREMENT BY 1 |
---|
2482 | NO MAXVALUE |
---|
2483 | NO MINVALUE |
---|
2484 | CACHE 1; |
---|
2485 | |
---|
2486 | |
---|
2487 | -- |
---|
2488 | -- TOC entry 2672 (class 0 OID 0) |
---|
2489 | -- Dependencies: 1786 |
---|
2490 | -- Name: core_rule_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2491 | -- |
---|
2492 | |
---|
2493 | ALTER SEQUENCE core_rule_type_id_seq OWNED BY core_rule_type.id; |
---|
2494 | |
---|
2495 | |
---|
2496 | -- |
---|
2497 | -- TOC entry 1787 (class 1259 OID 359288) |
---|
2498 | -- Dependencies: 6 |
---|
2499 | -- Name: core_selected_complex_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2500 | -- |
---|
2501 | |
---|
2502 | CREATE TABLE core_selected_complex_data_category ( |
---|
2503 | id integer NOT NULL, |
---|
2504 | dc integer NOT NULL |
---|
2505 | ); |
---|
2506 | |
---|
2507 | |
---|
2508 | -- |
---|
2509 | -- TOC entry 2673 (class 0 OID 0) |
---|
2510 | -- Dependencies: 1787 |
---|
2511 | -- Name: TABLE core_selected_complex_data_category; Type: COMMENT; Schema: public; Owner: - |
---|
2512 | -- |
---|
2513 | |
---|
2514 | COMMENT ON TABLE core_selected_complex_data_category IS 'The core data table for selected complex Data Categories.'; |
---|
2515 | |
---|
2516 | |
---|
2517 | -- |
---|
2518 | -- TOC entry 1788 (class 1259 OID 359291) |
---|
2519 | -- Dependencies: 6 |
---|
2520 | -- Name: core_selected_container_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2521 | -- |
---|
2522 | |
---|
2523 | CREATE TABLE core_selected_container_data_category ( |
---|
2524 | id integer NOT NULL, |
---|
2525 | dc integer NOT NULL |
---|
2526 | ); |
---|
2527 | |
---|
2528 | |
---|
2529 | -- |
---|
2530 | -- TOC entry 1789 (class 1259 OID 359294) |
---|
2531 | -- Dependencies: 6 |
---|
2532 | -- Name: core_selected_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2533 | -- |
---|
2534 | |
---|
2535 | CREATE TABLE core_selected_data_category ( |
---|
2536 | id integer NOT NULL, |
---|
2537 | dcs integer NOT NULL |
---|
2538 | ); |
---|
2539 | |
---|
2540 | |
---|
2541 | -- |
---|
2542 | -- TOC entry 2674 (class 0 OID 0) |
---|
2543 | -- Dependencies: 1789 |
---|
2544 | -- Name: TABLE core_selected_data_category; Type: COMMENT; Schema: public; Owner: - |
---|
2545 | -- |
---|
2546 | |
---|
2547 | COMMENT ON TABLE core_selected_data_category IS 'The core data table for selected Data Categories.'; |
---|
2548 | |
---|
2549 | |
---|
2550 | -- |
---|
2551 | -- TOC entry 2675 (class 0 OID 0) |
---|
2552 | -- Dependencies: 1789 |
---|
2553 | -- Name: COLUMN core_selected_data_category.id; Type: COMMENT; Schema: public; Owner: - |
---|
2554 | -- |
---|
2555 | |
---|
2556 | COMMENT ON COLUMN core_selected_data_category.id IS 'The id of this selected Data Category.'; |
---|
2557 | |
---|
2558 | |
---|
2559 | -- |
---|
2560 | -- TOC entry 2676 (class 0 OID 0) |
---|
2561 | -- Dependencies: 1789 |
---|
2562 | -- Name: COLUMN core_selected_data_category.dcs; Type: COMMENT; Schema: public; Owner: - |
---|
2563 | -- |
---|
2564 | |
---|
2565 | COMMENT ON COLUMN core_selected_data_category.dcs IS 'The Data Category Selection this Data Category belongs to.'; |
---|
2566 | |
---|
2567 | |
---|
2568 | -- |
---|
2569 | -- TOC entry 1790 (class 1259 OID 359297) |
---|
2570 | -- Dependencies: 6 1789 |
---|
2571 | -- Name: core_selected_data_category_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2572 | -- |
---|
2573 | |
---|
2574 | CREATE SEQUENCE core_selected_data_category_id_seq |
---|
2575 | START WITH 1 |
---|
2576 | INCREMENT BY 1 |
---|
2577 | NO MAXVALUE |
---|
2578 | NO MINVALUE |
---|
2579 | CACHE 1; |
---|
2580 | |
---|
2581 | |
---|
2582 | -- |
---|
2583 | -- TOC entry 2677 (class 0 OID 0) |
---|
2584 | -- Dependencies: 1790 |
---|
2585 | -- Name: core_selected_data_category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2586 | -- |
---|
2587 | |
---|
2588 | ALTER SEQUENCE core_selected_data_category_id_seq OWNED BY core_selected_data_category.id; |
---|
2589 | |
---|
2590 | |
---|
2591 | -- |
---|
2592 | -- TOC entry 1791 (class 1259 OID 359299) |
---|
2593 | -- Dependencies: 6 |
---|
2594 | -- Name: core_selected_simple_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2595 | -- |
---|
2596 | |
---|
2597 | CREATE TABLE core_selected_simple_data_category ( |
---|
2598 | id integer NOT NULL, |
---|
2599 | dc integer NOT NULL |
---|
2600 | ); |
---|
2601 | |
---|
2602 | |
---|
2603 | -- |
---|
2604 | -- TOC entry 2678 (class 0 OID 0) |
---|
2605 | -- Dependencies: 1791 |
---|
2606 | -- Name: TABLE core_selected_simple_data_category; Type: COMMENT; Schema: public; Owner: - |
---|
2607 | -- |
---|
2608 | |
---|
2609 | COMMENT ON TABLE core_selected_simple_data_category IS 'The core data table for selected simple Data Categories.'; |
---|
2610 | |
---|
2611 | |
---|
2612 | -- |
---|
2613 | -- TOC entry 1792 (class 1259 OID 359302) |
---|
2614 | -- Dependencies: 2177 6 |
---|
2615 | -- Name: core_session; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2616 | -- |
---|
2617 | |
---|
2618 | CREATE TABLE core_session ( |
---|
2619 | id integer NOT NULL, |
---|
2620 | "user" integer NOT NULL, |
---|
2621 | first_access timestamp with time zone DEFAULT ('now'::text)::timestamp with time zone NOT NULL, |
---|
2622 | last_access timestamp with time zone |
---|
2623 | ); |
---|
2624 | |
---|
2625 | |
---|
2626 | -- |
---|
2627 | -- TOC entry 1793 (class 1259 OID 359306) |
---|
2628 | -- Dependencies: 6 1792 |
---|
2629 | -- Name: core_session_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2630 | -- |
---|
2631 | |
---|
2632 | CREATE SEQUENCE core_session_id_seq |
---|
2633 | START WITH 1 |
---|
2634 | INCREMENT BY 1 |
---|
2635 | NO MAXVALUE |
---|
2636 | NO MINVALUE |
---|
2637 | CACHE 1; |
---|
2638 | |
---|
2639 | |
---|
2640 | -- |
---|
2641 | -- TOC entry 2679 (class 0 OID 0) |
---|
2642 | -- Dependencies: 1793 |
---|
2643 | -- Name: core_session_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2644 | -- |
---|
2645 | |
---|
2646 | ALTER SEQUENCE core_session_id_seq OWNED BY core_session.id; |
---|
2647 | |
---|
2648 | |
---|
2649 | -- |
---|
2650 | -- TOC entry 1794 (class 1259 OID 359308) |
---|
2651 | -- Dependencies: 6 |
---|
2652 | -- Name: core_simple_data_category; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2653 | -- |
---|
2654 | |
---|
2655 | CREATE TABLE core_simple_data_category ( |
---|
2656 | id integer NOT NULL |
---|
2657 | ); |
---|
2658 | |
---|
2659 | |
---|
2660 | -- |
---|
2661 | -- TOC entry 2680 (class 0 OID 0) |
---|
2662 | -- Dependencies: 1794 |
---|
2663 | -- Name: TABLE core_simple_data_category; Type: COMMENT; Schema: public; Owner: - |
---|
2664 | -- |
---|
2665 | |
---|
2666 | COMMENT ON TABLE core_simple_data_category IS 'The core data table for simple Data Categories.'; |
---|
2667 | |
---|
2668 | |
---|
2669 | -- |
---|
2670 | -- TOC entry 1795 (class 1259 OID 359311) |
---|
2671 | -- Dependencies: 6 1762 |
---|
2672 | -- Name: core_status_log_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2673 | -- |
---|
2674 | |
---|
2675 | CREATE SEQUENCE core_status_log_id_seq |
---|
2676 | START WITH 1 |
---|
2677 | INCREMENT BY 1 |
---|
2678 | NO MAXVALUE |
---|
2679 | NO MINVALUE |
---|
2680 | CACHE 1; |
---|
2681 | |
---|
2682 | |
---|
2683 | -- |
---|
2684 | -- TOC entry 2681 (class 0 OID 0) |
---|
2685 | -- Dependencies: 1795 |
---|
2686 | -- Name: core_status_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2687 | -- |
---|
2688 | |
---|
2689 | ALTER SEQUENCE core_status_log_id_seq OWNED BY core_dc_status_log.id; |
---|
2690 | |
---|
2691 | |
---|
2692 | -- |
---|
2693 | -- TOC entry 1796 (class 1259 OID 359313) |
---|
2694 | -- Dependencies: 6 |
---|
2695 | -- Name: core_submission_group; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2696 | -- |
---|
2697 | |
---|
2698 | CREATE TABLE core_submission_group ( |
---|
2699 | id integer NOT NULL, |
---|
2700 | dc integer NOT NULL, |
---|
2701 | owner integer NOT NULL, |
---|
2702 | submission_date date |
---|
2703 | ); |
---|
2704 | |
---|
2705 | |
---|
2706 | -- |
---|
2707 | -- TOC entry 2682 (class 0 OID 0) |
---|
2708 | -- Dependencies: 1796 |
---|
2709 | -- Name: TABLE core_submission_group; Type: COMMENT; Schema: public; Owner: - |
---|
2710 | -- |
---|
2711 | |
---|
2712 | COMMENT ON TABLE core_submission_group IS 'The core data table for Submission Groups.'; |
---|
2713 | |
---|
2714 | |
---|
2715 | -- |
---|
2716 | -- TOC entry 2683 (class 0 OID 0) |
---|
2717 | -- Dependencies: 1796 |
---|
2718 | -- Name: COLUMN core_submission_group.id; Type: COMMENT; Schema: public; Owner: - |
---|
2719 | -- |
---|
2720 | |
---|
2721 | COMMENT ON COLUMN core_submission_group.id IS 'The id of this Submission Group.'; |
---|
2722 | |
---|
2723 | |
---|
2724 | -- |
---|
2725 | -- TOC entry 2684 (class 0 OID 0) |
---|
2726 | -- Dependencies: 1796 |
---|
2727 | -- Name: COLUMN core_submission_group.dc; Type: COMMENT; Schema: public; Owner: - |
---|
2728 | -- |
---|
2729 | |
---|
2730 | COMMENT ON COLUMN core_submission_group.dc IS 'The Data Category this Submission Group submitted.'; |
---|
2731 | |
---|
2732 | |
---|
2733 | -- |
---|
2734 | -- TOC entry 2685 (class 0 OID 0) |
---|
2735 | -- Dependencies: 1796 |
---|
2736 | -- Name: COLUMN core_submission_group.owner; Type: COMMENT; Schema: public; Owner: - |
---|
2737 | -- |
---|
2738 | |
---|
2739 | COMMENT ON COLUMN core_submission_group.owner IS 'The owner of this Submission Group.'; |
---|
2740 | |
---|
2741 | |
---|
2742 | -- |
---|
2743 | -- TOC entry 2686 (class 0 OID 0) |
---|
2744 | -- Dependencies: 1796 |
---|
2745 | -- Name: COLUMN core_submission_group.submission_date; Type: COMMENT; Schema: public; Owner: - |
---|
2746 | -- |
---|
2747 | |
---|
2748 | COMMENT ON COLUMN core_submission_group.submission_date IS 'The date this Submission Group submitted the Data Category.'; |
---|
2749 | |
---|
2750 | |
---|
2751 | -- |
---|
2752 | -- TOC entry 1797 (class 1259 OID 359316) |
---|
2753 | -- Dependencies: 6 |
---|
2754 | -- Name: core_thematic_domain_group; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2755 | -- |
---|
2756 | |
---|
2757 | CREATE TABLE core_thematic_domain_group ( |
---|
2758 | id integer NOT NULL, |
---|
2759 | name character varying NOT NULL, |
---|
2760 | description character varying, |
---|
2761 | "order" integer NOT NULL, |
---|
2762 | status character varying, |
---|
2763 | activity character varying |
---|
2764 | ); |
---|
2765 | |
---|
2766 | |
---|
2767 | -- |
---|
2768 | -- TOC entry 2687 (class 0 OID 0) |
---|
2769 | -- Dependencies: 1797 |
---|
2770 | -- Name: TABLE core_thematic_domain_group; Type: COMMENT; Schema: public; Owner: - |
---|
2771 | -- |
---|
2772 | |
---|
2773 | COMMENT ON TABLE core_thematic_domain_group IS 'The core data table for Thematic Domain Groups.'; |
---|
2774 | |
---|
2775 | |
---|
2776 | -- |
---|
2777 | -- TOC entry 2688 (class 0 OID 0) |
---|
2778 | -- Dependencies: 1797 |
---|
2779 | -- Name: COLUMN core_thematic_domain_group.id; Type: COMMENT; Schema: public; Owner: - |
---|
2780 | -- |
---|
2781 | |
---|
2782 | COMMENT ON COLUMN core_thematic_domain_group.id IS 'The id of this Thematic Domain Group.'; |
---|
2783 | |
---|
2784 | |
---|
2785 | -- |
---|
2786 | -- TOC entry 2689 (class 0 OID 0) |
---|
2787 | -- Dependencies: 1797 |
---|
2788 | -- Name: COLUMN core_thematic_domain_group.name; Type: COMMENT; Schema: public; Owner: - |
---|
2789 | -- |
---|
2790 | |
---|
2791 | COMMENT ON COLUMN core_thematic_domain_group.name IS 'The name of this Thematic Domain Group.'; |
---|
2792 | |
---|
2793 | |
---|
2794 | -- |
---|
2795 | -- TOC entry 1798 (class 1259 OID 359322) |
---|
2796 | -- Dependencies: 2179 2180 2181 2182 6 352 |
---|
2797 | -- Name: core_user; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2798 | -- |
---|
2799 | |
---|
2800 | CREATE TABLE core_user ( |
---|
2801 | id integer NOT NULL, |
---|
2802 | login character varying NOT NULL, |
---|
2803 | last_name character varying, |
---|
2804 | email character varying NOT NULL, |
---|
2805 | organization character varying, |
---|
2806 | phone character varying, |
---|
2807 | post character varying, |
---|
2808 | access_count integer DEFAULT 0 NOT NULL, |
---|
2809 | first_access date, |
---|
2810 | last_access date, |
---|
2811 | password character varying NOT NULL, |
---|
2812 | type user_type_enum DEFAULT 'basic'::user_type_enum NOT NULL, |
---|
2813 | first_name character varying, |
---|
2814 | disclaimer boolean DEFAULT false NOT NULL, |
---|
2815 | sync boolean DEFAULT true NOT NULL, |
---|
2816 | forum integer, |
---|
2817 | shib_principal character varying |
---|
2818 | ); |
---|
2819 | |
---|
2820 | |
---|
2821 | -- |
---|
2822 | -- TOC entry 2690 (class 0 OID 0) |
---|
2823 | -- Dependencies: 1798 |
---|
2824 | -- Name: TABLE core_user; Type: COMMENT; Schema: public; Owner: - |
---|
2825 | -- |
---|
2826 | |
---|
2827 | COMMENT ON TABLE core_user IS 'The core data table for users.'; |
---|
2828 | |
---|
2829 | |
---|
2830 | -- |
---|
2831 | -- TOC entry 2691 (class 0 OID 0) |
---|
2832 | -- Dependencies: 1798 |
---|
2833 | -- Name: COLUMN core_user.login; Type: COMMENT; Schema: public; Owner: - |
---|
2834 | -- |
---|
2835 | |
---|
2836 | COMMENT ON COLUMN core_user.login IS 'The login of this user.'; |
---|
2837 | |
---|
2838 | |
---|
2839 | -- |
---|
2840 | -- TOC entry 2692 (class 0 OID 0) |
---|
2841 | -- Dependencies: 1798 |
---|
2842 | -- Name: COLUMN core_user.last_name; Type: COMMENT; Schema: public; Owner: - |
---|
2843 | -- |
---|
2844 | |
---|
2845 | COMMENT ON COLUMN core_user.last_name IS 'The last name of this user.'; |
---|
2846 | |
---|
2847 | |
---|
2848 | -- |
---|
2849 | -- TOC entry 2693 (class 0 OID 0) |
---|
2850 | -- Dependencies: 1798 |
---|
2851 | -- Name: COLUMN core_user.email; Type: COMMENT; Schema: public; Owner: - |
---|
2852 | -- |
---|
2853 | |
---|
2854 | COMMENT ON COLUMN core_user.email IS 'The email address of this user.'; |
---|
2855 | |
---|
2856 | |
---|
2857 | -- |
---|
2858 | -- TOC entry 2694 (class 0 OID 0) |
---|
2859 | -- Dependencies: 1798 |
---|
2860 | -- Name: COLUMN core_user.organization; Type: COMMENT; Schema: public; Owner: - |
---|
2861 | -- |
---|
2862 | |
---|
2863 | COMMENT ON COLUMN core_user.organization IS 'The organization this user is a member of.'; |
---|
2864 | |
---|
2865 | |
---|
2866 | -- |
---|
2867 | -- TOC entry 2695 (class 0 OID 0) |
---|
2868 | -- Dependencies: 1798 |
---|
2869 | -- Name: COLUMN core_user.phone; Type: COMMENT; Schema: public; Owner: - |
---|
2870 | -- |
---|
2871 | |
---|
2872 | COMMENT ON COLUMN core_user.phone IS 'The phone number of this user.'; |
---|
2873 | |
---|
2874 | |
---|
2875 | -- |
---|
2876 | -- TOC entry 2696 (class 0 OID 0) |
---|
2877 | -- Dependencies: 1798 |
---|
2878 | -- Name: COLUMN core_user.post; Type: COMMENT; Schema: public; Owner: - |
---|
2879 | -- |
---|
2880 | |
---|
2881 | COMMENT ON COLUMN core_user.post IS 'The postal address of this user.'; |
---|
2882 | |
---|
2883 | |
---|
2884 | -- |
---|
2885 | -- TOC entry 2697 (class 0 OID 0) |
---|
2886 | -- Dependencies: 1798 |
---|
2887 | -- Name: COLUMN core_user.access_count; Type: COMMENT; Schema: public; Owner: - |
---|
2888 | -- |
---|
2889 | |
---|
2890 | COMMENT ON COLUMN core_user.access_count IS 'The access count of this user.'; |
---|
2891 | |
---|
2892 | |
---|
2893 | -- |
---|
2894 | -- TOC entry 2698 (class 0 OID 0) |
---|
2895 | -- Dependencies: 1798 |
---|
2896 | -- Name: COLUMN core_user.first_access; Type: COMMENT; Schema: public; Owner: - |
---|
2897 | -- |
---|
2898 | |
---|
2899 | COMMENT ON COLUMN core_user.first_access IS 'The date of the first access of this user.'; |
---|
2900 | |
---|
2901 | |
---|
2902 | -- |
---|
2903 | -- TOC entry 2699 (class 0 OID 0) |
---|
2904 | -- Dependencies: 1798 |
---|
2905 | -- Name: COLUMN core_user.last_access; Type: COMMENT; Schema: public; Owner: - |
---|
2906 | -- |
---|
2907 | |
---|
2908 | COMMENT ON COLUMN core_user.last_access IS 'The date of the last access of this user.'; |
---|
2909 | |
---|
2910 | |
---|
2911 | -- |
---|
2912 | -- TOC entry 2700 (class 0 OID 0) |
---|
2913 | -- Dependencies: 1798 |
---|
2914 | -- Name: COLUMN core_user.password; Type: COMMENT; Schema: public; Owner: - |
---|
2915 | -- |
---|
2916 | |
---|
2917 | COMMENT ON COLUMN core_user.password IS 'The password of this user.'; |
---|
2918 | |
---|
2919 | |
---|
2920 | -- |
---|
2921 | -- TOC entry 1799 (class 1259 OID 359332) |
---|
2922 | -- Dependencies: 6 |
---|
2923 | -- Name: core_value_domain; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2924 | -- |
---|
2925 | |
---|
2926 | CREATE TABLE core_value_domain ( |
---|
2927 | id integer NOT NULL |
---|
2928 | ); |
---|
2929 | |
---|
2930 | |
---|
2931 | -- |
---|
2932 | -- TOC entry 2701 (class 0 OID 0) |
---|
2933 | -- Dependencies: 1799 |
---|
2934 | -- Name: TABLE core_value_domain; Type: COMMENT; Schema: public; Owner: - |
---|
2935 | -- |
---|
2936 | |
---|
2937 | COMMENT ON TABLE core_value_domain IS 'The core data table for value domains.'; |
---|
2938 | |
---|
2939 | |
---|
2940 | -- |
---|
2941 | -- TOC entry 1800 (class 1259 OID 359335) |
---|
2942 | -- Dependencies: 2183 332 6 |
---|
2943 | -- Name: generic_lock; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2944 | -- |
---|
2945 | |
---|
2946 | CREATE TABLE generic_lock ( |
---|
2947 | id integer NOT NULL, |
---|
2948 | session integer NOT NULL, |
---|
2949 | type lock_type_enum NOT NULL, |
---|
2950 | lock integer NOT NULL, |
---|
2951 | first_access timestamp with time zone DEFAULT ('now'::text)::timestamp with time zone NOT NULL, |
---|
2952 | last_access timestamp with time zone |
---|
2953 | ); |
---|
2954 | |
---|
2955 | |
---|
2956 | -- |
---|
2957 | -- TOC entry 1801 (class 1259 OID 359339) |
---|
2958 | -- Dependencies: 1800 6 |
---|
2959 | -- Name: generic_lock_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
2960 | -- |
---|
2961 | |
---|
2962 | CREATE SEQUENCE generic_lock_id_seq |
---|
2963 | START WITH 1 |
---|
2964 | INCREMENT BY 1 |
---|
2965 | NO MAXVALUE |
---|
2966 | NO MINVALUE |
---|
2967 | CACHE 1; |
---|
2968 | |
---|
2969 | |
---|
2970 | -- |
---|
2971 | -- TOC entry 2702 (class 0 OID 0) |
---|
2972 | -- Dependencies: 1801 |
---|
2973 | -- Name: generic_lock_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
2974 | -- |
---|
2975 | |
---|
2976 | ALTER SEQUENCE generic_lock_id_seq OWNED BY generic_lock.id; |
---|
2977 | |
---|
2978 | |
---|
2979 | -- |
---|
2980 | -- TOC entry 1802 (class 1259 OID 359341) |
---|
2981 | -- Dependencies: 2185 346 6 342 344 |
---|
2982 | -- Name: generic_name; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
2983 | -- |
---|
2984 | |
---|
2985 | CREATE TABLE generic_name ( |
---|
2986 | id integer NOT NULL, |
---|
2987 | owner integer NOT NULL, |
---|
2988 | name_type name_type_enum NOT NULL, |
---|
2989 | source character varying, |
---|
2990 | status name_status_enum, |
---|
2991 | name character varying NOT NULL, |
---|
2992 | owner_type owner_type_enum NOT NULL, |
---|
2993 | search tsvector, |
---|
2994 | search_language tsvector, |
---|
2995 | language integer DEFAULT 1 NOT NULL |
---|
2996 | ); |
---|
2997 | |
---|
2998 | |
---|
2999 | -- |
---|
3000 | -- TOC entry 2703 (class 0 OID 0) |
---|
3001 | -- Dependencies: 1802 |
---|
3002 | -- Name: TABLE generic_name; Type: COMMENT; Schema: public; Owner: - |
---|
3003 | -- |
---|
3004 | |
---|
3005 | COMMENT ON TABLE generic_name IS 'The generic data table for names.'; |
---|
3006 | |
---|
3007 | |
---|
3008 | -- |
---|
3009 | -- TOC entry 2704 (class 0 OID 0) |
---|
3010 | -- Dependencies: 1802 |
---|
3011 | -- Name: COLUMN generic_name.id; Type: COMMENT; Schema: public; Owner: - |
---|
3012 | -- |
---|
3013 | |
---|
3014 | COMMENT ON COLUMN generic_name.id IS 'The id of this name.'; |
---|
3015 | |
---|
3016 | |
---|
3017 | -- |
---|
3018 | -- TOC entry 2705 (class 0 OID 0) |
---|
3019 | -- Dependencies: 1802 |
---|
3020 | -- Name: COLUMN generic_name.owner; Type: COMMENT; Schema: public; Owner: - |
---|
3021 | -- |
---|
3022 | |
---|
3023 | COMMENT ON COLUMN generic_name.owner IS 'The owner of this name.'; |
---|
3024 | |
---|
3025 | |
---|
3026 | -- |
---|
3027 | -- TOC entry 2706 (class 0 OID 0) |
---|
3028 | -- Dependencies: 1802 |
---|
3029 | -- Name: COLUMN generic_name.name_type; Type: COMMENT; Schema: public; Owner: - |
---|
3030 | -- |
---|
3031 | |
---|
3032 | COMMENT ON COLUMN generic_name.name_type IS 'The type of this name.'; |
---|
3033 | |
---|
3034 | |
---|
3035 | -- |
---|
3036 | -- TOC entry 2707 (class 0 OID 0) |
---|
3037 | -- Dependencies: 1802 |
---|
3038 | -- Name: COLUMN generic_name.source; Type: COMMENT; Schema: public; Owner: - |
---|
3039 | -- |
---|
3040 | |
---|
3041 | COMMENT ON COLUMN generic_name.source IS 'The source of this name.'; |
---|
3042 | |
---|
3043 | |
---|
3044 | -- |
---|
3045 | -- TOC entry 2708 (class 0 OID 0) |
---|
3046 | -- Dependencies: 1802 |
---|
3047 | -- Name: COLUMN generic_name.status; Type: COMMENT; Schema: public; Owner: - |
---|
3048 | -- |
---|
3049 | |
---|
3050 | COMMENT ON COLUMN generic_name.status IS 'The status of this name.'; |
---|
3051 | |
---|
3052 | |
---|
3053 | -- |
---|
3054 | -- TOC entry 2709 (class 0 OID 0) |
---|
3055 | -- Dependencies: 1802 |
---|
3056 | -- Name: COLUMN generic_name.name; Type: COMMENT; Schema: public; Owner: - |
---|
3057 | -- |
---|
3058 | |
---|
3059 | COMMENT ON COLUMN generic_name.name IS 'The actual name.'; |
---|
3060 | |
---|
3061 | |
---|
3062 | -- |
---|
3063 | -- TOC entry 1803 (class 1259 OID 359348) |
---|
3064 | -- Dependencies: 1802 6 |
---|
3065 | -- Name: generic_name_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
3066 | -- |
---|
3067 | |
---|
3068 | CREATE SEQUENCE generic_name_id_seq |
---|
3069 | START WITH 1 |
---|
3070 | INCREMENT BY 1 |
---|
3071 | NO MAXVALUE |
---|
3072 | NO MINVALUE |
---|
3073 | CACHE 1; |
---|
3074 | |
---|
3075 | |
---|
3076 | -- |
---|
3077 | -- TOC entry 2710 (class 0 OID 0) |
---|
3078 | -- Dependencies: 1803 |
---|
3079 | -- Name: generic_name_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
3080 | -- |
---|
3081 | |
---|
3082 | ALTER SEQUENCE generic_name_id_seq OWNED BY generic_name.id; |
---|
3083 | |
---|
3084 | |
---|
3085 | -- |
---|
3086 | -- TOC entry 1804 (class 1259 OID 359350) |
---|
3087 | -- Dependencies: 2187 2188 2189 2190 6 350 346 |
---|
3088 | -- Name: generic_text; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3089 | -- |
---|
3090 | |
---|
3091 | CREATE TABLE generic_text ( |
---|
3092 | id integer NOT NULL, |
---|
3093 | owner integer NOT NULL, |
---|
3094 | owner_type owner_type_enum NOT NULL, |
---|
3095 | language integer DEFAULT 1 NOT NULL, |
---|
3096 | date date DEFAULT ('now'::text)::date NOT NULL, |
---|
3097 | source character varying, |
---|
3098 | text character varying NOT NULL, |
---|
3099 | text_type text_type_enum DEFAULT 'text'::text_type_enum NOT NULL, |
---|
3100 | "user" integer, |
---|
3101 | "timestamp" timestamp with time zone DEFAULT ('now'::text)::timestamp with time zone NOT NULL, |
---|
3102 | search tsvector, |
---|
3103 | search_language tsvector |
---|
3104 | ); |
---|
3105 | |
---|
3106 | |
---|
3107 | -- |
---|
3108 | -- TOC entry 2711 (class 0 OID 0) |
---|
3109 | -- Dependencies: 1804 |
---|
3110 | -- Name: TABLE generic_text; Type: COMMENT; Schema: public; Owner: - |
---|
3111 | -- |
---|
3112 | |
---|
3113 | COMMENT ON TABLE generic_text IS 'The generic data table for texts.'; |
---|
3114 | |
---|
3115 | |
---|
3116 | -- |
---|
3117 | -- TOC entry 2712 (class 0 OID 0) |
---|
3118 | -- Dependencies: 1804 |
---|
3119 | -- Name: COLUMN generic_text.id; Type: COMMENT; Schema: public; Owner: - |
---|
3120 | -- |
---|
3121 | |
---|
3122 | COMMENT ON COLUMN generic_text.id IS 'The id of this text.'; |
---|
3123 | |
---|
3124 | |
---|
3125 | -- |
---|
3126 | -- TOC entry 2713 (class 0 OID 0) |
---|
3127 | -- Dependencies: 1804 |
---|
3128 | -- Name: COLUMN generic_text.owner; Type: COMMENT; Schema: public; Owner: - |
---|
3129 | -- |
---|
3130 | |
---|
3131 | COMMENT ON COLUMN generic_text.owner IS 'The owner of this text.'; |
---|
3132 | |
---|
3133 | |
---|
3134 | -- |
---|
3135 | -- TOC entry 2714 (class 0 OID 0) |
---|
3136 | -- Dependencies: 1804 |
---|
3137 | -- Name: COLUMN generic_text.owner_type; Type: COMMENT; Schema: public; Owner: - |
---|
3138 | -- |
---|
3139 | |
---|
3140 | COMMENT ON COLUMN generic_text.owner_type IS 'The type of the owner.'; |
---|
3141 | |
---|
3142 | |
---|
3143 | -- |
---|
3144 | -- TOC entry 2715 (class 0 OID 0) |
---|
3145 | -- Dependencies: 1804 |
---|
3146 | -- Name: COLUMN generic_text.language; Type: COMMENT; Schema: public; Owner: - |
---|
3147 | -- |
---|
3148 | |
---|
3149 | COMMENT ON COLUMN generic_text.language IS 'The language used by this text.'; |
---|
3150 | |
---|
3151 | |
---|
3152 | -- |
---|
3153 | -- TOC entry 2716 (class 0 OID 0) |
---|
3154 | -- Dependencies: 1804 |
---|
3155 | -- Name: COLUMN generic_text.date; Type: COMMENT; Schema: public; Owner: - |
---|
3156 | -- |
---|
3157 | |
---|
3158 | COMMENT ON COLUMN generic_text.date IS 'When was this text entered.'; |
---|
3159 | |
---|
3160 | |
---|
3161 | -- |
---|
3162 | -- TOC entry 2717 (class 0 OID 0) |
---|
3163 | -- Dependencies: 1804 |
---|
3164 | -- Name: COLUMN generic_text.source; Type: COMMENT; Schema: public; Owner: - |
---|
3165 | -- |
---|
3166 | |
---|
3167 | COMMENT ON COLUMN generic_text.source IS 'The source of this text.'; |
---|
3168 | |
---|
3169 | |
---|
3170 | -- |
---|
3171 | -- TOC entry 2718 (class 0 OID 0) |
---|
3172 | -- Dependencies: 1804 |
---|
3173 | -- Name: COLUMN generic_text.text; Type: COMMENT; Schema: public; Owner: - |
---|
3174 | -- |
---|
3175 | |
---|
3176 | COMMENT ON COLUMN generic_text.text IS 'The actual text.'; |
---|
3177 | |
---|
3178 | |
---|
3179 | -- |
---|
3180 | -- TOC entry 2719 (class 0 OID 0) |
---|
3181 | -- Dependencies: 1804 |
---|
3182 | -- Name: COLUMN generic_text.text_type; Type: COMMENT; Schema: public; Owner: - |
---|
3183 | -- |
---|
3184 | |
---|
3185 | COMMENT ON COLUMN generic_text.text_type IS 'The type of this text.'; |
---|
3186 | |
---|
3187 | |
---|
3188 | -- |
---|
3189 | -- TOC entry 2720 (class 0 OID 0) |
---|
3190 | -- Dependencies: 1804 |
---|
3191 | -- Name: COLUMN generic_text."user"; Type: COMMENT; Schema: public; Owner: - |
---|
3192 | -- |
---|
3193 | |
---|
3194 | COMMENT ON COLUMN generic_text."user" IS 'The user who wrote this text.'; |
---|
3195 | |
---|
3196 | |
---|
3197 | -- |
---|
3198 | -- TOC entry 1805 (class 1259 OID 359360) |
---|
3199 | -- Dependencies: 6 1804 |
---|
3200 | -- Name: generic_text_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
---|
3201 | -- |
---|
3202 | |
---|
3203 | CREATE SEQUENCE generic_text_id_seq |
---|
3204 | START WITH 1 |
---|
3205 | INCREMENT BY 1 |
---|
3206 | NO MAXVALUE |
---|
3207 | NO MINVALUE |
---|
3208 | CACHE 1; |
---|
3209 | |
---|
3210 | |
---|
3211 | -- |
---|
3212 | -- TOC entry 2721 (class 0 OID 0) |
---|
3213 | -- Dependencies: 1805 |
---|
3214 | -- Name: generic_text_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
---|
3215 | -- |
---|
3216 | |
---|
3217 | ALTER SEQUENCE generic_text_id_seq OWNED BY generic_text.id; |
---|
3218 | |
---|
3219 | |
---|
3220 | -- |
---|
3221 | -- TOC entry 1806 (class 1259 OID 359362) |
---|
3222 | -- Dependencies: 6 |
---|
3223 | -- Name: link_closed_data_category_conceptual_domains; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3224 | -- |
---|
3225 | |
---|
3226 | CREATE TABLE link_closed_data_category_conceptual_domains ( |
---|
3227 | dc integer NOT NULL, |
---|
3228 | cd integer NOT NULL |
---|
3229 | ); |
---|
3230 | |
---|
3231 | |
---|
3232 | -- |
---|
3233 | -- TOC entry 2722 (class 0 OID 0) |
---|
3234 | -- Dependencies: 1806 |
---|
3235 | -- Name: TABLE link_closed_data_category_conceptual_domains; Type: COMMENT; Schema: public; Owner: - |
---|
3236 | -- |
---|
3237 | |
---|
3238 | COMMENT ON TABLE link_closed_data_category_conceptual_domains IS 'The link table between closed Data Categories and profile value domains.'; |
---|
3239 | |
---|
3240 | |
---|
3241 | -- |
---|
3242 | -- TOC entry 2723 (class 0 OID 0) |
---|
3243 | -- Dependencies: 1806 |
---|
3244 | -- Name: COLUMN link_closed_data_category_conceptual_domains.dc; Type: COMMENT; Schema: public; Owner: - |
---|
3245 | -- |
---|
3246 | |
---|
3247 | COMMENT ON COLUMN link_closed_data_category_conceptual_domains.dc IS 'The closed Data Category.'; |
---|
3248 | |
---|
3249 | |
---|
3250 | -- |
---|
3251 | -- TOC entry 2724 (class 0 OID 0) |
---|
3252 | -- Dependencies: 1806 |
---|
3253 | -- Name: COLUMN link_closed_data_category_conceptual_domains.cd; Type: COMMENT; Schema: public; Owner: - |
---|
3254 | -- |
---|
3255 | |
---|
3256 | COMMENT ON COLUMN link_closed_data_category_conceptual_domains.cd IS 'The profile value domain.'; |
---|
3257 | |
---|
3258 | |
---|
3259 | -- |
---|
3260 | -- TOC entry 1807 (class 1259 OID 359365) |
---|
3261 | -- Dependencies: 6 |
---|
3262 | -- Name: link_constrained_data_category_conceptual_domains; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3263 | -- |
---|
3264 | |
---|
3265 | CREATE TABLE link_constrained_data_category_conceptual_domains ( |
---|
3266 | dc integer NOT NULL, |
---|
3267 | cd integer NOT NULL |
---|
3268 | ); |
---|
3269 | |
---|
3270 | |
---|
3271 | -- |
---|
3272 | -- TOC entry 2725 (class 0 OID 0) |
---|
3273 | -- Dependencies: 1807 |
---|
3274 | -- Name: TABLE link_constrained_data_category_conceptual_domains; Type: COMMENT; Schema: public; Owner: - |
---|
3275 | -- |
---|
3276 | |
---|
3277 | COMMENT ON TABLE link_constrained_data_category_conceptual_domains IS 'The link table between constrained Data Categories and schema specific domains.'; |
---|
3278 | |
---|
3279 | |
---|
3280 | -- |
---|
3281 | -- TOC entry 2726 (class 0 OID 0) |
---|
3282 | -- Dependencies: 1807 |
---|
3283 | -- Name: COLUMN link_constrained_data_category_conceptual_domains.dc; Type: COMMENT; Schema: public; Owner: - |
---|
3284 | -- |
---|
3285 | |
---|
3286 | COMMENT ON COLUMN link_constrained_data_category_conceptual_domains.dc IS 'The constrained Data Category.'; |
---|
3287 | |
---|
3288 | |
---|
3289 | -- |
---|
3290 | -- TOC entry 2727 (class 0 OID 0) |
---|
3291 | -- Dependencies: 1807 |
---|
3292 | -- Name: COLUMN link_constrained_data_category_conceptual_domains.cd; Type: COMMENT; Schema: public; Owner: - |
---|
3293 | -- |
---|
3294 | |
---|
3295 | COMMENT ON COLUMN link_constrained_data_category_conceptual_domains.cd IS 'The Schema Specifc Domain.'; |
---|
3296 | |
---|
3297 | |
---|
3298 | -- |
---|
3299 | -- TOC entry 1808 (class 1259 OID 359368) |
---|
3300 | -- Dependencies: 6 |
---|
3301 | -- Name: link_constrained_linguistic_section_conceptual_domains; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3302 | -- |
---|
3303 | |
---|
3304 | CREATE TABLE link_constrained_linguistic_section_conceptual_domains ( |
---|
3305 | ls integer NOT NULL, |
---|
3306 | cd integer NOT NULL |
---|
3307 | ); |
---|
3308 | |
---|
3309 | |
---|
3310 | -- |
---|
3311 | -- TOC entry 1809 (class 1259 OID 359371) |
---|
3312 | -- Dependencies: 6 |
---|
3313 | -- Name: link_data_category_selection_users; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3314 | -- |
---|
3315 | |
---|
3316 | CREATE TABLE link_data_category_selection_users ( |
---|
3317 | dcs integer NOT NULL, |
---|
3318 | "user" integer NOT NULL |
---|
3319 | ); |
---|
3320 | |
---|
3321 | |
---|
3322 | -- |
---|
3323 | -- TOC entry 2728 (class 0 OID 0) |
---|
3324 | -- Dependencies: 1809 |
---|
3325 | -- Name: TABLE link_data_category_selection_users; Type: COMMENT; Schema: public; Owner: - |
---|
3326 | -- |
---|
3327 | |
---|
3328 | COMMENT ON TABLE link_data_category_selection_users IS 'The link table between Data Category Selection and its users.'; |
---|
3329 | |
---|
3330 | |
---|
3331 | -- |
---|
3332 | -- TOC entry 2729 (class 0 OID 0) |
---|
3333 | -- Dependencies: 1809 |
---|
3334 | -- Name: COLUMN link_data_category_selection_users.dcs; Type: COMMENT; Schema: public; Owner: - |
---|
3335 | -- |
---|
3336 | |
---|
3337 | COMMENT ON COLUMN link_data_category_selection_users.dcs IS 'The Data Category Selection.'; |
---|
3338 | |
---|
3339 | |
---|
3340 | -- |
---|
3341 | -- TOC entry 2730 (class 0 OID 0) |
---|
3342 | -- Dependencies: 1809 |
---|
3343 | -- Name: COLUMN link_data_category_selection_users."user"; Type: COMMENT; Schema: public; Owner: - |
---|
3344 | -- |
---|
3345 | |
---|
3346 | COMMENT ON COLUMN link_data_category_selection_users."user" IS 'The user.'; |
---|
3347 | |
---|
3348 | |
---|
3349 | -- |
---|
3350 | -- TOC entry 1810 (class 1259 OID 359374) |
---|
3351 | -- Dependencies: 2192 6 326 |
---|
3352 | -- Name: link_dc_access; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3353 | -- |
---|
3354 | |
---|
3355 | CREATE TABLE link_dc_access ( |
---|
3356 | dc integer NOT NULL, |
---|
3357 | account integer NOT NULL, |
---|
3358 | rights access_rights_enum DEFAULT 'r'::access_rights_enum NOT NULL |
---|
3359 | ); |
---|
3360 | |
---|
3361 | |
---|
3362 | -- |
---|
3363 | -- TOC entry 1811 (class 1259 OID 359378) |
---|
3364 | -- Dependencies: 2193 2194 6 326 326 |
---|
3365 | -- Name: link_dcs_access; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3366 | -- |
---|
3367 | |
---|
3368 | CREATE TABLE link_dcs_access ( |
---|
3369 | dcs integer NOT NULL, |
---|
3370 | account integer NOT NULL, |
---|
3371 | rights access_rights_enum DEFAULT 'r'::access_rights_enum NOT NULL, |
---|
3372 | propagate access_rights_enum DEFAULT 'r'::access_rights_enum NOT NULL |
---|
3373 | ); |
---|
3374 | |
---|
3375 | |
---|
3376 | -- |
---|
3377 | -- TOC entry 1812 (class 1259 OID 359383) |
---|
3378 | -- Dependencies: 2195 2196 336 6 334 |
---|
3379 | -- Name: link_group_members; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3380 | -- |
---|
3381 | |
---|
3382 | CREATE TABLE link_group_members ( |
---|
3383 | "group" integer NOT NULL, |
---|
3384 | member integer NOT NULL, |
---|
3385 | role member_type_enum DEFAULT 'member'::member_type_enum NOT NULL, |
---|
3386 | status member_status_enum DEFAULT 'invite'::member_status_enum NOT NULL |
---|
3387 | ); |
---|
3388 | |
---|
3389 | |
---|
3390 | -- |
---|
3391 | -- TOC entry 1813 (class 1259 OID 359388) |
---|
3392 | -- Dependencies: 6 |
---|
3393 | -- Name: link_open_data_category_conceptual_domain; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3394 | -- |
---|
3395 | |
---|
3396 | CREATE TABLE link_open_data_category_conceptual_domain ( |
---|
3397 | dc integer NOT NULL, |
---|
3398 | cd integer NOT NULL |
---|
3399 | ); |
---|
3400 | |
---|
3401 | |
---|
3402 | -- |
---|
3403 | -- TOC entry 2731 (class 0 OID 0) |
---|
3404 | -- Dependencies: 1813 |
---|
3405 | -- Name: TABLE link_open_data_category_conceptual_domain; Type: COMMENT; Schema: public; Owner: - |
---|
3406 | -- |
---|
3407 | |
---|
3408 | COMMENT ON TABLE link_open_data_category_conceptual_domain IS 'The link table between open Data Categories and a open conceptual domain.'; |
---|
3409 | |
---|
3410 | |
---|
3411 | -- |
---|
3412 | -- TOC entry 2732 (class 0 OID 0) |
---|
3413 | -- Dependencies: 1813 |
---|
3414 | -- Name: COLUMN link_open_data_category_conceptual_domain.dc; Type: COMMENT; Schema: public; Owner: - |
---|
3415 | -- |
---|
3416 | |
---|
3417 | COMMENT ON COLUMN link_open_data_category_conceptual_domain.dc IS 'The open data category.'; |
---|
3418 | |
---|
3419 | |
---|
3420 | -- |
---|
3421 | -- TOC entry 2733 (class 0 OID 0) |
---|
3422 | -- Dependencies: 1813 |
---|
3423 | -- Name: COLUMN link_open_data_category_conceptual_domain.cd; Type: COMMENT; Schema: public; Owner: - |
---|
3424 | -- |
---|
3425 | |
---|
3426 | COMMENT ON COLUMN link_open_data_category_conceptual_domain.cd IS 'The open conceptual domain.'; |
---|
3427 | |
---|
3428 | |
---|
3429 | -- |
---|
3430 | -- TOC entry 1814 (class 1259 OID 359391) |
---|
3431 | -- Dependencies: 6 |
---|
3432 | -- Name: link_profile_members; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3433 | -- |
---|
3434 | |
---|
3435 | CREATE TABLE link_profile_members ( |
---|
3436 | profile integer NOT NULL, |
---|
3437 | dc integer NOT NULL |
---|
3438 | ); |
---|
3439 | |
---|
3440 | |
---|
3441 | -- |
---|
3442 | -- TOC entry 2734 (class 0 OID 0) |
---|
3443 | -- Dependencies: 1814 |
---|
3444 | -- Name: TABLE link_profile_members; Type: COMMENT; Schema: public; Owner: - |
---|
3445 | -- |
---|
3446 | |
---|
3447 | COMMENT ON TABLE link_profile_members IS 'The link table between Profile and Data Category.'; |
---|
3448 | |
---|
3449 | |
---|
3450 | -- |
---|
3451 | -- TOC entry 2735 (class 0 OID 0) |
---|
3452 | -- Dependencies: 1814 |
---|
3453 | -- Name: COLUMN link_profile_members.profile; Type: COMMENT; Schema: public; Owner: - |
---|
3454 | -- |
---|
3455 | |
---|
3456 | COMMENT ON COLUMN link_profile_members.profile IS 'The profile of this Data Category.'; |
---|
3457 | |
---|
3458 | |
---|
3459 | -- |
---|
3460 | -- TOC entry 2736 (class 0 OID 0) |
---|
3461 | -- Dependencies: 1814 |
---|
3462 | -- Name: COLUMN link_profile_members.dc; Type: COMMENT; Schema: public; Owner: - |
---|
3463 | -- |
---|
3464 | |
---|
3465 | COMMENT ON COLUMN link_profile_members.dc IS 'The Data Category which is a member of this profile.'; |
---|
3466 | |
---|
3467 | |
---|
3468 | -- |
---|
3469 | -- TOC entry 1815 (class 1259 OID 359394) |
---|
3470 | -- Dependencies: 6 |
---|
3471 | -- Name: link_selected_data_category_picklist; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3472 | -- |
---|
3473 | |
---|
3474 | CREATE TABLE link_selected_data_category_picklist ( |
---|
3475 | cdc integer NOT NULL, |
---|
3476 | sdc integer NOT NULL |
---|
3477 | ); |
---|
3478 | |
---|
3479 | |
---|
3480 | -- |
---|
3481 | -- TOC entry 2737 (class 0 OID 0) |
---|
3482 | -- Dependencies: 1815 |
---|
3483 | -- Name: TABLE link_selected_data_category_picklist; Type: COMMENT; Schema: public; Owner: - |
---|
3484 | -- |
---|
3485 | |
---|
3486 | COMMENT ON TABLE link_selected_data_category_picklist IS 'The link table between selected complex Data Categories and the selected simple Data Categories in its picklist.'; |
---|
3487 | |
---|
3488 | |
---|
3489 | -- |
---|
3490 | -- TOC entry 2738 (class 0 OID 0) |
---|
3491 | -- Dependencies: 1815 |
---|
3492 | -- Name: COLUMN link_selected_data_category_picklist.cdc; Type: COMMENT; Schema: public; Owner: - |
---|
3493 | -- |
---|
3494 | |
---|
3495 | COMMENT ON COLUMN link_selected_data_category_picklist.cdc IS 'The selected complex Data Category.'; |
---|
3496 | |
---|
3497 | |
---|
3498 | -- |
---|
3499 | -- TOC entry 2739 (class 0 OID 0) |
---|
3500 | -- Dependencies: 1815 |
---|
3501 | -- Name: COLUMN link_selected_data_category_picklist.sdc; Type: COMMENT; Schema: public; Owner: - |
---|
3502 | -- |
---|
3503 | |
---|
3504 | COMMENT ON COLUMN link_selected_data_category_picklist.sdc IS 'The selected simple Data Category.'; |
---|
3505 | |
---|
3506 | |
---|
3507 | -- |
---|
3508 | -- TOC entry 1816 (class 1259 OID 359397) |
---|
3509 | -- Dependencies: 6 |
---|
3510 | -- Name: link_selected_data_category_profiles; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3511 | -- |
---|
3512 | |
---|
3513 | CREATE TABLE link_selected_data_category_profiles ( |
---|
3514 | dc integer NOT NULL, |
---|
3515 | profile integer NOT NULL |
---|
3516 | ); |
---|
3517 | |
---|
3518 | |
---|
3519 | -- |
---|
3520 | -- TOC entry 2740 (class 0 OID 0) |
---|
3521 | -- Dependencies: 1816 |
---|
3522 | -- Name: TABLE link_selected_data_category_profiles; Type: COMMENT; Schema: public; Owner: - |
---|
3523 | -- |
---|
3524 | |
---|
3525 | COMMENT ON TABLE link_selected_data_category_profiles IS 'The link table between selected Data Categories and profiles.'; |
---|
3526 | |
---|
3527 | |
---|
3528 | -- |
---|
3529 | -- TOC entry 2741 (class 0 OID 0) |
---|
3530 | -- Dependencies: 1816 |
---|
3531 | -- Name: COLUMN link_selected_data_category_profiles.dc; Type: COMMENT; Schema: public; Owner: - |
---|
3532 | -- |
---|
3533 | |
---|
3534 | COMMENT ON COLUMN link_selected_data_category_profiles.dc IS 'The selected Data Category.'; |
---|
3535 | |
---|
3536 | |
---|
3537 | -- |
---|
3538 | -- TOC entry 2742 (class 0 OID 0) |
---|
3539 | -- Dependencies: 1816 |
---|
3540 | -- Name: COLUMN link_selected_data_category_profiles.profile; Type: COMMENT; Schema: public; Owner: - |
---|
3541 | -- |
---|
3542 | |
---|
3543 | COMMENT ON COLUMN link_selected_data_category_profiles.profile IS 'The profile.'; |
---|
3544 | |
---|
3545 | |
---|
3546 | -- |
---|
3547 | -- TOC entry 1817 (class 1259 OID 359400) |
---|
3548 | -- Dependencies: 6 |
---|
3549 | -- Name: link_simple_data_category_super; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3550 | -- |
---|
3551 | |
---|
3552 | CREATE TABLE link_simple_data_category_super ( |
---|
3553 | dc integer NOT NULL, |
---|
3554 | super integer NOT NULL |
---|
3555 | ); |
---|
3556 | |
---|
3557 | |
---|
3558 | -- |
---|
3559 | -- TOC entry 2743 (class 0 OID 0) |
---|
3560 | -- Dependencies: 1817 |
---|
3561 | -- Name: TABLE link_simple_data_category_super; Type: COMMENT; Schema: public; Owner: - |
---|
3562 | -- |
---|
3563 | |
---|
3564 | COMMENT ON TABLE link_simple_data_category_super IS 'The link table between simple Data Category and a more generic simple Data Category.'; |
---|
3565 | |
---|
3566 | |
---|
3567 | -- |
---|
3568 | -- TOC entry 2744 (class 0 OID 0) |
---|
3569 | -- Dependencies: 1817 |
---|
3570 | -- Name: COLUMN link_simple_data_category_super.dc; Type: COMMENT; Schema: public; Owner: - |
---|
3571 | -- |
---|
3572 | |
---|
3573 | COMMENT ON COLUMN link_simple_data_category_super.dc IS 'The simple Data Category.'; |
---|
3574 | |
---|
3575 | |
---|
3576 | -- |
---|
3577 | -- TOC entry 2745 (class 0 OID 0) |
---|
3578 | -- Dependencies: 1817 |
---|
3579 | -- Name: COLUMN link_simple_data_category_super.super; Type: COMMENT; Schema: public; Owner: - |
---|
3580 | -- |
---|
3581 | |
---|
3582 | COMMENT ON COLUMN link_simple_data_category_super.super IS 'The more generic simple Data Category.'; |
---|
3583 | |
---|
3584 | |
---|
3585 | -- |
---|
3586 | -- TOC entry 1818 (class 1259 OID 359403) |
---|
3587 | -- Dependencies: 6 |
---|
3588 | -- Name: link_value_domain_values; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3589 | -- |
---|
3590 | |
---|
3591 | CREATE TABLE link_value_domain_values ( |
---|
3592 | cd integer NOT NULL, |
---|
3593 | dc integer NOT NULL |
---|
3594 | ); |
---|
3595 | |
---|
3596 | |
---|
3597 | -- |
---|
3598 | -- TOC entry 2746 (class 0 OID 0) |
---|
3599 | -- Dependencies: 1818 |
---|
3600 | -- Name: TABLE link_value_domain_values; Type: COMMENT; Schema: public; Owner: - |
---|
3601 | -- |
---|
3602 | |
---|
3603 | COMMENT ON TABLE link_value_domain_values IS 'The link table between Value Domain and the simple Data Categories which are its values.'; |
---|
3604 | |
---|
3605 | |
---|
3606 | -- |
---|
3607 | -- TOC entry 2747 (class 0 OID 0) |
---|
3608 | -- Dependencies: 1818 |
---|
3609 | -- Name: COLUMN link_value_domain_values.cd; Type: COMMENT; Schema: public; Owner: - |
---|
3610 | -- |
---|
3611 | |
---|
3612 | COMMENT ON COLUMN link_value_domain_values.cd IS 'The value domain.'; |
---|
3613 | |
---|
3614 | |
---|
3615 | -- |
---|
3616 | -- TOC entry 2748 (class 0 OID 0) |
---|
3617 | -- Dependencies: 1818 |
---|
3618 | -- Name: COLUMN link_value_domain_values.dc; Type: COMMENT; Schema: public; Owner: - |
---|
3619 | -- |
---|
3620 | |
---|
3621 | COMMENT ON COLUMN link_value_domain_values.dc IS 'The simple Data Category.'; |
---|
3622 | |
---|
3623 | |
---|
3624 | -- |
---|
3625 | -- TOC entry 1836 (class 1259 OID 360530) |
---|
3626 | -- Dependencies: 6 |
---|
3627 | -- Name: search_exact; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3628 | -- |
---|
3629 | |
---|
3630 | CREATE TABLE search_exact ( |
---|
3631 | id integer, |
---|
3632 | private boolean, |
---|
3633 | rank numeric |
---|
3634 | ); |
---|
3635 | |
---|
3636 | |
---|
3637 | -- |
---|
3638 | -- TOC entry 1835 (class 1259 OID 360524) |
---|
3639 | -- Dependencies: 6 |
---|
3640 | -- Name: search_like; Type: TABLE; Schema: public; Owner: -; Tablespace: |
---|
3641 | -- |
---|
3642 | |
---|
3643 | CREATE TABLE search_like ( |
---|
3644 | id integer, |
---|
3645 | private boolean, |
---|
3646 | rank numeric |
---|
3647 | ); |
---|
3648 | |
---|
3649 | |
---|
3650 | -- |
---|
3651 | -- TOC entry 1819 (class 1259 OID 359406) |
---|
3652 | -- Dependencies: 1926 6 |
---|
3653 | -- Name: view_cd_type; Type: VIEW; Schema: public; Owner: - |
---|
3654 | -- |
---|
3655 | |
---|
3656 | CREATE VIEW view_cd_type AS |
---|
3657 | SELECT core_conceptual_domain.id, cd_type.type FROM (core_conceptual_domain JOIN ((SELECT core_open_conceptual_domain.id, 'open' AS type FROM core_open_conceptual_domain UNION SELECT core_conceptual_domain_rule.id, 'constrained' AS type FROM core_conceptual_domain_rule) UNION SELECT core_value_domain.id, 'closed' AS type FROM core_value_domain) cd_type ON ((cd_type.id = core_conceptual_domain.id))); |
---|
3658 | |
---|
3659 | |
---|
3660 | -- |
---|
3661 | -- TOC entry 1820 (class 1259 OID 359410) |
---|
3662 | -- Dependencies: 1927 6 336 |
---|
3663 | -- Name: view_cr_decision_group_dcrb; Type: VIEW; Schema: public; Owner: - |
---|
3664 | -- |
---|
3665 | |
---|
3666 | CREATE VIEW view_cr_decision_group_dcrb AS |
---|
3667 | SELECT core_change_request.id AS cr, link_group_members.member, link_group_members.role FROM (core_change_request JOIN link_group_members ON ((link_group_members."group" = core_change_request.decision_group_dcrb))); |
---|
3668 | |
---|
3669 | |
---|
3670 | -- |
---|
3671 | -- TOC entry 1821 (class 1259 OID 359414) |
---|
3672 | -- Dependencies: 1928 6 336 |
---|
3673 | -- Name: view_cr_decision_group_tdg; Type: VIEW; Schema: public; Owner: - |
---|
3674 | -- |
---|
3675 | |
---|
3676 | CREATE VIEW view_cr_decision_group_tdg AS |
---|
3677 | SELECT core_change_request.id AS cr, link_group_members.member, link_group_members.role FROM (core_change_request JOIN link_group_members ON ((link_group_members."group" = core_change_request.decision_group_tdg))); |
---|
3678 | |
---|
3679 | |
---|
3680 | -- |
---|
3681 | -- TOC entry 1822 (class 1259 OID 359418) |
---|
3682 | -- Dependencies: 1929 6 336 |
---|
3683 | -- Name: view_cr_submission_group; Type: VIEW; Schema: public; Owner: - |
---|
3684 | -- |
---|
3685 | |
---|
3686 | CREATE VIEW view_cr_submission_group AS |
---|
3687 | SELECT core_change_request.id AS cr, link_group_members.member, link_group_members.role FROM (core_change_request JOIN link_group_members ON ((link_group_members."group" = core_change_request.submission_group))); |
---|
3688 | |
---|
3689 | |
---|
3690 | -- |
---|
3691 | -- TOC entry 1823 (class 1259 OID 359422) |
---|
3692 | -- Dependencies: 1930 6 |
---|
3693 | -- Name: view_dc_type; Type: VIEW; Schema: public; Owner: - |
---|
3694 | -- |
---|
3695 | |
---|
3696 | CREATE VIEW view_dc_type AS |
---|
3697 | SELECT core_data_category.id, dc_type.type FROM (core_data_category LEFT JOIN ((((SELECT open.id, 'open' AS type FROM (SELECT core_open_data_category.id FROM core_open_data_category EXCEPT SELECT core_constrained_data_category.id FROM core_constrained_data_category) open UNION SELECT core_constrained_data_category.id, 'constrained' AS type FROM core_constrained_data_category) UNION SELECT core_closed_data_category.id, 'closed' AS type FROM core_closed_data_category) UNION SELECT core_simple_data_category.id, 'simple' AS type FROM core_simple_data_category) UNION SELECT core_container_data_category.id, 'container' AS type FROM core_container_data_category) dc_type ON ((dc_type.id = core_data_category.id))); |
---|
3698 | |
---|
3699 | |
---|
3700 | -- |
---|
3701 | -- TOC entry 1824 (class 1259 OID 359427) |
---|
3702 | -- Dependencies: 1931 6 |
---|
3703 | -- Name: view_owner; Type: VIEW; Schema: public; Owner: - |
---|
3704 | -- |
---|
3705 | |
---|
3706 | CREATE VIEW view_owner AS |
---|
3707 | SELECT core_owner.id, COALESCE(core_thematic_domain_group.name, user_name(core_user.id), NULL::character varying) AS name FROM ((core_owner LEFT JOIN core_thematic_domain_group ON ((core_thematic_domain_group.id = core_owner.id))) LEFT JOIN core_user ON ((core_user.id = core_owner.id))); |
---|
3708 | |
---|
3709 | |
---|
3710 | -- |
---|
3711 | -- TOC entry 1825 (class 1259 OID 359431) |
---|
3712 | -- Dependencies: 1932 6 348 328 330 |
---|
3713 | -- Name: view_data_category; Type: VIEW; Schema: public; Owner: - |
---|
3714 | -- |
---|
3715 | |
---|
3716 | CREATE VIEW view_data_category AS |
---|
3717 | SELECT core_data_category.id, core_data_category.pid, core_data_category.name, view_owner.id AS owner_id, view_owner.name AS owner, core_data_category.identifier, core_data_category.version, core_data_category.branch, core_data_category.revision, core_data_category.sidebranches, core_data_category.administration_status, core_data_category.registration_status, core_data_category.justification, core_data_category.origin, core_data_category.effective_date, core_data_category.until_date, core_data_category.previous, core_data_category.next, core_data_category.private, view_dc_type.type, core_data_category."check", link_simple_data_category_super.super FROM (((core_data_category JOIN view_owner ON ((view_owner.id = core_data_category.owner))) JOIN view_dc_type ON ((view_dc_type.id = core_data_category.id))) LEFT JOIN link_simple_data_category_super ON ((link_simple_data_category_super.dc = core_data_category.id))); |
---|
3718 | |
---|
3719 | |
---|
3720 | -- |
---|
3721 | -- TOC entry 1837 (class 1259 OID 360961) |
---|
3722 | -- Dependencies: 1942 326 326 6 |
---|
3723 | -- Name: view_dcs_access; Type: VIEW; Schema: public; Owner: - |
---|
3724 | -- |
---|
3725 | |
---|
3726 | CREATE VIEW view_dcs_access AS |
---|
3727 | SELECT access.dcs, access.account, access.type, max(access.rights) AS rights, max(access.propagate) AS propagate FROM ((SELECT link_dcs_access.dcs, link_dcs_access.account, link_dcs_access.rights, link_dcs_access.propagate, 'user' AS type FROM (link_dcs_access JOIN core_user ON ((link_dcs_access.account = core_user.id))) UNION SELECT link_dcs_access.dcs, link_dcs_access.account, link_dcs_access.rights, link_dcs_access.propagate, 'group' AS type FROM (link_dcs_access JOIN core_group ON ((link_dcs_access.account = core_group.id)))) UNION SELECT link_dcs_access.dcs, link_group_members.member, link_dcs_access.rights, link_dcs_access.propagate, 'user' AS type FROM ((link_group_members JOIN core_group ON ((link_group_members."group" = core_group.id))) JOIN link_dcs_access ON ((link_dcs_access.account = core_group.id))) WHERE (link_group_members.status = 'accepted'::member_status_enum)) access GROUP BY access.dcs, access.account, access.type; |
---|
3728 | |
---|
3729 | |
---|
3730 | -- |
---|
3731 | -- TOC entry 1826 (class 1259 OID 359441) |
---|
3732 | -- Dependencies: 1933 6 |
---|
3733 | -- Name: view_dcs_dc; Type: VIEW; Schema: public; Owner: - |
---|
3734 | -- |
---|
3735 | |
---|
3736 | CREATE VIEW view_dcs_dc AS |
---|
3737 | SELECT dcs.dcs, dcs.dc, core_data_category.owner FROM ((SELECT core_selected_data_category.dcs, COALESCE(core_selected_container_data_category.dc, core_selected_complex_data_category.dc, core_selected_simple_data_category.dc, NULL::integer) AS dc FROM (((core_selected_data_category LEFT JOIN core_selected_container_data_category ON ((core_selected_container_data_category.id = core_selected_data_category.id))) LEFT JOIN core_selected_complex_data_category ON ((core_selected_complex_data_category.id = core_selected_data_category.id))) LEFT JOIN core_selected_simple_data_category ON ((core_selected_simple_data_category.id = core_selected_data_category.id)))) dcs JOIN core_data_category ON ((core_data_category.id = dcs.dc))); |
---|
3738 | |
---|
3739 | |
---|
3740 | -- |
---|
3741 | -- TOC entry 1838 (class 1259 OID 360966) |
---|
3742 | -- Dependencies: 1943 326 6 |
---|
3743 | -- Name: view_dc_access; Type: VIEW; Schema: public; Owner: - |
---|
3744 | -- |
---|
3745 | |
---|
3746 | CREATE VIEW view_dc_access AS |
---|
3747 | SELECT access.dc, access.account, access.type, max(access.rights) AS rights FROM (((SELECT link_dc_access.dc, link_dc_access.account, link_dc_access.rights, 'user' AS type FROM (link_dc_access JOIN core_user ON ((link_dc_access.account = core_user.id))) UNION SELECT link_dc_access.dc, link_dc_access.account, link_dc_access.rights, 'group' AS type FROM (link_dc_access JOIN core_group ON ((link_dc_access.account = core_group.id)))) UNION SELECT link_dc_access.dc, link_group_members.member AS account, link_dc_access.rights, 'user' AS type FROM ((link_group_members JOIN core_group ON ((link_group_members."group" = core_group.id))) JOIN link_dc_access ON ((link_dc_access.account = core_group.id))) WHERE ((link_group_members.status)::text = 'accepted'::text)) UNION SELECT oig.dc, view_dcs_access.account, view_dcs_access.propagate, view_dcs_access.type FROM (view_dcs_access JOIN (SELECT DISTINCT view_dcs_dc.dcs, view_dcs_dc.dc FROM ((view_dcs_dc JOIN link_dcs_access ON (((link_dcs_access.dcs = view_dcs_dc.dcs) AND (link_dcs_access.propagate IS NOT NULL)))) JOIN link_group_members ON (((link_group_members.member = view_dcs_dc.owner) AND (link_group_members."group" = link_dcs_access.account)))) WHERE ((link_group_members.status)::text = 'accepted'::text)) oig ON ((oig.dcs = view_dcs_access.dcs)))) access GROUP BY access.dc, access.account, access.type; |
---|
3748 | |
---|
3749 | |
---|
3750 | -- |
---|
3751 | -- TOC entry 1827 (class 1259 OID 359451) |
---|
3752 | -- Dependencies: 1934 342 6 |
---|
3753 | -- Name: view_dc_name; Type: VIEW; Schema: public; Owner: - |
---|
3754 | -- |
---|
3755 | |
---|
3756 | CREATE VIEW view_dc_name AS |
---|
3757 | SELECT core_data_category.id, generic_name.name, generic_name.status, generic_name.source, core_language.name AS language, core_language.tag FROM (((core_data_category JOIN core_language_section ON ((core_language_section.dc = core_data_category.id))) JOIN core_language ON ((core_language.id = core_language_section.language))) JOIN generic_name ON ((generic_name.owner = core_language_section.id))) WHERE (generic_name.owner_type = 'language section'::owner_type_enum) ORDER BY generic_name.id; |
---|
3758 | |
---|
3759 | |
---|
3760 | -- |
---|
3761 | -- TOC entry 1828 (class 1259 OID 359456) |
---|
3762 | -- Dependencies: 1935 6 |
---|
3763 | -- Name: view_dc_profiles; Type: VIEW; Schema: public; Owner: - |
---|
3764 | -- |
---|
3765 | |
---|
3766 | CREATE VIEW view_dc_profiles AS |
---|
3767 | SELECT link_profile_members.dc AS id, concat(DISTINCT ((link_profile_members.profile)::character varying)::text) AS profiles FROM link_profile_members GROUP BY link_profile_members.dc; |
---|
3768 | |
---|
3769 | |
---|
3770 | -- |
---|
3771 | -- TOC entry 1829 (class 1259 OID 359460) |
---|
3772 | -- Dependencies: 1936 330 6 348 328 |
---|
3773 | -- Name: view_dcs; Type: VIEW; Schema: public; Owner: - |
---|
3774 | -- |
---|
3775 | |
---|
3776 | CREATE VIEW view_dcs AS |
---|
3777 | SELECT dcs.dcs, dcs.dc, core_data_category.pid, core_data_category.name, view_owner.id AS owner_id, view_owner.name AS owner, core_data_category.identifier, core_data_category.version, core_data_category.branch, core_data_category.revision, core_data_category.sidebranches, core_data_category.administration_status, core_data_category.registration_status, core_data_category.justification, core_data_category.origin, core_data_category.effective_date, core_data_category.until_date, core_data_category.previous, core_data_category.next, core_data_category.private, view_dc_type.type, core_data_category."check", link_simple_data_category_super.super FROM (((((SELECT core_selected_data_category.dcs, COALESCE(core_selected_complex_data_category.dc, core_selected_simple_data_category.dc, core_selected_container_data_category.dc, NULL::integer) AS dc FROM (((core_selected_data_category LEFT JOIN core_selected_container_data_category ON ((core_selected_container_data_category.id = core_selected_data_category.id))) LEFT JOIN core_selected_complex_data_category ON ((core_selected_complex_data_category.id = core_selected_data_category.id))) LEFT JOIN core_selected_simple_data_category ON ((core_selected_simple_data_category.id = core_selected_data_category.id)))) dcs JOIN core_data_category ON ((core_data_category.id = dcs.dc))) JOIN view_owner ON ((view_owner.id = core_data_category.owner))) JOIN view_dc_type ON ((view_dc_type.id = core_data_category.id))) LEFT JOIN link_simple_data_category_super ON ((link_simple_data_category_super.dc = core_data_category.id))); |
---|
3778 | |
---|
3779 | |
---|
3780 | -- |
---|
3781 | -- TOC entry 1839 (class 1259 OID 360971) |
---|
3782 | -- Dependencies: 1944 326 6 326 |
---|
3783 | -- Name: view_link_dcs_access; Type: VIEW; Schema: public; Owner: - |
---|
3784 | -- |
---|
3785 | |
---|
3786 | CREATE VIEW view_link_dcs_access AS |
---|
3787 | SELECT link_dcs_access.dcs, link_dcs_access.account, link_dcs_access.rights, link_dcs_access.propagate, core_data_category_selection.name FROM (link_dcs_access JOIN core_data_category_selection ON ((link_dcs_access.dcs = core_data_category_selection.id))); |
---|
3788 | |
---|
3789 | |
---|
3790 | -- |
---|
3791 | -- TOC entry 1830 (class 1259 OID 359469) |
---|
3792 | -- Dependencies: 1937 340 338 6 |
---|
3793 | -- Name: view_message; Type: VIEW; Schema: public; Owner: - |
---|
3794 | -- |
---|
3795 | |
---|
3796 | CREATE VIEW view_message AS |
---|
3797 | SELECT core_message.id, core_message."from", core_message."to", core_message.subject, core_message.message, core_message.created, core_message.read, core_message.type, core_message.status FROM core_message; |
---|
3798 | |
---|
3799 | |
---|
3800 | -- |
---|
3801 | -- TOC entry 1831 (class 1259 OID 359473) |
---|
3802 | -- Dependencies: 1938 342 344 6 346 |
---|
3803 | -- Name: view_name; Type: VIEW; Schema: public; Owner: - |
---|
3804 | -- |
---|
3805 | |
---|
3806 | CREATE VIEW view_name AS |
---|
3807 | SELECT generic_name.id, generic_name.owner, generic_name.name_type, generic_name.source, generic_name.status, generic_name.name, generic_name.owner_type FROM generic_name; |
---|
3808 | |
---|
3809 | |
---|
3810 | -- |
---|
3811 | -- TOC entry 1832 (class 1259 OID 359477) |
---|
3812 | -- Dependencies: 1939 348 6 328 330 |
---|
3813 | -- Name: view_profile; Type: VIEW; Schema: public; Owner: - |
---|
3814 | -- |
---|
3815 | |
---|
3816 | CREATE VIEW view_profile AS |
---|
3817 | SELECT link_profile_members.profile, link_profile_members.dc, core_data_category.pid, core_data_category.name, view_owner.id AS owner_id, view_owner.name AS owner, core_data_category.identifier, core_data_category.version, core_data_category.administration_status, core_data_category.registration_status, core_data_category.justification, core_data_category.origin, core_data_category.effective_date, core_data_category.until_date, core_data_category.previous, core_data_category.private, view_dc_type.type, core_data_category."check", link_simple_data_category_super.super FROM ((((link_profile_members JOIN core_data_category ON ((core_data_category.id = link_profile_members.dc))) JOIN view_owner ON ((view_owner.id = core_data_category.owner))) JOIN view_dc_type ON ((view_dc_type.id = core_data_category.id))) LEFT JOIN link_simple_data_category_super ON ((link_simple_data_category_super.dc = core_data_category.id))); |
---|
3818 | |
---|
3819 | |
---|
3820 | -- |
---|
3821 | -- TOC entry 1833 (class 1259 OID 359482) |
---|
3822 | -- Dependencies: 1940 6 350 346 |
---|
3823 | -- Name: view_text; Type: VIEW; Schema: public; Owner: - |
---|
3824 | -- |
---|
3825 | |
---|
3826 | CREATE VIEW view_text AS |
---|
3827 | SELECT generic_text.id, generic_text.owner, generic_text.owner_type, generic_text.language, generic_text.date, generic_text."timestamp", generic_text.source, generic_text.text, generic_text.text_type, generic_text."user" FROM generic_text; |
---|
3828 | |
---|
3829 | |
---|
3830 | -- |
---|
3831 | -- TOC entry 1834 (class 1259 OID 359486) |
---|
3832 | -- Dependencies: 1941 352 6 |
---|
3833 | -- Name: view_user; Type: VIEW; Schema: public; Owner: - |
---|
3834 | -- |
---|
3835 | |
---|
3836 | CREATE VIEW view_user AS |
---|
3837 | SELECT core_user.id, core_user.login, core_user.last_name, core_user.email, core_user.organization, core_user.phone, core_user.post, core_user.access_count, core_user.first_access, core_user.last_access, core_user.password, core_user.type, core_user.first_name, core_user.disclaimer, core_user.sync, core_user.forum, core_user.shib_principal, user_name(core_user.id) AS name FROM core_user; |
---|
3838 | |
---|
3839 | |
---|
3840 | -- |
---|
3841 | -- TOC entry 2136 (class 2604 OID 359490) |
---|
3842 | -- Dependencies: 1741 1740 |
---|
3843 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3844 | -- |
---|
3845 | |
---|
3846 | ALTER TABLE core_account ALTER COLUMN id SET DEFAULT nextval('core_account_id_seq'::regclass); |
---|
3847 | |
---|
3848 | |
---|
3849 | -- |
---|
3850 | -- TOC entry 2138 (class 2604 OID 359491) |
---|
3851 | -- Dependencies: 1744 1743 |
---|
3852 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3853 | -- |
---|
3854 | |
---|
3855 | ALTER TABLE core_change_request ALTER COLUMN id SET DEFAULT nextval('core_change_request_id_seq'::regclass); |
---|
3856 | |
---|
3857 | |
---|
3858 | -- |
---|
3859 | -- TOC entry 2140 (class 2604 OID 359492) |
---|
3860 | -- Dependencies: 1746 1745 |
---|
3861 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3862 | -- |
---|
3863 | |
---|
3864 | ALTER TABLE core_change_request_vote ALTER COLUMN id SET DEFAULT nextval('core_change_request_vote_id_seq'::regclass); |
---|
3865 | |
---|
3866 | |
---|
3867 | -- |
---|
3868 | -- TOC entry 2142 (class 2604 OID 359493) |
---|
3869 | -- Dependencies: 1751 1750 |
---|
3870 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3871 | -- |
---|
3872 | |
---|
3873 | ALTER TABLE core_conceptual_domain ALTER COLUMN id SET DEFAULT nextval('core_conceptual_domain_id_seq'::regclass); |
---|
3874 | |
---|
3875 | |
---|
3876 | -- |
---|
3877 | -- TOC entry 2151 (class 2604 OID 359494) |
---|
3878 | -- Dependencies: 1757 1756 |
---|
3879 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3880 | -- |
---|
3881 | |
---|
3882 | ALTER TABLE core_data_category ALTER COLUMN id SET DEFAULT nextval('core_data_category_id_seq'::regclass); |
---|
3883 | |
---|
3884 | |
---|
3885 | -- |
---|
3886 | -- TOC entry 2153 (class 2604 OID 359495) |
---|
3887 | -- Dependencies: 1759 1758 |
---|
3888 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3889 | -- |
---|
3890 | |
---|
3891 | ALTER TABLE core_data_category_selection ALTER COLUMN id SET DEFAULT nextval('core_data_category_selection_id_seq'::regclass); |
---|
3892 | |
---|
3893 | |
---|
3894 | -- |
---|
3895 | -- TOC entry 2154 (class 2604 OID 359496) |
---|
3896 | -- Dependencies: 1761 1760 |
---|
3897 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3898 | -- |
---|
3899 | |
---|
3900 | ALTER TABLE core_data_type ALTER COLUMN id SET DEFAULT nextval('core_data_type_id_seq'::regclass); |
---|
3901 | |
---|
3902 | |
---|
3903 | -- |
---|
3904 | -- TOC entry 2156 (class 2604 OID 359497) |
---|
3905 | -- Dependencies: 1795 1762 |
---|
3906 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3907 | -- |
---|
3908 | |
---|
3909 | ALTER TABLE core_dc_status_log ALTER COLUMN id SET DEFAULT nextval('core_status_log_id_seq'::regclass); |
---|
3910 | |
---|
3911 | |
---|
3912 | -- |
---|
3913 | -- TOC entry 2161 (class 2604 OID 359498) |
---|
3914 | -- Dependencies: 1767 1766 |
---|
3915 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3916 | -- |
---|
3917 | |
---|
3918 | ALTER TABLE core_language ALTER COLUMN id SET DEFAULT nextval('core_language_id_seq'::regclass); |
---|
3919 | |
---|
3920 | |
---|
3921 | -- |
---|
3922 | -- TOC entry 2163 (class 2604 OID 359499) |
---|
3923 | -- Dependencies: 1769 1768 |
---|
3924 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3925 | -- |
---|
3926 | |
---|
3927 | ALTER TABLE core_language_section ALTER COLUMN id SET DEFAULT nextval('core_language_section_id_seq'::regclass); |
---|
3928 | |
---|
3929 | |
---|
3930 | -- |
---|
3931 | -- TOC entry 2165 (class 2604 OID 359500) |
---|
3932 | -- Dependencies: 1771 1770 |
---|
3933 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3934 | -- |
---|
3935 | |
---|
3936 | ALTER TABLE core_linguistic_section ALTER COLUMN id SET DEFAULT nextval('core_linguistic_section_id_seq'::regclass); |
---|
3937 | |
---|
3938 | |
---|
3939 | -- |
---|
3940 | -- TOC entry 2170 (class 2604 OID 359501) |
---|
3941 | -- Dependencies: 1773 1772 |
---|
3942 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3943 | -- |
---|
3944 | |
---|
3945 | ALTER TABLE core_message ALTER COLUMN id SET DEFAULT nextval('core_message_id_seq'::regclass); |
---|
3946 | |
---|
3947 | |
---|
3948 | -- |
---|
3949 | -- TOC entry 2171 (class 2604 OID 359502) |
---|
3950 | -- Dependencies: 1778 1777 |
---|
3951 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3952 | -- |
---|
3953 | |
---|
3954 | ALTER TABLE core_profile ALTER COLUMN id SET DEFAULT nextval('core_profile_id_seq'::regclass); |
---|
3955 | |
---|
3956 | |
---|
3957 | -- |
---|
3958 | -- TOC entry 2172 (class 2604 OID 359503) |
---|
3959 | -- Dependencies: 1781 1780 |
---|
3960 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3961 | -- |
---|
3962 | |
---|
3963 | ALTER TABLE core_registration_authority ALTER COLUMN id SET DEFAULT nextval('core_registration_authority_id_seq'::regclass); |
---|
3964 | |
---|
3965 | |
---|
3966 | -- |
---|
3967 | -- TOC entry 2174 (class 2604 OID 359504) |
---|
3968 | -- Dependencies: 1784 1783 |
---|
3969 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3970 | -- |
---|
3971 | |
---|
3972 | ALTER TABLE core_rule ALTER COLUMN id SET DEFAULT nextval('core_rule_id_seq'::regclass); |
---|
3973 | |
---|
3974 | |
---|
3975 | -- |
---|
3976 | -- TOC entry 2175 (class 2604 OID 359505) |
---|
3977 | -- Dependencies: 1786 1785 |
---|
3978 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3979 | -- |
---|
3980 | |
---|
3981 | ALTER TABLE core_rule_type ALTER COLUMN id SET DEFAULT nextval('core_rule_type_id_seq'::regclass); |
---|
3982 | |
---|
3983 | |
---|
3984 | -- |
---|
3985 | -- TOC entry 2176 (class 2604 OID 359506) |
---|
3986 | -- Dependencies: 1790 1789 |
---|
3987 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3988 | -- |
---|
3989 | |
---|
3990 | ALTER TABLE core_selected_data_category ALTER COLUMN id SET DEFAULT nextval('core_selected_data_category_id_seq'::regclass); |
---|
3991 | |
---|
3992 | |
---|
3993 | -- |
---|
3994 | -- TOC entry 2178 (class 2604 OID 359507) |
---|
3995 | -- Dependencies: 1793 1792 |
---|
3996 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
3997 | -- |
---|
3998 | |
---|
3999 | ALTER TABLE core_session ALTER COLUMN id SET DEFAULT nextval('core_session_id_seq'::regclass); |
---|
4000 | |
---|
4001 | |
---|
4002 | -- |
---|
4003 | -- TOC entry 2184 (class 2604 OID 359508) |
---|
4004 | -- Dependencies: 1801 1800 |
---|
4005 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
4006 | -- |
---|
4007 | |
---|
4008 | ALTER TABLE generic_lock ALTER COLUMN id SET DEFAULT nextval('generic_lock_id_seq'::regclass); |
---|
4009 | |
---|
4010 | |
---|
4011 | -- |
---|
4012 | -- TOC entry 2186 (class 2604 OID 359509) |
---|
4013 | -- Dependencies: 1803 1802 |
---|
4014 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
4015 | -- |
---|
4016 | |
---|
4017 | ALTER TABLE generic_name ALTER COLUMN id SET DEFAULT nextval('generic_name_id_seq'::regclass); |
---|
4018 | |
---|
4019 | |
---|
4020 | -- |
---|
4021 | -- TOC entry 2191 (class 2604 OID 359510) |
---|
4022 | -- Dependencies: 1805 1804 |
---|
4023 | -- Name: id; Type: DEFAULT; Schema: public; Owner: - |
---|
4024 | -- |
---|
4025 | |
---|
4026 | ALTER TABLE generic_text ALTER COLUMN id SET DEFAULT nextval('generic_text_id_seq'::regclass); |
---|
4027 | |
---|
4028 | |
---|