Project

General

Profile

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_source1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
76
  CONSTRAINT `fk_collection_organization1` FOREIGN KEY (`institution`) REFERENCES `organization` (`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_event_party_list1` FOREIGN KEY (`participants`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
147
  CONSTRAINT `fk_event1` FOREIGN KEY (`parent`) REFERENCES `event` (`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 `geocoords`
162
--
163

    
164
/*!40101 SET @saved_cs_client     = @@character_set_client */;
165
/*!40101 SET character_set_client = utf8 */;
166
CREATE TABLE `geocoords` (
167
  `id` varbinary(767) NOT NULL,
168
  `latitude_deg` varbinary(767) NOT NULL,
169
  `longitude_deg` varbinary(767) NOT NULL,
170
  PRIMARY KEY (`id`),
171
  KEY `geocoords_unique` (`latitude_deg`,`longitude_deg`)
172
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A numerically-defined point';
173
/*!40101 SET character_set_client = @saved_cs_client */;
174

    
175
--
176
-- Dumping data for table `geocoords`
177
--
178

    
179
/*!40000 ALTER TABLE `geocoords` DISABLE KEYS */;
180
/*!40000 ALTER TABLE `geocoords` ENABLE KEYS */;
181

    
182
--
183
-- Table structure for table `geological_context`
184
--
185

    
186
/*!40101 SET @saved_cs_client     = @@character_set_client */;
187
/*!40101 SET character_set_client = utf8 */;
188
CREATE TABLE `geological_context` (
189
  `id` varbinary(767) NOT NULL,
190
  `name` varbinary(767) NOT NULL,
191
  `info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
192
  PRIMARY KEY (`id`),
193
  CONSTRAINT `fk_geological_context_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
194
) 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)';
195
/*!40101 SET character_set_client = @saved_cs_client */;
196

    
197
--
198
-- Dumping data for table `geological_context`
199
--
200

    
201
/*!40000 ALTER TABLE `geological_context` DISABLE KEYS */;
202
/*!40000 ALTER TABLE `geological_context` ENABLE KEYS */;
203

    
204
--
205
-- Table structure for table `geopath`
206
--
207

    
208
/*!40101 SET @saved_cs_client     = @@character_set_client */;
209
/*!40101 SET character_set_client = utf8 */;
210
CREATE TABLE `geopath` (
211
  `id` varbinary(767) NOT NULL,
212
  `continent` varbinary(767) DEFAULT NULL,
213
  `country` varbinary(767) NOT NULL,
214
  `state_province` varbinary(767) DEFAULT NULL,
215
  `county` varbinary(767) DEFAULT NULL,
216
  `municipality` varbinary(767) DEFAULT NULL,
217
  `ranks` set('hstore') COLLATE utf8_bin DEFAULT NULL,
218
  PRIMARY KEY (`id`)
219
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A named region';
220
/*!40101 SET character_set_client = @saved_cs_client */;
221

    
222
--
223
-- Dumping data for table `geopath`
224
--
225

    
226
/*!40000 ALTER TABLE `geopath` DISABLE KEYS */;
227
/*!40000 ALTER TABLE `geopath` ENABLE KEYS */;
228

    
229
--
230
-- Table structure for table `geopath_scrub`
231
--
232

    
233
/*!40101 SET @saved_cs_client     = @@character_set_client */;
234
/*!40101 SET character_set_client = utf8 */;
235
CREATE TABLE `geopath_scrub` (
236
  `id` varbinary(767) NOT NULL,
237
  `input_geopath` varbinary(767) NOT NULL,
238
  `scrubbed_geopath` varbinary(767) DEFAULT NULL,
239
  PRIMARY KEY (`id`),
240
  KEY `fk_geopath_scrub_geopath1_idx` (`input_geopath`),
241
  KEY `fk_geopath_scrub_geopath2_idx` (`scrubbed_geopath`),
242
  CONSTRAINT `fk_geovalidation_record10` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
243
  CONSTRAINT `fk_geopath_scrub_geopath1` FOREIGN KEY (`input_geopath`) REFERENCES `geopath` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
244
  CONSTRAINT `fk_geopath_scrub_geopath2` FOREIGN KEY (`scrubbed_geopath`) REFERENCES `geopath` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
245
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
246
/*!40101 SET character_set_client = @saved_cs_client */;
247

    
248
--
249
-- Dumping data for table `geopath_scrub`
250
--
251

    
252
/*!40000 ALTER TABLE `geopath_scrub` DISABLE KEYS */;
253
/*!40000 ALTER TABLE `geopath_scrub` ENABLE KEYS */;
254

    
255
--
256
-- Table structure for table `georeferencing`
257
--
258

    
259
/*!40101 SET @saved_cs_client     = @@character_set_client */;
260
/*!40101 SET character_set_client = utf8 */;
261
CREATE TABLE `georeferencing` (
262
  `id` varbinary(767) NOT NULL,
263
  `input_place` varbinary(767) NOT NULL,
264
  `georeferenced_by` varbinary(767) DEFAULT NULL,
265
  `georeferenced_place` varbinary(767) DEFAULT NULL,
266
  PRIMARY KEY (`id`),
267
  KEY `fk_georef_place1_idx` (`input_place`),
268
  KEY `fk_georeferencing_geoplace1_idx` (`georeferenced_place`),
269
  KEY `fk_georeferencing_party_list1_idx` (`georeferenced_by`),
270
  CONSTRAINT `fk_georeferencing_geoplace1` FOREIGN KEY (`georeferenced_place`) REFERENCES `geoplace` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
271
  CONSTRAINT `fk_georeferencing_party_list1` FOREIGN KEY (`georeferenced_by`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
272
  CONSTRAINT `fk_georef_place1` FOREIGN KEY (`input_place`) REFERENCES `place` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
273
  CONSTRAINT `fk_geovalidation_record100` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
274
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
275
/*!40101 SET character_set_client = @saved_cs_client */;
276

    
277
--
278
-- Dumping data for table `georeferencing`
279
--
280

    
281
/*!40000 ALTER TABLE `georeferencing` DISABLE KEYS */;
282
/*!40000 ALTER TABLE `georeferencing` ENABLE KEYS */;
283

    
284
--
285
-- Table structure for table `geovalidation`
286
--
287

    
288
/*!40101 SET @saved_cs_client     = @@character_set_client */;
289
/*!40101 SET character_set_client = utf8 */;
290
CREATE TABLE `geovalidation` (
291
  `id` varbinary(767) NOT NULL,
292
  `input_geoplace` varbinary(767) NOT NULL,
293
  `scrubbed_geoplace` varbinary(767) DEFAULT NULL,
294
  `geovalid` tinyint(1) NOT NULL,
295
  `lat_long_domain_valid` tinyint(1) NOT NULL,
296
  `lat_long_in_place_ranks` set('hstore') COLLATE utf8_bin DEFAULT NULL,
297
  PRIMARY KEY (`id`),
298
  KEY `fk_geovalidation_geoplace1_idx` (`input_geoplace`),
299
  KEY `fk_geovalidation_geoplace2_idx` (`scrubbed_geoplace`),
300
  CONSTRAINT `fk_geovalidation_geoplace1` FOREIGN KEY (`input_geoplace`) REFERENCES `validatable_geoplace` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
301
  CONSTRAINT `fk_geovalidation_geoplace2` FOREIGN KEY (`scrubbed_geoplace`) REFERENCES `validatable_geoplace` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
302
  CONSTRAINT `fk_geovalidation_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
303
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='The accuracy of the [[VegCore#Coordinates|Coordinates]], taking into account the [[VegCore#Placename|Placename]]';
304
/*!40101 SET character_set_client = @saved_cs_client */;
305

    
306
--
307
-- Dumping data for table `geovalidation`
308
--
309

    
310
/*!40000 ALTER TABLE `geovalidation` DISABLE KEYS */;
311
/*!40000 ALTER TABLE `geovalidation` ENABLE KEYS */;
312

    
313
--
314
-- Table structure for table `individual`
315
--
316

    
317
/*!40101 SET @saved_cs_client     = @@character_set_client */;
318
/*!40101 SET character_set_client = utf8 */;
319
CREATE TABLE `individual` (
320
  `id` varbinary(767) NOT NULL,
321
  `tag` varbinary(767) DEFAULT NULL,
322
  `tag_history` set('hstore') COLLATE utf8_bin DEFAULT NULL,
323
  PRIMARY KEY (`id`),
324
  CONSTRAINT `fk_individual_record1` FOREIGN KEY (`id`) REFERENCES `reobservable` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
325
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A distinct biological organism';
326
/*!40101 SET character_set_client = @saved_cs_client */;
327

    
328
--
329
-- Dumping data for table `individual`
330
--
331

    
332
/*!40000 ALTER TABLE `individual` DISABLE KEYS */;
333
/*!40000 ALTER TABLE `individual` ENABLE KEYS */;
334

    
335
--
336
-- Table structure for table `individual_observation`
337
--
338

    
339
/*!40101 SET @saved_cs_client     = @@character_set_client */;
340
/*!40101 SET character_set_client = utf8 */;
341
CREATE TABLE `individual_observation` (
342
  `id` varbinary(767) NOT NULL,
343
  `individual` varbinary(767) DEFAULT NULL,
344
  `code` varbinary(767) DEFAULT NULL,
345
  `traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
346
  PRIMARY KEY (`id`),
347
  KEY `fk_individual_observation_individual1_idx` (`individual`),
348
  CONSTRAINT `fk_individual_observation_individual1` FOREIGN KEY (`individual`) REFERENCES `individual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
349
  CONSTRAINT `fk_individual_observation_taxon_occurrence1` FOREIGN KEY (`id`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
350
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation of an [[VegCore#Individual|Individual]]';
351
/*!40101 SET character_set_client = @saved_cs_client */;
352

    
353
--
354
-- Dumping data for table `individual_observation`
355
--
356

    
357
/*!40000 ALTER TABLE `individual_observation` DISABLE KEYS */;
358
/*!40000 ALTER TABLE `individual_observation` ENABLE KEYS */;
359

    
360
--
361
-- Table structure for table `method`
362
--
363

    
364
/*!40101 SET @saved_cs_client     = @@character_set_client */;
365
/*!40101 SET character_set_client = utf8 */;
366
CREATE TABLE `method` (
367
  `id` varbinary(767) NOT NULL,
368
  `parent` varbinary(767) NOT NULL,
369
  `info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
370
  PRIMARY KEY (`id`),
371
  KEY `fk_method_method1_idx` (`parent`),
372
  CONSTRAINT `fk_method_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
373
  CONSTRAINT `fk_method_method1` FOREIGN KEY (`parent`) REFERENCES `method` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
374
) 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)';
375
/*!40101 SET character_set_client = @saved_cs_client */;
376

    
377
--
378
-- Dumping data for table `method`
379
--
380

    
381
/*!40000 ALTER TABLE `method` DISABLE KEYS */;
382
/*!40000 ALTER TABLE `method` ENABLE KEYS */;
383

    
384
--
385
-- Table structure for table `organization`
386
--
387

    
388
/*!40101 SET @saved_cs_client     = @@character_set_client */;
389
/*!40101 SET character_set_client = utf8 */;
390
CREATE TABLE `organization` (
391
  `id` varbinary(767) NOT NULL,
392
  `info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
393
  PRIMARY KEY (`id`),
394
  CONSTRAINT `fk_organization_party1` FOREIGN KEY (`id`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
395
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
396
/*!40101 SET character_set_client = @saved_cs_client */;
397

    
398
--
399
-- Dumping data for table `organization`
400
--
401

    
402
/*!40000 ALTER TABLE `organization` DISABLE KEYS */;
403
/*!40000 ALTER TABLE `organization` ENABLE KEYS */;
404

    
405
--
406
-- Table structure for table `party`
407
--
408

    
409
/*!40101 SET @saved_cs_client     = @@character_set_client */;
410
/*!40101 SET character_set_client = utf8 */;
411
CREATE TABLE `party` (
412
  `id` varbinary(767) NOT NULL,
413
  `organization` varbinary(767) DEFAULT NULL,
414
  `info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
415
  PRIMARY KEY (`id`),
416
  KEY `fk_party_organization1_idx` (`organization`),
417
  CONSTRAINT `fk_party_organization1` FOREIGN KEY (`organization`) REFERENCES `organization` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
418
  CONSTRAINT `fk_collection_source10` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
419
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
420
/*!40101 SET character_set_client = @saved_cs_client */;
421

    
422
--
423
-- Dumping data for table `party`
424
--
425

    
426
/*!40000 ALTER TABLE `party` DISABLE KEYS */;
427
/*!40000 ALTER TABLE `party` ENABLE KEYS */;
428

    
429
--
430
-- Table structure for table `party_list`
431
--
432

    
433
/*!40101 SET @saved_cs_client     = @@character_set_client */;
434
/*!40101 SET character_set_client = utf8 */;
435
CREATE TABLE `party_list` (
436
  `id` varbinary(767) NOT NULL,
437
  `count` int(11) NOT NULL,
438
  PRIMARY KEY (`id`),
439
  CONSTRAINT `fk_collection_source100` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
440
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
441
/*!40101 SET character_set_client = @saved_cs_client */;
442

    
443
--
444
-- Dumping data for table `party_list`
445
--
446

    
447
/*!40000 ALTER TABLE `party_list` DISABLE KEYS */;
448
/*!40000 ALTER TABLE `party_list` ENABLE KEYS */;
449

    
450
--
451
-- Table structure for table `party_list_entry`
452
--
453

    
454
/*!40101 SET @saved_cs_client     = @@character_set_client */;
455
/*!40101 SET character_set_client = utf8 */;
456
CREATE TABLE `party_list_entry` (
457
  `id` varbinary(767) NOT NULL,
458
  `entry` varbinary(767) NOT NULL,
459
  `sort_order` int(11) DEFAULT NULL,
460
  PRIMARY KEY (`id`,`entry`),
461
  KEY `fk_party_list_has_party_party1_idx` (`entry`),
462
  KEY `fk_party_list_has_party_party_list1_idx` (`id`),
463
  CONSTRAINT `fk_party_list_has_party_party_list1` FOREIGN KEY (`id`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
464
  CONSTRAINT `fk_party_list_has_party_party1` FOREIGN KEY (`entry`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
465
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
466
/*!40101 SET character_set_client = @saved_cs_client */;
467

    
468
--
469
-- Dumping data for table `party_list_entry`
470
--
471

    
472
/*!40000 ALTER TABLE `party_list_entry` DISABLE KEYS */;
473
/*!40000 ALTER TABLE `party_list_entry` ENABLE KEYS */;
474

    
475
--
476
-- Table structure for table `place`
477
--
478

    
479
/*!40101 SET @saved_cs_client     = @@character_set_client */;
480
/*!40101 SET character_set_client = utf8 */;
481
CREATE TABLE `place` (
482
  `id` varbinary(767) NOT NULL,
483
  `parent` varbinary(767) NOT NULL,
484
  `geoplace` varbinary(767) DEFAULT NULL,
485
  `locality` varbinary(767) DEFAULT NULL,
486
  `coords` set('hstore') COLLATE utf8_bin DEFAULT NULL COMMENT 'for verbatim coordinates, etc.',
487
  PRIMARY KEY (`id`),
488
  KEY `fk_place1_idx` (`parent`),
489
  KEY `fk_place_geoplace1_idx` (`geoplace`),
490
  CONSTRAINT `fk_place_geoplace1` FOREIGN KEY (`geoplace`) REFERENCES `geoplace` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
491
  CONSTRAINT `fk_place1` FOREIGN KEY (`parent`) REFERENCES `place` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
492
  CONSTRAINT `fk_place_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
493
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='"A spatial region" ("DwC":http://rs.tdwg.org/dwc/terms/#dcterms:Location) or point';
494
/*!40101 SET character_set_client = @saved_cs_client */;
495

    
496
--
497
-- Dumping data for table `place`
498
--
499

    
500
/*!40000 ALTER TABLE `place` DISABLE KEYS */;
501
/*!40000 ALTER TABLE `place` ENABLE KEYS */;
502

    
503
--
504
-- Table structure for table `place_observation`
505
--
506

    
507
/*!40101 SET @saved_cs_client     = @@character_set_client */;
508
/*!40101 SET character_set_client = utf8 */;
509
CREATE TABLE `place_observation` (
510
  `id` varbinary(767) NOT NULL,
511
  `place` varbinary(767) NOT NULL,
512
  `elevation_m` double DEFAULT NULL,
513
  `slope_incline_deg` double DEFAULT NULL,
514
  `slope_direction_deg_N` double DEFAULT NULL,
515
  `geological_context` varbinary(767) DEFAULT NULL,
516
  `community` varbinary(767) DEFAULT NULL,
517
  `observations` set('hstore') COLLATE utf8_bin DEFAULT NULL,
518
  PRIMARY KEY (`id`),
519
  KEY `fk_place_observation_place1_idx` (`place`),
520
  KEY `fk_place_observation_geological_context1_idx` (`geological_context`),
521
  KEY `fk_place_observation_community1_idx` (`community`),
522
  CONSTRAINT `fk_place_observation_place1` FOREIGN KEY (`place`) REFERENCES `place` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
523
  CONSTRAINT `fk_place_observation_geological_context1` FOREIGN KEY (`geological_context`) REFERENCES `geological_context` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
524
  CONSTRAINT `fk_place_observation_community1` FOREIGN KEY (`community`) REFERENCES `community` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
525
  CONSTRAINT `fk_place_observation_sampling_event1` FOREIGN KEY (`id`) REFERENCES `sampling_event` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
526
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A sampling of a [[VegCore#Location|Location]]';
527
/*!40101 SET character_set_client = @saved_cs_client */;
528

    
529
--
530
-- Dumping data for table `place_observation`
531
--
532

    
533
/*!40000 ALTER TABLE `place_observation` DISABLE KEYS */;
534
/*!40000 ALTER TABLE `place_observation` ENABLE KEYS */;
535

    
536
--
537
-- Table structure for table `plot`
538
--
539

    
540
/*!40101 SET @saved_cs_client     = @@character_set_client */;
541
/*!40101 SET character_set_client = utf8 */;
542
CREATE TABLE `plot` (
543
  `id` varbinary(767) NOT NULL,
544
  `name` varbinary(767) DEFAULT NULL,
545
  `area_m2` double DEFAULT NULL,
546
  `shape` varbinary(767) DEFAULT NULL,
547
  `bounding_box_rect` varbinary(767) DEFAULT NULL,
548
  `footprint_geom_WKT` varbinary(767) DEFAULT NULL,
549
  `dimensions` set('hstore') COLLATE utf8_bin DEFAULT NULL,
550
  PRIMARY KEY (`id`),
551
  CONSTRAINT `fk_subplot_place1` FOREIGN KEY (`id`) REFERENCES `place` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
552
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
553
/*!40101 SET character_set_client = @saved_cs_client */;
554

    
555
--
556
-- Dumping data for table `plot`
557
--
558

    
559
/*!40000 ALTER TABLE `plot` DISABLE KEYS */;
560
/*!40000 ALTER TABLE `plot` ENABLE KEYS */;
561

    
562
--
563
-- Table structure for table `project`
564
--
565

    
566
/*!40101 SET @saved_cs_client     = @@character_set_client */;
567
/*!40101 SET character_set_client = utf8 */;
568
CREATE TABLE `project` (
569
  `id` varbinary(767) NOT NULL,
570
  `name` varbinary(767) NOT NULL,
571
  `info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
572
  PRIMARY KEY (`id`),
573
  CONSTRAINT `fk_project_event1` FOREIGN KEY (`id`) REFERENCES `event` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
574
) 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)';
575
/*!40101 SET character_set_client = @saved_cs_client */;
576

    
577
--
578
-- Dumping data for table `project`
579
--
580

    
581
/*!40000 ALTER TABLE `project` DISABLE KEYS */;
582
/*!40000 ALTER TABLE `project` ENABLE KEYS */;
583

    
584
--
585
-- Table structure for table `record`
586
--
587

    
588
/*!40101 SET @saved_cs_client     = @@character_set_client */;
589
/*!40101 SET character_set_client = utf8 */;
590
CREATE TABLE `record` (
591
  `id` varbinary(767) NOT NULL,
592
  `source` varbinary(767) NOT NULL,
593
  `source_id_scope` varbinary(767) DEFAULT NULL,
594
  `source_record_id` varbinary(767) DEFAULT NULL,
595
  `info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
596
  PRIMARY KEY (`id`),
597
  UNIQUE KEY `record_unique` (`source`,`source_id_scope`,`source_record_id`),
598
  KEY `fk_record_source1_idx` (`source`),
599
  CONSTRAINT `fk_record_source1` FOREIGN KEY (`source`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
600
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
601
/*!40101 SET character_set_client = @saved_cs_client */;
602

    
603
--
604
-- Dumping data for table `record`
605
--
606

    
607
/*!40000 ALTER TABLE `record` DISABLE KEYS */;
608
/*!40000 ALTER TABLE `record` ENABLE KEYS */;
609

    
610
--
611
-- Table structure for table `referenced_class`
612
--
613

    
614
/*!40101 SET @saved_cs_client     = @@character_set_client */;
615
/*!40101 SET character_set_client = utf8 */;
616
CREATE TABLE `referenced_class` (
617
  `id` varbinary(767) NOT NULL,
618
  PRIMARY KEY (`id`),
619
  CONSTRAINT `fk_example_record10` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
620
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
621
/*!40101 SET character_set_client = @saved_cs_client */;
622

    
623
--
624
-- Dumping data for table `referenced_class`
625
--
626

    
627
/*!40000 ALTER TABLE `referenced_class` DISABLE KEYS */;
628
/*!40000 ALTER TABLE `referenced_class` ENABLE KEYS */;
629

    
630
--
631
-- Table structure for table `relationship`
632
--
633

    
634
/*!40101 SET @saved_cs_client     = @@character_set_client */;
635
/*!40101 SET character_set_client = utf8 */;
636
CREATE TABLE `relationship` (
637
  `id` varbinary(767) NOT NULL,
638
  `record` varbinary(767) NOT NULL,
639
  `related_record` varbinary(767) NOT NULL,
640
  `info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
641
  PRIMARY KEY (`id`),
642
  KEY `fk_relationship_record1_idx` (`record`),
643
  KEY `fk_relationship_related_record_idx` (`related_record`),
644
  CONSTRAINT `fk_relationship_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
645
  CONSTRAINT `fk_relationship_record2` FOREIGN KEY (`record`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
646
  CONSTRAINT `fk_relationship_related_record` FOREIGN KEY (`related_record`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
647
) 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)';
648
/*!40101 SET character_set_client = @saved_cs_client */;
649

    
650
--
651
-- Dumping data for table `relationship`
652
--
653

    
654
/*!40000 ALTER TABLE `relationship` DISABLE KEYS */;
655
/*!40000 ALTER TABLE `relationship` ENABLE KEYS */;
656

    
657
--
658
-- Table structure for table `reobservable`
659
--
660

    
661
/*!40101 SET @saved_cs_client     = @@character_set_client */;
662
/*!40101 SET character_set_client = utf8 */;
663
CREATE TABLE `reobservable` (
664
  `id` varbinary(767) NOT NULL,
665
  `current_determination` varbinary(767) DEFAULT NULL,
666
  `original_determination` varbinary(767) DEFAULT NULL,
667
  PRIMARY KEY (`id`),
668
  KEY `fk_taxon_occurrence_taxon_determination1_idx` (`original_determination`),
669
  KEY `fk_taxon_occurrence_taxon_determination2_idx` (`current_determination`),
670
  CONSTRAINT `fk_taxon_occurrence_taxon_determination1` FOREIGN KEY (`original_determination`) REFERENCES `taxon_determination` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
671
  CONSTRAINT `fk_taxon_occurrence_taxon_determination2` FOREIGN KEY (`current_determination`) REFERENCES `taxon_determination` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
672
  CONSTRAINT `fk_taxon_occurrence_event1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
673
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Any entity on which [[VegCore#TaxonDetermination|TaxonDetermination]]s can be made';
674
/*!40101 SET character_set_client = @saved_cs_client */;
675

    
676
--
677
-- Dumping data for table `reobservable`
678
--
679

    
680
/*!40000 ALTER TABLE `reobservable` DISABLE KEYS */;
681
/*!40000 ALTER TABLE `reobservable` ENABLE KEYS */;
682

    
683
--
684
-- Table structure for table `sampling_event`
685
--
686

    
687
/*!40101 SET @saved_cs_client     = @@character_set_client */;
688
/*!40101 SET character_set_client = utf8 */;
689
CREATE TABLE `sampling_event` (
690
  `id` varbinary(767) NOT NULL,
691
  `method` varbinary(767) DEFAULT NULL,
692
  PRIMARY KEY (`id`),
693
  KEY `fk_sampling_event_method1_idx` (`method`),
694
  CONSTRAINT `fk_sampling_event_method1` FOREIGN KEY (`method`) REFERENCES `method` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
695
  CONSTRAINT `fk_project_event10` FOREIGN KEY (`id`) REFERENCES `event` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
696
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
697
/*!40101 SET character_set_client = @saved_cs_client */;
698

    
699
--
700
-- Dumping data for table `sampling_event`
701
--
702

    
703
/*!40000 ALTER TABLE `sampling_event` DISABLE KEYS */;
704
/*!40000 ALTER TABLE `sampling_event` ENABLE KEYS */;
705

    
706
--
707
-- Table structure for table `soil_observation`
708
--
709

    
710
/*!40101 SET @saved_cs_client     = @@character_set_client */;
711
/*!40101 SET character_set_client = utf8 */;
712
CREATE TABLE `soil_observation` (
713
  `id` varbinary(767) NOT NULL,
714
  `observations` set('hstore') COLLATE utf8_bin DEFAULT NULL,
715
  PRIMARY KEY (`id`),
716
  CONSTRAINT `fk_soil_observation_place_observation1` FOREIGN KEY (`id`) REFERENCES `place_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
717
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A sampling of a [[VegCore#Location|Location]]''s soil';
718
/*!40101 SET character_set_client = @saved_cs_client */;
719

    
720
--
721
-- Dumping data for table `soil_observation`
722
--
723

    
724
/*!40000 ALTER TABLE `soil_observation` DISABLE KEYS */;
725
/*!40000 ALTER TABLE `soil_observation` ENABLE KEYS */;
726

    
727
--
728
-- Table structure for table `source`
729
--
730

    
731
/*!40101 SET @saved_cs_client     = @@character_set_client */;
732
/*!40101 SET character_set_client = utf8 */;
733
CREATE TABLE `source` (
734
  `id` varbinary(767) NOT NULL,
735
  `parent` varbinary(767) NOT NULL,
736
  `name` varbinary(767) NOT NULL,
737
  `first_publisher` varbinary(767) DEFAULT NULL,
738
  `owner` varbinary(767) DEFAULT NULL,
739
  `info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
740
  PRIMARY KEY (`id`),
741
  UNIQUE KEY `source_unique` (`parent`,`name`),
742
  KEY `fk_source1_idx` (`parent`),
743
  KEY `fk_source_party1_idx` (`owner`),
744
  KEY `fk_source_party2_idx` (`first_publisher`),
745
  CONSTRAINT `fk_source1` FOREIGN KEY (`parent`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
746
  CONSTRAINT `fk_source_party1` FOREIGN KEY (`owner`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
747
  CONSTRAINT `fk_source_party2` FOREIGN KEY (`first_publisher`) REFERENCES `party` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
748
) 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)';
749
/*!40101 SET character_set_client = @saved_cs_client */;
750

    
751
--
752
-- Dumping data for table `source`
753
--
754

    
755
/*!40000 ALTER TABLE `source` DISABLE KEYS */;
756
/*!40000 ALTER TABLE `source` ENABLE KEYS */;
757

    
758
--
759
-- Table structure for table `specimen`
760
--
761

    
762
/*!40101 SET @saved_cs_client     = @@character_set_client */;
763
/*!40101 SET character_set_client = utf8 */;
764
CREATE TABLE `specimen` (
765
  `id` varbinary(767) NOT NULL,
766
  `individual` varbinary(767) DEFAULT NULL,
767
  `code_in_individual` varbinary(767) DEFAULT NULL,
768
  `collection_event` varbinary(767) DEFAULT NULL,
769
  `orig_collection` varbinary(767) DEFAULT NULL,
770
  `barcode` varbinary(767) DEFAULT NULL,
771
  `accession_number` varbinary(767) DEFAULT NULL,
772
  `specimenholder_institutions` varbinary(767) DEFAULT NULL,
773
  `current_collection` varbinary(767) DEFAULT NULL,
774
  `owner_collection` varbinary(767) DEFAULT NULL,
775
  PRIMARY KEY (`id`),
776
  UNIQUE KEY `specimen_unique_in_individual` (`individual`,`code_in_individual`),
777
  UNIQUE KEY `specimen_unique_by_collection_event` (`collection_event`),
778
  UNIQUE KEY `specimen_unique_in_collection_by_barcode` (`orig_collection`,`barcode`),
779
  UNIQUE KEY `specimen_unique_in_collection_by_accession_number` (`orig_collection`,`accession_number`),
780
  KEY `fk_specimen_collection1_idx` (`orig_collection`),
781
  KEY `fk_specimen_taxon_observation1_idx` (`collection_event`),
782
  KEY `fk_specimen_individual1_idx` (`individual`),
783
  KEY `fk_specimen_collection2_idx` (`current_collection`),
784
  KEY `fk_specimen_organization3_idx` (`owner_collection`),
785
  KEY `fk_specimen_party_list1_idx` (`specimenholder_institutions`),
786
  CONSTRAINT `fk_specimen_taxon_occurrence1` FOREIGN KEY (`id`) REFERENCES `reobservable` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
787
  CONSTRAINT `fk_specimen_collection1` FOREIGN KEY (`orig_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
788
  CONSTRAINT `fk_specimen_collection2` FOREIGN KEY (`current_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
789
  CONSTRAINT `fk_specimen_individual1` FOREIGN KEY (`individual`) REFERENCES `individual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
790
  CONSTRAINT `fk_specimen_organization3` FOREIGN KEY (`owner_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
791
  CONSTRAINT `fk_specimen_party_list1` FOREIGN KEY (`specimenholder_institutions`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
792
  CONSTRAINT `fk_specimen_taxon_observation1` FOREIGN KEY (`collection_event`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
793
) 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';
794
/*!40101 SET character_set_client = @saved_cs_client */;
795

    
796
--
797
-- Dumping data for table `specimen`
798
--
799

    
800
/*!40000 ALTER TABLE `specimen` DISABLE KEYS */;
801
/*!40000 ALTER TABLE `specimen` ENABLE KEYS */;
802

    
803
--
804
-- Table structure for table `specimen_observation`
805
--
806

    
807
/*!40101 SET @saved_cs_client     = @@character_set_client */;
808
/*!40101 SET character_set_client = utf8 */;
809
CREATE TABLE `specimen_observation` (
810
  `id` varbinary(767) NOT NULL,
811
  `specimen` varbinary(767) NOT NULL,
812
  `description` varbinary(767) DEFAULT NULL,
813
  `traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
814
  PRIMARY KEY (`id`),
815
  KEY `fk_specimen_observation_specimen1_idx` (`specimen`),
816
  CONSTRAINT `fk_specimen_taxon_occurrence10` FOREIGN KEY (`id`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
817
  CONSTRAINT `fk_specimen_observation_specimen1` FOREIGN KEY (`specimen`) REFERENCES `specimen` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
818
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
819
/*!40101 SET character_set_client = @saved_cs_client */;
820

    
821
--
822
-- Dumping data for table `specimen_observation`
823
--
824

    
825
/*!40000 ALTER TABLE `specimen_observation` DISABLE KEYS */;
826
/*!40000 ALTER TABLE `specimen_observation` ENABLE KEYS */;
827

    
828
--
829
-- Table structure for table `stem`
830
--
831

    
832
/*!40101 SET @saved_cs_client     = @@character_set_client */;
833
/*!40101 SET character_set_client = utf8 */;
834
CREATE TABLE `stem` (
835
  `id` varbinary(767) NOT NULL,
836
  `individual` varbinary(767) NOT NULL,
837
  PRIMARY KEY (`id`),
838
  KEY `fk_stem_individual1_idx` (`individual`),
839
  CONSTRAINT `fk_stem_individual1` FOREIGN KEY (`individual`) REFERENCES `individual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
840
  CONSTRAINT `fk_stem_individual2` FOREIGN KEY (`id`) REFERENCES `individual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
841
) 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)';
842
/*!40101 SET character_set_client = @saved_cs_client */;
843

    
844
--
845
-- Dumping data for table `stem`
846
--
847

    
848
/*!40000 ALTER TABLE `stem` DISABLE KEYS */;
849
/*!40000 ALTER TABLE `stem` ENABLE KEYS */;
850

    
851
--
852
-- Table structure for table `stem_observation`
853
--
854

    
855
/*!40101 SET @saved_cs_client     = @@character_set_client */;
856
/*!40101 SET character_set_client = utf8 */;
857
CREATE TABLE `stem_observation` (
858
  `id` varbinary(767) NOT NULL,
859
  `individual_observation` varbinary(767) NOT NULL,
860
  `stem` varbinary(767) DEFAULT NULL,
861
  `traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
862
  PRIMARY KEY (`id`),
863
  UNIQUE KEY `stem_observation_unique` (`individual_observation`,`stem`),
864
  KEY `fk_stem_observation_individual_observation1_idx` (`individual_observation`),
865
  KEY `fk_stem_observation_stem1_idx` (`stem`),
866
  CONSTRAINT `fk_stem_observation_stem1` FOREIGN KEY (`stem`) REFERENCES `stem` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
867
  CONSTRAINT `fk_stem_observation_individual_observation1` FOREIGN KEY (`individual_observation`) REFERENCES `individual_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
868
  CONSTRAINT `fk_stem_observation_individual_observation2` FOREIGN KEY (`id`) REFERENCES `individual_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
869
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation of a [[VegCore#Stem|Stem]]';
870
/*!40101 SET character_set_client = @saved_cs_client */;
871

    
872
--
873
-- Dumping data for table `stem_observation`
874
--
875

    
876
/*!40000 ALTER TABLE `stem_observation` DISABLE KEYS */;
877
/*!40000 ALTER TABLE `stem_observation` ENABLE KEYS */;
878

    
879
--
880
-- Table structure for table `stratum`
881
--
882

    
883
/*!40101 SET @saved_cs_client     = @@character_set_client */;
884
/*!40101 SET character_set_client = utf8 */;
885
CREATE TABLE `stratum` (
886
  `id` varbinary(767) NOT NULL,
887
  `name` varbinary(767) NOT NULL,
888
  `info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
889
  PRIMARY KEY (`id`),
890
  CONSTRAINT `fk_place_path_record10` FOREIGN KEY (`id`) REFERENCES `method` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
891
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
892
/*!40101 SET character_set_client = @saved_cs_client */;
893

    
894
--
895
-- Dumping data for table `stratum`
896
--
897

    
898
/*!40000 ALTER TABLE `stratum` DISABLE KEYS */;
899
/*!40000 ALTER TABLE `stratum` ENABLE KEYS */;
900

    
901
--
902
-- Table structure for table `subplot`
903
--
904

    
905
/*!40101 SET @saved_cs_client     = @@character_set_client */;
906
/*!40101 SET character_set_client = utf8 */;
907
CREATE TABLE `subplot` (
908
  `id` varbinary(767) NOT NULL,
909
  `x_m` double DEFAULT NULL,
910
  `y_m` double DEFAULT NULL,
911
  `coords` set('hstore') COLLATE utf8_bin DEFAULT NULL,
912
  PRIMARY KEY (`id`),
913
  CONSTRAINT `fk_subplot_plot1` FOREIGN KEY (`id`) REFERENCES `plot` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
914
) 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)';
915
/*!40101 SET character_set_client = @saved_cs_client */;
916

    
917
--
918
-- Dumping data for table `subplot`
919
--
920

    
921
/*!40000 ALTER TABLE `subplot` DISABLE KEYS */;
922
/*!40000 ALTER TABLE `subplot` ENABLE KEYS */;
923

    
924
--
925
-- Table structure for table `taxon_absence`
926
--
927

    
928
/*!40101 SET @saved_cs_client     = @@character_set_client */;
929
/*!40101 SET character_set_client = utf8 */;
930
CREATE TABLE `taxon_absence` (
931
  `id` varbinary(767) NOT NULL,
932
  PRIMARY KEY (`id`),
933
  CONSTRAINT `fk_taxon_absence_taxon_determination1` FOREIGN KEY (`id`) REFERENCES `taxon_determination` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
934
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation that a [[VegCore#Taxon|Taxon]]''s does _not_ exist in a place';
935
/*!40101 SET character_set_client = @saved_cs_client */;
936

    
937
--
938
-- Dumping data for table `taxon_absence`
939
--
940

    
941
/*!40000 ALTER TABLE `taxon_absence` DISABLE KEYS */;
942
/*!40000 ALTER TABLE `taxon_absence` ENABLE KEYS */;
943

    
944
--
945
-- Table structure for table `taxon_assertion`
946
--
947

    
948
/*!40101 SET @saved_cs_client     = @@character_set_client */;
949
/*!40101 SET character_set_client = utf8 */;
950
CREATE TABLE `taxon_assertion` (
951
  `id` varbinary(767) NOT NULL,
952
  `string` varbinary(767) NOT NULL COMMENT 'for parsed_taxon_assertion, this is the TNRS input name, not the concatenated matched name',
953
  `taxon` varbinary(767) DEFAULT NULL,
954
  `cf_aff` varbinary(767) DEFAULT NULL,
955
  `annotations` set('hstore') COLLATE utf8_bin DEFAULT NULL,
956
  PRIMARY KEY (`id`),
957
  KEY `fk_taxon_assertion_taxon_string1_idx` (`string`),
958
  KEY `fk_taxon_assertion_taxon_name1_idx` (`taxon`),
959
  CONSTRAINT `fk_qualified_taxon_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
960
  CONSTRAINT `fk_taxon_assertion_taxon_string1` FOREIGN KEY (`string`) REFERENCES `taxon_string` (`string`) ON DELETE CASCADE ON UPDATE CASCADE,
961
  CONSTRAINT `fk_taxon_assertion_taxon_name1` FOREIGN KEY (`taxon`) REFERENCES `taxon_name` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
962
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
963
/*!40101 SET character_set_client = @saved_cs_client */;
964

    
965
--
966
-- Dumping data for table `taxon_assertion`
967
--
968

    
969
/*!40000 ALTER TABLE `taxon_assertion` DISABLE KEYS */;
970
/*!40000 ALTER TABLE `taxon_assertion` ENABLE KEYS */;
971

    
972
--
973
-- Table structure for table `taxon_concept`
974
--
975

    
976
/*!40101 SET @saved_cs_client     = @@character_set_client */;
977
/*!40101 SET character_set_client = utf8 */;
978
CREATE TABLE `taxon_concept` (
979
  `id` varbinary(767) NOT NULL,
980
  `according_to` varbinary(767) NOT NULL,
981
  `parent` varbinary(767) NOT NULL,
982
  `accepted_taxon_concept` varbinary(767) DEFAULT NULL,
983
  PRIMARY KEY (`id`),
984
  UNIQUE KEY `taxon_concept_unique_name` (`according_to`),
985
  KEY `fk_taxon_taxon1_idx` (`parent`),
986
  KEY `fk_taxon_concept_source1_idx` (`according_to`),
987
  KEY `fk_taxon_concept_taxon_concept1_idx` (`accepted_taxon_concept`),
988
  CONSTRAINT `fk_taxon_taxon1` FOREIGN KEY (`parent`) REFERENCES `taxon_concept` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
989
  CONSTRAINT `fk_taxon_concept_source1` FOREIGN KEY (`according_to`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
990
  CONSTRAINT `fk_taxon_concept_taxon_concept1` FOREIGN KEY (`accepted_taxon_concept`) REFERENCES `taxon_concept` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
991
  CONSTRAINT `fk_taxon_concept_taxon_name1` FOREIGN KEY (`id`) REFERENCES `taxon_name` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
992
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='A [[VegCore#Taxon|Taxon]] described by a specific [[VegCore#Reference|Reference]]';
993
/*!40101 SET character_set_client = @saved_cs_client */;
994

    
995
--
996
-- Dumping data for table `taxon_concept`
997
--
998

    
999
/*!40000 ALTER TABLE `taxon_concept` DISABLE KEYS */;
1000
/*!40000 ALTER TABLE `taxon_concept` ENABLE KEYS */;
1001

    
1002
--
1003
-- Table structure for table `taxon_determination`
1004
--
1005

    
1006
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1007
/*!40101 SET character_set_client = utf8 */;
1008
CREATE TABLE `taxon_determination` (
1009
  `id` varbinary(767) NOT NULL,
1010
  `identified_by` varbinary(767) DEFAULT NULL,
1011
  `taxon_assertion` varbinary(767) NOT NULL,
1012
  `fit_info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
1013
  PRIMARY KEY (`id`),
1014
  UNIQUE KEY `taxon_determination_unique` (`taxon_assertion`,`identified_by`),
1015
  KEY `fk_taxon_occurrence_has_qualified_taxon1_idx` (`taxon_assertion`),
1016
  KEY `fk_taxon_determination_party_list1_idx` (`identified_by`),
1017
  CONSTRAINT `fk_taxon_determination_taxon_observation1` FOREIGN KEY (`id`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
1018
  CONSTRAINT `fk_taxon_determination_party_list1` FOREIGN KEY (`identified_by`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
1019
  CONSTRAINT `fk_taxon_occurrence_has_qualified_taxon1` FOREIGN KEY (`taxon_assertion`) REFERENCES `taxon_assertion` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
1020
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An assertion that a [[VegCore#TaxonOccurrence|TaxonOccurrence]] is a particular [[VegCore#Taxon|Taxon]]';
1021
/*!40101 SET character_set_client = @saved_cs_client */;
1022

    
1023
--
1024
-- Dumping data for table `taxon_determination`
1025
--
1026

    
1027
/*!40000 ALTER TABLE `taxon_determination` DISABLE KEYS */;
1028
/*!40000 ALTER TABLE `taxon_determination` ENABLE KEYS */;
1029

    
1030
--
1031
-- Table structure for table `taxon_name`
1032
--
1033

    
1034
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1035
/*!40101 SET character_set_client = utf8 */;
1036
CREATE TABLE `taxon_name` (
1037
  `id` varbinary(767) NOT NULL,
1038
  `unique_name` varbinary(767) NOT NULL,
1039
  `formal_name` varbinary(767) DEFAULT NULL,
1040
  `taxon_name` varbinary(767) DEFAULT NULL,
1041
  `author` varbinary(767) DEFAULT NULL,
1042
  `common_name` varbinary(767) DEFAULT NULL,
1043
  `rank` varbinary(767) DEFAULT NULL,
1044
  PRIMARY KEY (`id`),
1045
  KEY `fk_taxon_concept_taxon_string10_idx` (`unique_name`),
1046
  CONSTRAINT `fk_taxon_record10` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
1047
  CONSTRAINT `fk_taxon_concept_taxon_string10` FOREIGN KEY (`unique_name`) REFERENCES `taxon_string` (`string`) 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_name`
1053
--
1054

    
1055
/*!40000 ALTER TABLE `taxon_name` DISABLE KEYS */;
1056
/*!40000 ALTER TABLE `taxon_name` ENABLE KEYS */;
1057

    
1058
--
1059
-- Table structure for table `taxon_observation`
1060
--
1061

    
1062
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1063
/*!40101 SET character_set_client = utf8 */;
1064
CREATE TABLE `taxon_observation` (
1065
  `id` varbinary(767) NOT NULL,
1066
  `collectors` varbinary(767) DEFAULT NULL,
1067
  `collector_number` varbinary(767) DEFAULT NULL,
1068
  `voucher` varbinary(767) DEFAULT NULL,
1069
  `growth_form` varbinary(767) DEFAULT NULL,
1070
  `cultivated` tinyint(1) DEFAULT NULL,
1071
  `traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
1072
  PRIMARY KEY (`id`),
1073
  KEY `fk_taxon_observation_specimen1_idx` (`voucher`),
1074
  KEY `fk_taxon_observation_party_list1_idx` (`collectors`),
1075
  CONSTRAINT `fk_taxon_observation_party_list1` FOREIGN KEY (`collectors`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
1076
  CONSTRAINT `fk_taxon_observation_sampling_event1` FOREIGN KEY (`id`) REFERENCES `sampling_event` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
1077
  CONSTRAINT `fk_taxon_observation_specimen1` FOREIGN KEY (`voucher`) REFERENCES `specimen` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
1078
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1079
/*!40101 SET character_set_client = @saved_cs_client */;
1080

    
1081
--
1082
-- Dumping data for table `taxon_observation`
1083
--
1084

    
1085
/*!40000 ALTER TABLE `taxon_observation` DISABLE KEYS */;
1086
/*!40000 ALTER TABLE `taxon_observation` ENABLE KEYS */;
1087

    
1088
--
1089
-- Table structure for table `taxon_path`
1090
--
1091

    
1092
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1093
/*!40101 SET character_set_client = utf8 */;
1094
CREATE TABLE `taxon_path` (
1095
  `id` varbinary(767) NOT NULL,
1096
  `family` varbinary(767) DEFAULT NULL,
1097
  `genus` varbinary(767) DEFAULT NULL,
1098
  `specific_epithet` varbinary(767) DEFAULT NULL,
1099
  `ranks` set('hstore') COLLATE utf8_bin DEFAULT NULL,
1100
  PRIMARY KEY (`id`),
1101
  CONSTRAINT `fk_taxon_path_taxon_name1` FOREIGN KEY (`id`) REFERENCES `taxon_name` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
1102
) 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)';
1103
/*!40101 SET character_set_client = @saved_cs_client */;
1104

    
1105
--
1106
-- Dumping data for table `taxon_path`
1107
--
1108

    
1109
/*!40000 ALTER TABLE `taxon_path` DISABLE KEYS */;
1110
/*!40000 ALTER TABLE `taxon_path` ENABLE KEYS */;
1111

    
1112
--
1113
-- Table structure for table `taxon_presence`
1114
--
1115

    
1116
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1117
/*!40101 SET character_set_client = utf8 */;
1118
CREATE TABLE `taxon_presence` (
1119
  `id` varbinary(767) NOT NULL,
1120
  `occurrence_status` varbinary(767) DEFAULT NULL,
1121
  `traits` set('hstore') COLLATE utf8_bin DEFAULT NULL,
1122
  PRIMARY KEY (`id`),
1123
  CONSTRAINT `fk_taxon_presence_taxon_determination1` FOREIGN KEY (`id`) REFERENCES `taxon_determination` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
1124
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='An observation of just a [[VegCore#Taxon|Taxon]]''s _presence_';
1125
/*!40101 SET character_set_client = @saved_cs_client */;
1126

    
1127
--
1128
-- Dumping data for table `taxon_presence`
1129
--
1130

    
1131
/*!40000 ALTER TABLE `taxon_presence` DISABLE KEYS */;
1132
/*!40000 ALTER TABLE `taxon_presence` ENABLE KEYS */;
1133

    
1134
--
1135
-- Table structure for table `taxon_scrub`
1136
--
1137

    
1138
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1139
/*!40101 SET character_set_client = utf8 */;
1140
CREATE TABLE `taxon_scrub` (
1141
  `id` varbinary(767) NOT NULL,
1142
  `input_string` varbinary(767) NOT NULL,
1143
  `parsed_taxon_assertion` varbinary(767) NOT NULL,
1144
  `matched_taxon_concept` varbinary(767) DEFAULT NULL,
1145
  `match_score` float DEFAULT NULL,
1146
  `match_info` set('hstore') COLLATE utf8_bin DEFAULT NULL,
1147
  PRIMARY KEY (`id`),
1148
  KEY `fk_parsed_taxon_assertion_taxon_name1_idx` (`matched_taxon_concept`),
1149
  KEY `fk_taxon_scrub_taxon_assertion1_idx` (`parsed_taxon_assertion`),
1150
  KEY `fk_taxon_scrub_taxon_string1_idx` (`input_string`),
1151
  CONSTRAINT `fk_parsed_taxon_assertion_taxon_name1` FOREIGN KEY (`matched_taxon_concept`) REFERENCES `taxon_concept` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
1152
  CONSTRAINT `fk_taxon_scrub_taxon_assertion1` FOREIGN KEY (`parsed_taxon_assertion`) REFERENCES `taxon_assertion` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
1153
  CONSTRAINT `fk_taxon_scrub_taxon_string1` FOREIGN KEY (`input_string`) REFERENCES `taxon_string` (`string`) ON DELETE CASCADE ON UPDATE CASCADE,
1154
  CONSTRAINT `fk_taxon_scrub_record1` FOREIGN KEY (`id`) REFERENCES `record` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
1155
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1156
/*!40101 SET character_set_client = @saved_cs_client */;
1157

    
1158
--
1159
-- Dumping data for table `taxon_scrub`
1160
--
1161

    
1162
/*!40000 ALTER TABLE `taxon_scrub` DISABLE KEYS */;
1163
/*!40000 ALTER TABLE `taxon_scrub` ENABLE KEYS */;
1164

    
1165
--
1166
-- Table structure for table `taxon_string`
1167
--
1168

    
1169
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1170
/*!40101 SET character_set_client = utf8 */;
1171
CREATE TABLE `taxon_string` (
1172
  `string` varbinary(767) NOT NULL,
1173
  PRIMARY KEY (`string`)
1174
) 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)';
1175
/*!40101 SET character_set_client = @saved_cs_client */;
1176

    
1177
--
1178
-- Dumping data for table `taxon_string`
1179
--
1180

    
1181
/*!40000 ALTER TABLE `taxon_string` DISABLE KEYS */;
1182
/*!40000 ALTER TABLE `taxon_string` ENABLE KEYS */;
1183

    
1184
--
1185
-- Table structure for table `validatable_geoplace`
1186
--
1187

    
1188
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1189
/*!40101 SET character_set_client = utf8 */;
1190
CREATE TABLE `validatable_geoplace` (
1191
  `id` varbinary(767) NOT NULL,
1192
  `geocoords` varbinary(767) NOT NULL,
1193
  `geopath` varbinary(767) NOT NULL,
1194
  PRIMARY KEY (`id`),
1195
  UNIQUE KEY `validatable_place_unique` (`geopath`,`geocoords`),
1196
  KEY `fk_geovalidation_place_path1_idx` (`geopath`),
1197
  KEY `fk_geovalidation_coordinates1_idx` (`geocoords`),
1198
  CONSTRAINT `fk_geovalidation_place_path1` FOREIGN KEY (`geopath`) REFERENCES `geopath` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
1199
  CONSTRAINT `fk_geovalidation_coordinates1` FOREIGN KEY (`geocoords`) REFERENCES `geocoords` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
1200
  CONSTRAINT `fk_validatable_geoplace_geoplace1` FOREIGN KEY (`id`) REFERENCES `geoplace` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
1201
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1202
/*!40101 SET character_set_client = @saved_cs_client */;
1203

    
1204
--
1205
-- Dumping data for table `validatable_geoplace`
1206
--
1207

    
1208
/*!40000 ALTER TABLE `validatable_geoplace` DISABLE KEYS */;
1209
/*!40000 ALTER TABLE `validatable_geoplace` ENABLE KEYS */;
1210
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1211

    
1212
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
1213
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
1214
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
1215
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1216
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1217
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
1218
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
1219

    
1220
-- Dump completed
(8-8/14)