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
  cover double precision,
50
  basalarea double precision,
51
  biomass double precision,
52
  inferencearea double precision,
53
  stratumbase double precision,
54
  stratumheight double precision,
55
  emb_aggregateoccurrence integer,
56
  covercode character varying(10),
57 607 aaronmk
  count integer,
58 541 aaronmk
  accessioncode character varying(255),
59 586 aaronmk
  sourceaccessioncode character varying(100),
60 671 aaronmk
  plantobservation_id integer,
61 677 aaronmk
  stratum_id integer,
62 678 aaronmk
  sizeclass_id integer,
63
  coverindex_id integer,
64 541 aaronmk
);
65
66 674 aaronmk
CREATE TABLE plant -- A physical, tagged plant.
67
(
68
  plant_id serial NOT NULL,
69
);
70
71
CREATE TABLE planttag
72
(
73
  planttag_id serial NOT NULL,
74
  plant_id integer NOT NULL,
75
  tag character varying(255) NOT NULL,
76
);
77
78 671 aaronmk
CREATE TABLE plantobservation -- VegBank's stemcount table.
79 541 aaronmk
(
80 671 aaronmk
  plantobservation_id serial NOT NULL,
81 563 aaronmk
  overallheight double precision,
82
  overallheightaccuracy double precision,
83 671 aaronmk
  emb_plantobservation integer,
84 570 aaronmk
  authorplantcode character varying(20),
85 541 aaronmk
  accessioncode character varying(255),
86
  stemcount integer,
87 586 aaronmk
  sourceaccessioncode character varying(100),
88 674 aaronmk
  plant_id integer,
89 541 aaronmk
);
90
91 673 aaronmk
CREATE TABLE stemobservation -- VegBank's stemlocation table.
92 541 aaronmk
(
93 673 aaronmk
  stemobservation_id serial NOT NULL,
94 671 aaronmk
  plantobservation_id integer NOT NULL,
95 570 aaronmk
  authorstemcode character varying(20),
96 541 aaronmk
  xposition double precision,
97
  yposition double precision,
98
  health character varying(50),
99 673 aaronmk
  emb_stemobservation integer,
100 541 aaronmk
  diameter double precision,
101
  height double precision,
102
  heightaccuracy double precision,
103
  age double precision,
104
  accessioncode character varying(255),
105 556 aaronmk
  diameteraccuracy double precision,
106 586 aaronmk
  sourceaccessioncode character varying(100),
107 541 aaronmk
);
108
109 670 aaronmk
CREATE TABLE specimen -- A physical specimen collected from a plant. Used to link replicates of the same specimen together.
110 669 aaronmk
(
111
  specimen_id serial NOT NULL,
112
);
113
114 670 aaronmk
CREATE TABLE specimenreplicate -- A herbarium's replicate of a specimen. Contains Darwin Core specimen data.
115 541 aaronmk
(
116 668 aaronmk
  specimenreplicate_id serial NOT NULL,
117 541 aaronmk
  reference_id integer NOT NULL,
118 668 aaronmk
  collectioncode_dwc character varying(255), -- The code for the collection that the specimenreplicate is from.
119 541 aaronmk
  catalognumber_dwc character varying(255),
120
  collectiondate timestamp with time zone,
121
  museum_id integer,
122 586 aaronmk
  sourceaccessioncode character varying(100),
123 541 aaronmk
  accessioncode character varying(255),
124 576 aaronmk
  taxonoccurrence_id integer NOT NULL,
125 613 aaronmk
  verbatimcollectorname character varying(255),
126 668 aaronmk
  collectionnumber character varying(255), -- The number of the specimenreplicate within the collection.
127 669 aaronmk
  specimen_id integer,
128 541 aaronmk
);
129
130 544 aaronmk
CREATE TABLE voucher
131
(
132
  voucher_id serial NOT NULL,
133 545 aaronmk
  taxonoccurrence_id integer NOT NULL,
134 668 aaronmk
  specimenreplicate_id integer NOT NULL,
135 544 aaronmk
  accessioncode character varying(255),
136
);
137
138 541 aaronmk
CREATE TABLE taxondetermination -- VegBank's taxoninterpretation table.
139
(
140
  taxondetermination_id serial NOT NULL,
141
  taxonoccurrence_id integer NOT NULL,
142
  plantconcept_id integer NOT NULL,
143 575 aaronmk
  party_id integer,
144 541 aaronmk
  role_id integer NOT NULL,
145
  determinationtype character varying(30),
146
  reference_id integer,
147 632 aaronmk
  isoriginal boolean NOT NULL DEFAULT false,
148
  iscurrent boolean NOT NULL DEFAULT false,
149 541 aaronmk
  taxonfit character varying(50),
150
  taxonconfidence character varying(50),
151
  grouptype character varying(20),
152
  notes text,
153
  notespublic boolean,
154
  notesmgt boolean,
155
  revisions boolean,
156 591 aaronmk
  determinationdate timestamp with time zone,
157 541 aaronmk
  emb_taxondetermination integer,
158
  accessioncode character varying(255),
159
);
160
161 552 aaronmk
CREATE TABLE stratum
162
(
163
  stratum_id serial NOT NULL,
164
  locationevent_id integer NOT NULL,
165
  stratumtype_id integer NOT NULL,
166
  stratumheight double precision,
167
  stratumbase double precision,
168
  stratumcover double precision,
169 676 aaronmk
  area double precision,
170 552 aaronmk
);
171
172 541 aaronmk
CREATE TABLE sizeclass -- A range of size measurements used to aggregate organisms.
173
(
174
  sizeclass_id serial NOT NULL,
175
  mindiameter double precision,
176
  minheight double precision,
177
  maxdiameter double precision,
178
  maxheight double precision,
179
  accessioncode character varying(255),
180
);