Project

General

Profile

1 541 aaronmk
CREATE TABLE location
2
(
3
  location_id serial NOT NULL,
4 582 aaronmk
  authorlocationcode character varying(30),
5 541 aaronmk
  reference_id integer,
6
  parent_id integer,
7 582 aaronmk
  reallatitude double precision,
8
  reallongitude double precision,
9 541 aaronmk
  locationaccuracy double precision,
10 575 aaronmk
  confidentialitystatus integer NOT NULL DEFAULT 0,
11 541 aaronmk
  confidentialityreason character varying(200),
12 580 aaronmk
  publiclatitude double precision,
13
  publiclongitude double precision,
14 561 aaronmk
  "... (truncated) ..." integer,
15 541 aaronmk
  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 605 aaronmk
  location_id integer,
26 541 aaronmk
  project_id integer,
27 570 aaronmk
  authoreventcode character varying(30),
28 561 aaronmk
  "... (truncated) ..." integer,
29 541 aaronmk
  accessioncode character varying(255),
30 586 aaronmk
  sourceaccessioncode character varying(100),
31 541 aaronmk
);
32
33
CREATE TABLE taxonoccurrence -- VegBank's taxonobservation table.
34
(
35
  taxonoccurrence_id serial NOT NULL,
36 605 aaronmk
  locationevent_id integer,
37 541 aaronmk
  authorplantname character varying(255),
38
  reference_id integer,
39
  taxoninferencearea double precision,
40
  emb_taxonoccurrence integer,
41 561 aaronmk
  "... (truncated) ..." integer,
42 541 aaronmk
  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 584 aaronmk
  taxonbinmethod_id integer,
50 541 aaronmk
  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 607 aaronmk
  count integer,
59 541 aaronmk
  accessioncode character varying(255),
60 586 aaronmk
  sourceaccessioncode character varying(100),
61 671 aaronmk
  plantobservation_id integer,
62 541 aaronmk
);
63
64 674 aaronmk
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 671 aaronmk
CREATE TABLE plantobservation -- VegBank's stemcount table.
77 541 aaronmk
(
78 671 aaronmk
  plantobservation_id serial NOT NULL,
79 541 aaronmk
  aggregateoccurrence_id integer NOT NULL,
80 563 aaronmk
  overallheight double precision,
81
  overallheightaccuracy double precision,
82 671 aaronmk
  emb_plantobservation integer,
83 570 aaronmk
  authorplantcode character varying(20),
84 541 aaronmk
  accessioncode character varying(255),
85
  stemcount integer,
86 586 aaronmk
  sourceaccessioncode character varying(100),
87 674 aaronmk
  plant_id integer,
88 541 aaronmk
);
89
90 673 aaronmk
CREATE TABLE stemobservation -- VegBank's stemlocation table.
91 541 aaronmk
(
92 673 aaronmk
  stemobservation_id serial NOT NULL,
93 671 aaronmk
  plantobservation_id integer NOT NULL,
94 570 aaronmk
  authorstemcode character varying(20),
95 541 aaronmk
  xposition double precision,
96
  yposition double precision,
97
  health character varying(50),
98 673 aaronmk
  emb_stemobservation integer,
99 541 aaronmk
  diameter double precision,
100
  height double precision,
101
  heightaccuracy double precision,
102
  age double precision,
103
  accessioncode character varying(255),
104 556 aaronmk
  diameteraccuracy double precision,
105 586 aaronmk
  sourceaccessioncode character varying(100),
106 541 aaronmk
);
107
108 670 aaronmk
CREATE TABLE specimen -- A physical specimen collected from a plant. Used to link replicates of the same specimen together.
109 669 aaronmk
(
110
  specimen_id serial NOT NULL,
111
);
112
113 670 aaronmk
CREATE TABLE specimenreplicate -- A herbarium's replicate of a specimen. Contains Darwin Core specimen data.
114 541 aaronmk
(
115 668 aaronmk
  specimenreplicate_id serial NOT NULL,
116 541 aaronmk
  reference_id integer NOT NULL,
117 668 aaronmk
  collectioncode_dwc character varying(255), -- The code for the collection that the specimenreplicate is from.
118 541 aaronmk
  catalognumber_dwc character varying(255),
119
  collectiondate timestamp with time zone,
120
  museum_id integer,
121 586 aaronmk
  sourceaccessioncode character varying(100),
122 541 aaronmk
  accessioncode character varying(255),
123 576 aaronmk
  taxonoccurrence_id integer NOT NULL,
124 613 aaronmk
  verbatimcollectorname character varying(255),
125 668 aaronmk
  collectionnumber character varying(255), -- The number of the specimenreplicate within the collection.
126 669 aaronmk
  specimen_id integer,
127 541 aaronmk
);
128
129 544 aaronmk
CREATE TABLE voucher
130
(
131
  voucher_id serial NOT NULL,
132 545 aaronmk
  taxonoccurrence_id integer NOT NULL,
133 668 aaronmk
  specimenreplicate_id integer NOT NULL,
134 544 aaronmk
  accessioncode character varying(255),
135
);
136
137 541 aaronmk
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 575 aaronmk
  party_id integer,
143 541 aaronmk
  role_id integer NOT NULL,
144
  determinationtype character varying(30),
145
  reference_id integer,
146 632 aaronmk
  isoriginal boolean NOT NULL DEFAULT false,
147
  iscurrent boolean NOT NULL DEFAULT false,
148 541 aaronmk
  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 591 aaronmk
  determinationdate timestamp with time zone,
156 541 aaronmk
  emb_taxondetermination integer,
157
  accessioncode character varying(255),
158
);
159
160 552 aaronmk
CREATE TABLE stratum
161
(
162
  stratum_id serial NOT NULL,
163
  locationevent_id integer NOT NULL,
164
  stratumtype_id integer NOT NULL,
165
  stratumheight double precision,
166
  stratumbase double precision,
167
  stratumcover double precision,
168 676 aaronmk
  area double precision,
169 552 aaronmk
);
170
171 541 aaronmk
CREATE TABLE sizeclass -- A range of size measurements used to aggregate organisms.
172
(
173
  sizeclass_id serial NOT NULL,
174
  mindiameter double precision,
175
  minheight double precision,
176
  maxdiameter double precision,
177
  maxheight double precision,
178
  accessioncode character varying(255),
179
);
180
181 592 aaronmk
CREATE TABLE taxonbinmethod
182 541 aaronmk
(
183 584 aaronmk
  taxonbinmethod_id integer NOT NULL,
184 592 aaronmk
  label character varying(255),
185
  stratumtype_id integer,
186 541 aaronmk
  sizeclass_id integer,
187
  coverindex_id integer,
188
  accessioncode character varying(255),
189
);