Project

General

Profile

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
  plantobservation_id integer,
62
);
63

    
64
CREATE TABLE plant -- A physical, tagged plant.
65
(
66
  plant_id serial NOT NULL,
67
);
68

    
69
CREATE TABLE planttag
70
(
71
  planttag_id serial NOT NULL,
72
  plant_id integer NOT NULL,
73
  tag character varying(255) NOT NULL,
74
);
75

    
76
CREATE TABLE plantobservation -- VegBank's stemcount table.
77
(
78
  plantobservation_id serial NOT NULL,
79
  aggregateoccurrence_id integer NOT NULL,
80
  overallheight double precision,
81
  overallheightaccuracy double precision,
82
  emb_plantobservation integer,
83
  authorplantcode character varying(20),
84
  accessioncode character varying(255),
85
  stemcount integer,
86
  sourceaccessioncode character varying(100),
87
  plant_id integer,
88
);
89

    
90
CREATE TABLE stemobservation -- VegBank's stemlocation table.
91
(
92
  stemobservation_id serial NOT NULL,
93
  plantobservation_id integer NOT NULL,
94
  authorstemcode character varying(20),
95
  xposition double precision,
96
  yposition double precision,
97
  health character varying(50),
98
  emb_stemobservation integer,
99
  diameter double precision,
100
  height double precision,
101
  heightaccuracy double precision,
102
  age double precision,
103
  accessioncode character varying(255),
104
  diameteraccuracy double precision,
105
  sourceaccessioncode character varying(100),
106
);
107

    
108
CREATE TABLE specimen -- A physical specimen collected from a plant. Used to link replicates of the same specimen together.
109
(
110
  specimen_id serial NOT NULL,
111
);
112

    
113
CREATE TABLE specimenreplicate -- A herbarium's replicate of a specimen. Contains Darwin Core specimen data.
114
(
115
  specimenreplicate_id serial NOT NULL,
116
  reference_id integer NOT NULL,
117
  collectioncode_dwc character varying(255), -- The code for the collection that the specimenreplicate is from.
118
  catalognumber_dwc character varying(255),
119
  collectiondate timestamp with time zone,
120
  museum_id integer,
121
  sourceaccessioncode character varying(100),
122
  accessioncode character varying(255),
123
  taxonoccurrence_id integer NOT NULL,
124
  verbatimcollectorname character varying(255),
125
  collectionnumber character varying(255), -- The number of the specimenreplicate within the collection.
126
  specimen_id integer,
127
);
128

    
129
CREATE TABLE voucher
130
(
131
  voucher_id serial NOT NULL,
132
  taxonoccurrence_id integer NOT NULL,
133
  specimenreplicate_id integer NOT NULL,
134
  accessioncode character varying(255),
135
);
136

    
137
CREATE TABLE taxondetermination -- VegBank's taxoninterpretation table.
138
(
139
  taxondetermination_id serial NOT NULL,
140
  taxonoccurrence_id integer NOT NULL,
141
  plantconcept_id integer NOT NULL,
142
  party_id integer,
143
  role_id integer NOT NULL,
144
  determinationtype character varying(30),
145
  reference_id integer,
146
  isoriginal boolean NOT NULL DEFAULT false,
147
  iscurrent boolean NOT NULL DEFAULT false,
148
  taxonfit character varying(50),
149
  taxonconfidence character varying(50),
150
  grouptype character varying(20),
151
  notes text,
152
  notespublic boolean,
153
  notesmgt boolean,
154
  revisions boolean,
155
  determinationdate timestamp with time zone,
156
  emb_taxondetermination integer,
157
  accessioncode character varying(255),
158
);
159

    
160
CREATE TABLE stratum
161
(
162
  stratum_id serial NOT NULL,
163
  locationevent_id integer NOT NULL,
164
  stratumtype_id integer NOT NULL,
165
  stratummethod_id integer,
166
  stratumname character varying(30),
167
  stratumheight double precision,
168
  stratumbase double precision,
169
  stratumcover double precision,
170
  stratumdescription character varying(200),
171
);
172

    
173
CREATE TABLE sizeclass -- A range of size measurements used to aggregate organisms.
174
(
175
  sizeclass_id serial NOT NULL,
176
  mindiameter double precision,
177
  minheight double precision,
178
  maxdiameter double precision,
179
  maxheight double precision,
180
  accessioncode character varying(255),
181
);
182

    
183
CREATE TABLE taxonbinmethod
184
(
185
  taxonbinmethod_id integer NOT NULL,
186
  label character varying(255),
187
  stratumtype_id integer,
188
  sizeclass_id integer,
189
  coverindex_id integer,
190
  accessioncode character varying(255),
191
);
(9-9/12)