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