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