1 |
|
--
|
2 |
|
-- PostgreSQL database dump
|
3 |
|
--
|
4 |
|
|
5 |
|
SET statement_timeout = 0;
|
6 |
|
SET client_encoding = 'UTF8';
|
7 |
|
SET standard_conforming_strings = off;
|
8 |
|
SET check_function_bodies = false;
|
9 |
|
SET client_min_messages = warning;
|
10 |
|
SET escape_string_warning = off;
|
11 |
|
|
12 |
|
--
|
13 |
|
-- Name: vegbien; Type: DATABASE; Schema: -; Owner: postgres
|
14 |
|
--
|
15 |
|
|
16 |
|
CREATE DATABASE vegbien WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';
|
17 |
|
|
18 |
|
|
19 |
|
ALTER DATABASE vegbien OWNER TO postgres;
|
20 |
|
|
21 |
|
\connect vegbien
|
22 |
|
|
23 |
|
SET statement_timeout = 0;
|
24 |
|
SET client_encoding = 'UTF8';
|
25 |
|
SET standard_conforming_strings = off;
|
26 |
|
SET check_function_bodies = false;
|
27 |
|
SET client_min_messages = warning;
|
28 |
|
SET escape_string_warning = off;
|
29 |
|
|
30 |
|
SET search_path = public, pg_catalog;
|
31 |
|
|
32 |
|
--
|
33 |
|
-- Name: concat(text); Type: AGGREGATE; Schema: public; Owner: bien
|
34 |
|
--
|
35 |
|
|
36 |
|
CREATE AGGREGATE concat(text) (
|
37 |
|
SFUNC = textcat,
|
38 |
|
STYPE = text,
|
39 |
|
INITCOND = ''
|
40 |
|
);
|
41 |
|
|
42 |
|
|
43 |
|
ALTER AGGREGATE public.concat(text) OWNER TO bien;
|
44 |
|
|
45 |
|
SET default_tablespace = '';
|
46 |
|
|
47 |
|
SET default_with_oids = true;
|
48 |
|
|
49 |
|
--
|
50 |
|
-- Name: address; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
51 |
|
--
|
52 |
|
|
53 |
|
CREATE TABLE address (
|
54 |
|
address_id integer NOT NULL,
|
55 |
|
party_id integer NOT NULL,
|
56 |
|
organization_id integer,
|
57 |
|
orgposition character varying(50),
|
58 |
|
email character varying(100),
|
59 |
|
deliverypoint character varying(200),
|
60 |
|
city character varying(50),
|
61 |
|
administrativearea character varying(50),
|
62 |
|
postalcode character varying(10),
|
63 |
|
country character varying(50),
|
64 |
|
currentflag boolean,
|
65 |
|
addressstartdate timestamp with time zone
|
66 |
|
);
|
67 |
|
|
68 |
|
|
69 |
|
ALTER TABLE public.address OWNER TO bien;
|
70 |
|
|
71 |
|
--
|
72 |
|
-- Name: address_address_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
73 |
|
--
|
74 |
|
|
75 |
|
CREATE SEQUENCE address_address_id_seq
|
76 |
|
START WITH 1
|
77 |
|
INCREMENT BY 1
|
78 |
|
NO MAXVALUE
|
79 |
|
NO MINVALUE
|
80 |
|
CACHE 1;
|
81 |
|
|
82 |
|
|
83 |
|
ALTER TABLE public.address_address_id_seq OWNER TO bien;
|
84 |
|
|
85 |
|
--
|
86 |
|
-- Name: address_address_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
87 |
|
--
|
88 |
|
|
89 |
|
ALTER SEQUENCE address_address_id_seq OWNED BY address.address_id;
|
90 |
|
|
91 |
|
|
92 |
|
--
|
93 |
|
-- Name: aux_role; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
94 |
|
--
|
95 |
|
|
96 |
|
CREATE TABLE aux_role (
|
97 |
|
role_id integer NOT NULL,
|
98 |
|
rolecode character varying(30) NOT NULL,
|
99 |
|
roledescription character varying(200),
|
100 |
|
roleproject integer,
|
101 |
|
roleobservation integer,
|
102 |
|
roletaxonint integer,
|
103 |
|
roleclassint integer,
|
104 |
|
accessioncode character varying(255)
|
105 |
|
);
|
106 |
|
|
107 |
|
|
108 |
|
ALTER TABLE public.aux_role OWNER TO bien;
|
109 |
|
|
110 |
|
--
|
111 |
|
-- Name: aux_role_role_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
112 |
|
--
|
113 |
|
|
114 |
|
CREATE SEQUENCE aux_role_role_id_seq
|
115 |
|
START WITH 1
|
116 |
|
INCREMENT BY 1
|
117 |
|
NO MAXVALUE
|
118 |
|
NO MINVALUE
|
119 |
|
CACHE 1;
|
120 |
|
|
121 |
|
|
122 |
|
ALTER TABLE public.aux_role_role_id_seq OWNER TO bien;
|
123 |
|
|
124 |
|
--
|
125 |
|
-- Name: aux_role_role_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
126 |
|
--
|
127 |
|
|
128 |
|
ALTER SEQUENCE aux_role_role_id_seq OWNED BY aux_role.role_id;
|
129 |
|
|
130 |
|
|
131 |
|
--
|
132 |
|
-- Name: classcontributor; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
133 |
|
--
|
134 |
|
|
135 |
|
CREATE TABLE classcontributor (
|
136 |
|
classcontributor_id integer NOT NULL,
|
137 |
|
commclass_id integer NOT NULL,
|
138 |
|
party_id integer NOT NULL,
|
139 |
|
role_id integer,
|
140 |
|
emb_classcontributor integer
|
141 |
|
);
|
142 |
|
|
143 |
|
|
144 |
|
ALTER TABLE public.classcontributor OWNER TO bien;
|
145 |
|
|
146 |
|
--
|
147 |
|
-- Name: classcontributor_classcontributor_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
148 |
|
--
|
149 |
|
|
150 |
|
CREATE SEQUENCE classcontributor_classcontributor_id_seq
|
151 |
|
START WITH 1
|
152 |
|
INCREMENT BY 1
|
153 |
|
NO MAXVALUE
|
154 |
|
NO MINVALUE
|
155 |
|
CACHE 1;
|
156 |
|
|
157 |
|
|
158 |
|
ALTER TABLE public.classcontributor_classcontributor_id_seq OWNER TO bien;
|
159 |
|
|
160 |
|
--
|
161 |
|
-- Name: classcontributor_classcontributor_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
162 |
|
--
|
163 |
|
|
164 |
|
ALTER SEQUENCE classcontributor_classcontributor_id_seq OWNED BY classcontributor.classcontributor_id;
|
165 |
|
|
166 |
|
|
167 |
|
--
|
168 |
|
-- Name: commclass; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
169 |
|
--
|
170 |
|
|
171 |
|
CREATE TABLE commclass (
|
172 |
|
commclass_id integer NOT NULL,
|
173 |
|
observation_id integer NOT NULL,
|
174 |
|
inspection boolean,
|
175 |
|
tableanalysis boolean,
|
176 |
|
multivariateanalysis boolean,
|
177 |
|
classpublication_id integer,
|
178 |
|
classnotes text,
|
179 |
|
commname character varying(200),
|
180 |
|
commcode character varying(200),
|
181 |
|
commframework character varying(200),
|
182 |
|
commlevel character varying(200),
|
183 |
|
classstartdate timestamp with time zone,
|
184 |
|
classstopdate timestamp with time zone,
|
185 |
|
emb_commclass integer,
|
186 |
|
expertsystem text,
|
187 |
|
accessioncode character varying(255)
|
188 |
|
);
|
189 |
|
|
190 |
|
|
191 |
|
ALTER TABLE public.commclass OWNER TO bien;
|
192 |
|
|
193 |
|
--
|
194 |
|
-- Name: commclass_commclass_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
195 |
|
--
|
196 |
|
|
197 |
|
CREATE SEQUENCE commclass_commclass_id_seq
|
198 |
|
START WITH 1
|
199 |
|
INCREMENT BY 1
|
200 |
|
NO MAXVALUE
|
201 |
|
NO MINVALUE
|
202 |
|
CACHE 1;
|
203 |
|
|
204 |
|
|
205 |
|
ALTER TABLE public.commclass_commclass_id_seq OWNER TO bien;
|
206 |
|
|
207 |
|
--
|
208 |
|
-- Name: commclass_commclass_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
209 |
|
--
|
210 |
|
|
211 |
|
ALTER SEQUENCE commclass_commclass_id_seq OWNED BY commclass.commclass_id;
|
212 |
|
|
213 |
|
|
214 |
|
--
|
215 |
|
-- Name: commconcept; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
216 |
|
--
|
217 |
|
|
218 |
|
CREATE TABLE commconcept (
|
219 |
|
commconcept_id integer NOT NULL,
|
220 |
|
commname_id integer NOT NULL,
|
221 |
|
reference_id integer,
|
222 |
|
commdescription text,
|
223 |
|
d_obscount integer,
|
224 |
|
commname text,
|
225 |
|
d_currentaccepted boolean,
|
226 |
|
accessioncode character varying(255)
|
227 |
|
);
|
228 |
|
|
229 |
|
|
230 |
|
ALTER TABLE public.commconcept OWNER TO bien;
|
231 |
|
|
232 |
|
--
|
233 |
|
-- Name: commconcept_commconcept_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
234 |
|
--
|
235 |
|
|
236 |
|
CREATE SEQUENCE commconcept_commconcept_id_seq
|
237 |
|
START WITH 1
|
238 |
|
INCREMENT BY 1
|
239 |
|
NO MAXVALUE
|
240 |
|
NO MINVALUE
|
241 |
|
CACHE 1;
|
242 |
|
|
243 |
|
|
244 |
|
ALTER TABLE public.commconcept_commconcept_id_seq OWNER TO bien;
|
245 |
|
|
246 |
|
--
|
247 |
|
-- Name: commconcept_commconcept_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
248 |
|
--
|
249 |
|
|
250 |
|
ALTER SEQUENCE commconcept_commconcept_id_seq OWNED BY commconcept.commconcept_id;
|
251 |
|
|
252 |
|
|
253 |
|
--
|
254 |
|
-- Name: commcorrelation; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
255 |
|
--
|
256 |
|
|
257 |
|
CREATE TABLE commcorrelation (
|
258 |
|
commcorrelation_id integer NOT NULL,
|
259 |
|
commstatus_id integer NOT NULL,
|
260 |
|
commconcept_id integer NOT NULL,
|
261 |
|
commconvergence character varying(20) NOT NULL,
|
262 |
|
correlationstart timestamp with time zone NOT NULL,
|
263 |
|
correlationstop timestamp with time zone
|
264 |
|
);
|
265 |
|
|
266 |
|
|
267 |
|
ALTER TABLE public.commcorrelation OWNER TO bien;
|
268 |
|
|
269 |
|
--
|
270 |
|
-- Name: commcorrelation_commcorrelation_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
271 |
|
--
|
272 |
|
|
273 |
|
CREATE SEQUENCE commcorrelation_commcorrelation_id_seq
|
274 |
|
START WITH 1
|
275 |
|
INCREMENT BY 1
|
276 |
|
NO MAXVALUE
|
277 |
|
NO MINVALUE
|
278 |
|
CACHE 1;
|
279 |
|
|
280 |
|
|
281 |
|
ALTER TABLE public.commcorrelation_commcorrelation_id_seq OWNER TO bien;
|
282 |
|
|
283 |
|
--
|
284 |
|
-- Name: commcorrelation_commcorrelation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
285 |
|
--
|
286 |
|
|
287 |
|
ALTER SEQUENCE commcorrelation_commcorrelation_id_seq OWNED BY commcorrelation.commcorrelation_id;
|
288 |
|
|
289 |
|
|
290 |
|
--
|
291 |
|
-- Name: comminterpretation; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
292 |
|
--
|
293 |
|
|
294 |
|
CREATE TABLE comminterpretation (
|
295 |
|
comminterpretation_id integer NOT NULL,
|
296 |
|
commclass_id integer NOT NULL,
|
297 |
|
commconcept_id integer,
|
298 |
|
commcode character varying(34),
|
299 |
|
commname character varying(200),
|
300 |
|
classfit character varying(50),
|
301 |
|
classconfidence character varying(15),
|
302 |
|
commauthority_id integer,
|
303 |
|
notes text,
|
304 |
|
type boolean,
|
305 |
|
nomenclaturaltype boolean,
|
306 |
|
emb_comminterpretation integer
|
307 |
|
);
|
308 |
|
|
309 |
|
|
310 |
|
ALTER TABLE public.comminterpretation OWNER TO bien;
|
311 |
|
|
312 |
|
--
|
313 |
|
-- Name: comminterpretation_comminterpretation_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
314 |
|
--
|
315 |
|
|
316 |
|
CREATE SEQUENCE comminterpretation_comminterpretation_id_seq
|
317 |
|
START WITH 1
|
318 |
|
INCREMENT BY 1
|
319 |
|
NO MAXVALUE
|
320 |
|
NO MINVALUE
|
321 |
|
CACHE 1;
|
322 |
|
|
323 |
|
|
324 |
|
ALTER TABLE public.comminterpretation_comminterpretation_id_seq OWNER TO bien;
|
325 |
|
|
326 |
|
--
|
327 |
|
-- Name: comminterpretation_comminterpretation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
328 |
|
--
|
329 |
|
|
330 |
|
ALTER SEQUENCE comminterpretation_comminterpretation_id_seq OWNED BY comminterpretation.comminterpretation_id;
|
331 |
|
|
332 |
|
|
333 |
|
--
|
334 |
|
-- Name: commlineage; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
335 |
|
--
|
336 |
|
|
337 |
|
CREATE TABLE commlineage (
|
338 |
|
commlineage_id integer NOT NULL,
|
339 |
|
parentcommstatus_id integer NOT NULL,
|
340 |
|
childcommstatus_id integer NOT NULL
|
341 |
|
);
|
342 |
|
|
343 |
|
|
344 |
|
ALTER TABLE public.commlineage OWNER TO bien;
|
345 |
|
|
346 |
|
--
|
347 |
|
-- Name: commlineage_commlineage_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
348 |
|
--
|
349 |
|
|
350 |
|
CREATE SEQUENCE commlineage_commlineage_id_seq
|
351 |
|
START WITH 1
|
352 |
|
INCREMENT BY 1
|
353 |
|
NO MAXVALUE
|
354 |
|
NO MINVALUE
|
355 |
|
CACHE 1;
|
356 |
|
|
357 |
|
|
358 |
|
ALTER TABLE public.commlineage_commlineage_id_seq OWNER TO bien;
|
359 |
|
|
360 |
|
--
|
361 |
|
-- Name: commlineage_commlineage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
362 |
|
--
|
363 |
|
|
364 |
|
ALTER SEQUENCE commlineage_commlineage_id_seq OWNED BY commlineage.commlineage_id;
|
365 |
|
|
366 |
|
|
367 |
|
--
|
368 |
|
-- Name: commname; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
369 |
|
--
|
370 |
|
|
371 |
|
CREATE TABLE commname (
|
372 |
|
commname_id integer NOT NULL,
|
373 |
|
commname text NOT NULL,
|
374 |
|
reference_id integer,
|
375 |
|
dateentered timestamp with time zone DEFAULT now()
|
376 |
|
);
|
377 |
|
|
378 |
|
|
379 |
|
ALTER TABLE public.commname OWNER TO bien;
|
380 |
|
|
381 |
|
--
|
382 |
|
-- Name: commname_commname_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
383 |
|
--
|
384 |
|
|
385 |
|
CREATE SEQUENCE commname_commname_id_seq
|
386 |
|
START WITH 1
|
387 |
|
INCREMENT BY 1
|
388 |
|
NO MAXVALUE
|
389 |
|
NO MINVALUE
|
390 |
|
CACHE 1;
|
391 |
|
|
392 |
|
|
393 |
|
ALTER TABLE public.commname_commname_id_seq OWNER TO bien;
|
394 |
|
|
395 |
|
--
|
396 |
|
-- Name: commname_commname_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
397 |
|
--
|
398 |
|
|
399 |
|
ALTER SEQUENCE commname_commname_id_seq OWNED BY commname.commname_id;
|
400 |
|
|
401 |
|
|
402 |
|
--
|
403 |
|
-- Name: commstatus; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
404 |
|
--
|
405 |
|
|
406 |
|
CREATE TABLE commstatus (
|
407 |
|
commstatus_id integer NOT NULL,
|
408 |
|
commconcept_id integer NOT NULL,
|
409 |
|
reference_id integer,
|
410 |
|
commconceptstatus character varying(20) NOT NULL,
|
411 |
|
commparent_id integer,
|
412 |
|
commlevel character varying(80),
|
413 |
|
commpartycomments text,
|
414 |
|
party_id integer NOT NULL,
|
415 |
|
startdate timestamp with time zone NOT NULL,
|
416 |
|
stopdate timestamp with time zone,
|
417 |
|
accessioncode character varying(255)
|
418 |
|
);
|
419 |
|
|
420 |
|
|
421 |
|
ALTER TABLE public.commstatus OWNER TO bien;
|
422 |
|
|
423 |
|
--
|
424 |
|
-- Name: commstatus_commstatus_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
425 |
|
--
|
426 |
|
|
427 |
|
CREATE SEQUENCE commstatus_commstatus_id_seq
|
428 |
|
START WITH 1
|
429 |
|
INCREMENT BY 1
|
430 |
|
NO MAXVALUE
|
431 |
|
NO MINVALUE
|
432 |
|
CACHE 1;
|
433 |
|
|
434 |
|
|
435 |
|
ALTER TABLE public.commstatus_commstatus_id_seq OWNER TO bien;
|
436 |
|
|
437 |
|
--
|
438 |
|
-- Name: commstatus_commstatus_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
439 |
|
--
|
440 |
|
|
441 |
|
ALTER SEQUENCE commstatus_commstatus_id_seq OWNED BY commstatus.commstatus_id;
|
442 |
|
|
443 |
|
|
444 |
|
--
|
445 |
|
-- Name: commusage; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
446 |
|
--
|
447 |
|
|
448 |
|
CREATE TABLE commusage (
|
449 |
|
commusage_id integer NOT NULL,
|
450 |
|
commname_id integer NOT NULL,
|
451 |
|
commname text,
|
452 |
|
commconcept_id integer,
|
453 |
|
commnamestatus character varying(20),
|
454 |
|
classsystem character varying(50),
|
455 |
|
party_id integer,
|
456 |
|
commstatus_id integer,
|
457 |
|
usagestart timestamp with time zone,
|
458 |
|
usagestop timestamp with time zone
|
459 |
|
);
|
460 |
|
|
461 |
|
|
462 |
|
ALTER TABLE public.commusage OWNER TO bien;
|
463 |
|
|
464 |
|
--
|
465 |
|
-- Name: commusage_commusage_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
466 |
|
--
|
467 |
|
|
468 |
|
CREATE SEQUENCE commusage_commusage_id_seq
|
469 |
|
START WITH 1
|
470 |
|
INCREMENT BY 1
|
471 |
|
NO MAXVALUE
|
472 |
|
NO MINVALUE
|
473 |
|
CACHE 1;
|
474 |
|
|
475 |
|
|
476 |
|
ALTER TABLE public.commusage_commusage_id_seq OWNER TO bien;
|
477 |
|
|
478 |
|
--
|
479 |
|
-- Name: commusage_commusage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
480 |
|
--
|
481 |
|
|
482 |
|
ALTER SEQUENCE commusage_commusage_id_seq OWNED BY commusage.commusage_id;
|
483 |
|
|
484 |
|
|
485 |
|
--
|
486 |
|
-- Name: coverindex; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
487 |
|
--
|
488 |
|
|
489 |
|
CREATE TABLE coverindex (
|
490 |
|
coverindex_id integer NOT NULL,
|
491 |
|
covermethod_id integer NOT NULL,
|
492 |
|
covercode character varying(10) NOT NULL,
|
493 |
|
upperlimit double precision,
|
494 |
|
lowerlimit double precision,
|
495 |
|
coverpercent double precision NOT NULL,
|
496 |
|
indexdescription text
|
497 |
|
);
|
498 |
|
|
499 |
|
|
500 |
|
ALTER TABLE public.coverindex OWNER TO bien;
|
501 |
|
|
502 |
|
--
|
503 |
|
-- Name: coverindex_coverindex_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
504 |
|
--
|
505 |
|
|
506 |
|
CREATE SEQUENCE coverindex_coverindex_id_seq
|
507 |
|
START WITH 1
|
508 |
|
INCREMENT BY 1
|
509 |
|
NO MAXVALUE
|
510 |
|
NO MINVALUE
|
511 |
|
CACHE 1;
|
512 |
|
|
513 |
|
|
514 |
|
ALTER TABLE public.coverindex_coverindex_id_seq OWNER TO bien;
|
515 |
|
|
516 |
|
--
|
517 |
|
-- Name: coverindex_coverindex_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
518 |
|
--
|
519 |
|
|
520 |
|
ALTER SEQUENCE coverindex_coverindex_id_seq OWNED BY coverindex.coverindex_id;
|
521 |
|
|
522 |
|
|
523 |
|
--
|
524 |
|
-- Name: covermethod; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
525 |
|
--
|
526 |
|
|
527 |
|
CREATE TABLE covermethod (
|
528 |
|
covermethod_id integer NOT NULL,
|
529 |
|
reference_id integer,
|
530 |
|
covertype character varying(30) NOT NULL,
|
531 |
|
coverestimationmethod character varying(80),
|
532 |
|
accessioncode character varying(255)
|
533 |
|
);
|
534 |
|
|
535 |
|
|
536 |
|
ALTER TABLE public.covermethod OWNER TO bien;
|
537 |
|
|
538 |
|
--
|
539 |
|
-- Name: covermethod_covermethod_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
540 |
|
--
|
541 |
|
|
542 |
|
CREATE SEQUENCE covermethod_covermethod_id_seq
|
543 |
|
START WITH 1
|
544 |
|
INCREMENT BY 1
|
545 |
|
NO MAXVALUE
|
546 |
|
NO MINVALUE
|
547 |
|
CACHE 1;
|
548 |
|
|
549 |
|
|
550 |
|
ALTER TABLE public.covermethod_covermethod_id_seq OWNER TO bien;
|
551 |
|
|
552 |
|
--
|
553 |
|
-- Name: covermethod_covermethod_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
554 |
|
--
|
555 |
|
|
556 |
|
ALTER SEQUENCE covermethod_covermethod_id_seq OWNED BY covermethod.covermethod_id;
|
557 |
|
|
558 |
|
|
559 |
|
--
|
560 |
|
-- Name: dba_confidentialitystatus; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
561 |
|
--
|
562 |
|
|
563 |
|
CREATE TABLE dba_confidentialitystatus (
|
564 |
|
confidentialitystatus integer NOT NULL,
|
565 |
|
confidentialitytext character varying(100),
|
566 |
|
confidentialityshorttext character varying(100)
|
567 |
|
);
|
568 |
|
|
569 |
|
|
570 |
|
ALTER TABLE public.dba_confidentialitystatus OWNER TO bien;
|
571 |
|
|
572 |
|
--
|
573 |
|
-- Name: dba_cookie; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
574 |
|
--
|
575 |
|
|
576 |
|
CREATE TABLE dba_cookie (
|
577 |
|
cookie_id integer NOT NULL,
|
578 |
|
cookiename character varying(75) NOT NULL,
|
579 |
|
defaultvalue character varying(75) NOT NULL,
|
580 |
|
viewname character varying(25) NOT NULL,
|
581 |
|
description text,
|
582 |
|
examplepk integer NOT NULL,
|
583 |
|
sortorder integer,
|
584 |
|
startgroup boolean,
|
585 |
|
prefixhtml text,
|
586 |
|
suffixhtml text
|
587 |
|
);
|
588 |
|
|
589 |
|
|
590 |
|
ALTER TABLE public.dba_cookie OWNER TO bien;
|
591 |
|
|
592 |
|
--
|
593 |
|
-- Name: dba_cookie_cookie_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
594 |
|
--
|
595 |
|
|
596 |
|
CREATE SEQUENCE dba_cookie_cookie_id_seq
|
597 |
|
START WITH 1
|
598 |
|
INCREMENT BY 1
|
599 |
|
NO MAXVALUE
|
600 |
|
NO MINVALUE
|
601 |
|
CACHE 1;
|
602 |
|
|
603 |
|
|
604 |
|
ALTER TABLE public.dba_cookie_cookie_id_seq OWNER TO bien;
|
605 |
|
|
606 |
|
--
|
607 |
|
-- Name: dba_cookie_cookie_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
608 |
|
--
|
609 |
|
|
610 |
|
ALTER SEQUENCE dba_cookie_cookie_id_seq OWNED BY dba_cookie.cookie_id;
|
611 |
|
|
612 |
|
|
613 |
|
--
|
614 |
|
-- Name: dba_cookielabels; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
615 |
|
--
|
616 |
|
|
617 |
|
CREATE TABLE dba_cookielabels (
|
618 |
|
cookielabel_id integer NOT NULL,
|
619 |
|
vieworcookie character varying(50) NOT NULL,
|
620 |
|
description text
|
621 |
|
);
|
622 |
|
|
623 |
|
|
624 |
|
ALTER TABLE public.dba_cookielabels OWNER TO bien;
|
625 |
|
|
626 |
|
--
|
627 |
|
-- Name: dba_cookielabels_cookielabel_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
628 |
|
--
|
629 |
|
|
630 |
|
CREATE SEQUENCE dba_cookielabels_cookielabel_id_seq
|
631 |
|
START WITH 1
|
632 |
|
INCREMENT BY 1
|
633 |
|
NO MAXVALUE
|
634 |
|
NO MINVALUE
|
635 |
|
CACHE 1;
|
636 |
|
|
637 |
|
|
638 |
|
ALTER TABLE public.dba_cookielabels_cookielabel_id_seq OWNER TO bien;
|
639 |
|
|
640 |
|
--
|
641 |
|
-- Name: dba_cookielabels_cookielabel_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
642 |
|
--
|
643 |
|
|
644 |
|
ALTER SEQUENCE dba_cookielabels_cookielabel_id_seq OWNED BY dba_cookielabels.cookielabel_id;
|
645 |
|
|
646 |
|
|
647 |
|
SET default_with_oids = false;
|
648 |
|
|
649 |
|
--
|
650 |
|
-- Name: dba_datacache; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
651 |
|
--
|
652 |
|
|
653 |
|
CREATE TABLE dba_datacache (
|
654 |
|
dba_datacache_id integer NOT NULL,
|
655 |
|
cache_key character varying(200) NOT NULL,
|
656 |
|
cache_label character varying(200),
|
657 |
|
cache_order double precision,
|
658 |
|
data1 character varying(255),
|
659 |
|
data2 character varying(255),
|
660 |
|
data3 character varying(255),
|
661 |
|
data4 character varying(255),
|
662 |
|
data5 character varying(255),
|
663 |
|
data6 character varying(255),
|
664 |
|
data7 character varying(255),
|
665 |
|
data8 character varying(255),
|
666 |
|
data9 character varying(255),
|
667 |
|
data10 character varying(255)
|
668 |
|
);
|
669 |
|
|
670 |
|
|
671 |
|
ALTER TABLE public.dba_datacache OWNER TO bien;
|
672 |
|
|
673 |
|
--
|
674 |
|
-- Name: dba_datacache_dba_datacache_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
675 |
|
--
|
676 |
|
|
677 |
|
CREATE SEQUENCE dba_datacache_dba_datacache_id_seq
|
678 |
|
START WITH 1
|
679 |
|
INCREMENT BY 1
|
680 |
|
NO MAXVALUE
|
681 |
|
NO MINVALUE
|
682 |
|
CACHE 1;
|
683 |
|
|
684 |
|
|
685 |
|
ALTER TABLE public.dba_datacache_dba_datacache_id_seq OWNER TO bien;
|
686 |
|
|
687 |
|
--
|
688 |
|
-- Name: dba_datacache_dba_datacache_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
689 |
|
--
|
690 |
|
|
691 |
|
ALTER SEQUENCE dba_datacache_dba_datacache_id_seq OWNED BY dba_datacache.dba_datacache_id;
|
692 |
|
|
693 |
|
|
694 |
|
--
|
695 |
|
-- Name: dba_datamodelversion; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
696 |
|
--
|
697 |
|
|
698 |
|
CREATE TABLE dba_datamodelversion (
|
699 |
|
dba_datamodelversion_id integer NOT NULL,
|
700 |
|
versiontext character varying(20) NOT NULL,
|
701 |
|
versionimplemented timestamp with time zone DEFAULT now()
|
702 |
|
);
|
703 |
|
|
704 |
|
|
705 |
|
ALTER TABLE public.dba_datamodelversion OWNER TO bien;
|
706 |
|
|
707 |
|
--
|
708 |
|
-- Name: dba_datamodelversion_dba_datamodelversion_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
709 |
|
--
|
710 |
|
|
711 |
|
CREATE SEQUENCE dba_datamodelversion_dba_datamodelversion_id_seq
|
712 |
|
START WITH 1
|
713 |
|
INCREMENT BY 1
|
714 |
|
NO MAXVALUE
|
715 |
|
NO MINVALUE
|
716 |
|
CACHE 1;
|
717 |
|
|
718 |
|
|
719 |
|
ALTER TABLE public.dba_datamodelversion_dba_datamodelversion_id_seq OWNER TO bien;
|
720 |
|
|
721 |
|
--
|
722 |
|
-- Name: dba_datamodelversion_dba_datamodelversion_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
723 |
|
--
|
724 |
|
|
725 |
|
ALTER SEQUENCE dba_datamodelversion_dba_datamodelversion_id_seq OWNED BY dba_datamodelversion.dba_datamodelversion_id;
|
726 |
|
|
727 |
|
|
728 |
|
SET default_with_oids = true;
|
729 |
|
|
730 |
|
--
|
731 |
|
-- Name: dba_dbstatstime; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
732 |
|
--
|
733 |
|
|
734 |
|
CREATE TABLE dba_dbstatstime (
|
735 |
|
stat_id integer NOT NULL,
|
736 |
|
statdate timestamp with time zone,
|
737 |
|
statpkg integer,
|
738 |
|
statname text,
|
739 |
|
stattable character varying(100),
|
740 |
|
minpk integer,
|
741 |
|
maxpk integer,
|
742 |
|
countrecs integer
|
743 |
|
);
|
744 |
|
|
745 |
|
|
746 |
|
ALTER TABLE public.dba_dbstatstime OWNER TO bien;
|
747 |
|
|
748 |
|
--
|
749 |
|
-- Name: dba_dbstatstime_stat_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
750 |
|
--
|
751 |
|
|
752 |
|
CREATE SEQUENCE dba_dbstatstime_stat_id_seq
|
753 |
|
START WITH 1
|
754 |
|
INCREMENT BY 1
|
755 |
|
NO MAXVALUE
|
756 |
|
NO MINVALUE
|
757 |
|
CACHE 1;
|
758 |
|
|
759 |
|
|
760 |
|
ALTER TABLE public.dba_dbstatstime_stat_id_seq OWNER TO bien;
|
761 |
|
|
762 |
|
--
|
763 |
|
-- Name: dba_dbstatstime_stat_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
764 |
|
--
|
765 |
|
|
766 |
|
ALTER SEQUENCE dba_dbstatstime_stat_id_seq OWNED BY dba_dbstatstime.stat_id;
|
767 |
|
|
768 |
|
|
769 |
|
SET default_with_oids = false;
|
770 |
|
|
771 |
|
--
|
772 |
|
-- Name: dba_fielddescription; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
773 |
|
--
|
774 |
|
|
775 |
|
CREATE TABLE dba_fielddescription (
|
776 |
|
dba_fielddescription_id integer NOT NULL,
|
777 |
|
tablename character varying(75),
|
778 |
|
fieldname character varying(75),
|
779 |
|
fieldlabel character varying(200),
|
780 |
|
fieldmodel character varying(50),
|
781 |
|
fieldnulls character varying(10),
|
782 |
|
fieldtype character varying(30),
|
783 |
|
fieldkey character varying(10),
|
784 |
|
fieldreferences character varying(200),
|
785 |
|
fieldlist character varying(50),
|
786 |
|
fieldnotes text,
|
787 |
|
fielddefinition text,
|
788 |
|
fieldkeywords text
|
789 |
|
);
|
790 |
|
|
791 |
|
|
792 |
|
ALTER TABLE public.dba_fielddescription OWNER TO bien;
|
793 |
|
|
794 |
|
--
|
795 |
|
-- Name: dba_fielddescription_dba_fielddescription_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
796 |
|
--
|
797 |
|
|
798 |
|
CREATE SEQUENCE dba_fielddescription_dba_fielddescription_id_seq
|
799 |
|
START WITH 1
|
800 |
|
INCREMENT BY 1
|
801 |
|
NO MAXVALUE
|
802 |
|
NO MINVALUE
|
803 |
|
CACHE 1;
|
804 |
|
|
805 |
|
|
806 |
|
ALTER TABLE public.dba_fielddescription_dba_fielddescription_id_seq OWNER TO bien;
|
807 |
|
|
808 |
|
--
|
809 |
|
-- Name: dba_fielddescription_dba_fielddescription_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
810 |
|
--
|
811 |
|
|
812 |
|
ALTER SEQUENCE dba_fielddescription_dba_fielddescription_id_seq OWNED BY dba_fielddescription.dba_fielddescription_id;
|
813 |
|
|
814 |
|
|
815 |
|
--
|
816 |
|
-- Name: dba_fieldlist; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
817 |
|
--
|
818 |
|
|
819 |
|
CREATE TABLE dba_fieldlist (
|
820 |
|
dba_fieldlist_id integer NOT NULL,
|
821 |
|
tablename character varying(75),
|
822 |
|
fieldname character varying(75),
|
823 |
|
listvalue character varying(255),
|
824 |
|
listvaluedescription text,
|
825 |
|
listvaluesortorder double precision
|
826 |
|
);
|
827 |
|
|
828 |
|
|
829 |
|
ALTER TABLE public.dba_fieldlist OWNER TO bien;
|
830 |
|
|
831 |
|
--
|
832 |
|
-- Name: dba_fieldlist_dba_fieldlist_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
833 |
|
--
|
834 |
|
|
835 |
|
CREATE SEQUENCE dba_fieldlist_dba_fieldlist_id_seq
|
836 |
|
START WITH 1
|
837 |
|
INCREMENT BY 1
|
838 |
|
NO MAXVALUE
|
839 |
|
NO MINVALUE
|
840 |
|
CACHE 1;
|
841 |
|
|
842 |
|
|
843 |
|
ALTER TABLE public.dba_fieldlist_dba_fieldlist_id_seq OWNER TO bien;
|
844 |
|
|
845 |
|
--
|
846 |
|
-- Name: dba_fieldlist_dba_fieldlist_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
847 |
|
--
|
848 |
|
|
849 |
|
ALTER SEQUENCE dba_fieldlist_dba_fieldlist_id_seq OWNED BY dba_fieldlist.dba_fieldlist_id;
|
850 |
|
|
851 |
|
|
852 |
|
--
|
853 |
|
-- Name: dba_onerow; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
854 |
|
--
|
855 |
|
|
856 |
|
CREATE TABLE dba_onerow (
|
857 |
|
dba_onerow_id integer NOT NULL
|
858 |
|
);
|
859 |
|
|
860 |
|
|
861 |
|
ALTER TABLE public.dba_onerow OWNER TO bien;
|
862 |
|
|
863 |
|
--
|
864 |
|
-- Name: dba_onerow_dba_onerow_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
865 |
|
--
|
866 |
|
|
867 |
|
CREATE SEQUENCE dba_onerow_dba_onerow_id_seq
|
868 |
|
START WITH 1
|
869 |
|
INCREMENT BY 1
|
870 |
|
NO MAXVALUE
|
871 |
|
NO MINVALUE
|
872 |
|
CACHE 1;
|
873 |
|
|
874 |
|
|
875 |
|
ALTER TABLE public.dba_onerow_dba_onerow_id_seq OWNER TO bien;
|
876 |
|
|
877 |
|
--
|
878 |
|
-- Name: dba_onerow_dba_onerow_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
879 |
|
--
|
880 |
|
|
881 |
|
ALTER SEQUENCE dba_onerow_dba_onerow_id_seq OWNED BY dba_onerow.dba_onerow_id;
|
882 |
|
|
883 |
|
|
884 |
|
--
|
885 |
|
-- Name: dba_preassignacccode; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
886 |
|
--
|
887 |
|
|
888 |
|
CREATE TABLE dba_preassignacccode (
|
889 |
|
dba_preassignacccode_id integer NOT NULL,
|
890 |
|
dba_requestnumber integer NOT NULL,
|
891 |
|
databasekey character varying(20) NOT NULL,
|
892 |
|
tableabbrev character varying(10) NOT NULL,
|
893 |
|
confirmcode character varying(70) DEFAULT ((replace(replace(replace(replace((now())::text, ' '::text, 'T'::text), '-'::text, ''::text), ':'::text, ''::text), '.'::text, 'd'::text) || 'R'::text) || (floor((random() * (1000000)::double precision)))::text) NOT NULL,
|
894 |
|
codeisused boolean,
|
895 |
|
accessioncode character varying(255)
|
896 |
|
);
|
897 |
|
|
898 |
|
|
899 |
|
ALTER TABLE public.dba_preassignacccode OWNER TO bien;
|
900 |
|
|
901 |
|
--
|
902 |
|
-- Name: dba_preassignacccode_dba_preassignacccode_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
903 |
|
--
|
904 |
|
|
905 |
|
CREATE SEQUENCE dba_preassignacccode_dba_preassignacccode_id_seq
|
906 |
|
START WITH 1
|
907 |
|
INCREMENT BY 1
|
908 |
|
NO MAXVALUE
|
909 |
|
NO MINVALUE
|
910 |
|
CACHE 1;
|
911 |
|
|
912 |
|
|
913 |
|
ALTER TABLE public.dba_preassignacccode_dba_preassignacccode_id_seq OWNER TO bien;
|
914 |
|
|
915 |
|
--
|
916 |
|
-- Name: dba_preassignacccode_dba_preassignacccode_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
917 |
|
--
|
918 |
|
|
919 |
|
ALTER SEQUENCE dba_preassignacccode_dba_preassignacccode_id_seq OWNED BY dba_preassignacccode.dba_preassignacccode_id;
|
920 |
|
|
921 |
|
|
922 |
|
--
|
923 |
|
-- Name: dba_preassignacccode_dba_requestnumber_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
924 |
|
--
|
925 |
|
|
926 |
|
CREATE SEQUENCE dba_preassignacccode_dba_requestnumber_seq
|
927 |
|
START WITH 1
|
928 |
|
INCREMENT BY 1
|
929 |
|
NO MAXVALUE
|
930 |
|
NO MINVALUE
|
931 |
|
CACHE 1;
|
932 |
|
|
933 |
|
|
934 |
|
ALTER TABLE public.dba_preassignacccode_dba_requestnumber_seq OWNER TO bien;
|
935 |
|
|
936 |
|
--
|
937 |
|
-- Name: dba_tabledescription; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
938 |
|
--
|
939 |
|
|
940 |
|
CREATE TABLE dba_tabledescription (
|
941 |
|
dba_tabledescription_id integer NOT NULL,
|
942 |
|
tablename character varying(75),
|
943 |
|
tablelabel character varying(200),
|
944 |
|
tablenotes text,
|
945 |
|
tabledescription text,
|
946 |
|
tablekeywords text
|
947 |
|
);
|
948 |
|
|
949 |
|
|
950 |
|
ALTER TABLE public.dba_tabledescription OWNER TO bien;
|
951 |
|
|
952 |
|
--
|
953 |
|
-- Name: dba_tabledescription_dba_tabledescription_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
954 |
|
--
|
955 |
|
|
956 |
|
CREATE SEQUENCE dba_tabledescription_dba_tabledescription_id_seq
|
957 |
|
START WITH 1
|
958 |
|
INCREMENT BY 1
|
959 |
|
NO MAXVALUE
|
960 |
|
NO MINVALUE
|
961 |
|
CACHE 1;
|
962 |
|
|
963 |
|
|
964 |
|
ALTER TABLE public.dba_tabledescription_dba_tabledescription_id_seq OWNER TO bien;
|
965 |
|
|
966 |
|
--
|
967 |
|
-- Name: dba_tabledescription_dba_tabledescription_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
968 |
|
--
|
969 |
|
|
970 |
|
ALTER SEQUENCE dba_tabledescription_dba_tabledescription_id_seq OWNED BY dba_tabledescription.dba_tabledescription_id;
|
971 |
|
|
972 |
|
|
973 |
|
--
|
974 |
|
-- Name: dba_xmlcache; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
975 |
|
--
|
976 |
|
|
977 |
|
CREATE TABLE dba_xmlcache (
|
978 |
|
xml bytea,
|
979 |
|
accessioncode character varying(255)
|
980 |
|
);
|
981 |
|
|
982 |
|
|
983 |
|
ALTER TABLE public.dba_xmlcache OWNER TO bien;
|
984 |
|
|
985 |
|
SET default_with_oids = true;
|
986 |
|
|
987 |
|
--
|
988 |
|
-- Name: definedvalue; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
989 |
|
--
|
990 |
|
|
991 |
|
CREATE TABLE definedvalue (
|
992 |
|
definedvalue_id integer NOT NULL,
|
993 |
|
userdefined_id integer NOT NULL,
|
994 |
|
tablerecord_id integer NOT NULL,
|
995 |
|
definedvalue text NOT NULL
|
996 |
|
);
|
997 |
|
|
998 |
|
|
999 |
|
ALTER TABLE public.definedvalue OWNER TO bien;
|
1000 |
|
|
1001 |
|
--
|
1002 |
|
-- Name: definedvalue_definedvalue_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1003 |
|
--
|
1004 |
|
|
1005 |
|
CREATE SEQUENCE definedvalue_definedvalue_id_seq
|
1006 |
|
START WITH 1
|
1007 |
|
INCREMENT BY 1
|
1008 |
|
NO MAXVALUE
|
1009 |
|
NO MINVALUE
|
1010 |
|
CACHE 1;
|
1011 |
|
|
1012 |
|
|
1013 |
|
ALTER TABLE public.definedvalue_definedvalue_id_seq OWNER TO bien;
|
1014 |
|
|
1015 |
|
--
|
1016 |
|
-- Name: definedvalue_definedvalue_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1017 |
|
--
|
1018 |
|
|
1019 |
|
ALTER SEQUENCE definedvalue_definedvalue_id_seq OWNED BY definedvalue.definedvalue_id;
|
1020 |
|
|
1021 |
|
|
1022 |
|
--
|
1023 |
|
-- Name: disturbanceobs; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1024 |
|
--
|
1025 |
|
|
1026 |
|
CREATE TABLE disturbanceobs (
|
1027 |
|
disturbanceobs_id integer NOT NULL,
|
1028 |
|
observation_id integer NOT NULL,
|
1029 |
|
disturbancetype character varying(30) NOT NULL,
|
1030 |
|
disturbanceintensity character varying(30),
|
1031 |
|
disturbanceage double precision,
|
1032 |
|
disturbanceextent double precision,
|
1033 |
|
disturbancecomment text,
|
1034 |
|
emb_disturbanceobs integer
|
1035 |
|
);
|
1036 |
|
|
1037 |
|
|
1038 |
|
ALTER TABLE public.disturbanceobs OWNER TO bien;
|
1039 |
|
|
1040 |
|
--
|
1041 |
|
-- Name: disturbanceobs_disturbanceobs_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1042 |
|
--
|
1043 |
|
|
1044 |
|
CREATE SEQUENCE disturbanceobs_disturbanceobs_id_seq
|
1045 |
|
START WITH 1
|
1046 |
|
INCREMENT BY 1
|
1047 |
|
NO MAXVALUE
|
1048 |
|
NO MINVALUE
|
1049 |
|
CACHE 1;
|
1050 |
|
|
1051 |
|
|
1052 |
|
ALTER TABLE public.disturbanceobs_disturbanceobs_id_seq OWNER TO bien;
|
1053 |
|
|
1054 |
|
--
|
1055 |
|
-- Name: disturbanceobs_disturbanceobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1056 |
|
--
|
1057 |
|
|
1058 |
|
ALTER SEQUENCE disturbanceobs_disturbanceobs_id_seq OWNED BY disturbanceobs.disturbanceobs_id;
|
1059 |
|
|
1060 |
|
|
1061 |
|
--
|
1062 |
|
-- Name: embargo; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1063 |
|
--
|
1064 |
|
|
1065 |
|
CREATE TABLE embargo (
|
1066 |
|
embargo_id integer NOT NULL,
|
1067 |
|
plot_id integer NOT NULL,
|
1068 |
|
embargoreason text NOT NULL,
|
1069 |
|
defaultstatus integer NOT NULL,
|
1070 |
|
embargostart timestamp with time zone NOT NULL,
|
1071 |
|
embargostop timestamp with time zone NOT NULL
|
1072 |
|
);
|
1073 |
|
|
1074 |
|
|
1075 |
|
ALTER TABLE public.embargo OWNER TO bien;
|
1076 |
|
|
1077 |
|
--
|
1078 |
|
-- Name: embargo_embargo_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1079 |
|
--
|
1080 |
|
|
1081 |
|
CREATE SEQUENCE embargo_embargo_id_seq
|
1082 |
|
START WITH 1
|
1083 |
|
INCREMENT BY 1
|
1084 |
|
NO MAXVALUE
|
1085 |
|
NO MINVALUE
|
1086 |
|
CACHE 1;
|
1087 |
|
|
1088 |
|
|
1089 |
|
ALTER TABLE public.embargo_embargo_id_seq OWNER TO bien;
|
1090 |
|
|
1091 |
|
--
|
1092 |
|
-- Name: embargo_embargo_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1093 |
|
--
|
1094 |
|
|
1095 |
|
ALTER SEQUENCE embargo_embargo_id_seq OWNED BY embargo.embargo_id;
|
1096 |
|
|
1097 |
|
|
1098 |
|
--
|
1099 |
|
-- Name: graphic; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1100 |
|
--
|
1101 |
|
|
1102 |
|
CREATE TABLE graphic (
|
1103 |
|
graphic_id integer NOT NULL,
|
1104 |
|
observation_id integer NOT NULL,
|
1105 |
|
graphicname character varying(30),
|
1106 |
|
graphiclocation text,
|
1107 |
|
graphicdescription text,
|
1108 |
|
graphictype character varying(20),
|
1109 |
|
graphicdata oid,
|
1110 |
|
graphicdate timestamp with time zone,
|
1111 |
|
accessioncode character varying(255)
|
1112 |
|
);
|
1113 |
|
|
1114 |
|
|
1115 |
|
ALTER TABLE public.graphic OWNER TO bien;
|
1116 |
|
|
1117 |
|
--
|
1118 |
|
-- Name: graphic_graphic_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1119 |
|
--
|
1120 |
|
|
1121 |
|
CREATE SEQUENCE graphic_graphic_id_seq
|
1122 |
|
START WITH 1
|
1123 |
|
INCREMENT BY 1
|
1124 |
|
NO MAXVALUE
|
1125 |
|
NO MINVALUE
|
1126 |
|
CACHE 1;
|
1127 |
|
|
1128 |
|
|
1129 |
|
ALTER TABLE public.graphic_graphic_id_seq OWNER TO bien;
|
1130 |
|
|
1131 |
|
--
|
1132 |
|
-- Name: graphic_graphic_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1133 |
|
--
|
1134 |
|
|
1135 |
|
ALTER SEQUENCE graphic_graphic_id_seq OWNED BY graphic.graphic_id;
|
1136 |
|
|
1137 |
|
|
1138 |
|
--
|
1139 |
|
-- Name: keywords; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1140 |
|
--
|
1141 |
|
|
1142 |
|
CREATE TABLE keywords (
|
1143 |
|
table_id integer NOT NULL,
|
1144 |
|
entity text NOT NULL,
|
1145 |
|
keywords text
|
1146 |
|
);
|
1147 |
|
|
1148 |
|
|
1149 |
|
ALTER TABLE public.keywords OWNER TO bien;
|
1150 |
|
|
1151 |
|
--
|
1152 |
|
-- Name: keywords_extra; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1153 |
|
--
|
1154 |
|
|
1155 |
|
CREATE TABLE keywords_extra (
|
1156 |
|
table_id integer NOT NULL,
|
1157 |
|
entity text NOT NULL,
|
1158 |
|
keywords text
|
1159 |
|
);
|
1160 |
|
|
1161 |
|
|
1162 |
|
ALTER TABLE public.keywords_extra OWNER TO bien;
|
1163 |
|
|
1164 |
|
--
|
1165 |
|
-- Name: namedplace; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1166 |
|
--
|
1167 |
|
|
1168 |
|
CREATE TABLE namedplace (
|
1169 |
|
namedplace_id integer NOT NULL,
|
1170 |
|
placesystem character varying(50),
|
1171 |
|
placename character varying(100) NOT NULL,
|
1172 |
|
placedescription text,
|
1173 |
|
placecode character varying(15),
|
1174 |
|
owner character varying(100),
|
1175 |
|
reference_id integer,
|
1176 |
|
d_obscount integer,
|
1177 |
|
accessioncode character varying(255)
|
1178 |
|
);
|
1179 |
|
|
1180 |
|
|
1181 |
|
ALTER TABLE public.namedplace OWNER TO bien;
|
1182 |
|
|
1183 |
|
--
|
1184 |
|
-- Name: namedplace_namedplace_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1185 |
|
--
|
1186 |
|
|
1187 |
|
CREATE SEQUENCE namedplace_namedplace_id_seq
|
1188 |
|
START WITH 1
|
1189 |
|
INCREMENT BY 1
|
1190 |
|
NO MAXVALUE
|
1191 |
|
NO MINVALUE
|
1192 |
|
CACHE 1;
|
1193 |
|
|
1194 |
|
|
1195 |
|
ALTER TABLE public.namedplace_namedplace_id_seq OWNER TO bien;
|
1196 |
|
|
1197 |
|
--
|
1198 |
|
-- Name: namedplace_namedplace_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1199 |
|
--
|
1200 |
|
|
1201 |
|
ALTER SEQUENCE namedplace_namedplace_id_seq OWNED BY namedplace.namedplace_id;
|
1202 |
|
|
1203 |
|
|
1204 |
|
--
|
1205 |
|
-- Name: namedplacecorrelation; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1206 |
|
--
|
1207 |
|
|
1208 |
|
CREATE TABLE namedplacecorrelation (
|
1209 |
|
namedplacecorrelation_id integer NOT NULL,
|
1210 |
|
parentplace_id integer NOT NULL,
|
1211 |
|
childplace_id integer NOT NULL,
|
1212 |
|
placeconvergence character varying(20) NOT NULL
|
1213 |
|
);
|
1214 |
|
|
1215 |
|
|
1216 |
|
ALTER TABLE public.namedplacecorrelation OWNER TO bien;
|
1217 |
|
|
1218 |
|
--
|
1219 |
|
-- Name: namedplacecorrelation_namedplacecorrelation_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1220 |
|
--
|
1221 |
|
|
1222 |
|
CREATE SEQUENCE namedplacecorrelation_namedplacecorrelation_id_seq
|
1223 |
|
START WITH 1
|
1224 |
|
INCREMENT BY 1
|
1225 |
|
NO MAXVALUE
|
1226 |
|
NO MINVALUE
|
1227 |
|
CACHE 1;
|
1228 |
|
|
1229 |
|
|
1230 |
|
ALTER TABLE public.namedplacecorrelation_namedplacecorrelation_id_seq OWNER TO bien;
|
1231 |
|
|
1232 |
|
--
|
1233 |
|
-- Name: namedplacecorrelation_namedplacecorrelation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1234 |
|
--
|
1235 |
|
|
1236 |
|
ALTER SEQUENCE namedplacecorrelation_namedplacecorrelation_id_seq OWNED BY namedplacecorrelation.namedplacecorrelation_id;
|
1237 |
|
|
1238 |
|
|
1239 |
|
--
|
1240 |
|
-- Name: note; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1241 |
|
--
|
1242 |
|
|
1243 |
|
CREATE TABLE note (
|
1244 |
|
note_id integer NOT NULL,
|
1245 |
|
notelink_id integer NOT NULL,
|
1246 |
|
party_id integer NOT NULL,
|
1247 |
|
role_id integer NOT NULL,
|
1248 |
|
notetype character varying(20) NOT NULL,
|
1249 |
|
notetext text NOT NULL,
|
1250 |
|
notedate timestamp with time zone,
|
1251 |
|
accessioncode character varying(255)
|
1252 |
|
);
|
1253 |
|
|
1254 |
|
|
1255 |
|
ALTER TABLE public.note OWNER TO bien;
|
1256 |
|
|
1257 |
|
--
|
1258 |
|
-- Name: note_note_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1259 |
|
--
|
1260 |
|
|
1261 |
|
CREATE SEQUENCE note_note_id_seq
|
1262 |
|
START WITH 1
|
1263 |
|
INCREMENT BY 1
|
1264 |
|
NO MAXVALUE
|
1265 |
|
NO MINVALUE
|
1266 |
|
CACHE 1;
|
1267 |
|
|
1268 |
|
|
1269 |
|
ALTER TABLE public.note_note_id_seq OWNER TO bien;
|
1270 |
|
|
1271 |
|
--
|
1272 |
|
-- Name: note_note_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1273 |
|
--
|
1274 |
|
|
1275 |
|
ALTER SEQUENCE note_note_id_seq OWNED BY note.note_id;
|
1276 |
|
|
1277 |
|
|
1278 |
|
--
|
1279 |
|
-- Name: notelink; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1280 |
|
--
|
1281 |
|
|
1282 |
|
CREATE TABLE notelink (
|
1283 |
|
notelink_id integer NOT NULL,
|
1284 |
|
tablename character varying(50) NOT NULL,
|
1285 |
|
attributename character varying(50),
|
1286 |
|
tablerecord integer NOT NULL
|
1287 |
|
);
|
1288 |
|
|
1289 |
|
|
1290 |
|
ALTER TABLE public.notelink OWNER TO bien;
|
1291 |
|
|
1292 |
|
--
|
1293 |
|
-- Name: notelink_notelink_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1294 |
|
--
|
1295 |
|
|
1296 |
|
CREATE SEQUENCE notelink_notelink_id_seq
|
1297 |
|
START WITH 1
|
1298 |
|
INCREMENT BY 1
|
1299 |
|
NO MAXVALUE
|
1300 |
|
NO MINVALUE
|
1301 |
|
CACHE 1;
|
1302 |
|
|
1303 |
|
|
1304 |
|
ALTER TABLE public.notelink_notelink_id_seq OWNER TO bien;
|
1305 |
|
|
1306 |
|
--
|
1307 |
|
-- Name: notelink_notelink_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1308 |
|
--
|
1309 |
|
|
1310 |
|
ALTER SEQUENCE notelink_notelink_id_seq OWNED BY notelink.notelink_id;
|
1311 |
|
|
1312 |
|
|
1313 |
|
--
|
1314 |
|
-- Name: observation; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1315 |
|
--
|
1316 |
|
|
1317 |
|
CREATE TABLE observation (
|
1318 |
|
observation_id integer NOT NULL,
|
1319 |
|
previousobs_id integer,
|
1320 |
|
plot_id integer NOT NULL,
|
1321 |
|
project_id integer,
|
1322 |
|
authorobscode character varying(30),
|
1323 |
|
dateaccuracy character varying(30),
|
1324 |
|
covermethod_id integer,
|
1325 |
|
coverdispersion character varying(30),
|
1326 |
|
autotaxoncover boolean,
|
1327 |
|
stratummethod_id integer,
|
1328 |
|
methodnarrative text,
|
1329 |
|
taxonobservationarea double precision,
|
1330 |
|
stemsizelimit double precision,
|
1331 |
|
stemobservationarea double precision,
|
1332 |
|
stemsamplemethod character varying(30),
|
1333 |
|
originaldata text,
|
1334 |
|
effortlevel character varying(30),
|
1335 |
|
plotvalidationlevel integer,
|
1336 |
|
floristicquality character varying(30),
|
1337 |
|
bryophytequality character varying(30),
|
1338 |
|
lichenquality character varying(30),
|
1339 |
|
observationnarrative text,
|
1340 |
|
landscapenarrative text,
|
1341 |
|
homogeneity character varying(50),
|
1342 |
|
phenologicaspect character varying(30),
|
1343 |
|
representativeness character varying(255),
|
1344 |
|
standmaturity character varying(50),
|
1345 |
|
successionalstatus text,
|
1346 |
|
basalarea double precision,
|
1347 |
|
hydrologicregime character varying(30),
|
1348 |
|
soilmoistureregime character varying(30),
|
1349 |
|
soildrainage character varying(30),
|
1350 |
|
watersalinity character varying(30),
|
1351 |
|
waterdepth double precision,
|
1352 |
|
shoredistance double precision,
|
1353 |
|
soildepth double precision,
|
1354 |
|
organicdepth double precision,
|
1355 |
|
soiltaxon_id integer,
|
1356 |
|
soiltaxonsrc character varying(200),
|
1357 |
|
percentbedrock double precision,
|
1358 |
|
percentrockgravel double precision,
|
1359 |
|
percentwood double precision,
|
1360 |
|
percentlitter double precision,
|
1361 |
|
percentbaresoil double precision,
|
1362 |
|
percentwater double precision,
|
1363 |
|
percentother double precision,
|
1364 |
|
nameother character varying(30),
|
1365 |
|
treeht double precision,
|
1366 |
|
shrubht double precision,
|
1367 |
|
fieldht double precision,
|
1368 |
|
nonvascularht double precision,
|
1369 |
|
submergedht double precision,
|
1370 |
|
treecover double precision,
|
1371 |
|
shrubcover double precision,
|
1372 |
|
fieldcover double precision,
|
1373 |
|
nonvascularcover double precision,
|
1374 |
|
floatingcover double precision,
|
1375 |
|
submergedcover double precision,
|
1376 |
|
dominantstratum character varying(40),
|
1377 |
|
growthform1type character varying(40),
|
1378 |
|
growthform2type character varying(40),
|
1379 |
|
growthform3type character varying(40),
|
1380 |
|
growthform1cover double precision,
|
1381 |
|
growthform2cover double precision,
|
1382 |
|
growthform3cover double precision,
|
1383 |
|
totalcover double precision,
|
1384 |
|
notespublic boolean,
|
1385 |
|
notesmgt boolean,
|
1386 |
|
revisions boolean,
|
1387 |
|
obsstartdate timestamp with time zone,
|
1388 |
|
obsenddate timestamp with time zone,
|
1389 |
|
dateentered timestamp with time zone DEFAULT now(),
|
1390 |
|
emb_observation integer,
|
1391 |
|
interp_orig_ci_id integer,
|
1392 |
|
interp_orig_cc_id integer,
|
1393 |
|
interp_orig_sciname text,
|
1394 |
|
interp_orig_code text,
|
1395 |
|
interp_orig_party_id integer,
|
1396 |
|
interp_orig_partyname text,
|
1397 |
|
interp_current_ci_id integer,
|
1398 |
|
interp_current_cc_id integer,
|
1399 |
|
interp_current_sciname text,
|
1400 |
|
interp_current_code text,
|
1401 |
|
interp_current_party_id integer,
|
1402 |
|
interp_current_partyname text,
|
1403 |
|
interp_bestfit_ci_id integer,
|
1404 |
|
interp_bestfit_cc_id integer,
|
1405 |
|
interp_bestfit_sciname text,
|
1406 |
|
interp_bestfit_code text,
|
1407 |
|
interp_bestfit_party_id integer,
|
1408 |
|
interp_bestfit_partyname text,
|
1409 |
|
toptaxon1name character varying(255),
|
1410 |
|
toptaxon2name character varying(255),
|
1411 |
|
toptaxon3name character varying(255),
|
1412 |
|
toptaxon4name character varying(255),
|
1413 |
|
toptaxon5name character varying(255),
|
1414 |
|
numberoftaxa integer,
|
1415 |
|
accessioncode character varying(255)
|
1416 |
|
);
|
1417 |
|
|
1418 |
|
|
1419 |
|
ALTER TABLE public.observation OWNER TO bien;
|
1420 |
|
|
1421 |
|
--
|
1422 |
|
-- Name: observation_observation_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1423 |
|
--
|
1424 |
|
|
1425 |
|
CREATE SEQUENCE observation_observation_id_seq
|
1426 |
|
START WITH 1
|
1427 |
|
INCREMENT BY 1
|
1428 |
|
NO MAXVALUE
|
1429 |
|
NO MINVALUE
|
1430 |
|
CACHE 1;
|
1431 |
|
|
1432 |
|
|
1433 |
|
ALTER TABLE public.observation_observation_id_seq OWNER TO bien;
|
1434 |
|
|
1435 |
|
--
|
1436 |
|
-- Name: observation_observation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1437 |
|
--
|
1438 |
|
|
1439 |
|
ALTER SEQUENCE observation_observation_id_seq OWNED BY observation.observation_id;
|
1440 |
|
|
1441 |
|
|
1442 |
|
--
|
1443 |
|
-- Name: observationcontributor; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1444 |
|
--
|
1445 |
|
|
1446 |
|
CREATE TABLE observationcontributor (
|
1447 |
|
observationcontributor_id integer NOT NULL,
|
1448 |
|
observation_id integer NOT NULL,
|
1449 |
|
party_id integer NOT NULL,
|
1450 |
|
role_id integer NOT NULL,
|
1451 |
|
contributiondate timestamp with time zone
|
1452 |
|
);
|
1453 |
|
|
1454 |
|
|
1455 |
|
ALTER TABLE public.observationcontributor OWNER TO bien;
|
1456 |
|
|
1457 |
|
--
|
1458 |
|
-- Name: observationcontributor_observationcontributor_id_seq; Type: SEQUENCE; Schema: public; Owner: bien
|
1459 |
|
--
|
1460 |
|
|
1461 |
|
CREATE SEQUENCE observationcontributor_observationcontributor_id_seq
|
1462 |
|
START WITH 1
|
1463 |
|
INCREMENT BY 1
|
1464 |
|
NO MAXVALUE
|
1465 |
|
NO MINVALUE
|
1466 |
|
CACHE 1;
|
1467 |
|
|
1468 |
|
|
1469 |
|
ALTER TABLE public.observationcontributor_observationcontributor_id_seq OWNER TO bien;
|
1470 |
|
|
1471 |
|
--
|
1472 |
|
-- Name: observationcontributor_observationcontributor_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bien
|
1473 |
|
--
|
1474 |
|
|
1475 |
|
ALTER SEQUENCE observationcontributor_observationcontributor_id_seq OWNED BY observationcontributor.observationcontributor_id;
|
1476 |
|
|
1477 |
|
|
1478 |
|
--
|
1479 |
|
-- Name: observationsynonym; Type: TABLE; Schema: public; Owner: bien; Tablespace:
|
1480 |
|
--
|
1481 |
|
|
1482 |
|
CREATE TABLE observationsynonym (
|
Create vegbien db from mappings/schemas/vegbien.sql