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