1
|
SET standard_conforming_strings = off;
|
2
|
SET escape_string_warning = off;
|
3
|
-- MySQL dump 10.13 Distrib 5.5.32, for debian-linux-gnu (x86_64)
|
4
|
--
|
5
|
-- Host: localhost Database: VegCore
|
6
|
-- ------------------------------------------------------
|
7
|
-- Server version 5.5.32-0ubuntu0.12.04.1
|
8
|
|
9
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
10
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
11
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
12
|
SET NAMES 'utf8';
|
13
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
14
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
15
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
16
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
17
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
18
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
19
|
|
20
|
--
|
21
|
-- Table structure for table "aggregate_observation"
|
22
|
--
|
23
|
|
24
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
25
|
/*!40101 SET character_set_client = utf8 */;
|
26
|
CREATE TABLE "aggregate_observation" (
|
27
|
"id" text NOT NULL,
|
28
|
"traits" hstore DEFAULT NULL,
|
29
|
PRIMARY KEY ("id"),
|
30
|
/*CONSTRAINT "fk_aggregate_observation_taxon_presence1" FOREIGN KEY ("id") REFERENCES "taxon_presence" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
31
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"An observation applying to all occurrences of an organism based on an aggregation factor" ("VegX":http://wiki.tdwg.org/twiki/pub/Vegetation/WebHome/VegX_Schema_1.5.3_proposed.zip#/veg.xsd#/aggregateOrganismObservations/aggregateOrganismObservation)'*/;
|
32
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
33
|
|
34
|
--
|
35
|
-- Dumping data for table "aggregate_observation"
|
36
|
--
|
37
|
|
38
|
/*!40000 ALTER TABLE "aggregate_observation" DISABLE KEYS */;
|
39
|
/*!40000 ALTER TABLE "aggregate_observation" ENABLE KEYS */;
|
40
|
|
41
|
--
|
42
|
-- Table structure for table "base_class"
|
43
|
--
|
44
|
|
45
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
46
|
/*!40101 SET character_set_client = utf8 */;
|
47
|
CREATE TABLE "base_class" (
|
48
|
"id" text NOT NULL,
|
49
|
"referenced_class" text NOT NULL,
|
50
|
PRIMARY KEY ("id"),
|
51
|
/*KEY "fk_base_class_referenced_class1_idx" ("referenced_class")*/CHECK (true),
|
52
|
/*CONSTRAINT "fk_base_class_referenced_class1" FOREIGN KEY ("referenced_class") REFERENCES "referenced_class" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
53
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
54
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
55
|
|
56
|
--
|
57
|
-- Dumping data for table "base_class"
|
58
|
--
|
59
|
|
60
|
/*!40000 ALTER TABLE "base_class" DISABLE KEYS */;
|
61
|
/*!40000 ALTER TABLE "base_class" ENABLE KEYS */;
|
62
|
|
63
|
--
|
64
|
-- Table structure for table "collection"
|
65
|
--
|
66
|
|
67
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
68
|
/*!40101 SET character_set_client = utf8 */;
|
69
|
CREATE TABLE "collection" (
|
70
|
"id" text NOT NULL,
|
71
|
"institution" text NOT NULL,
|
72
|
"name" text NOT NULL,
|
73
|
PRIMARY KEY ("id"),
|
74
|
/*CONSTRAINT "collection_unique" */UNIQUE ("institution","name"),
|
75
|
/*KEY "fk_collection_organization1_idx" ("institution")*/CHECK (true),
|
76
|
/*KEY "fk_collection_source1_idx" ("id")*/CHECK (true),
|
77
|
/*CONSTRAINT "fk_collection_source1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
78
|
/*CONSTRAINT "fk_collection_organization1" FOREIGN KEY ("institution") REFERENCES "organization" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
79
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"the collection within the institution where a specimen is held" ("Brad Boyle":https://projects.nceas.ucsb.edu/nceas/attachments/download/621/vegbien_identifier_examples.xlsx#terms/collectionCode)'*/;
|
80
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
81
|
|
82
|
--
|
83
|
-- Dumping data for table "collection"
|
84
|
--
|
85
|
|
86
|
/*!40000 ALTER TABLE "collection" DISABLE KEYS */;
|
87
|
/*!40000 ALTER TABLE "collection" ENABLE KEYS */;
|
88
|
|
89
|
--
|
90
|
-- Table structure for table "community"
|
91
|
--
|
92
|
|
93
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
94
|
/*!40101 SET character_set_client = utf8 */;
|
95
|
CREATE TABLE "community" (
|
96
|
"id" text NOT NULL,
|
97
|
"name" text NOT NULL,
|
98
|
"info" hstore DEFAULT NULL,
|
99
|
PRIMARY KEY ("id"),
|
100
|
/*CONSTRAINT "fk_community_record1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
101
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"A community type is an abstract grouping of organisms that tend to co-occur on the landscape due to shared ecological requirements or preferences. May be designated by syntaxon or physiognomic types." ([[VegCore#VegX|VegX]])'*/;
|
102
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
103
|
|
104
|
--
|
105
|
-- Dumping data for table "community"
|
106
|
--
|
107
|
|
108
|
/*!40000 ALTER TABLE "community" DISABLE KEYS */;
|
109
|
/*!40000 ALTER TABLE "community" ENABLE KEYS */;
|
110
|
|
111
|
--
|
112
|
-- Table structure for table "derived_class"
|
113
|
--
|
114
|
|
115
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
116
|
/*!40101 SET character_set_client = utf8 */;
|
117
|
CREATE TABLE "derived_class" (
|
118
|
"id" text NOT NULL,
|
119
|
PRIMARY KEY ("id"),
|
120
|
/*CONSTRAINT "fk_derived_class_base_class1" FOREIGN KEY ("id") REFERENCES "base_class" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
121
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
122
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
123
|
|
124
|
--
|
125
|
-- Dumping data for table "derived_class"
|
126
|
--
|
127
|
|
128
|
/*!40000 ALTER TABLE "derived_class" DISABLE KEYS */;
|
129
|
/*!40000 ALTER TABLE "derived_class" ENABLE KEYS */;
|
130
|
|
131
|
--
|
132
|
-- Table structure for table "event"
|
133
|
--
|
134
|
|
135
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
136
|
/*!40101 SET character_set_client = utf8 */;
|
137
|
CREATE TABLE "event" (
|
138
|
"id" text NOT NULL,
|
139
|
"parent" text DEFAULT NULL,
|
140
|
"name" text DEFAULT NULL,
|
141
|
"date_range" text DEFAULT NULL,
|
142
|
"place" text DEFAULT NULL,
|
143
|
"participants" text DEFAULT NULL,
|
144
|
PRIMARY KEY ("id"),
|
145
|
/*KEY "fk_event_place1_idx" ("place")*/CHECK (true),
|
146
|
/*KEY "fk_event1_idx" ("parent")*/CHECK (true),
|
147
|
/*KEY "fk_event_party_list1_idx" ("participants")*/CHECK (true),
|
148
|
/*CONSTRAINT "fk_event_party_list1" FOREIGN KEY ("participants") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
149
|
/*CONSTRAINT "fk_event1" FOREIGN KEY ("parent") REFERENCES "event" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
150
|
/*CONSTRAINT "fk_event_place1" FOREIGN KEY ("place") REFERENCES "place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
151
|
/*CONSTRAINT "fk_event_record1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
152
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"an action that occurs at a place and during a period of text/*time*/" ("DwC":http://rs.tdwg.org/dwc/terms/#Event)'*/;
|
153
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
154
|
|
155
|
--
|
156
|
-- Dumping data for table "event"
|
157
|
--
|
158
|
|
159
|
/*!40000 ALTER TABLE "event" DISABLE KEYS */;
|
160
|
/*!40000 ALTER TABLE "event" ENABLE KEYS */;
|
161
|
|
162
|
--
|
163
|
-- Table structure for table "geological_context"
|
164
|
--
|
165
|
|
166
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
167
|
/*!40101 SET character_set_client = utf8 */;
|
168
|
CREATE TABLE "geological_context" (
|
169
|
"id" text NOT NULL,
|
170
|
"name" text NOT NULL,
|
171
|
"info" hstore DEFAULT NULL,
|
172
|
PRIMARY KEY ("id"),
|
173
|
/*CONSTRAINT "fk_geological_context_record1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
174
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"information pertaining to a location within a geological context, such as stratigraphy" ("DwC":http://rs.tdwg.org/dwc/terms/#GeologicalContext)'*/;
|
175
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
176
|
|
177
|
--
|
178
|
-- Dumping data for table "geological_context"
|
179
|
--
|
180
|
|
181
|
/*!40000 ALTER TABLE "geological_context" DISABLE KEYS */;
|
182
|
/*!40000 ALTER TABLE "geological_context" ENABLE KEYS */;
|
183
|
|
184
|
--
|
185
|
-- Table structure for table "geopath"
|
186
|
--
|
187
|
|
188
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
189
|
/*!40101 SET character_set_client = utf8 */;
|
190
|
CREATE TABLE "geopath" (
|
191
|
"id" text NOT NULL,
|
192
|
"continent" text DEFAULT NULL,
|
193
|
"country" text DEFAULT NULL,
|
194
|
"state_province" text DEFAULT NULL,
|
195
|
"county" text DEFAULT NULL,
|
196
|
"municipality" text DEFAULT NULL,
|
197
|
"ranks" hstore DEFAULT NULL,
|
198
|
PRIMARY KEY ("id")
|
199
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A named region'*/;
|
200
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
201
|
|
202
|
--
|
203
|
-- Dumping data for table "geopath"
|
204
|
--
|
205
|
|
206
|
/*!40000 ALTER TABLE "geopath" DISABLE KEYS */;
|
207
|
/*!40000 ALTER TABLE "geopath" ENABLE KEYS */;
|
208
|
|
209
|
--
|
210
|
-- Table structure for table "geoplace"
|
211
|
--
|
212
|
|
213
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
214
|
/*!40101 SET character_set_client = utf8 */;
|
215
|
CREATE TABLE "geoplace" (
|
216
|
"id" text NOT NULL,
|
217
|
"latitude_deg" text NOT NULL,
|
218
|
"longitude_deg" text NOT NULL,
|
219
|
"footprint_geom_WKT" text NOT NULL DEFAULT 'point',
|
220
|
"official_name" text DEFAULT NULL,
|
221
|
PRIMARY KEY ("id"),
|
222
|
/*CONSTRAINT "fk_geoplace_place1" FOREIGN KEY ("id") REFERENCES "place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
223
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A numerically-defined point'*/;
|
224
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
225
|
|
226
|
--
|
227
|
-- Dumping data for table "geoplace"
|
228
|
--
|
229
|
|
230
|
/*!40000 ALTER TABLE "geoplace" DISABLE KEYS */;
|
231
|
/*!40000 ALTER TABLE "geoplace" ENABLE KEYS */;
|
232
|
|
233
|
--
|
234
|
-- Table structure for table "georeferencing"
|
235
|
--
|
236
|
|
237
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
238
|
/*!40101 SET character_set_client = utf8 */;
|
239
|
CREATE TABLE "georeferencing" (
|
240
|
"id" text NOT NULL,
|
241
|
"input_place" text NOT NULL,
|
242
|
"georeferenced_by" text DEFAULT NULL,
|
243
|
"geoplace" text DEFAULT NULL,
|
244
|
"info" hstore DEFAULT NULL,
|
245
|
PRIMARY KEY ("id"),
|
246
|
/*KEY "fk_georef_place1_idx" ("input_place")*/CHECK (true),
|
247
|
/*KEY "fk_georeferencing_party_list1_idx" ("georeferenced_by")*/CHECK (true),
|
248
|
/*KEY "fk_georeferencing_geoplace1_idx" ("geoplace")*/CHECK (true),
|
249
|
/*CONSTRAINT "fk_georeferencing_geoplace1" FOREIGN KEY ("geoplace") REFERENCES "geoplace" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
250
|
/*CONSTRAINT "fk_georeferencing_party_list1" FOREIGN KEY ("georeferenced_by") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
251
|
/*CONSTRAINT "fk_georef_place1" FOREIGN KEY ("input_place") REFERENCES "place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
252
|
/*CONSTRAINT "fk_geovalidation_record100" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
253
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='also stored GNRS results'*/;
|
254
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
255
|
|
256
|
--
|
257
|
-- Dumping data for table "georeferencing"
|
258
|
--
|
259
|
|
260
|
/*!40000 ALTER TABLE "georeferencing" DISABLE KEYS */;
|
261
|
/*!40000 ALTER TABLE "georeferencing" ENABLE KEYS */;
|
262
|
|
263
|
--
|
264
|
-- Table structure for table "geovalidatable_place"
|
265
|
--
|
266
|
|
267
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
268
|
/*!40101 SET character_set_client = utf8 */;
|
269
|
CREATE TABLE "geovalidatable_place" (
|
270
|
"id" text NOT NULL,
|
271
|
"parent_geoplace" text NOT NULL,
|
272
|
PRIMARY KEY ("id"),
|
273
|
/*KEY "fk_geovalidatable_place_geoplace1_idx" ("parent_geoplace")*/CHECK (true),
|
274
|
/*CONSTRAINT "fk_geovalidatable_place_geoplace1" FOREIGN KEY ("parent_geoplace") REFERENCES "geoplace" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
275
|
/*CONSTRAINT "fk_nested_geoplace_geoplace1" FOREIGN KEY ("id") REFERENCES "geoplace" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
276
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='stores only scrubbed geoplaces (GADM places, and distinct point coordinates that GNRS says should be located within them)'*/;
|
277
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
278
|
|
279
|
--
|
280
|
-- Dumping data for table "geovalidatable_place"
|
281
|
--
|
282
|
|
283
|
/*!40000 ALTER TABLE "geovalidatable_place" DISABLE KEYS */;
|
284
|
/*!40000 ALTER TABLE "geovalidatable_place" ENABLE KEYS */;
|
285
|
|
286
|
--
|
287
|
-- Table structure for table "geovalidation"
|
288
|
--
|
289
|
|
290
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
291
|
/*!40101 SET character_set_client = utf8 */;
|
292
|
CREATE TABLE "geovalidation" (
|
293
|
"id" text NOT NULL,
|
294
|
"input_geoplace" text NOT NULL,
|
295
|
"corrected_geoplace" text DEFAULT NULL,
|
296
|
"geovalid" integer NOT NULL,
|
297
|
"lat_long_domain_valid" integer NOT NULL,
|
298
|
"lat_long_in_place_ranks" hstore DEFAULT NULL,
|
299
|
PRIMARY KEY ("id"),
|
300
|
/*KEY "fk_geovalidation_geoplace1_idx" ("input_geoplace")*/CHECK (true),
|
301
|
/*KEY "fk_geovalidation_geoplace2_idx" ("corrected_geoplace")*/CHECK (true),
|
302
|
/*CONSTRAINT "fk_geovalidation_geoplace1" FOREIGN KEY ("input_geoplace") REFERENCES "geovalidatable_place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
303
|
/*CONSTRAINT "fk_geovalidation_geoplace2" FOREIGN KEY ("corrected_geoplace") REFERENCES "geovalidatable_place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
304
|
/*CONSTRAINT "fk_geovalidation_georeferencing1" FOREIGN KEY ("id") REFERENCES "georeferencing" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
305
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='The accuracy of the [[VegCore#Coordinates|Coordinates]], taking into account the [[VegCore#Placename|Placename]]'*/;
|
306
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
307
|
|
308
|
--
|
309
|
-- Dumping data for table "geovalidation"
|
310
|
--
|
311
|
|
312
|
/*!40000 ALTER TABLE "geovalidation" DISABLE KEYS */;
|
313
|
/*!40000 ALTER TABLE "geovalidation" ENABLE KEYS */;
|
314
|
|
315
|
--
|
316
|
-- Table structure for table "individual"
|
317
|
--
|
318
|
|
319
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
320
|
/*!40101 SET character_set_client = utf8 */;
|
321
|
CREATE TABLE "individual" (
|
322
|
"id" text NOT NULL,
|
323
|
"place" text NOT NULL,
|
324
|
"tag" text DEFAULT NULL,
|
325
|
"tag_history" hstore DEFAULT NULL,
|
326
|
PRIMARY KEY ("id"),
|
327
|
/*KEY "fk_individual_place1_idx" ("place")*/CHECK (true),
|
328
|
/*CONSTRAINT "fk_individual_record1" FOREIGN KEY ("id") REFERENCES "reobservable" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
329
|
/*CONSTRAINT "fk_individual_place1" FOREIGN KEY ("place") REFERENCES "place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
330
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A distinct biological organism'*/;
|
331
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
332
|
|
333
|
--
|
334
|
-- Dumping data for table "individual"
|
335
|
--
|
336
|
|
337
|
/*!40000 ALTER TABLE "individual" DISABLE KEYS */;
|
338
|
/*!40000 ALTER TABLE "individual" ENABLE KEYS */;
|
339
|
|
340
|
--
|
341
|
-- Table structure for table "individual_observation"
|
342
|
--
|
343
|
|
344
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
345
|
/*!40101 SET character_set_client = utf8 */;
|
346
|
CREATE TABLE "individual_observation" (
|
347
|
"id" text NOT NULL,
|
348
|
"individual" text DEFAULT NULL,
|
349
|
"code" text DEFAULT NULL,
|
350
|
"traits" hstore DEFAULT NULL,
|
351
|
PRIMARY KEY ("id"),
|
352
|
/*KEY "fk_individual_observation_individual1_idx" ("individual")*/CHECK (true),
|
353
|
/*CONSTRAINT "fk_individual_observation_individual1" FOREIGN KEY ("individual") REFERENCES "individual" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
354
|
/*CONSTRAINT "fk_individual_observation_taxon_occurrence1" FOREIGN KEY ("id") REFERENCES "taxon_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
355
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation of an [[VegCore#Individual|Individual]]'*/;
|
356
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
357
|
|
358
|
--
|
359
|
-- Dumping data for table "individual_observation"
|
360
|
--
|
361
|
|
362
|
/*!40000 ALTER TABLE "individual_observation" DISABLE KEYS */;
|
363
|
/*!40000 ALTER TABLE "individual_observation" ENABLE KEYS */;
|
364
|
|
365
|
--
|
366
|
-- Table structure for table "method"
|
367
|
--
|
368
|
|
369
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
370
|
/*!40101 SET character_set_client = utf8 */;
|
371
|
CREATE TABLE "method" (
|
372
|
"id" text NOT NULL,
|
373
|
"parent" text NOT NULL,
|
374
|
"info" hstore DEFAULT NULL,
|
375
|
PRIMARY KEY ("id"),
|
376
|
/*KEY "fk_method_method1_idx" ("parent")*/CHECK (true),
|
377
|
/*CONSTRAINT "fk_method_record1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
378
|
/*CONSTRAINT "fk_method_method1" FOREIGN KEY ("parent") REFERENCES "method" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
379
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"A specific method definition followed in the creation of the dataset. Each method links to a protocol and literature citation reference. A protocol may have many method or steps." ("VegX":http://wiki.tdwg.org/twiki/pub/Vegetation/WebHome/VegX_Schema_1.5.3_proposed.zip#/veg.xsd#/methods/method)'*/;
|
380
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
381
|
|
382
|
--
|
383
|
-- Dumping data for table "method"
|
384
|
--
|
385
|
|
386
|
/*!40000 ALTER TABLE "method" DISABLE KEYS */;
|
387
|
/*!40000 ALTER TABLE "method" ENABLE KEYS */;
|
388
|
|
389
|
--
|
390
|
-- Table structure for table "organization"
|
391
|
--
|
392
|
|
393
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
394
|
/*!40101 SET character_set_client = utf8 */;
|
395
|
CREATE TABLE "organization" (
|
396
|
"id" text NOT NULL,
|
397
|
"info" hstore DEFAULT NULL,
|
398
|
PRIMARY KEY ("id"),
|
399
|
/*CONSTRAINT "fk_organization_party1" FOREIGN KEY ("id") REFERENCES "party" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
400
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
401
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
402
|
|
403
|
--
|
404
|
-- Dumping data for table "organization"
|
405
|
--
|
406
|
|
407
|
/*!40000 ALTER TABLE "organization" DISABLE KEYS */;
|
408
|
/*!40000 ALTER TABLE "organization" ENABLE KEYS */;
|
409
|
|
410
|
--
|
411
|
-- Table structure for table "party"
|
412
|
--
|
413
|
|
414
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
415
|
/*!40101 SET character_set_client = utf8 */;
|
416
|
CREATE TABLE "party" (
|
417
|
"id" text NOT NULL,
|
418
|
"organization" text DEFAULT NULL,
|
419
|
"info" hstore DEFAULT NULL,
|
420
|
PRIMARY KEY ("id"),
|
421
|
/*KEY "fk_party_organization1_idx" ("organization")*/CHECK (true),
|
422
|
/*CONSTRAINT "fk_party_organization1" FOREIGN KEY ("organization") REFERENCES "organization" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
423
|
/*CONSTRAINT "fk_collection_source10" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
424
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
425
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
426
|
|
427
|
--
|
428
|
-- Dumping data for table "party"
|
429
|
--
|
430
|
|
431
|
/*!40000 ALTER TABLE "party" DISABLE KEYS */;
|
432
|
/*!40000 ALTER TABLE "party" ENABLE KEYS */;
|
433
|
|
434
|
--
|
435
|
-- Table structure for table "party_list"
|
436
|
--
|
437
|
|
438
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
439
|
/*!40101 SET character_set_client = utf8 */;
|
440
|
CREATE TABLE "party_list" (
|
441
|
"id" text NOT NULL,
|
442
|
"count" integer NOT NULL,
|
443
|
PRIMARY KEY ("id"),
|
444
|
/*CONSTRAINT "fk_collection_source100" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
445
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
446
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
447
|
|
448
|
--
|
449
|
-- Dumping data for table "party_list"
|
450
|
--
|
451
|
|
452
|
/*!40000 ALTER TABLE "party_list" DISABLE KEYS */;
|
453
|
/*!40000 ALTER TABLE "party_list" ENABLE KEYS */;
|
454
|
|
455
|
--
|
456
|
-- Table structure for table "party_list_entry"
|
457
|
--
|
458
|
|
459
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
460
|
/*!40101 SET character_set_client = utf8 */;
|
461
|
CREATE TABLE "party_list_entry" (
|
462
|
"id" text NOT NULL,
|
463
|
"entry" text NOT NULL,
|
464
|
"sort_order" integer DEFAULT NULL,
|
465
|
PRIMARY KEY ("id","entry"),
|
466
|
/*KEY "fk_party_list_has_party_party1_idx" ("entry")*/CHECK (true),
|
467
|
/*KEY "fk_party_list_has_party_party_list1_idx" ("id")*/CHECK (true),
|
468
|
/*CONSTRAINT "fk_party_list_has_party_party_list1" FOREIGN KEY ("id") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
469
|
/*CONSTRAINT "fk_party_list_has_party_party1" FOREIGN KEY ("entry") REFERENCES "party" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
470
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
471
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
472
|
|
473
|
--
|
474
|
-- Dumping data for table "party_list_entry"
|
475
|
--
|
476
|
|
477
|
/*!40000 ALTER TABLE "party_list_entry" DISABLE KEYS */;
|
478
|
/*!40000 ALTER TABLE "party_list_entry" ENABLE KEYS */;
|
479
|
|
480
|
--
|
481
|
-- Table structure for table "place"
|
482
|
--
|
483
|
|
484
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
485
|
/*!40101 SET character_set_client = utf8 */;
|
486
|
CREATE TABLE "place" (
|
487
|
"id" text NOT NULL,
|
488
|
"parent" text DEFAULT NULL,
|
489
|
"rank" text DEFAULT NULL,
|
490
|
"name" text DEFAULT NULL,
|
491
|
"geopath" text DEFAULT NULL,
|
492
|
"locality" text DEFAULT NULL,
|
493
|
"verbatim" hstore DEFAULT NULL /*COMMENT 'for verbatim coordinates, etc.'*/,
|
494
|
PRIMARY KEY ("id"),
|
495
|
/*KEY "fk_place1_idx" ("parent")*/CHECK (true),
|
496
|
/*KEY "fk_place_geopath1_idx" ("geopath")*/CHECK (true),
|
497
|
/*CONSTRAINT "fk_place1" FOREIGN KEY ("parent") REFERENCES "place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
498
|
/*CONSTRAINT "fk_place_geopath1" FOREIGN KEY ("geopath") REFERENCES "geopath" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
499
|
/*CONSTRAINT "fk_place_record1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
500
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"A spatial region" ("DwC":http://rs.tdwg.org/dwc/terms/#dcterms:Location) or point'*/;
|
501
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
502
|
|
503
|
--
|
504
|
-- Dumping data for table "place"
|
505
|
--
|
506
|
|
507
|
/*!40000 ALTER TABLE "place" DISABLE KEYS */;
|
508
|
/*!40000 ALTER TABLE "place" ENABLE KEYS */;
|
509
|
|
510
|
--
|
511
|
-- Table structure for table "place_observation"
|
512
|
--
|
513
|
|
514
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
515
|
/*!40101 SET character_set_client = utf8 */;
|
516
|
CREATE TABLE "place_observation" (
|
517
|
"id" text NOT NULL,
|
518
|
"place" text NOT NULL,
|
519
|
"elevation_m" double precision DEFAULT NULL,
|
520
|
"slope_incline_deg" double precision DEFAULT NULL,
|
521
|
"slope_direction_deg_N" double precision DEFAULT NULL,
|
522
|
"geological_context" text DEFAULT NULL,
|
523
|
"community" text DEFAULT NULL,
|
524
|
"observations" hstore DEFAULT NULL,
|
525
|
PRIMARY KEY ("id"),
|
526
|
/*KEY "fk_place_observation_place1_idx" ("place")*/CHECK (true),
|
527
|
/*KEY "fk_place_observation_geological_context1_idx" ("geological_context")*/CHECK (true),
|
528
|
/*KEY "fk_place_observation_community1_idx" ("community")*/CHECK (true),
|
529
|
/*CONSTRAINT "fk_place_observation_place1" FOREIGN KEY ("place") REFERENCES "place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
530
|
/*CONSTRAINT "fk_place_observation_geological_context1" FOREIGN KEY ("geological_context") REFERENCES "geological_context" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
531
|
/*CONSTRAINT "fk_place_observation_community1" FOREIGN KEY ("community") REFERENCES "community" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
532
|
/*CONSTRAINT "fk_place_observation_sampling_event1" FOREIGN KEY ("id") REFERENCES "sampling_event" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
533
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A sampling of a [[VegCore#Location|Location]]'*/;
|
534
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
535
|
|
536
|
--
|
537
|
-- Dumping data for table "place_observation"
|
538
|
--
|
539
|
|
540
|
/*!40000 ALTER TABLE "place_observation" DISABLE KEYS */;
|
541
|
/*!40000 ALTER TABLE "place_observation" ENABLE KEYS */;
|
542
|
|
543
|
--
|
544
|
-- Table structure for table "plot"
|
545
|
--
|
546
|
|
547
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
548
|
/*!40101 SET character_set_client = utf8 */;
|
549
|
CREATE TABLE "plot" (
|
550
|
"id" text NOT NULL,
|
551
|
"name" text DEFAULT NULL,
|
552
|
"area_m2" double precision DEFAULT NULL,
|
553
|
"shape" text DEFAULT NULL,
|
554
|
"length_m" text DEFAULT NULL,
|
555
|
"width_m" text DEFAULT NULL,
|
556
|
"azimuth_deg_N" text DEFAULT NULL,
|
557
|
"footprint_geom_WKT" text DEFAULT NULL,
|
558
|
"dimensions" hstore DEFAULT NULL,
|
559
|
PRIMARY KEY ("id"),
|
560
|
/*CONSTRAINT "fk_subplot_place1" FOREIGN KEY ("id") REFERENCES "place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
561
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
562
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
563
|
|
564
|
--
|
565
|
-- Dumping data for table "plot"
|
566
|
--
|
567
|
|
568
|
/*!40000 ALTER TABLE "plot" DISABLE KEYS */;
|
569
|
/*!40000 ALTER TABLE "plot" ENABLE KEYS */;
|
570
|
|
571
|
--
|
572
|
-- Table structure for table "project"
|
573
|
--
|
574
|
|
575
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
576
|
/*!40101 SET character_set_client = utf8 */;
|
577
|
CREATE TABLE "project" (
|
578
|
"id" text NOT NULL,
|
579
|
"name" text NOT NULL,
|
580
|
"info" hstore DEFAULT NULL,
|
581
|
PRIMARY KEY ("id"),
|
582
|
/*CONSTRAINT "fk_project_event1" FOREIGN KEY ("id") REFERENCES "event" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
583
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A "project established to collect vegetation plot data. Each plot originates as part of a project." ("VegBank":http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=project&entity=dba_tabledescription&where=where_tablename)'*/;
|
584
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
585
|
|
586
|
--
|
587
|
-- Dumping data for table "project"
|
588
|
--
|
589
|
|
590
|
/*!40000 ALTER TABLE "project" DISABLE KEYS */;
|
591
|
/*!40000 ALTER TABLE "project" ENABLE KEYS */;
|
592
|
|
593
|
--
|
594
|
-- Table structure for table "record"
|
595
|
--
|
596
|
|
597
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
598
|
/*!40101 SET character_set_client = utf8 */;
|
599
|
CREATE TABLE "record" (
|
600
|
"id" text NOT NULL,
|
601
|
"source" text NOT NULL,
|
602
|
"source_id_scope" text DEFAULT NULL,
|
603
|
"source_record_id" text DEFAULT NULL,
|
604
|
"info" hstore DEFAULT NULL,
|
605
|
PRIMARY KEY ("id"),
|
606
|
/*CONSTRAINT "record_unique" */UNIQUE ("source","source_id_scope","source_record_id"),
|
607
|
/*KEY "fk_record_source1_idx" ("source")*/CHECK (true),
|
608
|
/*CONSTRAINT "fk_record_source1" FOREIGN KEY ("source") REFERENCES "source" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
609
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
610
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
611
|
|
612
|
--
|
613
|
-- Dumping data for table "record"
|
614
|
--
|
615
|
|
616
|
/*!40000 ALTER TABLE "record" DISABLE KEYS */;
|
617
|
/*!40000 ALTER TABLE "record" ENABLE KEYS */;
|
618
|
|
619
|
--
|
620
|
-- Table structure for table "referenced_class"
|
621
|
--
|
622
|
|
623
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
624
|
/*!40101 SET character_set_client = utf8 */;
|
625
|
CREATE TABLE "referenced_class" (
|
626
|
"id" text NOT NULL,
|
627
|
PRIMARY KEY ("id"),
|
628
|
/*CONSTRAINT "fk_example_record10" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
629
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
630
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
631
|
|
632
|
--
|
633
|
-- Dumping data for table "referenced_class"
|
634
|
--
|
635
|
|
636
|
/*!40000 ALTER TABLE "referenced_class" DISABLE KEYS */;
|
637
|
/*!40000 ALTER TABLE "referenced_class" ENABLE KEYS */;
|
638
|
|
639
|
--
|
640
|
-- Table structure for table "relationship"
|
641
|
--
|
642
|
|
643
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
644
|
/*!40101 SET character_set_client = utf8 */;
|
645
|
CREATE TABLE "relationship" (
|
646
|
"id" text NOT NULL,
|
647
|
"record" text NOT NULL,
|
648
|
"related_record" text NOT NULL,
|
649
|
"info" hstore DEFAULT NULL,
|
650
|
PRIMARY KEY ("id"),
|
651
|
/*KEY "fk_relationship_record1_idx" ("record")*/CHECK (true),
|
652
|
/*KEY "fk_relationship_related_record_idx" ("related_record")*/CHECK (true),
|
653
|
/*CONSTRAINT "fk_relationship_record1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
654
|
/*CONSTRAINT "fk_relationship_record2" FOREIGN KEY ("record") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
655
|
/*CONSTRAINT "fk_relationship_related_record" FOREIGN KEY ("related_record") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
656
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"information pertaining to relationships between resources (instances of data records, such as Occurrences, Taxa, Locations, Events)" ("DwC":http://rs.tdwg.org/dwc/terms/#ResourceRelationship)'*/;
|
657
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
658
|
|
659
|
--
|
660
|
-- Dumping data for table "relationship"
|
661
|
--
|
662
|
|
663
|
/*!40000 ALTER TABLE "relationship" DISABLE KEYS */;
|
664
|
/*!40000 ALTER TABLE "relationship" ENABLE KEYS */;
|
665
|
|
666
|
--
|
667
|
-- Table structure for table "reobservable"
|
668
|
--
|
669
|
|
670
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
671
|
/*!40101 SET character_set_client = utf8 */;
|
672
|
CREATE TABLE "reobservable" (
|
673
|
"id" text NOT NULL,
|
674
|
"current_determination" text DEFAULT NULL,
|
675
|
"original_determination" text DEFAULT NULL,
|
676
|
PRIMARY KEY ("id"),
|
677
|
/*KEY "fk_taxon_occurrence_taxon_determination1_idx" ("original_determination")*/CHECK (true),
|
678
|
/*KEY "fk_taxon_occurrence_taxon_determination2_idx" ("current_determination")*/CHECK (true),
|
679
|
/*CONSTRAINT "fk_taxon_occurrence_taxon_determination1" FOREIGN KEY ("original_determination") REFERENCES "taxon_determination" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
680
|
/*CONSTRAINT "fk_taxon_occurrence_taxon_determination2" FOREIGN KEY ("current_determination") REFERENCES "taxon_determination" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
681
|
/*CONSTRAINT "fk_taxon_occurrence_event1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
682
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Any entity on which [[VegCore#TaxonDetermination|TaxonDetermination]]s can be made'*/;
|
683
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
684
|
|
685
|
--
|
686
|
-- Dumping data for table "reobservable"
|
687
|
--
|
688
|
|
689
|
/*!40000 ALTER TABLE "reobservable" DISABLE KEYS */;
|
690
|
/*!40000 ALTER TABLE "reobservable" ENABLE KEYS */;
|
691
|
|
692
|
--
|
693
|
-- Table structure for table "sampling_event"
|
694
|
--
|
695
|
|
696
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
697
|
/*!40101 SET character_set_client = utf8 */;
|
698
|
CREATE TABLE "sampling_event" (
|
699
|
"id" text NOT NULL,
|
700
|
"method" text DEFAULT NULL,
|
701
|
PRIMARY KEY ("id"),
|
702
|
/*KEY "fk_sampling_event_method1_idx" ("method")*/CHECK (true),
|
703
|
/*CONSTRAINT "fk_sampling_event_method1" FOREIGN KEY ("method") REFERENCES "method" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
704
|
/*CONSTRAINT "fk_project_event10" FOREIGN KEY ("id") REFERENCES "event" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
705
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
706
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
707
|
|
708
|
--
|
709
|
-- Dumping data for table "sampling_event"
|
710
|
--
|
711
|
|
712
|
/*!40000 ALTER TABLE "sampling_event" DISABLE KEYS */;
|
713
|
/*!40000 ALTER TABLE "sampling_event" ENABLE KEYS */;
|
714
|
|
715
|
--
|
716
|
-- Table structure for table "soil_observation"
|
717
|
--
|
718
|
|
719
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
720
|
/*!40101 SET character_set_client = utf8 */;
|
721
|
CREATE TABLE "soil_observation" (
|
722
|
"id" text NOT NULL,
|
723
|
"observations" hstore DEFAULT NULL,
|
724
|
PRIMARY KEY ("id"),
|
725
|
/*CONSTRAINT "fk_soil_observation_place_observation1" FOREIGN KEY ("id") REFERENCES "place_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
726
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A sampling of a [[VegCore#Location|Location]]''s soil'*/;
|
727
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
728
|
|
729
|
--
|
730
|
-- Dumping data for table "soil_observation"
|
731
|
--
|
732
|
|
733
|
/*!40000 ALTER TABLE "soil_observation" DISABLE KEYS */;
|
734
|
/*!40000 ALTER TABLE "soil_observation" ENABLE KEYS */;
|
735
|
|
736
|
--
|
737
|
-- Table structure for table "source"
|
738
|
--
|
739
|
|
740
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
741
|
/*!40101 SET character_set_client = utf8 */;
|
742
|
CREATE TABLE "source" (
|
743
|
"id" text NOT NULL,
|
744
|
"parent" text DEFAULT NULL,
|
745
|
"name" text NOT NULL,
|
746
|
"first_publisher" text DEFAULT NULL,
|
747
|
"owner" text DEFAULT NULL,
|
748
|
"info" hstore DEFAULT NULL,
|
749
|
PRIMARY KEY ("id"),
|
750
|
/*CONSTRAINT "source_unique" */UNIQUE ("parent","name"),
|
751
|
/*KEY "fk_source1_idx" ("parent")*/CHECK (true),
|
752
|
/*KEY "fk_source_party1_idx" ("owner")*/CHECK (true),
|
753
|
/*KEY "fk_source_party2_idx" ("first_publisher")*/CHECK (true),
|
754
|
/*CONSTRAINT "fk_source1" FOREIGN KEY ("parent") REFERENCES "source" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
755
|
/*CONSTRAINT "fk_source_party1" FOREIGN KEY ("owner") REFERENCES "party" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
756
|
/*CONSTRAINT "fk_source_party2" FOREIGN KEY ("first_publisher") REFERENCES "party" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
757
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='a "reference [...] cited within the database" ("VegBank":http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=reference&entity=dba_tabledescription&where=where_tablename)'*/;
|
758
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
759
|
|
760
|
--
|
761
|
-- Dumping data for table "source"
|
762
|
--
|
763
|
|
764
|
/*!40000 ALTER TABLE "source" DISABLE KEYS */;
|
765
|
/*!40000 ALTER TABLE "source" ENABLE KEYS */;
|
766
|
|
767
|
--
|
768
|
-- Table structure for table "specimen"
|
769
|
--
|
770
|
|
771
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
772
|
/*!40101 SET character_set_client = utf8 */;
|
773
|
CREATE TABLE "specimen" (
|
774
|
"id" text NOT NULL,
|
775
|
"individual" text DEFAULT NULL,
|
776
|
"code_in_individual" text DEFAULT NULL,
|
777
|
"collection_event" text DEFAULT NULL,
|
778
|
"orig_collection" text DEFAULT NULL,
|
779
|
"barcode" text DEFAULT NULL,
|
780
|
"accession_number" text DEFAULT NULL,
|
781
|
"specimenholder_institutions" text DEFAULT NULL,
|
782
|
"current_collection" text DEFAULT NULL,
|
783
|
"owner_collection" text DEFAULT NULL,
|
784
|
PRIMARY KEY ("id"),
|
785
|
/*CONSTRAINT "specimen_unique_in_individual" */UNIQUE ("individual","code_in_individual"),
|
786
|
/*CONSTRAINT "specimen_unique_by_collection_event" */UNIQUE ("collection_event"),
|
787
|
/*CONSTRAINT "specimen_unique_in_collection_by_barcode" */UNIQUE ("orig_collection","barcode"),
|
788
|
/*CONSTRAINT "specimen_unique_in_collection_by_accession_number" */UNIQUE ("orig_collection","accession_number"),
|
789
|
/*KEY "fk_specimen_collection1_idx" ("orig_collection")*/CHECK (true),
|
790
|
/*KEY "fk_specimen_taxon_observation1_idx" ("collection_event")*/CHECK (true),
|
791
|
/*KEY "fk_specimen_individual1_idx" ("individual")*/CHECK (true),
|
792
|
/*KEY "fk_specimen_collection2_idx" ("current_collection")*/CHECK (true),
|
793
|
/*KEY "fk_specimen_organization3_idx" ("owner_collection")*/CHECK (true),
|
794
|
/*KEY "fk_specimen_party_list1_idx" ("specimenholder_institutions")*/CHECK (true),
|
795
|
/*CONSTRAINT "fk_specimen_organization3" FOREIGN KEY ("owner_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
796
|
/*CONSTRAINT "fk_specimen_taxon_observation1" FOREIGN KEY ("collection_event") REFERENCES "taxon_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
797
|
/*CONSTRAINT "fk_specimen_individual1" FOREIGN KEY ("individual") REFERENCES "individual" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
798
|
/*CONSTRAINT "fk_specimen_collection2" FOREIGN KEY ("current_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
799
|
/*CONSTRAINT "fk_specimen_party_list1" FOREIGN KEY ("specimenholder_institutions") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
800
|
/*CONSTRAINT "fk_specimen_collection1" FOREIGN KEY ("orig_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
801
|
/*CONSTRAINT "fk_specimen_taxon_occurrence1" FOREIGN KEY ("id") REFERENCES "reobservable" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
802
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A "part of a plant" ("Wikipedia":http://en.wikipedia.org/wiki/Specimen) which was collected from it'*/;
|
803
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
804
|
|
805
|
--
|
806
|
-- Dumping data for table "specimen"
|
807
|
--
|
808
|
|
809
|
/*!40000 ALTER TABLE "specimen" DISABLE KEYS */;
|
810
|
/*!40000 ALTER TABLE "specimen" ENABLE KEYS */;
|
811
|
|
812
|
--
|
813
|
-- Table structure for table "specimen_observation"
|
814
|
--
|
815
|
|
816
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
817
|
/*!40101 SET character_set_client = utf8 */;
|
818
|
CREATE TABLE "specimen_observation" (
|
819
|
"id" text NOT NULL,
|
820
|
"specimen" text NOT NULL,
|
821
|
"description" text DEFAULT NULL,
|
822
|
"traits" hstore DEFAULT NULL,
|
823
|
PRIMARY KEY ("id"),
|
824
|
/*KEY "fk_specimen_observation_specimen1_idx" ("specimen")*/CHECK (true),
|
825
|
/*CONSTRAINT "fk_specimen_taxon_occurrence10" FOREIGN KEY ("id") REFERENCES "taxon_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
826
|
/*CONSTRAINT "fk_specimen_observation_specimen1" FOREIGN KEY ("specimen") REFERENCES "specimen" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
827
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
828
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
829
|
|
830
|
--
|
831
|
-- Dumping data for table "specimen_observation"
|
832
|
--
|
833
|
|
834
|
/*!40000 ALTER TABLE "specimen_observation" DISABLE KEYS */;
|
835
|
/*!40000 ALTER TABLE "specimen_observation" ENABLE KEYS */;
|
836
|
|
837
|
--
|
838
|
-- Table structure for table "stem"
|
839
|
--
|
840
|
|
841
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
842
|
/*!40101 SET character_set_client = utf8 */;
|
843
|
CREATE TABLE "stem" (
|
844
|
"id" text NOT NULL,
|
845
|
"individual" text DEFAULT NULL,
|
846
|
PRIMARY KEY ("id"),
|
847
|
/*KEY "fk_stem_individual1_idx" ("individual")*/CHECK (true),
|
848
|
/*CONSTRAINT "fk_stem_individual1" FOREIGN KEY ("individual") REFERENCES "individual" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
849
|
/*CONSTRAINT "fk_stem_individual2" FOREIGN KEY ("id") REFERENCES "individual" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
850
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An "individual tree stem" ("VegBank":http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&wparam=stemlocation&entity=dba_tabledescription&where=where_tablename)'*/;
|
851
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
852
|
|
853
|
--
|
854
|
-- Dumping data for table "stem"
|
855
|
--
|
856
|
|
857
|
/*!40000 ALTER TABLE "stem" DISABLE KEYS */;
|
858
|
/*!40000 ALTER TABLE "stem" ENABLE KEYS */;
|
859
|
|
860
|
--
|
861
|
-- Table structure for table "stem_observation"
|
862
|
--
|
863
|
|
864
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
865
|
/*!40101 SET character_set_client = utf8 */;
|
866
|
CREATE TABLE "stem_observation" (
|
867
|
"id" text NOT NULL,
|
868
|
"individual_observation" text DEFAULT NULL,
|
869
|
"stem" text DEFAULT NULL,
|
870
|
"traits" hstore DEFAULT NULL,
|
871
|
PRIMARY KEY ("id"),
|
872
|
/*CONSTRAINT "stem_observation_unique" */UNIQUE ("individual_observation","stem"),
|
873
|
/*KEY "fk_stem_observation_individual_observation1_idx" ("individual_observation")*/CHECK (true),
|
874
|
/*KEY "fk_stem_observation_stem1_idx" ("stem")*/CHECK (true),
|
875
|
/*CONSTRAINT "fk_stem_observation_stem1" FOREIGN KEY ("stem") REFERENCES "stem" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
876
|
/*CONSTRAINT "fk_stem_observation_individual_observation1" FOREIGN KEY ("individual_observation") REFERENCES "individual_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
877
|
/*CONSTRAINT "fk_stem_observation_individual_observation2" FOREIGN KEY ("id") REFERENCES "individual_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
878
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation of a [[VegCore#Stem|Stem]]'*/;
|
879
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
880
|
|
881
|
--
|
882
|
-- Dumping data for table "stem_observation"
|
883
|
--
|
884
|
|
885
|
/*!40000 ALTER TABLE "stem_observation" DISABLE KEYS */;
|
886
|
/*!40000 ALTER TABLE "stem_observation" ENABLE KEYS */;
|
887
|
|
888
|
--
|
889
|
-- Table structure for table "stratum"
|
890
|
--
|
891
|
|
892
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
893
|
/*!40101 SET character_set_client = utf8 */;
|
894
|
CREATE TABLE "stratum" (
|
895
|
"id" text NOT NULL,
|
896
|
"name" text NOT NULL,
|
897
|
"info" hstore DEFAULT NULL,
|
898
|
PRIMARY KEY ("id"),
|
899
|
/*CONSTRAINT "fk_place_path_record10" FOREIGN KEY ("id") REFERENCES "method" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
900
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
901
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
902
|
|
903
|
--
|
904
|
-- Dumping data for table "stratum"
|
905
|
--
|
906
|
|
907
|
/*!40000 ALTER TABLE "stratum" DISABLE KEYS */;
|
908
|
/*!40000 ALTER TABLE "stratum" ENABLE KEYS */;
|
909
|
|
910
|
--
|
911
|
-- Table structure for table "subplace"
|
912
|
--
|
913
|
|
914
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
915
|
/*!40101 SET character_set_client = utf8 */;
|
916
|
CREATE TABLE "subplace" (
|
917
|
"id" text NOT NULL,
|
918
|
"parent" text NOT NULL,
|
919
|
"x_m" double precision DEFAULT NULL,
|
920
|
"y_m" double precision DEFAULT NULL,
|
921
|
"coords" hstore DEFAULT NULL,
|
922
|
PRIMARY KEY ("id"),
|
923
|
/*KEY "fk_rel_place_place1_idx" ("parent")*/CHECK (true),
|
924
|
/*CONSTRAINT "fk_subplot_place2" FOREIGN KEY ("id") REFERENCES "place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
925
|
/*CONSTRAINT "fk_rel_place_place1" FOREIGN KEY ("parent") REFERENCES "place" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
926
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='stores plot elements such as subplots ("subplot, line, or any other subsample or subdivision of plot" ("SALVIAS":http://salvias.net/Documents/salvias_data_dictionary.html#Plot_data/subplot))'*/;
|
927
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
928
|
|
929
|
--
|
930
|
-- Dumping data for table "subplace"
|
931
|
--
|
932
|
|
933
|
/*!40000 ALTER TABLE "subplace" DISABLE KEYS */;
|
934
|
/*!40000 ALTER TABLE "subplace" ENABLE KEYS */;
|
935
|
|
936
|
--
|
937
|
-- Table structure for table "subplot"
|
938
|
--
|
939
|
|
940
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
941
|
/*!40101 SET character_set_client = utf8 */;
|
942
|
CREATE TABLE "subplot" (
|
943
|
"id" text NOT NULL,
|
944
|
"parent_plot" text NOT NULL,
|
945
|
PRIMARY KEY ("id"),
|
946
|
/*KEY "fk_subplot_plot2_idx" ("parent_plot")*/CHECK (true),
|
947
|
/*CONSTRAINT "fk_subplot_plot1" FOREIGN KEY ("id") REFERENCES "plot" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
948
|
/*CONSTRAINT "fk_subplot_plot2" FOREIGN KEY ("parent_plot") REFERENCES "plot" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
949
|
/*CONSTRAINT "fk_subplot_rel_place1" FOREIGN KEY ("id") REFERENCES "subplace" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
950
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
951
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
952
|
|
953
|
--
|
954
|
-- Dumping data for table "subplot"
|
955
|
--
|
956
|
|
957
|
/*!40000 ALTER TABLE "subplot" DISABLE KEYS */;
|
958
|
/*!40000 ALTER TABLE "subplot" ENABLE KEYS */;
|
959
|
|
960
|
--
|
961
|
-- Table structure for table "taxon_absence"
|
962
|
--
|
963
|
|
964
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
965
|
/*!40101 SET character_set_client = utf8 */;
|
966
|
CREATE TABLE "taxon_absence" (
|
967
|
"id" text NOT NULL,
|
968
|
PRIMARY KEY ("id"),
|
969
|
/*CONSTRAINT "fk_taxon_absence_taxon_determination1" FOREIGN KEY ("id") REFERENCES "taxon_determination" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
970
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation that a [[VegCore#Taxon|Taxon]]''s does _not_ exist in a place'*/;
|
971
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
972
|
|
973
|
--
|
974
|
-- Dumping data for table "taxon_absence"
|
975
|
--
|
976
|
|
977
|
/*!40000 ALTER TABLE "taxon_absence" DISABLE KEYS */;
|
978
|
/*!40000 ALTER TABLE "taxon_absence" ENABLE KEYS */;
|
979
|
|
980
|
--
|
981
|
-- Table structure for table "taxon_assertion"
|
982
|
--
|
983
|
|
984
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
985
|
/*!40101 SET character_set_client = utf8 */;
|
986
|
CREATE TABLE "taxon_assertion" (
|
987
|
"id" text NOT NULL,
|
988
|
"string" text NOT NULL /*COMMENT 'for parsed_taxon_assertion, this is the TNRS input name, not the concatenated matched name'*/,
|
989
|
"taxon" text DEFAULT NULL,
|
990
|
"cf_aff" text DEFAULT NULL,
|
991
|
"annotations" hstore DEFAULT NULL,
|
992
|
PRIMARY KEY ("id"),
|
993
|
/*KEY "fk_taxon_assertion_taxon_string1_idx" ("string")*/CHECK (true),
|
994
|
/*KEY "fk_taxon_assertion_taxon_name1_idx" ("taxon")*/CHECK (true),
|
995
|
/*CONSTRAINT "fk_qualified_taxon_record1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
996
|
/*CONSTRAINT "fk_taxon_assertion_taxon_string1" FOREIGN KEY ("string") REFERENCES "taxon_string" ("string") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
997
|
/*CONSTRAINT "fk_taxon_assertion_taxon_name1" FOREIGN KEY ("taxon") REFERENCES "taxon_name" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
998
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
999
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1000
|
|
1001
|
--
|
1002
|
-- Dumping data for table "taxon_assertion"
|
1003
|
--
|
1004
|
|
1005
|
/*!40000 ALTER TABLE "taxon_assertion" DISABLE KEYS */;
|
1006
|
/*!40000 ALTER TABLE "taxon_assertion" ENABLE KEYS */;
|
1007
|
|
1008
|
--
|
1009
|
-- Table structure for table "taxon_concept"
|
1010
|
--
|
1011
|
|
1012
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1013
|
/*!40101 SET character_set_client = utf8 */;
|
1014
|
CREATE TABLE "taxon_concept" (
|
1015
|
"id" text NOT NULL,
|
1016
|
"according_to" text NOT NULL,
|
1017
|
"parent" text DEFAULT NULL,
|
1018
|
"accepted_taxon_concept" text DEFAULT NULL,
|
1019
|
PRIMARY KEY ("id"),
|
1020
|
/*CONSTRAINT "taxon_concept_unique_name" */UNIQUE ("according_to"),
|
1021
|
/*KEY "fk_taxon_taxon1_idx" ("parent")*/CHECK (true),
|
1022
|
/*KEY "fk_taxon_concept_source1_idx" ("according_to")*/CHECK (true),
|
1023
|
/*KEY "fk_taxon_concept_taxon_concept1_idx" ("accepted_taxon_concept")*/CHECK (true),
|
1024
|
/*CONSTRAINT "fk_taxon_taxon1" FOREIGN KEY ("parent") REFERENCES "taxon_concept" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1025
|
/*CONSTRAINT "fk_taxon_concept_source1" FOREIGN KEY ("according_to") REFERENCES "source" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1026
|
/*CONSTRAINT "fk_taxon_concept_taxon_concept1" FOREIGN KEY ("accepted_taxon_concept") REFERENCES "taxon_concept" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1027
|
/*CONSTRAINT "fk_taxon_concept_taxon_name1" FOREIGN KEY ("id") REFERENCES "taxon_name" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
1028
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A [[VegCore#Taxon|Taxon]] described by a specific [[VegCore#Reference|Reference]]'*/;
|
1029
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1030
|
|
1031
|
--
|
1032
|
-- Dumping data for table "taxon_concept"
|
1033
|
--
|
1034
|
|
1035
|
/*!40000 ALTER TABLE "taxon_concept" DISABLE KEYS */;
|
1036
|
/*!40000 ALTER TABLE "taxon_concept" ENABLE KEYS */;
|
1037
|
|
1038
|
--
|
1039
|
-- Table structure for table "taxon_determination"
|
1040
|
--
|
1041
|
|
1042
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1043
|
/*!40101 SET character_set_client = utf8 */;
|
1044
|
CREATE TABLE "taxon_determination" (
|
1045
|
"id" text NOT NULL,
|
1046
|
"identified_by" text DEFAULT NULL,
|
1047
|
"taxon_assertion" text NOT NULL,
|
1048
|
"fit_info" hstore DEFAULT NULL,
|
1049
|
PRIMARY KEY ("id"),
|
1050
|
/*CONSTRAINT "taxon_determination_unique" */UNIQUE ("taxon_assertion","identified_by"),
|
1051
|
/*KEY "fk_taxon_occurrence_has_qualified_taxon1_idx" ("taxon_assertion")*/CHECK (true),
|
1052
|
/*KEY "fk_taxon_determination_party_list1_idx" ("identified_by")*/CHECK (true),
|
1053
|
/*CONSTRAINT "fk_taxon_occurrence_has_qualified_taxon1" FOREIGN KEY ("taxon_assertion") REFERENCES "taxon_assertion" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1054
|
/*CONSTRAINT "fk_taxon_determination_party_list1" FOREIGN KEY ("identified_by") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1055
|
/*CONSTRAINT "fk_taxon_determination_taxon_observation1" FOREIGN KEY ("id") REFERENCES "taxon_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
1056
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An assertion that a [[VegCore#TaxonOccurrence|TaxonOccurrence]] is a particular [[VegCore#Taxon|Taxon]]'*/;
|
1057
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1058
|
|
1059
|
--
|
1060
|
-- Dumping data for table "taxon_determination"
|
1061
|
--
|
1062
|
|
1063
|
/*!40000 ALTER TABLE "taxon_determination" DISABLE KEYS */;
|
1064
|
/*!40000 ALTER TABLE "taxon_determination" ENABLE KEYS */;
|
1065
|
|
1066
|
--
|
1067
|
-- Table structure for table "taxon_name"
|
1068
|
--
|
1069
|
|
1070
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1071
|
/*!40101 SET character_set_client = utf8 */;
|
1072
|
CREATE TABLE "taxon_name" (
|
1073
|
"id" text NOT NULL,
|
1074
|
"unique_name" text NOT NULL,
|
1075
|
"formal_name" text DEFAULT NULL,
|
1076
|
"taxon_name" text DEFAULT NULL,
|
1077
|
"author" text DEFAULT NULL,
|
1078
|
"common_name" text DEFAULT NULL,
|
1079
|
"rank" text DEFAULT NULL,
|
1080
|
"taxon_path" text DEFAULT NULL,
|
1081
|
PRIMARY KEY ("id"),
|
1082
|
/*KEY "fk_taxon_concept_taxon_string10_idx" ("unique_name")*/CHECK (true),
|
1083
|
/*KEY "fk_taxon_name_taxon_path1_idx" ("taxon_path")*/CHECK (true),
|
1084
|
/*CONSTRAINT "fk_taxon_record10" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1085
|
/*CONSTRAINT "fk_taxon_concept_taxon_string10" FOREIGN KEY ("unique_name") REFERENCES "taxon_string" ("string") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1086
|
/*CONSTRAINT "fk_taxon_name_taxon_path1" FOREIGN KEY ("taxon_path") REFERENCES "taxon_path" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
1087
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
1088
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1089
|
|
1090
|
--
|
1091
|
-- Dumping data for table "taxon_name"
|
1092
|
--
|
1093
|
|
1094
|
/*!40000 ALTER TABLE "taxon_name" DISABLE KEYS */;
|
1095
|
/*!40000 ALTER TABLE "taxon_name" ENABLE KEYS */;
|
1096
|
|
1097
|
--
|
1098
|
-- Table structure for table "taxon_observation"
|
1099
|
--
|
1100
|
|
1101
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1102
|
/*!40101 SET character_set_client = utf8 */;
|
1103
|
CREATE TABLE "taxon_observation" (
|
1104
|
"id" text NOT NULL,
|
1105
|
"collectors" text DEFAULT NULL,
|
1106
|
"collector_number" text DEFAULT NULL,
|
1107
|
"voucher" text DEFAULT NULL,
|
1108
|
"growth_form" text DEFAULT NULL,
|
1109
|
"cultivated" integer DEFAULT NULL,
|
1110
|
"traits" hstore DEFAULT NULL,
|
1111
|
PRIMARY KEY ("id"),
|
1112
|
/*KEY "fk_taxon_observation_specimen1_idx" ("voucher")*/CHECK (true),
|
1113
|
/*KEY "fk_taxon_observation_party_list1_idx" ("collectors")*/CHECK (true),
|
1114
|
/*CONSTRAINT "fk_taxon_observation_party_list1" FOREIGN KEY ("collectors") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1115
|
/*CONSTRAINT "fk_taxon_observation_sampling_event1" FOREIGN KEY ("id") REFERENCES "sampling_event" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1116
|
/*CONSTRAINT "fk_taxon_observation_specimen1" FOREIGN KEY ("voucher") REFERENCES "specimen" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
1117
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
1118
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1119
|
|
1120
|
--
|
1121
|
-- Dumping data for table "taxon_observation"
|
1122
|
--
|
1123
|
|
1124
|
/*!40000 ALTER TABLE "taxon_observation" DISABLE KEYS */;
|
1125
|
/*!40000 ALTER TABLE "taxon_observation" ENABLE KEYS */;
|
1126
|
|
1127
|
--
|
1128
|
-- Table structure for table "taxon_path"
|
1129
|
--
|
1130
|
|
1131
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1132
|
/*!40101 SET character_set_client = utf8 */;
|
1133
|
CREATE TABLE "taxon_path" (
|
1134
|
"id" text NOT NULL,
|
1135
|
"family" text DEFAULT NULL,
|
1136
|
"genus" text DEFAULT NULL,
|
1137
|
"specific_epithet" text DEFAULT NULL,
|
1138
|
"ranks" hstore DEFAULT NULL,
|
1139
|
PRIMARY KEY ("id")
|
1140
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"a group of one (or more) populations of organism(s), which a taxonomist adjudges to be a unit" ("Wikipedia":http://en.wikipedia.org/wiki/Taxon)'*/;
|
1141
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1142
|
|
1143
|
--
|
1144
|
-- Dumping data for table "taxon_path"
|
1145
|
--
|
1146
|
|
1147
|
/*!40000 ALTER TABLE "taxon_path" DISABLE KEYS */;
|
1148
|
/*!40000 ALTER TABLE "taxon_path" ENABLE KEYS */;
|
1149
|
|
1150
|
--
|
1151
|
-- Table structure for table "taxon_presence"
|
1152
|
--
|
1153
|
|
1154
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1155
|
/*!40101 SET character_set_client = utf8 */;
|
1156
|
CREATE TABLE "taxon_presence" (
|
1157
|
"id" text NOT NULL,
|
1158
|
"occurrence_status" text DEFAULT NULL,
|
1159
|
"traits" hstore DEFAULT NULL,
|
1160
|
PRIMARY KEY ("id"),
|
1161
|
/*CONSTRAINT "fk_taxon_presence_taxon_determination1" FOREIGN KEY ("id") REFERENCES "taxon_determination" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
1162
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation of just a [[VegCore#Taxon|Taxon]]''s _presence_'*/;
|
1163
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1164
|
|
1165
|
--
|
1166
|
-- Dumping data for table "taxon_presence"
|
1167
|
--
|
1168
|
|
1169
|
/*!40000 ALTER TABLE "taxon_presence" DISABLE KEYS */;
|
1170
|
/*!40000 ALTER TABLE "taxon_presence" ENABLE KEYS */;
|
1171
|
|
1172
|
--
|
1173
|
-- Table structure for table "taxon_scrub"
|
1174
|
--
|
1175
|
|
1176
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1177
|
/*!40101 SET character_set_client = utf8 */;
|
1178
|
CREATE TABLE "taxon_scrub" (
|
1179
|
"id" text NOT NULL,
|
1180
|
"input_string" text NOT NULL,
|
1181
|
"parsed_taxon_assertion" text NOT NULL,
|
1182
|
"matched_taxon_concept" text DEFAULT NULL,
|
1183
|
"match_score" float DEFAULT NULL,
|
1184
|
"match_info" hstore DEFAULT NULL,
|
1185
|
PRIMARY KEY ("id"),
|
1186
|
/*KEY "fk_parsed_taxon_assertion_taxon_name1_idx" ("matched_taxon_concept")*/CHECK (true),
|
1187
|
/*KEY "fk_taxon_scrub_taxon_assertion1_idx" ("parsed_taxon_assertion")*/CHECK (true),
|
1188
|
/*KEY "fk_taxon_scrub_taxon_string1_idx" ("input_string")*/CHECK (true),
|
1189
|
/*CONSTRAINT "fk_parsed_taxon_assertion_taxon_name1" FOREIGN KEY ("matched_taxon_concept") REFERENCES "taxon_concept" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1190
|
/*CONSTRAINT "fk_taxon_scrub_taxon_assertion1" FOREIGN KEY ("parsed_taxon_assertion") REFERENCES "taxon_assertion" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1191
|
/*CONSTRAINT "fk_taxon_scrub_taxon_string1" FOREIGN KEY ("input_string") REFERENCES "taxon_string" ("string") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
|
1192
|
/*CONSTRAINT "fk_taxon_scrub_record1" FOREIGN KEY ("id") REFERENCES "record" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
|
1193
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin*/;
|
1194
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1195
|
|
1196
|
--
|
1197
|
-- Dumping data for table "taxon_scrub"
|
1198
|
--
|
1199
|
|
1200
|
/*!40000 ALTER TABLE "taxon_scrub" DISABLE KEYS */;
|
1201
|
/*!40000 ALTER TABLE "taxon_scrub" ENABLE KEYS */;
|
1202
|
|
1203
|
--
|
1204
|
-- Table structure for table "taxon_string"
|
1205
|
--
|
1206
|
|
1207
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1208
|
/*!40101 SET character_set_client = utf8 */;
|
1209
|
CREATE TABLE "taxon_string" (
|
1210
|
"string" text NOT NULL,
|
1211
|
PRIMARY KEY ("string")
|
1212
|
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='to get the parsed_taxon_assertion (TNRS result) for a taxon_string, join using taxon_string.string<-taxon_assertion(string)::parsed_taxon_assertion[source=''TNRS.version''] (see wiki.vegpath.org/SQL_dotpaths)'*/;
|
1213
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1214
|
|
1215
|
--
|
1216
|
-- Dumping data for table "taxon_string"
|
1217
|
--
|
1218
|
|
1219
|
/*!40000 ALTER TABLE "taxon_string" DISABLE KEYS */;
|
1220
|
/*!40000 ALTER TABLE "taxon_string" ENABLE KEYS */;
|
1221
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
1222
|
|
1223
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
1224
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
1225
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
1226
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
1227
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
1228
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
1229
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
1230
|
|
1231
|
-- Dump completed
|