1
|
CREATE TABLE location
|
2
|
(
|
3
|
location_id serial NOT NULL,
|
4
|
authorlocationcode character varying(30),
|
5
|
reference_id integer,
|
6
|
parent_id integer,
|
7
|
reallatitude double precision,
|
8
|
reallongitude double precision,
|
9
|
locationaccuracy double precision,
|
10
|
confidentialitystatus integer NOT NULL DEFAULT 0,
|
11
|
confidentialityreason character varying(200),
|
12
|
publiclatitude double precision,
|
13
|
publiclongitude double precision,
|
14
|
"... (truncated) ..." integer,
|
15
|
accessioncode character varying(255),
|
16
|
sublocationxposition double precision,
|
17
|
sublocationyposition double precision,
|
18
|
namedplace_id integer,
|
19
|
);
|
20
|
|
21
|
CREATE TABLE locationevent -- VegBank's observation table.
|
22
|
(
|
23
|
locationevent_id serial NOT NULL,
|
24
|
previous_id integer,
|
25
|
location_id integer,
|
26
|
project_id integer,
|
27
|
authoreventcode character varying(30),
|
28
|
"... (truncated) ..." integer,
|
29
|
accessioncode character varying(255),
|
30
|
sourceaccessioncode character varying(100),
|
31
|
);
|
32
|
|
33
|
CREATE TABLE taxonoccurrence -- VegBank's taxonobservation table.
|
34
|
(
|
35
|
taxonoccurrence_id serial NOT NULL,
|
36
|
locationevent_id integer,
|
37
|
authorplantname character varying(255),
|
38
|
reference_id integer,
|
39
|
taxoninferencearea double precision,
|
40
|
emb_taxonoccurrence integer,
|
41
|
"... (truncated) ..." integer,
|
42
|
accessioncode character varying(255),
|
43
|
);
|
44
|
|
45
|
CREATE TABLE aggregateoccurrence -- VegBank's taxonimportance table.
|
46
|
(
|
47
|
aggregateoccurrence_id serial NOT NULL,
|
48
|
taxonoccurrence_id integer NOT NULL,
|
49
|
taxonbinmethod_id integer,
|
50
|
cover double precision,
|
51
|
basalarea double precision,
|
52
|
biomass double precision,
|
53
|
inferencearea double precision,
|
54
|
stratumbase double precision,
|
55
|
stratumheight double precision,
|
56
|
emb_aggregateoccurrence integer,
|
57
|
covercode character varying(10),
|
58
|
count integer,
|
59
|
accessioncode character varying(255),
|
60
|
sourceaccessioncode character varying(100),
|
61
|
);
|
62
|
|
63
|
CREATE TABLE individualplant -- VegBank's stemcount table.
|
64
|
(
|
65
|
individualplant_id serial NOT NULL,
|
66
|
aggregateoccurrence_id integer NOT NULL,
|
67
|
overallheight double precision,
|
68
|
overallheightaccuracy double precision,
|
69
|
emb_individualplant integer,
|
70
|
authorplantcode character varying(20),
|
71
|
accessioncode character varying(255),
|
72
|
stemcount integer,
|
73
|
sourceaccessioncode character varying(100),
|
74
|
);
|
75
|
|
76
|
CREATE TABLE stem -- VegBank's stemlocation table.
|
77
|
(
|
78
|
stem_id serial NOT NULL,
|
79
|
individualplant_id integer NOT NULL,
|
80
|
authorstemcode character varying(20),
|
81
|
xposition double precision,
|
82
|
yposition double precision,
|
83
|
health character varying(50),
|
84
|
emb_stem integer,
|
85
|
diameter double precision,
|
86
|
height double precision,
|
87
|
heightaccuracy double precision,
|
88
|
age double precision,
|
89
|
accessioncode character varying(255),
|
90
|
diameteraccuracy double precision,
|
91
|
sourceaccessioncode character varying(100),
|
92
|
);
|
93
|
|
94
|
CREATE TABLE specimen -- A herbarium specimen. Contains Darwin Core specimen data.
|
95
|
(
|
96
|
specimen_id serial NOT NULL,
|
97
|
reference_id integer NOT NULL,
|
98
|
collectioncode_dwc character varying(255),
|
99
|
catalognumber_dwc character varying(255),
|
100
|
collectiondate timestamp with time zone,
|
101
|
collector_id integer,
|
102
|
museum_id integer,
|
103
|
sourceaccessioncode character varying(100),
|
104
|
accessioncode character varying(255),
|
105
|
taxonoccurrence_id integer NOT NULL,
|
106
|
collectornumber_dwc character varying(255),
|
107
|
authorspecimencode character varying(20),
|
108
|
);
|
109
|
|
110
|
CREATE TABLE voucher
|
111
|
(
|
112
|
voucher_id serial NOT NULL,
|
113
|
taxonoccurrence_id integer NOT NULL,
|
114
|
specimen_id integer NOT NULL,
|
115
|
accessioncode character varying(255),
|
116
|
);
|
117
|
|
118
|
CREATE TABLE taxondetermination -- VegBank's taxoninterpretation table.
|
119
|
(
|
120
|
taxondetermination_id serial NOT NULL,
|
121
|
taxonoccurrence_id integer NOT NULL,
|
122
|
plantconcept_id integer NOT NULL,
|
123
|
party_id integer,
|
124
|
role_id integer NOT NULL,
|
125
|
determinationtype character varying(30),
|
126
|
reference_id integer,
|
127
|
originaldetermination boolean NOT NULL DEFAULT false,
|
128
|
currentdetermination boolean NOT NULL DEFAULT false,
|
129
|
taxonfit character varying(50),
|
130
|
taxonconfidence character varying(50),
|
131
|
grouptype character varying(20),
|
132
|
notes text,
|
133
|
notespublic boolean,
|
134
|
notesmgt boolean,
|
135
|
revisions boolean,
|
136
|
determinationdate timestamp with time zone,
|
137
|
emb_taxondetermination integer,
|
138
|
accessioncode character varying(255),
|
139
|
);
|
140
|
|
141
|
CREATE TABLE stratum
|
142
|
(
|
143
|
stratum_id serial NOT NULL,
|
144
|
locationevent_id integer NOT NULL,
|
145
|
stratumtype_id integer NOT NULL,
|
146
|
stratummethod_id integer,
|
147
|
stratumname character varying(30),
|
148
|
stratumheight double precision,
|
149
|
stratumbase double precision,
|
150
|
stratumcover double precision,
|
151
|
stratumdescription character varying(200),
|
152
|
);
|
153
|
|
154
|
CREATE TABLE sizeclass -- A range of size measurements used to aggregate organisms.
|
155
|
(
|
156
|
sizeclass_id serial NOT NULL,
|
157
|
mindiameter double precision,
|
158
|
minheight double precision,
|
159
|
maxdiameter double precision,
|
160
|
maxheight double precision,
|
161
|
accessioncode character varying(255),
|
162
|
);
|
163
|
|
164
|
CREATE TABLE taxonbinmethod
|
165
|
(
|
166
|
taxonbinmethod_id integer NOT NULL,
|
167
|
label character varying(255),
|
168
|
stratumtype_id integer,
|
169
|
sizeclass_id integer,
|
170
|
coverindex_id integer,
|
171
|
accessioncode character varying(255),
|
172
|
);
|