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
  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
  count integer,
58
  accessioncode character varying(255),
59
  sourceaccessioncode character varying(100),
60
  plantobservation_id integer,
61
  stratum_id integer,
62
  sizeclass_id integer,
63
  coverindex_id integer,
64
);
65

    
66
CREATE TABLE planttag
67
(
68
  planttag_id serial NOT NULL,
69
  plantobservation_id integer NOT NULL,
70
  tag character varying(255) NOT NULL,
71
  iscurrent boolean NOT NULL DEFAULT true,
72
);
73

    
74
CREATE TABLE plant -- A physical, tagged plant.
75
(
76
  plant_id serial NOT NULL,
77
);
78

    
79
CREATE TABLE plantobservation -- VegBank's stemcount table.
80
(
81
  plantobservation_id serial NOT NULL,
82
  overallheight double precision,
83
  overallheightaccuracy double precision,
84
  emb_plantobservation integer,
85
  authorplantcode character varying(20),
86
  accessioncode character varying(255),
87
  stemcount integer,
88
  sourceaccessioncode character varying(100),
89
  plant_id integer,
90
);
91

    
92
CREATE TABLE stemobservation -- VegBank's stemlocation table.
93
(
94
  stemobservation_id serial NOT NULL,
95
  plantobservation_id integer NOT NULL,
96
  authorstemcode character varying(20),
97
  xposition double precision,
98
  yposition double precision,
99
  health character varying(50),
100
  emb_stemobservation integer,
101
  diameter double precision,
102
  height double precision,
103
  heightaccuracy double precision,
104
  age double precision,
105
  accessioncode character varying(255),
106
  diameteraccuracy double precision,
107
  sourceaccessioncode character varying(100),
108
);
109

    
110
CREATE TABLE specimen -- A physical specimen collected from a plant. Used to link replicates of the same specimen together.
111
(
112
  specimen_id serial NOT NULL,
113
);
114

    
115
CREATE TABLE specimenreplicate -- A herbarium's replicate of a specimen. Contains Darwin Core specimen data.
116
(
117
  specimenreplicate_id serial NOT NULL,
118
  reference_id integer NOT NULL,
119
  collectioncode_dwc character varying(255), -- The code for the collection that the specimenreplicate is from.
120
  catalognumber_dwc character varying(255),
121
  collectiondate timestamp with time zone,
122
  museum_id integer,
123
  sourceaccessioncode character varying(100),
124
  accessioncode character varying(255),
125
  taxonoccurrence_id integer NOT NULL,
126
  verbatimcollectorname character varying(255),
127
  collectionnumber character varying(255), -- The number of the specimenreplicate within the collection.
128
  specimen_id integer,
129
);
130

    
131
CREATE TABLE voucher
132
(
133
  voucher_id serial NOT NULL,
134
  taxonoccurrence_id integer NOT NULL,
135
  specimenreplicate_id integer NOT NULL,
136
  accessioncode character varying(255),
137
);
138

    
139
CREATE TABLE taxondetermination -- VegBank's taxoninterpretation table.
140
(
141
  taxondetermination_id serial NOT NULL,
142
  taxonoccurrence_id integer NOT NULL,
143
  plantconcept_id integer NOT NULL,
144
  party_id integer,
145
  role_id integer NOT NULL,
146
  determinationtype character varying(30),
147
  reference_id integer,
148
  isoriginal boolean NOT NULL DEFAULT false,
149
  iscurrent boolean NOT NULL DEFAULT false,
150
  taxonfit character varying(50),
151
  taxonconfidence character varying(50),
152
  grouptype character varying(20),
153
  notes text,
154
  notespublic boolean,
155
  notesmgt boolean,
156
  revisions boolean,
157
  determinationdate timestamp with time zone,
158
  emb_taxondetermination integer,
159
  accessioncode character varying(255),
160
);
161

    
162
CREATE TABLE stratum
163
(
164
  stratum_id serial NOT NULL,
165
  locationevent_id integer NOT NULL,
166
  stratumtype_id integer NOT NULL,
167
  stratumheight double precision,
168
  stratumbase double precision,
169
  stratumcover double precision,
170
  area double precision,
171
);
172

    
173
CREATE TABLE sizeclass -- A range of size measurements used to aggregate organisms.
174
(
175
  sizeclass_id serial NOT NULL,
176
  mindiameter double precision,
177
  minheight double precision,
178
  maxdiameter double precision,
179
  maxheight double precision,
180
  accessioncode character varying(255),
181
);
(9-9/13)