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