1
|
-- MySQL dump 10.13 Distrib 5.5.31, for debian-linux-gnu (x86_64)
|
2
|
--
|
3
|
-- Host: localhost Database: VegCore
|
4
|
-- ------------------------------------------------------
|
5
|
-- Server version 5.5.31-0ubuntu0.12.04.2
|
6
|
|
7
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
8
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
9
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
10
|
/*!40101 SET NAMES utf8 */;
|
11
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
12
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
13
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
14
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
15
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
16
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
17
|
|
18
|
--
|
19
|
-- Table structure for table `aggregate_observation`
|
20
|
--
|
21
|
|
22
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
23
|
/*!40101 SET character_set_client = utf8 */;
|
24
|
CREATE TABLE `aggregate_observation` (
|
25
|
`id` varbinary(767) NOT NULL,
|
26
|
`taxon_concept` varbinary(767) NOT NULL,
|
27
|
`traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
28
|
PRIMARY KEY (`id`),
|
29
|
KEY `fk_aggregate_observation_taxon_name1_idx` (`taxon_concept`),
|
30
|
CONSTRAINT `fk_aggregate_observation_taxon_occurrence1` FOREIGN KEY (`id`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
31
|
CONSTRAINT `fk_aggregate_observation_taxon_name1` FOREIGN KEY (`taxon_concept`) REFERENCES `taxon_concept` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
32
|
) 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)';
|
33
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
34
|
|
35
|
--
|
36
|
-- Dumping data for table `aggregate_observation`
|
37
|
--
|
38
|
|
39
|
/*!40000 ALTER TABLE `aggregate_observation` DISABLE KEYS */;
|
40
|
/*!40000 ALTER TABLE `aggregate_observation` ENABLE KEYS */;
|
41
|
|
42
|
--
|
43
|
-- Table structure for table `base_class`
|
44
|
--
|
45
|
|
46
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
47
|
/*!40101 SET character_set_client = utf8 */;
|
48
|
CREATE TABLE `base_class` (
|
49
|
`id` varbinary(767) NOT NULL,
|
50
|
`referenced_class` varbinary(767) NOT NULL,
|
51
|
PRIMARY KEY (`id`),
|
52
|
KEY `fk_base_class_referenced_class1_idx` (`referenced_class`),
|
53
|
CONSTRAINT `fk_base_class_referenced_class1` FOREIGN KEY (`referenced_class`) REFERENCES `referenced_class` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
54
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
55
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
56
|
|
57
|
--
|
58
|
-- Dumping data for table `base_class`
|
59
|
--
|
60
|
|
61
|
/*!40000 ALTER TABLE `base_class` DISABLE KEYS */;
|
62
|
/*!40000 ALTER TABLE `base_class` ENABLE KEYS */;
|
63
|
|
64
|
--
|
65
|
-- Table structure for table `collection`
|
66
|
--
|
67
|
|
68
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
69
|
/*!40101 SET character_set_client = utf8 */;
|
70
|
CREATE TABLE `collection` (
|
71
|
`id` varbinary(767) NOT NULL,
|
72
|
`institution` varbinary(767) NOT NULL,
|
73
|
`name` varbinary(767) NOT NULL,
|
74
|
PRIMARY KEY (`id`),
|
75
|
UNIQUE KEY `collection_unique` (`institution`,`name`),
|
76
|
KEY `fk_collection_organization1_idx` (`institution`),
|
77
|
KEY `fk_collection_source1_idx` (`id`),
|
78
|
CONSTRAINT `fk_collection_source1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
79
|
CONSTRAINT `fk_collection_organization1` FOREIGN KEY (`institution`) REFERENCES `organization` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
80
|
) 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)';
|
81
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
82
|
|
83
|
--
|
84
|
-- Dumping data for table `collection`
|
85
|
--
|
86
|
|
87
|
/*!40000 ALTER TABLE `collection` DISABLE KEYS */;
|
88
|
/*!40000 ALTER TABLE `collection` ENABLE KEYS */;
|
89
|
|
90
|
--
|
91
|
-- Table structure for table `community`
|
92
|
--
|
93
|
|
94
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
95
|
/*!40101 SET character_set_client = utf8 */;
|
96
|
CREATE TABLE `community` (
|
97
|
`id` varbinary(767) NOT NULL,
|
98
|
`name` varbinary(767) NOT NULL,
|
99
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
100
|
PRIMARY KEY (`id`),
|
101
|
CONSTRAINT `fk_community_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
102
|
) 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]])';
|
103
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
104
|
|
105
|
--
|
106
|
-- Dumping data for table `community`
|
107
|
--
|
108
|
|
109
|
/*!40000 ALTER TABLE `community` DISABLE KEYS */;
|
110
|
/*!40000 ALTER TABLE `community` ENABLE KEYS */;
|
111
|
|
112
|
--
|
113
|
-- Table structure for table `coordinates`
|
114
|
--
|
115
|
|
116
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
117
|
/*!40101 SET character_set_client = utf8 */;
|
118
|
CREATE TABLE `coordinates` (
|
119
|
`id` varbinary(767) NOT NULL,
|
120
|
`latitude_deg` varbinary(767) DEFAULT NULL,
|
121
|
`longitude_deg` varbinary(767) DEFAULT NULL,
|
122
|
PRIMARY KEY (`id`)
|
123
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A numerically-defined point';
|
124
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
125
|
|
126
|
--
|
127
|
-- Dumping data for table `coordinates`
|
128
|
--
|
129
|
|
130
|
/*!40000 ALTER TABLE `coordinates` DISABLE KEYS */;
|
131
|
/*!40000 ALTER TABLE `coordinates` ENABLE KEYS */;
|
132
|
|
133
|
--
|
134
|
-- Table structure for table `derived_class`
|
135
|
--
|
136
|
|
137
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
138
|
/*!40101 SET character_set_client = utf8 */;
|
139
|
CREATE TABLE `derived_class` (
|
140
|
`id` varbinary(767) NOT NULL,
|
141
|
PRIMARY KEY (`id`),
|
142
|
CONSTRAINT `fk_derived_class_base_class1` FOREIGN KEY (`id`) REFERENCES `base_class` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
143
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
144
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
145
|
|
146
|
--
|
147
|
-- Dumping data for table `derived_class`
|
148
|
--
|
149
|
|
150
|
/*!40000 ALTER TABLE `derived_class` DISABLE KEYS */;
|
151
|
/*!40000 ALTER TABLE `derived_class` ENABLE KEYS */;
|
152
|
|
153
|
--
|
154
|
-- Table structure for table `event`
|
155
|
--
|
156
|
|
157
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
158
|
/*!40101 SET character_set_client = utf8 */;
|
159
|
CREATE TABLE `event` (
|
160
|
`id` varbinary(767) NOT NULL,
|
161
|
`parent` varbinary(767) NOT NULL,
|
162
|
`name` varbinary(767) DEFAULT NULL,
|
163
|
`date_range` varbinary(767) DEFAULT NULL,
|
164
|
`place` varbinary(767) DEFAULT NULL,
|
165
|
`method` varbinary(767) DEFAULT NULL,
|
166
|
PRIMARY KEY (`id`),
|
167
|
KEY `fk_event_place1_idx` (`place`),
|
168
|
KEY `fk_event1_idx` (`parent`),
|
169
|
KEY `fk_event_method1_idx` (`method`),
|
170
|
CONSTRAINT `fk_event_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
171
|
CONSTRAINT `fk_event_place1` FOREIGN KEY (`place`) REFERENCES `place` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
172
|
CONSTRAINT `fk_event1` FOREIGN KEY (`parent`) REFERENCES `event` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
173
|
CONSTRAINT `fk_event_method1` FOREIGN KEY (`method`) REFERENCES `method` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
174
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"an action that occurs at a place and during a period of time" ("DwC":http://rs.tdwg.org/dwc/terms/#Event)';
|
175
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
176
|
|
177
|
--
|
178
|
-- Dumping data for table `event`
|
179
|
--
|
180
|
|
181
|
/*!40000 ALTER TABLE `event` DISABLE KEYS */;
|
182
|
/*!40000 ALTER TABLE `event` ENABLE KEYS */;
|
183
|
|
184
|
--
|
185
|
-- Table structure for table `event_participant`
|
186
|
--
|
187
|
|
188
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
189
|
/*!40101 SET character_set_client = utf8 */;
|
190
|
CREATE TABLE `event_participant` (
|
191
|
`event` varbinary(767) NOT NULL,
|
192
|
`party` varbinary(767) NOT NULL,
|
193
|
`sort_order` int(11) DEFAULT NULL,
|
194
|
PRIMARY KEY (`event`,`party`),
|
195
|
KEY `fk_event_has_party_party1_idx` (`party`),
|
196
|
KEY `fk_event_has_party_event1_idx` (`event`),
|
197
|
CONSTRAINT `fk_event_has_party_event1` FOREIGN KEY (`event`) REFERENCES `event` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
198
|
CONSTRAINT `fk_event_has_party_party1` FOREIGN KEY (`party`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
199
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
200
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
201
|
|
202
|
--
|
203
|
-- Dumping data for table `event_participant`
|
204
|
--
|
205
|
|
206
|
/*!40000 ALTER TABLE `event_participant` DISABLE KEYS */;
|
207
|
/*!40000 ALTER TABLE `event_participant` ENABLE KEYS */;
|
208
|
|
209
|
--
|
210
|
-- Table structure for table `geological_context`
|
211
|
--
|
212
|
|
213
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
214
|
/*!40101 SET character_set_client = utf8 */;
|
215
|
CREATE TABLE `geological_context` (
|
216
|
`id` varbinary(767) NOT NULL,
|
217
|
`name` varbinary(767) NOT NULL,
|
218
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
219
|
PRIMARY KEY (`id`),
|
220
|
CONSTRAINT `fk_geological_context_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
221
|
) 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)';
|
222
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
223
|
|
224
|
--
|
225
|
-- Dumping data for table `geological_context`
|
226
|
--
|
227
|
|
228
|
/*!40000 ALTER TABLE `geological_context` DISABLE KEYS */;
|
229
|
/*!40000 ALTER TABLE `geological_context` ENABLE KEYS */;
|
230
|
|
231
|
--
|
232
|
-- Table structure for table `geovalidation`
|
233
|
--
|
234
|
|
235
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
236
|
/*!40101 SET character_set_client = utf8 */;
|
237
|
CREATE TABLE `geovalidation` (
|
238
|
`id` varbinary(767) NOT NULL,
|
239
|
`geovalid` tinyint(1) NOT NULL,
|
240
|
`lat_long_domain_valid` tinyint(1) NOT NULL,
|
241
|
`lat_long_in_ranks` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
242
|
PRIMARY KEY (`id`),
|
243
|
CONSTRAINT `fk_geovalidation_validatable_place1` FOREIGN KEY (`id`) REFERENCES `validatable_place` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
244
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='The accuracy of the [[VegCore#Coordinates|Coordinates]], taking into account the [[VegCore#Placename|Placename]]';
|
245
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
246
|
|
247
|
--
|
248
|
-- Dumping data for table `geovalidation`
|
249
|
--
|
250
|
|
251
|
/*!40000 ALTER TABLE `geovalidation` DISABLE KEYS */;
|
252
|
/*!40000 ALTER TABLE `geovalidation` ENABLE KEYS */;
|
253
|
|
254
|
--
|
255
|
-- Table structure for table `individual`
|
256
|
--
|
257
|
|
258
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
259
|
/*!40101 SET character_set_client = utf8 */;
|
260
|
CREATE TABLE `individual` (
|
261
|
`id` varbinary(767) NOT NULL,
|
262
|
`tag` varbinary(767) DEFAULT NULL,
|
263
|
`tag_history` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
264
|
PRIMARY KEY (`id`),
|
265
|
CONSTRAINT `fk_individual_record1` FOREIGN KEY (`id`) REFERENCES `taxon_occurrence` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
266
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A distinct biological organism';
|
267
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
268
|
|
269
|
--
|
270
|
-- Dumping data for table `individual`
|
271
|
--
|
272
|
|
273
|
/*!40000 ALTER TABLE `individual` DISABLE KEYS */;
|
274
|
/*!40000 ALTER TABLE `individual` ENABLE KEYS */;
|
275
|
|
276
|
--
|
277
|
-- Table structure for table `individual_observation`
|
278
|
--
|
279
|
|
280
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
281
|
/*!40101 SET character_set_client = utf8 */;
|
282
|
CREATE TABLE `individual_observation` (
|
283
|
`id` varbinary(767) NOT NULL,
|
284
|
`individual` varbinary(767) DEFAULT NULL,
|
285
|
`code` varbinary(767) DEFAULT NULL,
|
286
|
`traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
287
|
PRIMARY KEY (`id`),
|
288
|
KEY `fk_individual_observation_individual1_idx` (`individual`),
|
289
|
CONSTRAINT `fk_individual_observation_taxon_occurrence1` FOREIGN KEY (`id`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
290
|
CONSTRAINT `fk_individual_observation_individual1` FOREIGN KEY (`individual`) REFERENCES `individual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
291
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation of an [[VegCore#Individual|Individual]]';
|
292
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
293
|
|
294
|
--
|
295
|
-- Dumping data for table `individual_observation`
|
296
|
--
|
297
|
|
298
|
/*!40000 ALTER TABLE `individual_observation` DISABLE KEYS */;
|
299
|
/*!40000 ALTER TABLE `individual_observation` ENABLE KEYS */;
|
300
|
|
301
|
--
|
302
|
-- Table structure for table `method`
|
303
|
--
|
304
|
|
305
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
306
|
/*!40101 SET character_set_client = utf8 */;
|
307
|
CREATE TABLE `method` (
|
308
|
`id` varbinary(767) NOT NULL,
|
309
|
`parent` varbinary(767) NOT NULL,
|
310
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
311
|
PRIMARY KEY (`id`),
|
312
|
KEY `fk_method_method1_idx` (`parent`),
|
313
|
CONSTRAINT `fk_method_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
314
|
CONSTRAINT `fk_method_method1` FOREIGN KEY (`parent`) REFERENCES `method` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
315
|
) 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)';
|
316
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
317
|
|
318
|
--
|
319
|
-- Dumping data for table `method`
|
320
|
--
|
321
|
|
322
|
/*!40000 ALTER TABLE `method` DISABLE KEYS */;
|
323
|
/*!40000 ALTER TABLE `method` ENABLE KEYS */;
|
324
|
|
325
|
--
|
326
|
-- Table structure for table `organization`
|
327
|
--
|
328
|
|
329
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
330
|
/*!40101 SET character_set_client = utf8 */;
|
331
|
CREATE TABLE `organization` (
|
332
|
`id` varbinary(767) NOT NULL,
|
333
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
334
|
PRIMARY KEY (`id`),
|
335
|
CONSTRAINT `fk_organization_party1` FOREIGN KEY (`id`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
336
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
337
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
338
|
|
339
|
--
|
340
|
-- Dumping data for table `organization`
|
341
|
--
|
342
|
|
343
|
/*!40000 ALTER TABLE `organization` DISABLE KEYS */;
|
344
|
/*!40000 ALTER TABLE `organization` ENABLE KEYS */;
|
345
|
|
346
|
--
|
347
|
-- Table structure for table `parsed_taxon_assertion`
|
348
|
--
|
349
|
|
350
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
351
|
/*!40101 SET character_set_client = utf8 */;
|
352
|
CREATE TABLE `parsed_taxon_assertion` (
|
353
|
`id` varbinary(767) NOT NULL,
|
354
|
`matched_taxon_concept` varbinary(767) DEFAULT NULL,
|
355
|
`match_score` float DEFAULT NULL,
|
356
|
`match_info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
357
|
PRIMARY KEY (`id`),
|
358
|
KEY `fk_parsed_taxon_assertion_taxon_name1_idx` (`matched_taxon_concept`),
|
359
|
CONSTRAINT `fk_matched_taxon_qualified_taxon10` FOREIGN KEY (`id`) REFERENCES `taxon_assertion` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
360
|
CONSTRAINT `fk_parsed_taxon_assertion_taxon_name1` FOREIGN KEY (`matched_taxon_concept`) REFERENCES `taxon_concept` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
361
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
362
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
363
|
|
364
|
--
|
365
|
-- Dumping data for table `parsed_taxon_assertion`
|
366
|
--
|
367
|
|
368
|
/*!40000 ALTER TABLE `parsed_taxon_assertion` DISABLE KEYS */;
|
369
|
/*!40000 ALTER TABLE `parsed_taxon_assertion` ENABLE KEYS */;
|
370
|
|
371
|
--
|
372
|
-- Table structure for table `party`
|
373
|
--
|
374
|
|
375
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
376
|
/*!40101 SET character_set_client = utf8 */;
|
377
|
CREATE TABLE `party` (
|
378
|
`id` varbinary(767) NOT NULL,
|
379
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
380
|
PRIMARY KEY (`id`),
|
381
|
CONSTRAINT `fk_collection_source10` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
382
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
383
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
384
|
|
385
|
--
|
386
|
-- Dumping data for table `party`
|
387
|
--
|
388
|
|
389
|
/*!40000 ALTER TABLE `party` DISABLE KEYS */;
|
390
|
/*!40000 ALTER TABLE `party` ENABLE KEYS */;
|
391
|
|
392
|
--
|
393
|
-- Table structure for table `place`
|
394
|
--
|
395
|
|
396
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
397
|
/*!40101 SET character_set_client = utf8 */;
|
398
|
CREATE TABLE `place` (
|
399
|
`id` varbinary(767) NOT NULL,
|
400
|
`parent` varbinary(767) NOT NULL,
|
401
|
`coordinates` varbinary(767) DEFAULT NULL,
|
402
|
`path` varbinary(767) DEFAULT NULL,
|
403
|
`locality` varbinary(767) DEFAULT NULL,
|
404
|
PRIMARY KEY (`id`),
|
405
|
KEY `fk_place_coordinates1_idx` (`coordinates`),
|
406
|
KEY `fk_place1_idx` (`parent`),
|
407
|
KEY `fk_place_place_path1_idx` (`path`),
|
408
|
CONSTRAINT `fk_place_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
409
|
CONSTRAINT `fk_place_coordinates1` FOREIGN KEY (`coordinates`) REFERENCES `coordinates` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
410
|
CONSTRAINT `fk_place1` FOREIGN KEY (`parent`) REFERENCES `place` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
411
|
CONSTRAINT `fk_place_place_path1` FOREIGN KEY (`path`) REFERENCES `place_path` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
412
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"A spatial region" ("DwC":http://rs.tdwg.org/dwc/terms/#dcterms:Location) or point';
|
413
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
414
|
|
415
|
--
|
416
|
-- Dumping data for table `place`
|
417
|
--
|
418
|
|
419
|
/*!40000 ALTER TABLE `place` DISABLE KEYS */;
|
420
|
/*!40000 ALTER TABLE `place` ENABLE KEYS */;
|
421
|
|
422
|
--
|
423
|
-- Table structure for table `place_observation`
|
424
|
--
|
425
|
|
426
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
427
|
/*!40101 SET character_set_client = utf8 */;
|
428
|
CREATE TABLE `place_observation` (
|
429
|
`id` varbinary(767) NOT NULL,
|
430
|
`place` varbinary(767) NOT NULL,
|
431
|
`elevation_m` double DEFAULT NULL,
|
432
|
`slope_incline_deg` double DEFAULT NULL,
|
433
|
`slope_direction_deg_N` double DEFAULT NULL,
|
434
|
`geological_context` varbinary(767) DEFAULT NULL,
|
435
|
`community` varbinary(767) DEFAULT NULL,
|
436
|
`observations` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
437
|
PRIMARY KEY (`id`),
|
438
|
KEY `fk_place_observation_place1_idx` (`place`),
|
439
|
KEY `fk_place_observation_geological_context1_idx` (`geological_context`),
|
440
|
KEY `fk_place_observation_community1_idx` (`community`),
|
441
|
KEY `fk_place_observation_event1_idx` (`id`),
|
442
|
CONSTRAINT `fk_place_observation_place1` FOREIGN KEY (`place`) REFERENCES `place` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
443
|
CONSTRAINT `fk_place_observation_geological_context1` FOREIGN KEY (`geological_context`) REFERENCES `geological_context` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
444
|
CONSTRAINT `fk_place_observation_community1` FOREIGN KEY (`community`) REFERENCES `community` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
445
|
CONSTRAINT `fk_place_observation_event1` FOREIGN KEY (`id`) REFERENCES `event` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
446
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A sampling of a [[VegCore#Location|Location]]';
|
447
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
448
|
|
449
|
--
|
450
|
-- Dumping data for table `place_observation`
|
451
|
--
|
452
|
|
453
|
/*!40000 ALTER TABLE `place_observation` DISABLE KEYS */;
|
454
|
/*!40000 ALTER TABLE `place_observation` ENABLE KEYS */;
|
455
|
|
456
|
--
|
457
|
-- Table structure for table `place_path`
|
458
|
--
|
459
|
|
460
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
461
|
/*!40101 SET character_set_client = utf8 */;
|
462
|
CREATE TABLE `place_path` (
|
463
|
`id` varbinary(767) NOT NULL,
|
464
|
`continent` varbinary(767) DEFAULT NULL,
|
465
|
`country` varbinary(767) DEFAULT NULL,
|
466
|
`state_province` varbinary(767) DEFAULT NULL,
|
467
|
`county` varbinary(767) DEFAULT NULL,
|
468
|
`municipality` varbinary(767) DEFAULT NULL,
|
469
|
`ranks` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
470
|
PRIMARY KEY (`id`)
|
471
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A named region';
|
472
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
473
|
|
474
|
--
|
475
|
-- Dumping data for table `place_path`
|
476
|
--
|
477
|
|
478
|
/*!40000 ALTER TABLE `place_path` DISABLE KEYS */;
|
479
|
/*!40000 ALTER TABLE `place_path` ENABLE KEYS */;
|
480
|
|
481
|
--
|
482
|
-- Table structure for table `plot`
|
483
|
--
|
484
|
|
485
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
486
|
/*!40101 SET character_set_client = utf8 */;
|
487
|
CREATE TABLE `plot` (
|
488
|
`id` varbinary(767) NOT NULL,
|
489
|
`name` varbinary(767) DEFAULT NULL,
|
490
|
`area_m2` double DEFAULT NULL,
|
491
|
`bounding_box` varbinary(767) DEFAULT NULL,
|
492
|
PRIMARY KEY (`id`),
|
493
|
CONSTRAINT `fk_subplot_place1` FOREIGN KEY (`id`) REFERENCES `place` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
494
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
495
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
496
|
|
497
|
--
|
498
|
-- Dumping data for table `plot`
|
499
|
--
|
500
|
|
501
|
/*!40000 ALTER TABLE `plot` DISABLE KEYS */;
|
502
|
/*!40000 ALTER TABLE `plot` ENABLE KEYS */;
|
503
|
|
504
|
--
|
505
|
-- Table structure for table `project`
|
506
|
--
|
507
|
|
508
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
509
|
/*!40101 SET character_set_client = utf8 */;
|
510
|
CREATE TABLE `project` (
|
511
|
`id` varbinary(767) NOT NULL,
|
512
|
`name` varbinary(767) NOT NULL,
|
513
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
514
|
PRIMARY KEY (`id`),
|
515
|
CONSTRAINT `fk_project_event1` FOREIGN KEY (`id`) REFERENCES `event` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
516
|
) 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)';
|
517
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
518
|
|
519
|
--
|
520
|
-- Dumping data for table `project`
|
521
|
--
|
522
|
|
523
|
/*!40000 ALTER TABLE `project` DISABLE KEYS */;
|
524
|
/*!40000 ALTER TABLE `project` ENABLE KEYS */;
|
525
|
|
526
|
--
|
527
|
-- Table structure for table `record`
|
528
|
--
|
529
|
|
530
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
531
|
/*!40101 SET character_set_client = utf8 */;
|
532
|
CREATE TABLE `record` (
|
533
|
`id` varbinary(767) NOT NULL,
|
534
|
`source` varbinary(767) NOT NULL,
|
535
|
`source_id_scope` varbinary(767) DEFAULT NULL,
|
536
|
`source_record_id` varbinary(767) DEFAULT NULL,
|
537
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
538
|
PRIMARY KEY (`id`),
|
539
|
UNIQUE KEY `record_unique` (`source`,`source_id_scope`,`source_record_id`),
|
540
|
KEY `fk_record_source1_idx` (`source`),
|
541
|
CONSTRAINT `fk_record_source1` FOREIGN KEY (`source`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
542
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
543
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
544
|
|
545
|
--
|
546
|
-- Dumping data for table `record`
|
547
|
--
|
548
|
|
549
|
/*!40000 ALTER TABLE `record` DISABLE KEYS */;
|
550
|
/*!40000 ALTER TABLE `record` ENABLE KEYS */;
|
551
|
|
552
|
--
|
553
|
-- Table structure for table `referenced_class`
|
554
|
--
|
555
|
|
556
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
557
|
/*!40101 SET character_set_client = utf8 */;
|
558
|
CREATE TABLE `referenced_class` (
|
559
|
`id` varbinary(767) NOT NULL,
|
560
|
PRIMARY KEY (`id`),
|
561
|
CONSTRAINT `fk_example_record10` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
562
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
563
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
564
|
|
565
|
--
|
566
|
-- Dumping data for table `referenced_class`
|
567
|
--
|
568
|
|
569
|
/*!40000 ALTER TABLE `referenced_class` DISABLE KEYS */;
|
570
|
/*!40000 ALTER TABLE `referenced_class` ENABLE KEYS */;
|
571
|
|
572
|
--
|
573
|
-- Table structure for table `relationship`
|
574
|
--
|
575
|
|
576
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
577
|
/*!40101 SET character_set_client = utf8 */;
|
578
|
CREATE TABLE `relationship` (
|
579
|
`id` varbinary(767) NOT NULL,
|
580
|
`record` varbinary(767) NOT NULL,
|
581
|
`related_record` varbinary(767) NOT NULL,
|
582
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
583
|
PRIMARY KEY (`id`),
|
584
|
KEY `fk_relationship_record1_idx` (`record`),
|
585
|
KEY `fk_relationship_related_record_idx` (`related_record`),
|
586
|
CONSTRAINT `fk_relationship_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
587
|
CONSTRAINT `fk_relationship_record2` FOREIGN KEY (`record`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
588
|
CONSTRAINT `fk_relationship_related_record` FOREIGN KEY (`related_record`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
589
|
) 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)';
|
590
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
591
|
|
592
|
--
|
593
|
-- Dumping data for table `relationship`
|
594
|
--
|
595
|
|
596
|
/*!40000 ALTER TABLE `relationship` DISABLE KEYS */;
|
597
|
/*!40000 ALTER TABLE `relationship` ENABLE KEYS */;
|
598
|
|
599
|
--
|
600
|
-- Table structure for table `soil_observation`
|
601
|
--
|
602
|
|
603
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
604
|
/*!40101 SET character_set_client = utf8 */;
|
605
|
CREATE TABLE `soil_observation` (
|
606
|
`id` varbinary(767) NOT NULL,
|
607
|
`observations` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
608
|
PRIMARY KEY (`id`),
|
609
|
CONSTRAINT `fk_soil_observation_place_observation1` FOREIGN KEY (`id`) REFERENCES `place_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
610
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A sampling of a [[VegCore#Location|Location]]''s soil';
|
611
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
612
|
|
613
|
--
|
614
|
-- Dumping data for table `soil_observation`
|
615
|
--
|
616
|
|
617
|
/*!40000 ALTER TABLE `soil_observation` DISABLE KEYS */;
|
618
|
/*!40000 ALTER TABLE `soil_observation` ENABLE KEYS */;
|
619
|
|
620
|
--
|
621
|
-- Table structure for table `source`
|
622
|
--
|
623
|
|
624
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
625
|
/*!40101 SET character_set_client = utf8 */;
|
626
|
CREATE TABLE `source` (
|
627
|
`id` varbinary(767) NOT NULL,
|
628
|
`parent` varbinary(767) NOT NULL,
|
629
|
`name` varbinary(767) NOT NULL,
|
630
|
`first_publisher` varbinary(767) DEFAULT NULL,
|
631
|
`owner` varbinary(767) DEFAULT NULL,
|
632
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
633
|
PRIMARY KEY (`id`),
|
634
|
UNIQUE KEY `source_unique` (`parent`,`name`),
|
635
|
KEY `fk_source1_idx` (`parent`),
|
636
|
KEY `fk_source_party1_idx` (`owner`),
|
637
|
KEY `fk_source_party2_idx` (`first_publisher`),
|
638
|
CONSTRAINT `fk_source1` FOREIGN KEY (`parent`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
639
|
CONSTRAINT `fk_source_party1` FOREIGN KEY (`owner`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
640
|
CONSTRAINT `fk_source_party2` FOREIGN KEY (`first_publisher`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
641
|
) 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)';
|
642
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
643
|
|
644
|
--
|
645
|
-- Dumping data for table `source`
|
646
|
--
|
647
|
|
648
|
/*!40000 ALTER TABLE `source` DISABLE KEYS */;
|
649
|
/*!40000 ALTER TABLE `source` ENABLE KEYS */;
|
650
|
|
651
|
--
|
652
|
-- Table structure for table `specimen`
|
653
|
--
|
654
|
|
655
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
656
|
/*!40101 SET character_set_client = utf8 */;
|
657
|
CREATE TABLE `specimen` (
|
658
|
`id` varbinary(767) NOT NULL,
|
659
|
`individual` varbinary(767) DEFAULT NULL,
|
660
|
`code_in_individual` varbinary(767) DEFAULT NULL,
|
661
|
`collection_event` varbinary(767) DEFAULT NULL,
|
662
|
`orig_collection` varbinary(767) DEFAULT NULL,
|
663
|
`barcode` varbinary(767) DEFAULT NULL,
|
664
|
`accession_number` varbinary(767) DEFAULT NULL,
|
665
|
`current_collection` varbinary(767) DEFAULT NULL,
|
666
|
`owner_collection` varbinary(767) DEFAULT NULL,
|
667
|
PRIMARY KEY (`id`),
|
668
|
UNIQUE KEY `specimen_unique_in_individual` (`individual`,`code_in_individual`),
|
669
|
UNIQUE KEY `specimen_unique_by_collection_event` (`collection_event`),
|
670
|
UNIQUE KEY `specimen_unique_in_collection_by_barcode` (`orig_collection`,`barcode`),
|
671
|
UNIQUE KEY `specimen_unique_in_collection_by_accession_number` (`orig_collection`,`accession_number`),
|
672
|
KEY `fk_specimen_collection1_idx` (`orig_collection`),
|
673
|
KEY `fk_specimen_taxon_observation1_idx` (`collection_event`),
|
674
|
KEY `fk_specimen_individual1_idx` (`individual`),
|
675
|
KEY `fk_specimen_collection2_idx` (`current_collection`),
|
676
|
KEY `fk_specimen_organization3_idx` (`owner_collection`),
|
677
|
CONSTRAINT `fk_specimen_taxon_occurrence1` FOREIGN KEY (`id`) REFERENCES `taxon_occurrence` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
678
|
CONSTRAINT `fk_specimen_collection1` FOREIGN KEY (`orig_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
679
|
CONSTRAINT `fk_specimen_organization3` FOREIGN KEY (`owner_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
680
|
CONSTRAINT `fk_specimen_taxon_observation1` FOREIGN KEY (`collection_event`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
681
|
CONSTRAINT `fk_specimen_individual1` FOREIGN KEY (`individual`) REFERENCES `individual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
682
|
CONSTRAINT `fk_specimen_collection2` FOREIGN KEY (`current_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
683
|
) 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';
|
684
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
685
|
|
686
|
--
|
687
|
-- Dumping data for table `specimen`
|
688
|
--
|
689
|
|
690
|
/*!40000 ALTER TABLE `specimen` DISABLE KEYS */;
|
691
|
/*!40000 ALTER TABLE `specimen` ENABLE KEYS */;
|
692
|
|
693
|
--
|
694
|
-- Table structure for table `specimen_observation`
|
695
|
--
|
696
|
|
697
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
698
|
/*!40101 SET character_set_client = utf8 */;
|
699
|
CREATE TABLE `specimen_observation` (
|
700
|
`id` varbinary(767) NOT NULL,
|
701
|
`specimen` varbinary(767) NOT NULL,
|
702
|
`traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
703
|
PRIMARY KEY (`id`),
|
704
|
KEY `fk_specimen_observation_specimen1_idx` (`specimen`),
|
705
|
CONSTRAINT `fk_specimen_taxon_occurrence10` FOREIGN KEY (`id`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
706
|
CONSTRAINT `fk_specimen_observation_specimen1` FOREIGN KEY (`specimen`) REFERENCES `specimen` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
707
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
708
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
709
|
|
710
|
--
|
711
|
-- Dumping data for table `specimen_observation`
|
712
|
--
|
713
|
|
714
|
/*!40000 ALTER TABLE `specimen_observation` DISABLE KEYS */;
|
715
|
/*!40000 ALTER TABLE `specimen_observation` ENABLE KEYS */;
|
716
|
|
717
|
--
|
718
|
-- Table structure for table `specimenholder_institution`
|
719
|
--
|
720
|
|
721
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
722
|
/*!40101 SET character_set_client = utf8 */;
|
723
|
CREATE TABLE `specimenholder_institution` (
|
724
|
`specimen` varbinary(767) NOT NULL,
|
725
|
`institution` varbinary(767) NOT NULL,
|
726
|
`sort_order` int(11) DEFAULT NULL,
|
727
|
PRIMARY KEY (`specimen`,`institution`),
|
728
|
KEY `fk_specimen_has_organization_organization1_idx` (`institution`),
|
729
|
KEY `fk_specimen_has_organization_specimen1_idx` (`specimen`),
|
730
|
CONSTRAINT `fk_specimen_has_organization_specimen1` FOREIGN KEY (`specimen`) REFERENCES `specimen` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
731
|
CONSTRAINT `fk_specimen_has_organization_organization1` FOREIGN KEY (`institution`) REFERENCES `organization` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
732
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
733
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
734
|
|
735
|
--
|
736
|
-- Dumping data for table `specimenholder_institution`
|
737
|
--
|
738
|
|
739
|
/*!40000 ALTER TABLE `specimenholder_institution` DISABLE KEYS */;
|
740
|
/*!40000 ALTER TABLE `specimenholder_institution` ENABLE KEYS */;
|
741
|
|
742
|
--
|
743
|
-- Table structure for table `stem`
|
744
|
--
|
745
|
|
746
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
747
|
/*!40101 SET character_set_client = utf8 */;
|
748
|
CREATE TABLE `stem` (
|
749
|
`id` varbinary(767) NOT NULL,
|
750
|
`individual` varbinary(767) NOT NULL,
|
751
|
PRIMARY KEY (`id`),
|
752
|
KEY `fk_stem_individual1_idx` (`individual`),
|
753
|
CONSTRAINT `fk_stem_individual1` FOREIGN KEY (`individual`) REFERENCES `individual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
754
|
CONSTRAINT `fk_stem_individual2` FOREIGN KEY (`id`) REFERENCES `individual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
755
|
) 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)';
|
756
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
757
|
|
758
|
--
|
759
|
-- Dumping data for table `stem`
|
760
|
--
|
761
|
|
762
|
/*!40000 ALTER TABLE `stem` DISABLE KEYS */;
|
763
|
/*!40000 ALTER TABLE `stem` ENABLE KEYS */;
|
764
|
|
765
|
--
|
766
|
-- Table structure for table `stem_observation`
|
767
|
--
|
768
|
|
769
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
770
|
/*!40101 SET character_set_client = utf8 */;
|
771
|
CREATE TABLE `stem_observation` (
|
772
|
`id` varbinary(767) NOT NULL,
|
773
|
`individual_observation` varbinary(767) NOT NULL,
|
774
|
`stem` varbinary(767) DEFAULT NULL,
|
775
|
`traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
776
|
PRIMARY KEY (`id`),
|
777
|
UNIQUE KEY `stem_observation_unique` (`individual_observation`,`stem`),
|
778
|
KEY `fk_stem_observation_individual_observation1_idx` (`individual_observation`),
|
779
|
KEY `fk_stem_observation_stem1_idx` (`stem`),
|
780
|
CONSTRAINT `fk_stem_observation_individual_observation1` FOREIGN KEY (`individual_observation`) REFERENCES `individual_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
781
|
CONSTRAINT `fk_stem_observation_stem1` FOREIGN KEY (`stem`) REFERENCES `stem` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
782
|
CONSTRAINT `fk_stem_observation_individual_observation2` FOREIGN KEY (`id`) REFERENCES `individual_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
783
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation of a [[VegCore#Stem|Stem]]';
|
784
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
785
|
|
786
|
--
|
787
|
-- Dumping data for table `stem_observation`
|
788
|
--
|
789
|
|
790
|
/*!40000 ALTER TABLE `stem_observation` DISABLE KEYS */;
|
791
|
/*!40000 ALTER TABLE `stem_observation` ENABLE KEYS */;
|
792
|
|
793
|
--
|
794
|
-- Table structure for table `stratum`
|
795
|
--
|
796
|
|
797
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
798
|
/*!40101 SET character_set_client = utf8 */;
|
799
|
CREATE TABLE `stratum` (
|
800
|
`id` varbinary(767) NOT NULL,
|
801
|
`name` varbinary(767) NOT NULL,
|
802
|
`info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
803
|
PRIMARY KEY (`id`),
|
804
|
CONSTRAINT `fk_place_path_record10` FOREIGN KEY (`id`) REFERENCES `method` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
805
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
806
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
807
|
|
808
|
--
|
809
|
-- Dumping data for table `stratum`
|
810
|
--
|
811
|
|
812
|
/*!40000 ALTER TABLE `stratum` DISABLE KEYS */;
|
813
|
/*!40000 ALTER TABLE `stratum` ENABLE KEYS */;
|
814
|
|
815
|
--
|
816
|
-- Table structure for table `subplot`
|
817
|
--
|
818
|
|
819
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
820
|
/*!40101 SET character_set_client = utf8 */;
|
821
|
CREATE TABLE `subplot` (
|
822
|
`id` varbinary(767) NOT NULL,
|
823
|
`x_m` double DEFAULT NULL,
|
824
|
`y_m` double DEFAULT NULL,
|
825
|
PRIMARY KEY (`id`),
|
826
|
CONSTRAINT `fk_subplot_plot1` FOREIGN KEY (`id`) REFERENCES `plot` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
827
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"subplot, line, or any other subsample or subdivision of plot" ("SALVIAS":http://salvias.net/Documents/salvias_data_dictionary.html#Plot_data/subplot)';
|
828
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
829
|
|
830
|
--
|
831
|
-- Dumping data for table `subplot`
|
832
|
--
|
833
|
|
834
|
/*!40000 ALTER TABLE `subplot` DISABLE KEYS */;
|
835
|
/*!40000 ALTER TABLE `subplot` ENABLE KEYS */;
|
836
|
|
837
|
--
|
838
|
-- Table structure for table `taxon_assertion`
|
839
|
--
|
840
|
|
841
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
842
|
/*!40101 SET character_set_client = utf8 */;
|
843
|
CREATE TABLE `taxon_assertion` (
|
844
|
`id` varbinary(767) NOT NULL,
|
845
|
`string` varbinary(767) NOT NULL COMMENT 'for parsed_taxon_assertion, this is the TNRS input name, not the concatenated matched name',
|
846
|
`taxon` varbinary(767) DEFAULT NULL,
|
847
|
`cf_aff` varbinary(767) DEFAULT NULL,
|
848
|
`annotations` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
849
|
PRIMARY KEY (`id`),
|
850
|
KEY `fk_taxon_assertion_taxon_string1_idx` (`string`),
|
851
|
KEY `fk_taxon_assertion_taxon_name1_idx` (`taxon`),
|
852
|
CONSTRAINT `fk_qualified_taxon_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
853
|
CONSTRAINT `fk_taxon_assertion_taxon_string1` FOREIGN KEY (`string`) REFERENCES `taxon_string` (`string`) ON DELETE CASCADE ON UPDATE CASCADE,
|
854
|
CONSTRAINT `fk_taxon_assertion_taxon_name1` FOREIGN KEY (`taxon`) REFERENCES `taxon_name` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
855
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
856
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
857
|
|
858
|
--
|
859
|
-- Dumping data for table `taxon_assertion`
|
860
|
--
|
861
|
|
862
|
/*!40000 ALTER TABLE `taxon_assertion` DISABLE KEYS */;
|
863
|
/*!40000 ALTER TABLE `taxon_assertion` ENABLE KEYS */;
|
864
|
|
865
|
--
|
866
|
-- Table structure for table `taxon_concept`
|
867
|
--
|
868
|
|
869
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
870
|
/*!40101 SET character_set_client = utf8 */;
|
871
|
CREATE TABLE `taxon_concept` (
|
872
|
`id` varbinary(767) NOT NULL,
|
873
|
`according_to` varbinary(767) NOT NULL,
|
874
|
`parent` varbinary(767) NOT NULL,
|
875
|
`accepted_taxon_concept` varbinary(767) DEFAULT NULL,
|
876
|
PRIMARY KEY (`id`),
|
877
|
UNIQUE KEY `taxon_concept_unique_name` (`according_to`),
|
878
|
KEY `fk_taxon_taxon1_idx` (`parent`),
|
879
|
KEY `fk_taxon_concept_source1_idx` (`according_to`),
|
880
|
KEY `fk_taxon_concept_taxon_concept1_idx` (`accepted_taxon_concept`),
|
881
|
CONSTRAINT `fk_taxon_taxon1` FOREIGN KEY (`parent`) REFERENCES `taxon_concept` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
882
|
CONSTRAINT `fk_taxon_concept_source1` FOREIGN KEY (`according_to`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
883
|
CONSTRAINT `fk_taxon_concept_taxon_concept1` FOREIGN KEY (`accepted_taxon_concept`) REFERENCES `taxon_concept` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
884
|
CONSTRAINT `fk_taxon_concept_taxon_name1` FOREIGN KEY (`id`) REFERENCES `taxon_name` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
885
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A [[VegCore#Taxon|Taxon]] described by a specific [[VegCore#Reference|Reference]]';
|
886
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
887
|
|
888
|
--
|
889
|
-- Dumping data for table `taxon_concept`
|
890
|
--
|
891
|
|
892
|
/*!40000 ALTER TABLE `taxon_concept` DISABLE KEYS */;
|
893
|
/*!40000 ALTER TABLE `taxon_concept` ENABLE KEYS */;
|
894
|
|
895
|
--
|
896
|
-- Table structure for table `taxon_determination`
|
897
|
--
|
898
|
|
899
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
900
|
/*!40101 SET character_set_client = utf8 */;
|
901
|
CREATE TABLE `taxon_determination` (
|
902
|
`id` varbinary(767) NOT NULL,
|
903
|
`taxon_assertion` varbinary(767) NOT NULL,
|
904
|
`identified_by` varbinary(767) DEFAULT NULL,
|
905
|
`fit_info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
906
|
PRIMARY KEY (`id`),
|
907
|
UNIQUE KEY `taxon_determination_unique` (`taxon_assertion`,`identified_by`),
|
908
|
KEY `fk_taxon_occurrence_has_qualified_taxon1_idx` (`taxon_assertion`),
|
909
|
KEY `fk_taxon_determination_party1_idx` (`identified_by`),
|
910
|
CONSTRAINT `fk_taxon_occurrence_has_qualified_taxon1` FOREIGN KEY (`taxon_assertion`) REFERENCES `taxon_assertion` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
911
|
CONSTRAINT `fk_taxon_determination_record1` FOREIGN KEY (`id`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
912
|
CONSTRAINT `fk_taxon_determination_party1` FOREIGN KEY (`identified_by`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
913
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An assertion that a [[VegCore#TaxonOccurrence|TaxonOccurrence]] is a particular [[VegCore#Taxon|Taxon]]';
|
914
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
915
|
|
916
|
--
|
917
|
-- Dumping data for table `taxon_determination`
|
918
|
--
|
919
|
|
920
|
/*!40000 ALTER TABLE `taxon_determination` DISABLE KEYS */;
|
921
|
/*!40000 ALTER TABLE `taxon_determination` ENABLE KEYS */;
|
922
|
|
923
|
--
|
924
|
-- Table structure for table `taxon_name`
|
925
|
--
|
926
|
|
927
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
928
|
/*!40101 SET character_set_client = utf8 */;
|
929
|
CREATE TABLE `taxon_name` (
|
930
|
`id` varbinary(767) NOT NULL,
|
931
|
`unique_name` varbinary(767) NOT NULL,
|
932
|
`formal_name` varbinary(767) DEFAULT NULL,
|
933
|
`taxon_name` varbinary(767) DEFAULT NULL,
|
934
|
`author` varbinary(767) DEFAULT NULL,
|
935
|
`common_name` varbinary(767) DEFAULT NULL,
|
936
|
`rank` varbinary(767) DEFAULT NULL,
|
937
|
PRIMARY KEY (`id`),
|
938
|
KEY `fk_taxon_concept_taxon_string10_idx` (`unique_name`),
|
939
|
CONSTRAINT `fk_taxon_record10` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
940
|
CONSTRAINT `fk_taxon_concept_taxon_string10` FOREIGN KEY (`unique_name`) REFERENCES `taxon_string` (`string`) ON DELETE CASCADE ON UPDATE CASCADE
|
941
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
942
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
943
|
|
944
|
--
|
945
|
-- Dumping data for table `taxon_name`
|
946
|
--
|
947
|
|
948
|
/*!40000 ALTER TABLE `taxon_name` DISABLE KEYS */;
|
949
|
/*!40000 ALTER TABLE `taxon_name` ENABLE KEYS */;
|
950
|
|
951
|
--
|
952
|
-- Table structure for table `taxon_observation`
|
953
|
--
|
954
|
|
955
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
956
|
/*!40101 SET character_set_client = utf8 */;
|
957
|
CREATE TABLE `taxon_observation` (
|
958
|
`id` varbinary(767) NOT NULL,
|
959
|
`taxon_occurrence` varbinary(767) NOT NULL,
|
960
|
`collector` varbinary(767) DEFAULT NULL,
|
961
|
`collector_number` varbinary(767) DEFAULT NULL,
|
962
|
`voucher` varbinary(767) DEFAULT NULL,
|
963
|
`growth_form` varbinary(767) DEFAULT NULL,
|
964
|
`cultivated` tinyint(1) DEFAULT NULL,
|
965
|
`traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
966
|
PRIMARY KEY (`id`),
|
967
|
KEY `fk_taxon_observation_taxon_occurrence2_idx` (`taxon_occurrence`),
|
968
|
KEY `fk_taxon_observation_specimen1_idx` (`voucher`),
|
969
|
KEY `fk_taxon_observation_party1_idx` (`collector`),
|
970
|
CONSTRAINT `fk_taxon_observation_event1` FOREIGN KEY (`id`) REFERENCES `event` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
971
|
CONSTRAINT `fk_taxon_observation_taxon_occurrence2` FOREIGN KEY (`taxon_occurrence`) REFERENCES `taxon_occurrence` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
972
|
CONSTRAINT `fk_taxon_observation_specimen1` FOREIGN KEY (`voucher`) REFERENCES `specimen` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
973
|
CONSTRAINT `fk_taxon_observation_party1` FOREIGN KEY (`collector`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
974
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
975
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
976
|
|
977
|
--
|
978
|
-- Dumping data for table `taxon_observation`
|
979
|
--
|
980
|
|
981
|
/*!40000 ALTER TABLE `taxon_observation` DISABLE KEYS */;
|
982
|
/*!40000 ALTER TABLE `taxon_observation` ENABLE KEYS */;
|
983
|
|
984
|
--
|
985
|
-- Table structure for table `taxon_occurrence`
|
986
|
--
|
987
|
|
988
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
989
|
/*!40101 SET character_set_client = utf8 */;
|
990
|
CREATE TABLE `taxon_occurrence` (
|
991
|
`id` varbinary(767) NOT NULL,
|
992
|
`current_determination` varbinary(767) DEFAULT NULL,
|
993
|
`original_determination` varbinary(767) DEFAULT NULL,
|
994
|
PRIMARY KEY (`id`),
|
995
|
KEY `fk_taxon_occurrence_taxon_determination1_idx` (`original_determination`),
|
996
|
KEY `fk_taxon_occurrence_taxon_determination2_idx` (`current_determination`),
|
997
|
CONSTRAINT `fk_taxon_occurrence_taxon_determination1` FOREIGN KEY (`original_determination`) REFERENCES `taxon_determination` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
998
|
CONSTRAINT `fk_taxon_occurrence_taxon_determination2` FOREIGN KEY (`current_determination`) REFERENCES `taxon_determination` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
999
|
CONSTRAINT `fk_taxon_occurrence_event1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
1000
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Any entity on which [[VegCore#TaxonDetermination|TaxonDetermination]]s can be made';
|
1001
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1002
|
|
1003
|
--
|
1004
|
-- Dumping data for table `taxon_occurrence`
|
1005
|
--
|
1006
|
|
1007
|
/*!40000 ALTER TABLE `taxon_occurrence` DISABLE KEYS */;
|
1008
|
/*!40000 ALTER TABLE `taxon_occurrence` ENABLE KEYS */;
|
1009
|
|
1010
|
--
|
1011
|
-- Table structure for table `taxon_path`
|
1012
|
--
|
1013
|
|
1014
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1015
|
/*!40101 SET character_set_client = utf8 */;
|
1016
|
CREATE TABLE `taxon_path` (
|
1017
|
`id` varbinary(767) NOT NULL,
|
1018
|
`family` varbinary(767) DEFAULT NULL,
|
1019
|
`genus` varbinary(767) DEFAULT NULL,
|
1020
|
`specific_epithet` varbinary(767) DEFAULT NULL,
|
1021
|
`ranks` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
1022
|
PRIMARY KEY (`id`),
|
1023
|
CONSTRAINT `fk_taxon_path_taxon_name1` FOREIGN KEY (`id`) REFERENCES `taxon_name` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
1024
|
) 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)';
|
1025
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1026
|
|
1027
|
--
|
1028
|
-- Dumping data for table `taxon_path`
|
1029
|
--
|
1030
|
|
1031
|
/*!40000 ALTER TABLE `taxon_path` DISABLE KEYS */;
|
1032
|
/*!40000 ALTER TABLE `taxon_path` ENABLE KEYS */;
|
1033
|
|
1034
|
--
|
1035
|
-- Table structure for table `taxon_presence`
|
1036
|
--
|
1037
|
|
1038
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1039
|
/*!40101 SET character_set_client = utf8 */;
|
1040
|
CREATE TABLE `taxon_presence` (
|
1041
|
`id` varbinary(767) NOT NULL,
|
1042
|
`taxon_concept` varbinary(767) NOT NULL,
|
1043
|
`traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
|
1044
|
PRIMARY KEY (`id`),
|
1045
|
KEY `fk_taxon_presence_taxon_name1_idx` (`taxon_concept`),
|
1046
|
CONSTRAINT `fk_taxon_observation_taxon_occurrence1` FOREIGN KEY (`id`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
1047
|
CONSTRAINT `fk_taxon_presence_taxon_name1` FOREIGN KEY (`taxon_concept`) REFERENCES `taxon_concept` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
1048
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation of just a [[VegCore#Taxon|Taxon]]''s _presence_';
|
1049
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1050
|
|
1051
|
--
|
1052
|
-- Dumping data for table `taxon_presence`
|
1053
|
--
|
1054
|
|
1055
|
/*!40000 ALTER TABLE `taxon_presence` DISABLE KEYS */;
|
1056
|
/*!40000 ALTER TABLE `taxon_presence` ENABLE KEYS */;
|
1057
|
|
1058
|
--
|
1059
|
-- Table structure for table `taxon_string`
|
1060
|
--
|
1061
|
|
1062
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1063
|
/*!40101 SET character_set_client = utf8 */;
|
1064
|
CREATE TABLE `taxon_string` (
|
1065
|
`string` varbinary(767) NOT NULL,
|
1066
|
PRIMARY KEY (`string`)
|
1067
|
) 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)';
|
1068
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1069
|
|
1070
|
--
|
1071
|
-- Dumping data for table `taxon_string`
|
1072
|
--
|
1073
|
|
1074
|
/*!40000 ALTER TABLE `taxon_string` DISABLE KEYS */;
|
1075
|
/*!40000 ALTER TABLE `taxon_string` ENABLE KEYS */;
|
1076
|
|
1077
|
--
|
1078
|
-- Table structure for table `validatable_place`
|
1079
|
--
|
1080
|
|
1081
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1082
|
/*!40101 SET character_set_client = utf8 */;
|
1083
|
CREATE TABLE `validatable_place` (
|
1084
|
`id` varbinary(767) NOT NULL,
|
1085
|
`coordinates` varbinary(767) NOT NULL,
|
1086
|
`path` varbinary(767) NOT NULL,
|
1087
|
PRIMARY KEY (`id`),
|
1088
|
UNIQUE KEY `validatable_place_unique` (`path`,`coordinates`),
|
1089
|
KEY `fk_geovalidation_place_path1_idx` (`path`),
|
1090
|
KEY `fk_geovalidation_coordinates1_idx` (`coordinates`),
|
1091
|
CONSTRAINT `fk_geovalidation_place_path1` FOREIGN KEY (`path`) REFERENCES `place_path` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
1092
|
CONSTRAINT `fk_geovalidation_coordinates1` FOREIGN KEY (`coordinates`) REFERENCES `coordinates` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
1093
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
1094
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
1095
|
|
1096
|
--
|
1097
|
-- Dumping data for table `validatable_place`
|
1098
|
--
|
1099
|
|
1100
|
/*!40000 ALTER TABLE `validatable_place` DISABLE KEYS */;
|
1101
|
/*!40000 ALTER TABLE `validatable_place` ENABLE KEYS */;
|
1102
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
1103
|
|
1104
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
1105
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
1106
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
1107
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
1108
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
1109
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
1110
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
1111
|
|
1112
|
-- Dump completed
|