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
  stratum_id integer,
63
  sizeclass_id integer,
64
  coverindex_id integer,
65
);
66

    
67
CREATE TABLE plant -- A physical, tagged plant.
68
(
69
  plant_id serial NOT NULL,
70
);
71

    
72
CREATE TABLE planttag
73
(
74
  planttag_id serial NOT NULL,
75
  plant_id integer NOT NULL,
76
  tag character varying(255) NOT NULL,
77
);
78

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

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

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

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

    
132
CREATE TABLE voucher
133
(
134
  voucher_id serial NOT NULL,
135
  taxonoccurrence_id integer NOT NULL,
136
  specimenreplicate_id integer NOT NULL,
137
  accessioncode character varying(255),
138
);
139

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

    
163
CREATE TABLE stratum
164
(
165
  stratum_id serial NOT NULL,
166
  locationevent_id integer NOT NULL,
167
  stratumtype_id integer NOT NULL,
168
  stratumheight double precision,
169
  stratumbase double precision,
170
  stratumcover double precision,
171
  area double precision,
172
);
173

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

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