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