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 666 aaronmk
  individualplant_id integer,
62 541 aaronmk
);
63
64
CREATE TABLE individualplant -- VegBank's stemcount table.
65
(
66
  individualplant_id serial NOT NULL,
67
  aggregateoccurrence_id integer NOT NULL,
68 563 aaronmk
  overallheight double precision,
69
  overallheightaccuracy double precision,
70 541 aaronmk
  emb_individualplant integer,
71 570 aaronmk
  authorplantcode character varying(20),
72 541 aaronmk
  accessioncode character varying(255),
73
  stemcount integer,
74 586 aaronmk
  sourceaccessioncode character varying(100),
75 541 aaronmk
);
76
77
CREATE TABLE stem -- VegBank's stemlocation table.
78
(
79
  stem_id serial NOT NULL,
80
  individualplant_id integer NOT NULL,
81 570 aaronmk
  authorstemcode character varying(20),
82 541 aaronmk
  xposition double precision,
83
  yposition double precision,
84
  health character varying(50),
85
  emb_stem integer,
86
  diameter double precision,
87
  height double precision,
88
  heightaccuracy double precision,
89
  age double precision,
90
  accessioncode character varying(255),
91 556 aaronmk
  diameteraccuracy double precision,
92 586 aaronmk
  sourceaccessioncode character varying(100),
93 541 aaronmk
);
94
95
CREATE TABLE specimen -- A herbarium specimen. Contains Darwin Core specimen data.
96
(
97
  specimen_id serial NOT NULL,
98
  reference_id integer NOT NULL,
99 642 aaronmk
  collectioncode_dwc character varying(255), -- The code for the collection that the specimen is from.
100 541 aaronmk
  catalognumber_dwc character varying(255),
101
  collectiondate timestamp with time zone,
102
  museum_id integer,
103 586 aaronmk
  sourceaccessioncode character varying(100),
104 541 aaronmk
  accessioncode character varying(255),
105 576 aaronmk
  taxonoccurrence_id integer NOT NULL,
106 613 aaronmk
  verbatimcollectorname character varying(255),
107 642 aaronmk
  collectionnumber character varying(255), -- The number of the specimen within the collection.
108 541 aaronmk
);
109
110 544 aaronmk
CREATE TABLE voucher
111
(
112
  voucher_id serial NOT NULL,
113 545 aaronmk
  taxonoccurrence_id integer NOT NULL,
114
  specimen_id integer NOT NULL,
115 544 aaronmk
  accessioncode character varying(255),
116
);
117
118 541 aaronmk
CREATE TABLE taxondetermination -- VegBank's taxoninterpretation table.
119
(
120
  taxondetermination_id serial NOT NULL,
121
  taxonoccurrence_id integer NOT NULL,
122
  plantconcept_id integer NOT NULL,
123 575 aaronmk
  party_id integer,
124 541 aaronmk
  role_id integer NOT NULL,
125
  determinationtype character varying(30),
126
  reference_id integer,
127 632 aaronmk
  isoriginal boolean NOT NULL DEFAULT false,
128
  iscurrent boolean NOT NULL DEFAULT false,
129 541 aaronmk
  taxonfit character varying(50),
130
  taxonconfidence character varying(50),
131
  grouptype character varying(20),
132
  notes text,
133
  notespublic boolean,
134
  notesmgt boolean,
135
  revisions boolean,
136 591 aaronmk
  determinationdate timestamp with time zone,
137 541 aaronmk
  emb_taxondetermination integer,
138
  accessioncode character varying(255),
139
);
140
141 552 aaronmk
CREATE TABLE stratum
142
(
143
  stratum_id serial NOT NULL,
144
  locationevent_id integer NOT NULL,
145
  stratumtype_id integer NOT NULL,
146
  stratummethod_id integer,
147
  stratumname character varying(30),
148
  stratumheight double precision,
149
  stratumbase double precision,
150
  stratumcover double precision,
151
  stratumdescription character varying(200),
152
);
153
154 541 aaronmk
CREATE TABLE sizeclass -- A range of size measurements used to aggregate organisms.
155
(
156
  sizeclass_id serial NOT NULL,
157
  mindiameter double precision,
158
  minheight double precision,
159
  maxdiameter double precision,
160
  maxheight double precision,
161
  accessioncode character varying(255),
162
);
163
164 592 aaronmk
CREATE TABLE taxonbinmethod
165 541 aaronmk
(
166 584 aaronmk
  taxonbinmethod_id integer NOT NULL,
167 592 aaronmk
  label character varying(255),
168
  stratumtype_id integer,
169 541 aaronmk
  sizeclass_id integer,
170
  coverindex_id integer,
171
  accessioncode character varying(255),
172
);