Project

General

Profile

1
CREATE TABLE location
2
(
3
  location_id serial NOT NULL,
4
  authorlocationcode 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 DEFAULT 0,
11
  confidentialityreason character varying(200),
12
  publiclatitude double precision,
13
  publiclongitude double precision,
14
  "... (truncated) ..." integer,
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,
26
  project_id integer,
27
  authoreventcode character varying(30),
28
  "... (truncated) ..." integer,
29
  accessioncode character varying(255),
30
  sourceaccessioncode character varying(100),
31
);
32

    
33
CREATE TABLE taxonoccurrence -- VegBank's taxonobservation table.
34
(
35
  taxonoccurrence_id serial NOT NULL,
36
  locationevent_id integer,
37
  authorplantname character varying(255),
38
  reference_id integer,
39
  taxoninferencearea double precision,
40
  emb_taxonoccurrence integer,
41
  "... (truncated) ..." integer,
42
  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
  taxonbinmethod_id integer,
50
  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
  count integer,
59
  accessioncode character varying(255),
60
  sourceaccessioncode character varying(100),
61
  plantobservation_id integer,
62
);
63

    
64
CREATE TABLE plantobservation -- VegBank's stemcount table.
65
(
66
  plantobservation_id serial NOT NULL,
67
  aggregateoccurrence_id integer NOT NULL,
68
  overallheight double precision,
69
  overallheightaccuracy double precision,
70
  emb_plantobservation integer,
71
  authorplantcode character varying(20),
72
  accessioncode character varying(255),
73
  stemcount integer,
74
  sourceaccessioncode character varying(100),
75
);
76

    
77
CREATE TABLE stemobservation -- VegBank's stemlocation table.
78
(
79
  stemobservation_id serial NOT NULL,
80
  plantobservation_id integer NOT NULL,
81
  authorstemcode character varying(20),
82
  xposition double precision,
83
  yposition double precision,
84
  health character varying(50),
85
  emb_stemobservation integer,
86
  diameter double precision,
87
  height double precision,
88
  heightaccuracy double precision,
89
  age double precision,
90
  accessioncode character varying(255),
91
  diameteraccuracy double precision,
92
  sourceaccessioncode character varying(100),
93
);
94

    
95
CREATE TABLE specimen -- A physical specimen collected from a plant. Used to link replicates of the same specimen together.
96
(
97
  specimen_id serial NOT NULL,
98
);
99

    
100
CREATE TABLE specimenreplicate -- A herbarium's replicate of a specimen. Contains Darwin Core specimen data.
101
(
102
  specimenreplicate_id serial NOT NULL,
103
  reference_id integer NOT NULL,
104
  collectioncode_dwc character varying(255), -- The code for the collection that the specimenreplicate is from.
105
  catalognumber_dwc character varying(255),
106
  collectiondate timestamp with time zone,
107
  museum_id integer,
108
  sourceaccessioncode character varying(100),
109
  accessioncode character varying(255),
110
  taxonoccurrence_id integer NOT NULL,
111
  verbatimcollectorname character varying(255),
112
  collectionnumber character varying(255), -- The number of the specimenreplicate within the collection.
113
  specimen_id integer,
114
);
115

    
116
CREATE TABLE voucher
117
(
118
  voucher_id serial NOT NULL,
119
  taxonoccurrence_id integer NOT NULL,
120
  specimenreplicate_id integer NOT NULL,
121
  accessioncode character varying(255),
122
);
123

    
124
CREATE TABLE taxondetermination -- VegBank's taxoninterpretation table.
125
(
126
  taxondetermination_id serial NOT NULL,
127
  taxonoccurrence_id integer NOT NULL,
128
  plantconcept_id integer NOT NULL,
129
  party_id integer,
130
  role_id integer NOT NULL,
131
  determinationtype character varying(30),
132
  reference_id integer,
133
  isoriginal boolean NOT NULL DEFAULT false,
134
  iscurrent boolean NOT NULL DEFAULT false,
135
  taxonfit character varying(50),
136
  taxonconfidence character varying(50),
137
  grouptype character varying(20),
138
  notes text,
139
  notespublic boolean,
140
  notesmgt boolean,
141
  revisions boolean,
142
  determinationdate timestamp with time zone,
143
  emb_taxondetermination integer,
144
  accessioncode character varying(255),
145
);
146

    
147
CREATE TABLE stratum
148
(
149
  stratum_id serial NOT NULL,
150
  locationevent_id integer NOT NULL,
151
  stratumtype_id integer NOT NULL,
152
  stratummethod_id integer,
153
  stratumname character varying(30),
154
  stratumheight double precision,
155
  stratumbase double precision,
156
  stratumcover double precision,
157
  stratumdescription character varying(200),
158
);
159

    
160
CREATE TABLE sizeclass -- A range of size measurements used to aggregate organisms.
161
(
162
  sizeclass_id serial NOT NULL,
163
  mindiameter double precision,
164
  minheight double precision,
165
  maxdiameter double precision,
166
  maxheight double precision,
167
  accessioncode character varying(255),
168
);
169

    
170
CREATE TABLE taxonbinmethod
171
(
172
  taxonbinmethod_id integer NOT NULL,
173
  label character varying(255),
174
  stratumtype_id integer,
175
  sizeclass_id integer,
176
  coverindex_id integer,
177
  accessioncode character varying(255),
178
);
(9-9/12)