Project

General

Profile

1 541 aaronmk
CREATE TABLE location
2
(
3
  location_id serial NOT NULL,
4
  sourceid 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,
11
  confidentialityreason character varying(200),
12
  latitude double precision,
13
  longitude double precision,
14
  -- ...
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 NOT NULL,
26
  project_id integer,
27
  sourceid character varying(30),
28
  -- ...
29
  accessioncode character varying(255),
30
);
31
32
CREATE TABLE taxonoccurrence -- VegBank's taxonobservation table.
33
(
34
  taxonoccurrence_id serial NOT NULL,
35
  locationevent_id integer NOT NULL,
36
  authorplantname character varying(255),
37
  reference_id integer,
38
  taxoninferencearea double precision,
39
  emb_taxonoccurrence integer,
40
  -- ...
41
  accessioncode character varying(255),
42 553 aaronmk
  currentdetermination_id integer,
43
  originaldetermination_id integer,
44 541 aaronmk
);
45
46
CREATE TABLE aggregateoccurrence -- VegBank's taxonimportance table.
47
(
48
  aggregateoccurrence_id serial NOT NULL,
49
  taxonoccurrence_id integer NOT NULL,
50
  taxonbin_id integer,
51
  cover double precision,
52
  basalarea double precision,
53
  biomass double precision,
54
  inferencearea double precision,
55
  stratumbase double precision,
56
  stratumheight double precision,
57
  emb_aggregateoccurrence integer,
58
  covercode character varying(10),
59
  count integer NOT NULL,
60
  accessioncode character varying(255),
61
);
62
63
CREATE TABLE individualplant -- VegBank's stemcount table.
64
(
65
  individualplant_id serial NOT NULL,
66
  aggregateoccurrence_id integer NOT NULL,
67
  height double precision,
68
  heightaccuracy double precision,
69
  emb_individualplant integer,
70
  sourceid character varying(20),
71
  accessioncode character varying(255),
72
  stemcount integer,
73
);
74
75
CREATE TABLE stem -- VegBank's stemlocation table.
76
(
77
  stem_id serial NOT NULL,
78
  individualplant_id integer NOT NULL,
79
  sourceid character varying(20),
80
  xposition double precision,
81
  yposition double precision,
82
  health character varying(50),
83
  emb_stem integer,
84
  diameter double precision,
85
  height double precision,
86
  heightaccuracy double precision,
87
  age double precision,
88
  accessioncode character varying(255),
89
);
90
91
CREATE TABLE specimen -- A herbarium specimen. Contains Darwin Core specimen data.
92
(
93
  specimen_id serial NOT NULL,
94
  reference_id integer NOT NULL,
95
  collectioncode_dwc character varying(255),
96
  catalognumber_dwc character varying(255),
97
  collectiondate timestamp with time zone,
98
  collector_id integer,
99
  museum_id integer,
100
  sourceaccessionnumber character varying(100),
101
  accessioncode character varying(255),
102
  taxonoccurrence_id integer,
103
);
104
105 544 aaronmk
CREATE TABLE voucher
106
(
107
  voucher_id serial NOT NULL,
108 545 aaronmk
  taxonoccurrence_id integer NOT NULL,
109
  specimen_id integer NOT NULL,
110 544 aaronmk
  accessioncode character varying(255),
111
);
112
113 541 aaronmk
CREATE TABLE taxondetermination -- VegBank's taxoninterpretation table.
114
(
115
  taxondetermination_id serial NOT NULL,
116
  taxonoccurrence_id integer NOT NULL,
117
  plantconcept_id integer NOT NULL,
118
  party_id integer NOT NULL,
119
  role_id integer NOT NULL,
120
  determinationtype character varying(30),
121
  reference_id integer,
122
  originaldetermination boolean NOT NULL,
123
  currentdetermination boolean NOT NULL,
124
  taxonfit character varying(50),
125
  taxonconfidence character varying(50),
126
  grouptype character varying(20),
127
  notes text,
128
  notespublic boolean,
129
  notesmgt boolean,
130
  revisions boolean,
131
  determinationdate timestamp with time zone NOT NULL,
132
  emb_taxondetermination integer,
133
  accessioncode character varying(255),
134
);
135
136 552 aaronmk
CREATE TABLE stratum
137
(
138
  stratum_id serial NOT NULL,
139
  locationevent_id integer NOT NULL,
140
  stratumtype_id integer NOT NULL,
141
  stratummethod_id integer,
142
  stratumname character varying(30),
143
  stratumheight double precision,
144
  stratumbase double precision,
145
  stratumcover double precision,
146
  stratumdescription character varying(200),
147
);
148
149 541 aaronmk
CREATE TABLE sizeclass -- A range of size measurements used to aggregate organisms.
150
(
151
  sizeclass_id serial NOT NULL,
152
  mindiameter double precision,
153
  diameteraccuracy double precision,
154
  minheight double precision,
155
  heightaccuracy double precision,
156
  maxdiameter double precision,
157
  maxheight double precision,
158
  accessioncode character varying(255),
159
);
160
161
CREATE TABLE taxonbin -- Defines a set of aggregate measurements. Used by aggregateoccurrence to define how measurements were aggregated.
162
(
163
  taxonbin_id integer NOT NULL,
164
  label character varying(255) NOT NULL,
165
  stratum_id integer,
166
  sizeclass_id integer,
167
  coverindex_id integer,
168
  accessioncode character varying(255),
169
);