Revision 8229
Added by Aaron Marcuse-Kubitza almost 12 years ago
inputs/GBIF/_MySQL/GBIFPortalDB-2013-02-20.schema.sql | ||
---|---|---|
1 |
-- Table structure for table `QRTZ_BLOB_TRIGGERS` |
|
2 |
-- |
|
3 |
|
|
4 |
DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`; |
|
5 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
6 |
/*!40101 SET character_set_client = utf8 */; |
|
7 |
CREATE TABLE `QRTZ_BLOB_TRIGGERS` ( |
|
8 |
`trigger_name` varchar(100) NOT NULL, |
|
9 |
`trigger_group` varchar(100) NOT NULL, |
|
10 |
`blob_data` blob, |
|
11 |
PRIMARY KEY (`trigger_name`,`trigger_group`) |
|
12 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
13 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
14 |
-- Table structure for table `QRTZ_CALENDARS` |
|
15 |
-- |
|
16 |
|
|
17 |
DROP TABLE IF EXISTS `QRTZ_CALENDARS`; |
|
18 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
19 |
/*!40101 SET character_set_client = utf8 */; |
|
20 |
CREATE TABLE `QRTZ_CALENDARS` ( |
|
21 |
`calendar_name` varchar(255) NOT NULL, |
|
22 |
`calendar` blob NOT NULL, |
|
23 |
PRIMARY KEY (`calendar_name`) |
|
24 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
25 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
26 |
-- Table structure for table `QRTZ_CRON_TRIGGERS` |
|
27 |
-- |
|
28 |
|
|
29 |
DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`; |
|
30 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
31 |
/*!40101 SET character_set_client = utf8 */; |
|
32 |
CREATE TABLE `QRTZ_CRON_TRIGGERS` ( |
|
33 |
`trigger_name` varchar(100) NOT NULL, |
|
34 |
`trigger_group` varchar(100) NOT NULL, |
|
35 |
`cron_expression` varchar(255) NOT NULL, |
|
36 |
`time_zone_id` varchar(255) DEFAULT NULL, |
|
37 |
PRIMARY KEY (`trigger_name`,`trigger_group`) |
|
38 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
39 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
40 |
-- Table structure for table `QRTZ_FIRED_TRIGGERS` |
|
41 |
-- |
|
42 |
|
|
43 |
DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`; |
|
44 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
45 |
/*!40101 SET character_set_client = utf8 */; |
|
46 |
CREATE TABLE `QRTZ_FIRED_TRIGGERS` ( |
|
47 |
`entry_id` varchar(95) NOT NULL, |
|
48 |
`trigger_name` varchar(100) NOT NULL, |
|
49 |
`trigger_group` varchar(100) NOT NULL, |
|
50 |
`is_volatile` varchar(1) NOT NULL, |
|
51 |
`instance_name` varchar(255) NOT NULL, |
|
52 |
`fired_time` bigint(13) NOT NULL, |
|
53 |
`priority` int(11) NOT NULL, |
|
54 |
`state` varchar(16) NOT NULL, |
|
55 |
`job_name` varchar(100) DEFAULT NULL, |
|
56 |
`job_group` varchar(100) DEFAULT NULL, |
|
57 |
`is_stateful` varchar(1) DEFAULT NULL, |
|
58 |
`requests_recovery` varchar(1) DEFAULT NULL, |
|
59 |
PRIMARY KEY (`entry_id`) |
|
60 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
61 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
62 |
-- Table structure for table `QRTZ_JOB_DETAILS` |
|
63 |
-- |
|
64 |
|
|
65 |
DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`; |
|
66 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
67 |
/*!40101 SET character_set_client = utf8 */; |
|
68 |
CREATE TABLE `QRTZ_JOB_DETAILS` ( |
|
69 |
`job_name` varchar(100) NOT NULL, |
|
70 |
`job_group` varchar(100) NOT NULL, |
|
71 |
`description` varchar(255) DEFAULT NULL, |
|
72 |
`job_class_name` varchar(128) NOT NULL, |
|
73 |
`is_durable` varchar(1) NOT NULL, |
|
74 |
`is_volatile` varchar(1) NOT NULL, |
|
75 |
`is_stateful` varchar(1) NOT NULL, |
|
76 |
`requests_recovery` varchar(1) NOT NULL, |
|
77 |
`job_data` blob, |
|
78 |
PRIMARY KEY (`job_name`,`job_group`) |
|
79 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
80 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
81 |
-- Table structure for table `QRTZ_JOB_LISTENERS` |
|
82 |
-- |
|
83 |
|
|
84 |
DROP TABLE IF EXISTS `QRTZ_JOB_LISTENERS`; |
|
85 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
86 |
/*!40101 SET character_set_client = utf8 */; |
|
87 |
CREATE TABLE `QRTZ_JOB_LISTENERS` ( |
|
88 |
`job_name` varchar(100) NOT NULL, |
|
89 |
`job_group` varchar(100) NOT NULL, |
|
90 |
`job_listener` varchar(100) NOT NULL, |
|
91 |
PRIMARY KEY (`job_name`,`job_group`,`job_listener`) |
|
92 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
93 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
94 |
-- Table structure for table `QRTZ_LOCKS` |
|
95 |
-- |
|
96 |
|
|
97 |
DROP TABLE IF EXISTS `QRTZ_LOCKS`; |
|
98 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
99 |
/*!40101 SET character_set_client = utf8 */; |
|
100 |
CREATE TABLE `QRTZ_LOCKS` ( |
|
101 |
`lock_name` varchar(40) NOT NULL, |
|
102 |
PRIMARY KEY (`lock_name`) |
|
103 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
104 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
105 |
-- Table structure for table `QRTZ_PAUSED_TRIGGER_GRPS` |
|
106 |
-- |
|
107 |
|
|
108 |
DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`; |
|
109 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
110 |
/*!40101 SET character_set_client = utf8 */; |
|
111 |
CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` ( |
|
112 |
`trigger_group` varchar(100) NOT NULL, |
|
113 |
PRIMARY KEY (`trigger_group`) |
|
114 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
115 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
116 |
-- Table structure for table `QRTZ_SCHEDULER_STATE` |
|
117 |
-- |
|
118 |
|
|
119 |
DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`; |
|
120 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
121 |
/*!40101 SET character_set_client = utf8 */; |
|
122 |
CREATE TABLE `QRTZ_SCHEDULER_STATE` ( |
|
123 |
`instance_name` varchar(255) NOT NULL, |
|
124 |
`last_checkin_time` bigint(13) NOT NULL, |
|
125 |
`checkin_interval` bigint(13) NOT NULL, |
|
126 |
PRIMARY KEY (`instance_name`) |
|
127 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
128 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
129 |
-- Table structure for table `QRTZ_SIMPLE_TRIGGERS` |
|
130 |
-- |
|
131 |
|
|
132 |
DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`; |
|
133 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
134 |
/*!40101 SET character_set_client = utf8 */; |
|
135 |
CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` ( |
|
136 |
`trigger_name` varchar(100) NOT NULL, |
|
137 |
`trigger_group` varchar(100) NOT NULL, |
|
138 |
`repeat_count` bigint(7) NOT NULL, |
|
139 |
`repeat_interval` bigint(12) NOT NULL, |
|
140 |
`times_triggered` bigint(7) NOT NULL, |
|
141 |
PRIMARY KEY (`trigger_name`,`trigger_group`) |
|
142 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
143 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
144 |
-- Table structure for table `QRTZ_TRIGGERS` |
|
145 |
-- |
|
146 |
|
|
147 |
DROP TABLE IF EXISTS `QRTZ_TRIGGERS`; |
|
148 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
149 |
/*!40101 SET character_set_client = utf8 */; |
|
150 |
CREATE TABLE `QRTZ_TRIGGERS` ( |
|
151 |
`trigger_name` varchar(100) NOT NULL, |
|
152 |
`trigger_group` varchar(100) NOT NULL, |
|
153 |
`job_name` varchar(100) NOT NULL, |
|
154 |
`job_group` varchar(100) NOT NULL, |
|
155 |
`is_volatile` varchar(1) NOT NULL, |
|
156 |
`description` varchar(255) DEFAULT NULL, |
|
157 |
`next_fire_time` bigint(13) DEFAULT NULL, |
|
158 |
`prev_fire_time` bigint(13) DEFAULT NULL, |
|
159 |
`priority` int(11) DEFAULT NULL, |
|
160 |
`trigger_state` varchar(16) NOT NULL, |
|
161 |
`trigger_type` varchar(8) NOT NULL, |
|
162 |
`start_time` bigint(13) NOT NULL, |
|
163 |
`end_time` bigint(13) DEFAULT NULL, |
|
164 |
`calendar_name` varchar(255) DEFAULT NULL, |
|
165 |
`misfire_instr` smallint(2) DEFAULT NULL, |
|
166 |
`job_data` blob, |
|
167 |
PRIMARY KEY (`trigger_name`,`trigger_group`), |
|
168 |
KEY `job_name` (`job_name`,`job_group`), |
|
169 |
KEY `ix_qrtz_nft` (`next_fire_time`) |
|
170 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
171 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
172 |
-- Table structure for table `QRTZ_TRIGGER_LISTENERS` |
|
173 |
-- |
|
174 |
|
|
175 |
DROP TABLE IF EXISTS `QRTZ_TRIGGER_LISTENERS`; |
|
176 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
177 |
/*!40101 SET character_set_client = utf8 */; |
|
178 |
CREATE TABLE `QRTZ_TRIGGER_LISTENERS` ( |
|
179 |
`trigger_name` varchar(100) NOT NULL, |
|
180 |
`trigger_group` varchar(100) NOT NULL, |
|
181 |
`trigger_listener` varchar(100) NOT NULL, |
|
182 |
PRIMARY KEY (`trigger_name`,`trigger_group`,`trigger_listener`) |
|
183 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
184 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
185 |
-- Table structure for table `agent` |
|
186 |
-- |
|
187 |
|
|
188 |
DROP TABLE IF EXISTS `agent`; |
|
189 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
190 |
/*!40101 SET character_set_client = utf8 */; |
|
191 |
CREATE TABLE `agent` ( |
|
192 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
193 |
`name` varchar(255) NOT NULL, |
|
194 |
`address` varchar(255) DEFAULT NULL, |
|
195 |
`email` varchar(255) DEFAULT NULL, |
|
196 |
`telephone` varchar(255) DEFAULT NULL, |
|
197 |
`created` datetime DEFAULT NULL, |
|
198 |
`modified` datetime DEFAULT NULL, |
|
199 |
`deleted` datetime DEFAULT NULL, |
|
200 |
PRIMARY KEY (`id`) |
|
201 |
) ENGINE=MyISAM AUTO_INCREMENT=4456 DEFAULT CHARSET=utf8; |
|
202 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
203 |
-- Table structure for table `backup_data_provider_nov15_kyle` |
|
204 |
-- |
|
205 |
|
|
206 |
DROP TABLE IF EXISTS `backup_data_provider_nov15_kyle`; |
|
207 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
208 |
/*!40101 SET character_set_client = utf8 */; |
|
209 |
CREATE TABLE `backup_data_provider_nov15_kyle` ( |
|
210 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
211 |
`name` varchar(255) DEFAULT NULL, |
|
212 |
`description` text, |
|
213 |
`address` varchar(255) DEFAULT NULL, |
|
214 |
`city` varchar(255) DEFAULT NULL, |
|
215 |
`at_latitude` float DEFAULT NULL, |
|
216 |
`at_longitude` float DEFAULT NULL, |
|
217 |
`website_url` varchar(255) DEFAULT NULL, |
|
218 |
`logo_url` varchar(255) DEFAULT NULL, |
|
219 |
`email` varchar(255) DEFAULT NULL, |
|
220 |
`telephone` varchar(255) DEFAULT NULL, |
|
221 |
`uuid` char(50) DEFAULT NULL, |
|
222 |
`concept_count` int(11) DEFAULT '0', |
|
223 |
`higher_concept_count` int(11) DEFAULT '0', |
|
224 |
`species_count` int(11) DEFAULT '0', |
|
225 |
`occurrence_count` int(11) DEFAULT '0', |
|
226 |
`occurrence_coordinate_count` int(11) DEFAULT '0', |
|
227 |
`created` datetime DEFAULT NULL, |
|
228 |
`modified` datetime DEFAULT NULL, |
|
229 |
`deleted` datetime DEFAULT NULL, |
|
230 |
`iso_country_code` char(2) DEFAULT NULL, |
|
231 |
`stated_count_served` int(11) DEFAULT NULL, |
|
232 |
`gbif_approver` varchar(255) DEFAULT NULL, |
|
233 |
`lock_description` tinyint(1) NOT NULL DEFAULT '0', |
|
234 |
`lock_iso_country_code` tinyint(1) NOT NULL DEFAULT '0', |
|
235 |
`data_resource_count` int(11) DEFAULT '0', |
|
236 |
PRIMARY KEY (`id`), |
|
237 |
KEY `IX_data_provider_name` (`name`), |
|
238 |
KEY `IX_data_provider_country` (`iso_country_code`) |
|
239 |
) ENGINE=MyISAM AUTO_INCREMENT=474 DEFAULT CHARSET=utf8; |
|
240 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
241 |
-- Table structure for table `backup_data_resource_nov15_kyle` |
|
242 |
-- |
|
243 |
|
|
244 |
DROP TABLE IF EXISTS `backup_data_resource_nov15_kyle`; |
|
245 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
246 |
/*!40101 SET character_set_client = utf8 */; |
|
247 |
CREATE TABLE `backup_data_resource_nov15_kyle` ( |
|
248 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
249 |
`data_provider_id` int(11) NOT NULL, |
|
250 |
`name` varchar(255) DEFAULT NULL, |
|
251 |
`display_name` varchar(255) DEFAULT NULL, |
|
252 |
`description` text, |
|
253 |
`rights` text, |
|
254 |
`citation` text, |
|
255 |
`logo_url` varchar(255) DEFAULT NULL, |
|
256 |
`shared_taxonomy` tinyint(1) DEFAULT '0', |
|
257 |
`concept_count` int(11) DEFAULT '0', |
|
258 |
`higher_concept_count` int(11) DEFAULT '0', |
|
259 |
`species_count` int(11) DEFAULT '0', |
|
260 |
`occurrence_count` int(11) DEFAULT '0', |
|
261 |
`occurrence_coordinate_count` int(11) DEFAULT '0', |
|
262 |
`basis_of_record` int(11) NOT NULL DEFAULT '0', |
|
263 |
`created` datetime DEFAULT NULL, |
|
264 |
`modified` datetime DEFAULT NULL, |
|
265 |
`deleted` datetime DEFAULT NULL, |
|
266 |
`citable_agent` varchar(255) DEFAULT NULL, |
|
267 |
`root_taxon_rank` int(11) DEFAULT NULL, |
|
268 |
`root_taxon_name` varchar(150) DEFAULT NULL, |
|
269 |
`scope_continent_code` char(2) DEFAULT NULL, |
|
270 |
`scope_country_code` char(2) DEFAULT NULL, |
|
271 |
`provider_record_count` int(11) DEFAULT NULL, |
|
272 |
`taxonomic_priority` int(11) NOT NULL DEFAULT '100', |
|
273 |
`website_url` varchar(255) DEFAULT NULL, |
|
274 |
`occurrence_clean_geospatial_count` int(11) DEFAULT NULL, |
|
275 |
`lock_display_name` tinyint(1) NOT NULL DEFAULT '0', |
|
276 |
`lock_citable_agent` tinyint(1) NOT NULL DEFAULT '0', |
|
277 |
`lock_basis_of_record` tinyint(1) NOT NULL DEFAULT '0', |
|
278 |
`override_citation` tinyint(1) NOT NULL DEFAULT '0', |
|
279 |
`gbif_registry_uuid` char(50) DEFAULT NULL, |
|
280 |
PRIMARY KEY (`id`), |
|
281 |
KEY `data_provider_id` (`data_provider_id`), |
|
282 |
KEY `IX_data_resource_name` (`name`), |
|
283 |
KEY `IX_data_resource_display_name` (`display_name`), |
|
284 |
KEY `IX_data_resource_shared_taxonomy` (`shared_taxonomy`) |
|
285 |
) ENGINE=MyISAM AUTO_INCREMENT=14568 DEFAULT CHARSET=utf8; |
|
286 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
287 |
-- Table structure for table `bi_relation_tag` |
|
288 |
-- |
|
289 |
|
|
290 |
DROP TABLE IF EXISTS `bi_relation_tag`; |
|
291 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
292 |
/*!40101 SET character_set_client = utf8 */; |
|
293 |
CREATE TABLE `bi_relation_tag` ( |
|
294 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
295 |
`tag_id` int(11) DEFAULT NULL, |
|
296 |
`to_entity_id` int(11) DEFAULT NULL, |
|
297 |
`from_entity_id` int(11) DEFAULT NULL, |
|
298 |
`count` int(10) unsigned DEFAULT NULL, |
|
299 |
`is_system_generated` bit(1) DEFAULT NULL, |
|
300 |
PRIMARY KEY (`id`), |
|
301 |
KEY `tag_id` (`tag_id`), |
|
302 |
KEY `ix_bi_relation_tag_tag_id` (`tag_id`), |
|
303 |
KEY `ix_bi_relation_tag_tag_id_to_entity_id` (`tag_id`,`to_entity_id`), |
|
304 |
KEY `ix_bi_relation_tag_tag_id_from_entity_id` (`tag_id`,`from_entity_id`) |
|
305 |
) ENGINE=MyISAM AUTO_INCREMENT=256598456 DEFAULT CHARSET=utf8; |
|
306 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
307 |
-- Table structure for table `boolean_tag` |
|
308 |
-- |
|
309 |
|
|
310 |
DROP TABLE IF EXISTS `boolean_tag`; |
|
311 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
312 |
/*!40101 SET character_set_client = utf8 */; |
|
313 |
CREATE TABLE `boolean_tag` ( |
|
314 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
315 |
`tag_id` int(11) DEFAULT NULL, |
|
316 |
`entity_id` int(11) DEFAULT NULL, |
|
317 |
`is_true` tinyint(1) DEFAULT '0', |
|
318 |
`is_system_generated` bit(1) DEFAULT NULL, |
|
319 |
PRIMARY KEY (`id`), |
|
320 |
KEY `tag_id` (`tag_id`) |
|
321 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
322 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
323 |
-- Table structure for table `catalogue_number` |
|
324 |
-- |
|
325 |
|
|
326 |
DROP TABLE IF EXISTS `catalogue_number`; |
|
327 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
328 |
/*!40101 SET character_set_client = utf8 */; |
|
329 |
CREATE TABLE `catalogue_number` ( |
|
330 |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
331 |
`code` varchar(255) NOT NULL, |
|
332 |
PRIMARY KEY (`id`), |
|
333 |
KEY `ix_cn_catalogue_number` (`code`) |
|
334 |
) ENGINE=MyISAM AUTO_INCREMENT=297418559 DEFAULT CHARSET=utf8; |
|
335 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
336 |
-- Table structure for table `cell_country` |
|
337 |
-- |
|
338 |
|
|
339 |
DROP TABLE IF EXISTS `cell_country`; |
|
340 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
341 |
/*!40101 SET character_set_client = utf8 */; |
|
342 |
CREATE TABLE `cell_country` ( |
|
343 |
`cell_id` int(11) NOT NULL, |
|
344 |
`iso_country_code` char(2) NOT NULL, |
|
345 |
PRIMARY KEY (`cell_id`,`iso_country_code`), |
|
346 |
KEY `IX_cell_ids` (`cell_id`), |
|
347 |
KEY `IX_iso_country_codes` (`iso_country_code`) |
|
348 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
349 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
350 |
-- Table structure for table `cell_density` |
|
351 |
-- |
|
352 |
|
|
353 |
DROP TABLE IF EXISTS `cell_density`; |
|
354 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
355 |
/*!40101 SET character_set_client = utf8 */; |
|
356 |
CREATE TABLE `cell_density` ( |
|
357 |
`type` smallint(5) unsigned NOT NULL, |
|
358 |
`entity_id` int(10) unsigned NOT NULL, |
|
359 |
`cell_id` smallint(5) unsigned NOT NULL, |
|
360 |
`count` int(10) unsigned DEFAULT NULL, |
|
361 |
PRIMARY KEY (`type`,`entity_id`,`cell_id`) |
|
362 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
363 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
364 |
-- Table structure for table `centi_cell_density` |
|
365 |
-- |
|
366 |
|
|
367 |
DROP TABLE IF EXISTS `centi_cell_density`; |
|
368 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
369 |
/*!40101 SET character_set_client = utf8 */; |
|
370 |
CREATE TABLE `centi_cell_density` ( |
|
371 |
`type` smallint(5) unsigned NOT NULL, |
|
372 |
`entity_id` int(10) unsigned NOT NULL, |
|
373 |
`cell_id` smallint(5) unsigned NOT NULL, |
|
374 |
`centi_cell_id` tinyint(3) unsigned NOT NULL, |
|
375 |
`count` int(10) unsigned DEFAULT NULL, |
|
376 |
PRIMARY KEY (`type`,`entity_id`,`cell_id`,`centi_cell_id`) |
|
377 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
378 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
379 |
-- Table structure for table `collection_code` |
|
380 |
-- |
|
381 |
|
|
382 |
DROP TABLE IF EXISTS `collection_code`; |
|
383 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
384 |
/*!40101 SET character_set_client = utf8 */; |
|
385 |
CREATE TABLE `collection_code` ( |
|
386 |
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, |
|
387 |
`code` varchar(255) NOT NULL, |
|
388 |
PRIMARY KEY (`id`), |
|
389 |
KEY `ix_cc_collection_code` (`code`) |
|
390 |
) ENGINE=MyISAM AUTO_INCREMENT=1939467 DEFAULT CHARSET=utf8; |
|
391 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
392 |
-- Table structure for table `common_name` |
|
393 |
-- |
|
394 |
|
|
395 |
DROP TABLE IF EXISTS `common_name`; |
|
396 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
397 |
/*!40101 SET character_set_client = utf8 */; |
|
398 |
CREATE TABLE `common_name` ( |
|
399 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
400 |
`taxon_concept_id` int(11) DEFAULT NULL, |
|
401 |
`name` varchar(255) COLLATE utf8mb4_bin NOT NULL, |
|
402 |
`iso_language_code` char(2) COLLATE utf8mb4_bin DEFAULT NULL, |
|
403 |
`language` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, |
|
404 |
PRIMARY KEY (`id`), |
|
405 |
KEY `taxon_concept_id` (`taxon_concept_id`), |
|
406 |
KEY `IX_common_name_1` (`name`(50)), |
|
407 |
KEY `IX_common_name_2` (`iso_language_code`), |
|
408 |
KEY `IX_common_name_3` (`language`(100)) |
|
409 |
) ENGINE=MyISAM AUTO_INCREMENT=19723683 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; |
|
410 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
411 |
-- Table structure for table `common_name_orig` |
|
412 |
-- |
|
413 |
|
|
414 |
DROP TABLE IF EXISTS `common_name_orig`; |
|
415 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
416 |
/*!40101 SET character_set_client = utf8 */; |
|
417 |
CREATE TABLE `common_name_orig` ( |
|
418 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
419 |
`taxon_concept_id` int(11) DEFAULT NULL, |
|
420 |
`name` varchar(255) NOT NULL, |
|
421 |
`iso_language_code` char(2) DEFAULT NULL, |
|
422 |
`language` varchar(255) DEFAULT NULL, |
|
423 |
PRIMARY KEY (`id`), |
|
424 |
KEY `taxon_concept_id` (`taxon_concept_id`), |
|
425 |
KEY `IX_common_name_1` (`name`), |
|
426 |
KEY `IX_common_name_2` (`iso_language_code`), |
|
427 |
KEY `IX_common_name_3` (`language`) |
|
428 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
429 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
430 |
-- Table structure for table `country` |
|
431 |
-- |
|
432 |
|
|
433 |
DROP TABLE IF EXISTS `country`; |
|
434 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
435 |
/*!40101 SET character_set_client = utf8 */; |
|
436 |
CREATE TABLE `country` ( |
|
437 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
438 |
`iso_country_code` char(2) DEFAULT NULL, |
|
439 |
`concept_count` int(11) DEFAULT '0', |
|
440 |
`species_count` int(11) DEFAULT '0', |
|
441 |
`occurrence_count` int(11) DEFAULT '0', |
|
442 |
`occurrence_coordinate_count` int(11) DEFAULT '0', |
|
443 |
`continent_code` enum('AF','AS','EU','NA','OC','SA','AN') DEFAULT NULL, |
|
444 |
`region` char(3) DEFAULT NULL, |
|
445 |
`min_latitude` float DEFAULT NULL, |
|
446 |
`max_latitude` float DEFAULT NULL, |
|
447 |
`min_longitude` float DEFAULT NULL, |
|
448 |
`max_longitude` float DEFAULT NULL, |
|
449 |
PRIMARY KEY (`id`), |
|
450 |
KEY `IX_country_iso_country_code` (`iso_country_code`), |
|
451 |
KEY `IX_country_continent_code` (`continent_code`), |
|
452 |
KEY `IX_country_region` (`region`) |
|
453 |
) ENGINE=MyISAM AUTO_INCREMENT=254 DEFAULT CHARSET=utf8; |
|
454 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
455 |
-- Table structure for table `country_name` |
|
456 |
-- |
|
457 |
|
|
458 |
DROP TABLE IF EXISTS `country_name`; |
|
459 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
460 |
/*!40101 SET character_set_client = utf8 */; |
|
461 |
CREATE TABLE `country_name` ( |
|
462 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
463 |
`country_id` int(11) DEFAULT NULL, |
|
464 |
`name` varchar(255) DEFAULT NULL, |
|
465 |
`searchable_name` varchar(255) DEFAULT NULL, |
|
466 |
`iso_country_code` char(2) DEFAULT NULL, |
|
467 |
`locale` char(2) DEFAULT NULL, |
|
468 |
PRIMARY KEY (`id`), |
|
469 |
KEY `country_id` (`country_id`), |
|
470 |
KEY `IX_country_name_name` (`name`), |
|
471 |
KEY `IX_country_name_searchable_name` (`searchable_name`), |
|
472 |
KEY `IX_country_name_iso_country_code` (`iso_country_code`), |
|
473 |
KEY `IX_country_name_locale` (`locale`) |
|
474 |
) ENGINE=MyISAM AUTO_INCREMENT=2909 DEFAULT CHARSET=utf8; |
|
475 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
476 |
-- Table structure for table `data_provider` |
|
477 |
-- |
|
478 |
|
|
479 |
DROP TABLE IF EXISTS `data_provider`; |
|
480 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
481 |
/*!40101 SET character_set_client = utf8 */; |
|
482 |
CREATE TABLE `data_provider` ( |
|
483 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
484 |
`name` varchar(255) DEFAULT NULL, |
|
485 |
`description` text, |
|
486 |
`address` varchar(255) DEFAULT NULL, |
|
487 |
`city` varchar(255) DEFAULT NULL, |
|
488 |
`at_latitude` float DEFAULT NULL, |
|
489 |
`at_longitude` float DEFAULT NULL, |
|
490 |
`website_url` varchar(255) DEFAULT NULL, |
|
491 |
`logo_url` varchar(255) DEFAULT NULL, |
|
492 |
`email` varchar(255) DEFAULT NULL, |
|
493 |
`telephone` varchar(255) DEFAULT NULL, |
|
494 |
`uuid` char(50) DEFAULT NULL, |
|
495 |
`concept_count` int(11) DEFAULT '0', |
|
496 |
`higher_concept_count` int(11) DEFAULT '0', |
|
497 |
`species_count` int(11) DEFAULT '0', |
|
498 |
`occurrence_count` int(11) DEFAULT '0', |
|
499 |
`occurrence_coordinate_count` int(11) DEFAULT '0', |
|
500 |
`created` datetime DEFAULT NULL, |
|
501 |
`modified` datetime DEFAULT NULL, |
|
502 |
`deleted` datetime DEFAULT NULL, |
|
503 |
`iso_country_code` char(2) DEFAULT NULL, |
|
504 |
`stated_count_served` int(11) DEFAULT NULL, |
|
505 |
`gbif_approver` varchar(255) DEFAULT NULL, |
|
506 |
`lock_description` tinyint(1) NOT NULL DEFAULT '0', |
|
507 |
`lock_iso_country_code` tinyint(1) NOT NULL DEFAULT '0', |
|
508 |
`data_resource_count` int(11) DEFAULT '0', |
|
509 |
PRIMARY KEY (`id`), |
|
510 |
KEY `IX_data_provider_name` (`name`), |
|
511 |
KEY `IX_data_provider_country` (`iso_country_code`) |
|
512 |
) ENGINE=MyISAM AUTO_INCREMENT=510 DEFAULT CHARSET=utf8; |
|
513 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
514 |
-- Table structure for table `data_provider_agent` |
|
515 |
-- |
|
516 |
|
|
517 |
DROP TABLE IF EXISTS `data_provider_agent`; |
|
518 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
519 |
/*!40101 SET character_set_client = utf8 */; |
|
520 |
CREATE TABLE `data_provider_agent` ( |
|
521 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
522 |
`data_provider_id` int(11) NOT NULL, |
|
523 |
`agent_id` int(11) NOT NULL, |
|
524 |
`agent_type` int(11) NOT NULL, |
|
525 |
PRIMARY KEY (`id`), |
|
526 |
KEY `data_provider_id` (`data_provider_id`), |
|
527 |
KEY `agent_id` (`agent_id`) |
|
528 |
) ENGINE=MyISAM AUTO_INCREMENT=2446 DEFAULT CHARSET=utf8; |
|
529 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
530 |
-- Table structure for table `data_resource` |
|
531 |
-- |
|
532 |
|
|
533 |
DROP TABLE IF EXISTS `data_resource`; |
|
534 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
535 |
/*!40101 SET character_set_client = utf8 */; |
|
536 |
CREATE TABLE `data_resource` ( |
|
537 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
538 |
`data_provider_id` int(11) NOT NULL, |
|
539 |
`name` varchar(255) DEFAULT NULL, |
|
540 |
`display_name` varchar(255) DEFAULT NULL, |
|
541 |
`description` text, |
|
542 |
`rights` text, |
|
543 |
`citation` text, |
|
544 |
`logo_url` varchar(255) DEFAULT NULL, |
|
545 |
`shared_taxonomy` tinyint(1) DEFAULT '0', |
|
546 |
`concept_count` int(11) DEFAULT '0', |
|
547 |
`higher_concept_count` int(11) DEFAULT '0', |
|
548 |
`species_count` int(11) DEFAULT '0', |
|
549 |
`occurrence_count` int(11) DEFAULT '0', |
|
550 |
`occurrence_coordinate_count` int(11) DEFAULT '0', |
|
551 |
`basis_of_record` int(11) NOT NULL DEFAULT '0', |
|
552 |
`created` datetime DEFAULT NULL, |
|
553 |
`modified` datetime DEFAULT NULL, |
|
554 |
`deleted` datetime DEFAULT NULL, |
|
555 |
`citable_agent` varchar(255) DEFAULT NULL, |
|
556 |
`root_taxon_rank` int(11) DEFAULT NULL, |
|
557 |
`root_taxon_name` varchar(150) DEFAULT NULL, |
|
558 |
`scope_continent_code` char(2) DEFAULT NULL, |
|
559 |
`scope_country_code` char(2) DEFAULT NULL, |
|
560 |
`provider_record_count` int(11) DEFAULT NULL, |
|
561 |
`taxonomic_priority` int(11) NOT NULL DEFAULT '100', |
|
562 |
`website_url` varchar(255) DEFAULT NULL, |
|
563 |
`occurrence_clean_geospatial_count` int(11) DEFAULT NULL, |
|
564 |
`lock_display_name` tinyint(1) NOT NULL DEFAULT '0', |
|
565 |
`lock_citable_agent` tinyint(1) NOT NULL DEFAULT '0', |
|
566 |
`lock_basis_of_record` tinyint(1) NOT NULL DEFAULT '0', |
|
567 |
`override_citation` tinyint(1) NOT NULL DEFAULT '0', |
|
568 |
`gbif_registry_uuid` char(50) DEFAULT NULL, |
|
569 |
PRIMARY KEY (`id`), |
|
570 |
KEY `data_provider_id` (`data_provider_id`), |
|
571 |
KEY `IX_data_resource_name` (`name`), |
|
572 |
KEY `IX_data_resource_display_name` (`display_name`), |
|
573 |
KEY `IX_data_resource_shared_taxonomy` (`shared_taxonomy`) |
|
574 |
) ENGINE=MyISAM AUTO_INCREMENT=14696 DEFAULT CHARSET=utf8; |
|
575 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
576 |
-- Table structure for table `data_resource_agent` |
|
577 |
-- |
|
578 |
|
|
579 |
DROP TABLE IF EXISTS `data_resource_agent`; |
|
580 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
581 |
/*!40101 SET character_set_client = utf8 */; |
|
582 |
CREATE TABLE `data_resource_agent` ( |
|
583 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
584 |
`data_resource_id` int(11) NOT NULL, |
|
585 |
`agent_id` int(11) NOT NULL, |
|
586 |
`agent_type` int(11) NOT NULL, |
|
587 |
PRIMARY KEY (`id`), |
|
588 |
KEY `data_resource_id` (`data_resource_id`), |
|
589 |
KEY `agent_id` (`agent_id`) |
|
590 |
) ENGINE=MyISAM AUTO_INCREMENT=13452 DEFAULT CHARSET=utf8; |
|
591 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
592 |
-- Table structure for table `entity_type` |
|
593 |
-- |
|
594 |
|
|
595 |
DROP TABLE IF EXISTS `entity_type`; |
|
596 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
597 |
/*!40101 SET character_set_client = utf8 */; |
|
598 |
CREATE TABLE `entity_type` ( |
|
599 |
`id` smallint(5) unsigned NOT NULL, |
|
600 |
`entity_type` varchar(255) DEFAULT NULL, |
|
601 |
PRIMARY KEY (`id`) |
|
602 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
603 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
604 |
-- Table structure for table `gbif_log_message` |
|
605 |
-- |
|
606 |
|
|
607 |
DROP TABLE IF EXISTS `gbif_log_message`; |
|
608 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
609 |
/*!40101 SET character_set_client = utf8 */; |
|
610 |
CREATE TABLE `gbif_log_message` ( |
|
611 |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
612 |
`portal_instance_id` tinyint(3) unsigned DEFAULT NULL, |
|
613 |
`log_group_id` int(10) unsigned DEFAULT NULL, |
|
614 |
`event_id` mediumint(8) unsigned DEFAULT '0', |
|
615 |
`level` smallint(5) unsigned DEFAULT NULL, |
|
616 |
`data_provider_id` smallint(5) unsigned DEFAULT NULL, |
|
617 |
`data_resource_id` smallint(5) unsigned DEFAULT NULL, |
|
618 |
`occurrence_id` int(10) unsigned DEFAULT NULL, |
|
619 |
`taxon_concept_id` int(10) unsigned DEFAULT NULL, |
|
620 |
`user_id` smallint(5) unsigned DEFAULT NULL, |
|
621 |
`message` text, |
|
622 |
`restricted` tinyint(1) unsigned DEFAULT NULL, |
|
623 |
`count` int(10) unsigned DEFAULT NULL, |
|
624 |
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
|
625 |
PRIMARY KEY (`id`), |
|
626 |
KEY `log_group_id` (`log_group_id`), |
|
627 |
KEY `portal_instance_id` (`portal_instance_id`), |
|
628 |
KEY `level` (`level`), |
|
629 |
KEY `event_id` (`event_id`), |
|
630 |
KEY `timestamp` (`timestamp`), |
|
631 |
KEY `user_id` (`user_id`), |
|
632 |
KEY `portal_instance_id_2` (`portal_instance_id`,`log_group_id`), |
|
633 |
KEY `data_resource_id` (`data_resource_id`,`event_id`,`timestamp`), |
|
634 |
KEY `data_provider_id` (`data_provider_id`,`event_id`,`timestamp`), |
|
635 |
KEY `occurrence_id` (`occurrence_id`,`event_id`,`timestamp`) |
|
636 |
) ENGINE=MyISAM AUTO_INCREMENT=591015197 DEFAULT CHARSET=utf8; |
|
637 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
638 |
-- Table structure for table `gbif_user` |
|
639 |
-- |
|
640 |
|
|
641 |
DROP TABLE IF EXISTS `gbif_user`; |
|
642 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
643 |
/*!40101 SET character_set_client = utf8 */; |
|
644 |
CREATE TABLE `gbif_user` ( |
|
645 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
646 |
`portal_instance_id` int(11) NOT NULL, |
|
647 |
`name` varchar(255) NOT NULL, |
|
648 |
`email` varchar(255) NOT NULL, |
|
649 |
`verified` tinyint(1) NOT NULL DEFAULT '0', |
|
650 |
PRIMARY KEY (`id`), |
|
651 |
KEY `IX_gbif_user_verified` (`verified`) |
|
652 |
) ENGINE=MyISAM AUTO_INCREMENT=2281 DEFAULT CHARSET=utf8; |
|
653 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
654 |
-- Table structure for table `geo_mapping` |
|
655 |
-- |
|
656 |
|
|
657 |
DROP TABLE IF EXISTS `geo_mapping`; |
|
658 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
659 |
/*!40101 SET character_set_client = utf8 */; |
|
660 |
CREATE TABLE `geo_mapping` ( |
|
661 |
`geo_region_id` int(11) NOT NULL, |
|
662 |
`occurrence_id` int(11) NOT NULL, |
|
663 |
PRIMARY KEY (`geo_region_id`,`occurrence_id`) |
|
664 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
665 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
666 |
-- Table structure for table `geo_region` |
|
667 |
-- |
|
668 |
|
|
669 |
DROP TABLE IF EXISTS `geo_region`; |
|
670 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
671 |
/*!40101 SET character_set_client = utf8 */; |
|
672 |
CREATE TABLE `geo_region` ( |
|
673 |
`id` int(11) NOT NULL DEFAULT '0', |
|
674 |
`name` varchar(255) DEFAULT NULL, |
|
675 |
`region_type` smallint(6) DEFAULT NULL, |
|
676 |
`iso_country_code` char(2) DEFAULT NULL, |
|
677 |
`concept_count` int(11) DEFAULT '0', |
|
678 |
`species_count` int(11) DEFAULT '0', |
|
679 |
`occurrence_count` int(11) DEFAULT NULL, |
|
680 |
`occurrence_coordinate_count` int(11) DEFAULT '0', |
|
681 |
`min_latitude` float DEFAULT NULL, |
|
682 |
`max_latitude` float DEFAULT NULL, |
|
683 |
`min_longitude` float DEFAULT NULL, |
|
684 |
`max_longitude` float DEFAULT NULL, |
|
685 |
PRIMARY KEY (`id`), |
|
686 |
KEY `ix_geo_region_iso_country_code` (`iso_country_code`), |
|
687 |
KEY `ix_geo_region_name` (`name`) |
|
688 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
689 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
690 |
-- Table structure for table `geographical_coverage_tag` |
|
691 |
-- |
|
692 |
|
|
693 |
DROP TABLE IF EXISTS `geographical_coverage_tag`; |
|
694 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
695 |
/*!40101 SET character_set_client = utf8 */; |
|
696 |
CREATE TABLE `geographical_coverage_tag` ( |
|
697 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
698 |
`tag_id` int(11) DEFAULT NULL, |
|
699 |
`entity_id` int(11) DEFAULT NULL, |
|
700 |
`min_longitude` float DEFAULT NULL, |
|
701 |
`min_latitude` float DEFAULT NULL, |
|
702 |
`max_longitude` float DEFAULT NULL, |
|
703 |
`max_latitude` float DEFAULT NULL, |
|
704 |
`is_system_generated` bit(1) DEFAULT NULL, |
|
705 |
PRIMARY KEY (`id`), |
|
706 |
KEY `tag_id` (`tag_id`) |
|
707 |
) ENGINE=MyISAM AUTO_INCREMENT=319746 DEFAULT CHARSET=utf8; |
|
708 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
709 |
-- Table structure for table `gmba` |
|
710 |
-- |
|
711 |
|
|
712 |
DROP TABLE IF EXISTS `gmba`; |
|
713 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
714 |
/*!40101 SET character_set_client = utf8 */; |
|
715 |
CREATE TABLE `gmba` ( |
|
716 |
`cellnr` int(11) DEFAULT NULL, |
|
717 |
`latitude` float DEFAULT NULL, |
|
718 |
`longitude` float DEFAULT NULL, |
|
719 |
`elevation` smallint(6) DEFAULT NULL, |
|
720 |
`relief` smallint(6) DEFAULT NULL, |
|
721 |
`continent` tinyint(4) DEFAULT NULL, |
|
722 |
`seadist` mediumint(9) DEFAULT NULL, |
|
723 |
`mtdist` mediumint(9) DEFAULT NULL, |
|
724 |
`vegcode` tinyint(4) DEFAULT NULL, |
|
725 |
`tpcode` tinyint(4) DEFAULT NULL, |
|
726 |
`cell_id` int(10) unsigned DEFAULT NULL, |
|
727 |
`tvzcode` int(11) DEFAULT NULL, |
|
728 |
`cell_id2` int(11) DEFAULT NULL, |
|
729 |
KEY `relief` (`relief`), |
|
730 |
KEY `cell_id` (`cell_id`) |
|
731 |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|
732 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
733 |
-- Table structure for table `identifier_record` |
|
734 |
-- |
|
735 |
|
|
736 |
DROP TABLE IF EXISTS `identifier_record`; |
|
737 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
738 |
/*!40101 SET character_set_client = utf8 */; |
|
739 |
CREATE TABLE `identifier_record` ( |
|
740 |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
741 |
`data_resource_id` smallint(5) unsigned NOT NULL, |
|
742 |
`occurrence_id` int(10) unsigned DEFAULT NULL, |
|
743 |
`identifier_type` smallint(5) unsigned NOT NULL DEFAULT '0', |
|
744 |
`identifier` varchar(255) NOT NULL, |
|
745 |
PRIMARY KEY (`id`), |
|
746 |
KEY `ix_identifier_record_occurrence` (`occurrence_id`), |
|
747 |
KEY `id_identifier_record_resource` (`data_resource_id`) USING BTREE |
|
748 |
) ENGINE=MyISAM AUTO_INCREMENT=3034438092 DEFAULT CHARSET=utf8; |
|
749 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
750 |
-- Table structure for table `image_record` |
|
751 |
-- |
|
752 |
|
|
753 |
DROP TABLE IF EXISTS `image_record`; |
|
754 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
755 |
/*!40101 SET character_set_client = utf8 */; |
|
756 |
CREATE TABLE `image_record` ( |
|
757 |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
758 |
`data_resource_id` smallint(5) unsigned NOT NULL, |
|
759 |
`occurrence_id` int(10) unsigned DEFAULT NULL, |
|
760 |
`taxon_concept_id` int(10) unsigned DEFAULT NULL, |
|
761 |
`raw_image_type` varchar(128) DEFAULT NULL, |
|
762 |
`image_type` tinyint(3) unsigned NOT NULL DEFAULT '0', |
|
763 |
`url` varchar(255) NOT NULL, |
|
764 |
`description` text, |
|
765 |
`rights` text, |
|
766 |
`html_for_display` text, |
|
767 |
PRIMARY KEY (`id`), |
|
768 |
KEY `ix_image_record_occurrence` (`occurrence_id`), |
|
769 |
KEY `ix_image_record_resource_taxon_concept` (`data_resource_id`,`taxon_concept_id`), |
|
770 |
KEY `ix_image_record_taxon_concept_id` (`taxon_concept_id`) |
|
771 |
) ENGINE=MyISAM AUTO_INCREMENT=119777778 DEFAULT CHARSET=utf8; |
|
772 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
773 |
-- Table structure for table `index_data` |
|
774 |
-- |
|
775 |
|
|
776 |
DROP TABLE IF EXISTS `index_data`; |
|
777 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
778 |
/*!40101 SET character_set_client = utf8 */; |
|
779 |
CREATE TABLE `index_data` ( |
|
780 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
781 |
`resource_access_point_id` int(11) NOT NULL, |
|
782 |
`type` int(11) DEFAULT NULL, |
|
783 |
`lower_value` varchar(255) DEFAULT NULL, |
|
784 |
`upper_value` varchar(255) DEFAULT NULL, |
|
785 |
`started` datetime DEFAULT NULL, |
|
786 |
`finished` datetime DEFAULT NULL, |
|
787 |
PRIMARY KEY (`id`), |
|
788 |
KEY `IX_indexing_data_1` (`resource_access_point_id`), |
|
789 |
KEY `IX_indexing_data_2` (`started`) |
|
790 |
) ENGINE=MyISAM AUTO_INCREMENT=2420758 DEFAULT CHARSET=utf8; |
|
791 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
792 |
-- Table structure for table `institution_code` |
|
793 |
-- |
|
794 |
|
|
795 |
DROP TABLE IF EXISTS `institution_code`; |
|
796 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
797 |
/*!40101 SET character_set_client = utf8 */; |
|
798 |
CREATE TABLE `institution_code` ( |
|
799 |
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, |
|
800 |
`code` varchar(255) NOT NULL, |
|
801 |
PRIMARY KEY (`id`), |
|
802 |
KEY `ix_ic_institution_code` (`code`) |
|
803 |
) ENGINE=MyISAM AUTO_INCREMENT=10636 DEFAULT CHARSET=utf8; |
|
804 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
805 |
-- Table structure for table `ip_country` |
|
806 |
-- |
|
807 |
|
|
808 |
DROP TABLE IF EXISTS `ip_country`; |
|
809 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
810 |
/*!40101 SET character_set_client = utf8 */; |
|
811 |
CREATE TABLE `ip_country` ( |
|
812 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
813 |
`start` char(15) NOT NULL, |
|
814 |
`end` char(15) NOT NULL, |
|
815 |
`start_long` bigint(20) unsigned DEFAULT NULL, |
|
816 |
`end_long` bigint(20) unsigned DEFAULT NULL, |
|
817 |
`iso_country_code` char(12) DEFAULT NULL, |
|
818 |
PRIMARY KEY (`id`), |
|
819 |
KEY `IX_ip_country_range` (`start_long`,`end_long`) |
|
820 |
) ENGINE=MyISAM AUTO_INCREMENT=140426 DEFAULT CHARSET=utf8; |
|
821 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
822 |
-- Table structure for table `link_record` |
|
823 |
-- |
|
824 |
|
|
825 |
DROP TABLE IF EXISTS `link_record`; |
|
826 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
827 |
/*!40101 SET character_set_client = utf8 */; |
|
828 |
CREATE TABLE `link_record` ( |
|
829 |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
830 |
`data_resource_id` smallint(5) unsigned NOT NULL, |
|
831 |
`occurrence_id` int(10) unsigned DEFAULT NULL, |
|
832 |
`taxon_concept_id` int(10) unsigned DEFAULT NULL, |
|
833 |
`raw_link_type` varchar(128) DEFAULT NULL, |
|
834 |
`link_type` smallint(5) unsigned NOT NULL DEFAULT '0', |
|
835 |
`url` varchar(255) NOT NULL, |
|
836 |
`description` text, |
|
837 |
PRIMARY KEY (`id`), |
|
838 |
KEY `ix_link_record_occurrence` (`occurrence_id`), |
|
839 |
KEY `ix_link_record_taxon_concept` (`taxon_concept_id`), |
|
840 |
KEY `id_link_record_resource` (`data_resource_id`) USING BTREE |
|
841 |
) ENGINE=MyISAM AUTO_INCREMENT=60493025 DEFAULT CHARSET=utf8; |
|
842 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
843 |
-- Table structure for table `lookup_agent_type` |
|
844 |
-- |
|
845 |
|
|
846 |
DROP TABLE IF EXISTS `lookup_agent_type`; |
|
847 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
848 |
/*!40101 SET character_set_client = utf8 */; |
|
849 |
CREATE TABLE `lookup_agent_type` ( |
|
850 |
`la_key` int(11) DEFAULT NULL, |
|
851 |
`la_value` varchar(100) DEFAULT NULL |
|
852 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
853 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
854 |
-- Table structure for table `lookup_basis_of_record` |
|
855 |
-- |
|
856 |
|
|
857 |
DROP TABLE IF EXISTS `lookup_basis_of_record`; |
|
858 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
859 |
/*!40101 SET character_set_client = utf8 */; |
|
860 |
CREATE TABLE `lookup_basis_of_record` ( |
|
861 |
`br_key` int(11) DEFAULT NULL, |
|
862 |
`br_value` varchar(100) DEFAULT NULL |
|
863 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
864 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
865 |
-- Table structure for table `lookup_cell_density_type` |
|
866 |
-- |
|
867 |
|
|
868 |
DROP TABLE IF EXISTS `lookup_cell_density_type`; |
|
869 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
870 |
/*!40101 SET character_set_client = utf8 */; |
|
871 |
CREATE TABLE `lookup_cell_density_type` ( |
|
872 |
`cd_key` int(11) DEFAULT NULL, |
|
873 |
`cd_value` varchar(100) DEFAULT NULL |
|
874 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
875 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
876 |
-- Table structure for table `lookup_identifier_type` |
|
877 |
-- |
|
878 |
|
|
879 |
DROP TABLE IF EXISTS `lookup_identifier_type`; |
|
880 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
881 |
/*!40101 SET character_set_client = utf8 */; |
|
882 |
CREATE TABLE `lookup_identifier_type` ( |
|
883 |
`it_key` int(11) DEFAULT NULL, |
|
884 |
`it_value` varchar(100) DEFAULT NULL |
|
885 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
886 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
887 |
-- Table structure for table `lookup_image_type` |
|
888 |
-- |
|
889 |
|
|
890 |
DROP TABLE IF EXISTS `lookup_image_type`; |
|
891 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
892 |
/*!40101 SET character_set_client = utf8 */; |
|
893 |
CREATE TABLE `lookup_image_type` ( |
|
894 |
`im_key` int(11) DEFAULT NULL, |
|
895 |
`im_value` varchar(100) DEFAULT NULL |
|
896 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
897 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
898 |
-- Table structure for table `lookup_link_type` |
|
899 |
-- |
|
900 |
|
|
901 |
DROP TABLE IF EXISTS `lookup_link_type`; |
|
902 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
903 |
/*!40101 SET character_set_client = utf8 */; |
|
904 |
CREATE TABLE `lookup_link_type` ( |
|
905 |
`li_key` int(11) DEFAULT NULL, |
|
906 |
`li_value` varchar(100) DEFAULT NULL |
|
907 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
908 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
909 |
-- Table structure for table `lookup_log_event_type` |
|
910 |
-- |
|
911 |
|
|
912 |
DROP TABLE IF EXISTS `lookup_log_event_type`; |
|
913 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
914 |
/*!40101 SET character_set_client = utf8 */; |
|
915 |
CREATE TABLE `lookup_log_event_type` ( |
|
916 |
`le_key` int(11) DEFAULT NULL, |
|
917 |
`le_value` varchar(100) DEFAULT NULL |
|
918 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
919 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
920 |
-- Table structure for table `lookup_quad_relation_entity` |
|
921 |
-- |
|
922 |
|
|
923 |
DROP TABLE IF EXISTS `lookup_quad_relation_entity`; |
|
924 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
925 |
/*!40101 SET character_set_client = utf8 */; |
|
926 |
CREATE TABLE `lookup_quad_relation_entity` ( |
|
927 |
`qe_attribute` varchar(25) DEFAULT NULL, |
|
928 |
`qe_resolution` varchar(100) DEFAULT NULL |
|
929 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
930 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
931 |
-- Table structure for table `lookup_relationship_assertion_type` |
|
932 |
-- |
|
933 |
|
|
934 |
DROP TABLE IF EXISTS `lookup_relationship_assertion_type`; |
|
935 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
936 |
/*!40101 SET character_set_client = utf8 */; |
|
937 |
CREATE TABLE `lookup_relationship_assertion_type` ( |
|
938 |
`ra_key` int(11) DEFAULT NULL, |
|
939 |
`ra_value` varchar(100) DEFAULT NULL |
|
940 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
941 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
942 |
-- Table structure for table `lookup_remote_concept_remote_id` |
|
943 |
-- |
|
944 |
|
|
945 |
DROP TABLE IF EXISTS `lookup_remote_concept_remote_id`; |
|
946 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
947 |
/*!40101 SET character_set_client = utf8 */; |
|
948 |
CREATE TABLE `lookup_remote_concept_remote_id` ( |
|
949 |
`rc_key` int(11) DEFAULT NULL, |
|
950 |
`rc_value` varchar(100) DEFAULT NULL |
|
951 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
952 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
953 |
-- Table structure for table `namespace_mapping` |
|
954 |
-- |
|
955 |
|
|
956 |
DROP TABLE IF EXISTS `namespace_mapping`; |
|
957 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
958 |
/*!40101 SET character_set_client = utf8 */; |
|
959 |
CREATE TABLE `namespace_mapping` ( |
|
960 |
`resource_access_point_id` int(11) NOT NULL, |
|
961 |
`property_store_namespace_id` int(11) NOT NULL, |
|
962 |
`priority` int(11) NOT NULL, |
|
963 |
PRIMARY KEY (`property_store_namespace_id`,`resource_access_point_id`), |
|
964 |
KEY `property_store_namespace_id` (`property_store_namespace_id`), |
|
965 |
KEY `resource_access_point_id` (`resource_access_point_id`) |
|
966 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
967 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
968 |
-- Table structure for table `network_membership` |
|
969 |
-- |
|
970 |
|
|
971 |
DROP TABLE IF EXISTS `network_membership`; |
|
972 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
973 |
/*!40101 SET character_set_client = utf8 */; |
|
974 |
CREATE TABLE `network_membership` ( |
|
975 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
976 |
`data_resource_id` int(11) NOT NULL, |
|
977 |
`resource_network_id` int(11) NOT NULL, |
|
978 |
PRIMARY KEY (`id`), |
|
979 |
KEY `data_resource_id` (`data_resource_id`), |
|
980 |
KEY `resource_network_id` (`resource_network_id`), |
|
981 |
KEY `IX_network_membership_id` (`id`) |
|
982 |
) ENGINE=MyISAM AUTO_INCREMENT=440592 DEFAULT CHARSET=utf8; |
|
983 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
984 |
-- Table structure for table `number_tag` |
|
985 |
-- |
|
986 |
|
|
987 |
DROP TABLE IF EXISTS `number_tag`; |
|
988 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
989 |
/*!40101 SET character_set_client = utf8 */; |
|
990 |
CREATE TABLE `number_tag` ( |
|
991 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
992 |
`tag_id` int(11) DEFAULT NULL, |
|
993 |
`entity_id` int(11) DEFAULT NULL, |
|
994 |
`value` float DEFAULT NULL, |
|
995 |
`is_system_generated` bit(1) DEFAULT NULL, |
|
996 |
PRIMARY KEY (`id`), |
|
997 |
KEY `tag_id` (`tag_id`) |
|
998 |
) ENGINE=MyISAM AUTO_INCREMENT=852747 DEFAULT CHARSET=utf8; |
|
999 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1000 |
-- Table structure for table `occurrence_record` |
|
1001 |
-- |
|
1002 |
|
|
1003 |
DROP TABLE IF EXISTS `occurrence_record`; |
|
1004 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1005 |
/*!40101 SET character_set_client = utf8 */; |
|
1006 |
CREATE TABLE `occurrence_record` ( |
|
1007 |
`id` int(10) unsigned NOT NULL, |
|
1008 |
`data_provider_id` smallint(5) unsigned NOT NULL, |
|
1009 |
`data_resource_id` smallint(5) unsigned NOT NULL, |
|
1010 |
`institution_code_id` mediumint(8) unsigned DEFAULT NULL, |
|
1011 |
`collection_code_id` mediumint(8) unsigned NOT NULL, |
|
1012 |
`catalogue_number_id` int(10) unsigned NOT NULL, |
|
1013 |
`taxon_concept_id` int(10) unsigned NOT NULL, |
|
1014 |
`taxon_name_id` mediumint(8) unsigned NOT NULL, |
|
1015 |
`kingdom_concept_id` int(10) unsigned DEFAULT NULL, |
|
1016 |
`phylum_concept_id` int(10) unsigned DEFAULT NULL, |
|
1017 |
`class_concept_id` int(10) unsigned DEFAULT NULL, |
|
1018 |
`order_concept_id` int(10) unsigned DEFAULT NULL, |
|
1019 |
`family_concept_id` int(10) unsigned DEFAULT NULL, |
|
1020 |
`genus_concept_id` int(10) unsigned DEFAULT NULL, |
|
1021 |
`species_concept_id` int(10) unsigned DEFAULT NULL, |
|
1022 |
`nub_concept_id` int(10) unsigned DEFAULT NULL, |
|
1023 |
`iso_country_code` char(2) DEFAULT NULL, |
|
1024 |
`latitude` float DEFAULT NULL, |
|
1025 |
`longitude` float DEFAULT NULL, |
|
1026 |
`cell_id` smallint(5) unsigned DEFAULT NULL, |
|
1027 |
`centi_cell_id` tinyint(3) unsigned DEFAULT NULL, |
|
1028 |
`mod360_cell_id` smallint(5) unsigned DEFAULT NULL, |
|
1029 |
`year` smallint(5) unsigned DEFAULT NULL, |
|
1030 |
`month` tinyint(3) unsigned DEFAULT NULL, |
|
1031 |
`occurrence_date` date DEFAULT NULL, |
|
1032 |
`basis_of_record` tinyint(3) unsigned NOT NULL DEFAULT '0', |
|
1033 |
`taxonomic_issue` tinyint(3) unsigned NOT NULL DEFAULT '0', |
|
1034 |
`geospatial_issue` mediumint(8) unsigned DEFAULT NULL, |
|
1035 |
`other_issue` tinyint(3) unsigned NOT NULL DEFAULT '0', |
|
1036 |
`deleted` timestamp NULL DEFAULT NULL, |
|
1037 |
`altitude_metres` smallint(6) DEFAULT NULL, |
|
1038 |
`depth_centimetres` mediumint(8) unsigned DEFAULT NULL, |
|
1039 |
`modified` timestamp NULL DEFAULT NULL, |
|
1040 |
PRIMARY KEY (`id`), |
|
1041 |
KEY `ix_or_data_provider_id` (`data_provider_id`), |
|
1042 |
KEY `ix_or_data_resource_id` (`data_resource_id`), |
|
1043 |
KEY `ix_or_institution_code` (`institution_code_id`), |
|
1044 |
KEY `ix_or_collection_code` (`collection_code_id`), |
|
1045 |
KEY `ix_or_catalogue_number` (`catalogue_number_id`), |
|
1046 |
KEY `ix_or_taxon_concept_id` (`taxon_concept_id`), |
|
1047 |
KEY `ix_or_taxon_name_id` (`taxon_name_id`), |
|
1048 |
KEY `ix_or_iso_country_code` (`iso_country_code`), |
|
1049 |
KEY `ix_or_occurrence_date` (`occurrence_date`), |
|
1050 |
KEY `ix_or_month` (`month`), |
|
1051 |
KEY `ix_or_year` (`year`), |
|
1052 |
KEY `ix_or_k_cell_mod_cell` (`kingdom_concept_id`,`cell_id`,`mod360_cell_id`), |
|
1053 |
KEY `ix_or_p_cell_mod_cell` (`phylum_concept_id`,`cell_id`,`mod360_cell_id`), |
|
1054 |
KEY `ix_or_c_cell_mod_cell` (`class_concept_id`,`cell_id`,`mod360_cell_id`), |
|
1055 |
KEY `ix_or_o_cell_mod_cell` (`order_concept_id`,`cell_id`,`mod360_cell_id`), |
|
1056 |
KEY `ix_or_f_cell_mod_cell` (`family_concept_id`,`cell_id`,`mod360_cell_id`), |
|
1057 |
KEY `ix_or_g_cell_mod_cell` (`genus_concept_id`,`cell_id`,`mod360_cell_id`), |
|
1058 |
KEY `ix_or_s_cell_mod_cell` (`species_concept_id`,`cell_id`,`mod360_cell_id`), |
|
1059 |
KEY `ix_or_cell_mod_cell_nub` (`cell_id`,`mod360_cell_id`,`nub_concept_id`), |
|
1060 |
KEY `ix_or_nub_country` (`nub_concept_id`,`iso_country_code`), |
|
1061 |
KEY `ix_or_altitude_metres` (`altitude_metres`), |
|
1062 |
KEY `ix_or_depth_centimetres` (`depth_centimetres`) |
|
1063 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
1064 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1065 |
-- Table structure for table `property_store_namespace` |
|
1066 |
-- |
|
1067 |
|
|
1068 |
DROP TABLE IF EXISTS `property_store_namespace`; |
|
1069 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1070 |
/*!40101 SET character_set_client = utf8 */; |
|
1071 |
CREATE TABLE `property_store_namespace` ( |
|
1072 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1073 |
`namespace` varchar(255) DEFAULT NULL, |
|
1074 |
PRIMARY KEY (`id`) |
|
1075 |
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8; |
|
1076 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1077 |
-- Table structure for table `quad_relation_tag` |
|
1078 |
-- |
|
1079 |
|
|
1080 |
DROP TABLE IF EXISTS `quad_relation_tag`; |
|
1081 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1082 |
/*!40101 SET character_set_client = utf8 */; |
|
1083 |
CREATE TABLE `quad_relation_tag` ( |
|
1084 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1085 |
`tag_id` int(11) DEFAULT NULL, |
|
1086 |
`entity1_id` int(10) unsigned DEFAULT NULL, |
|
1087 |
`entity2_id` int(10) unsigned DEFAULT NULL, |
|
1088 |
`entity3_id` int(10) unsigned DEFAULT NULL, |
|
1089 |
`entity4_id` int(10) unsigned DEFAULT NULL, |
|
1090 |
`count` int(10) unsigned DEFAULT NULL, |
|
1091 |
`rollover_id` mediumint(8) unsigned DEFAULT NULL, |
|
1092 |
PRIMARY KEY (`id`), |
|
1093 |
KEY `entity1_id` (`entity1_id`,`entity2_id`) |
|
1094 |
) ENGINE=MyISAM AUTO_INCREMENT=1067893 DEFAULT CHARSET=utf8; |
|
1095 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1096 |
-- Table structure for table `rank` |
|
1097 |
-- |
|
1098 |
|
|
1099 |
DROP TABLE IF EXISTS `rank`; |
|
1100 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1101 |
/*!40101 SET character_set_client = utf8 */; |
|
1102 |
CREATE TABLE `rank` ( |
|
1103 |
`id` int(11) NOT NULL, |
|
1104 |
`name` char(50) DEFAULT NULL, |
|
1105 |
PRIMARY KEY (`id`), |
|
1106 |
KEY `IX_rank_1` (`name`) |
|
1107 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
1108 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1109 |
-- Table structure for table `raw_occurrence_record` |
|
1110 |
-- |
|
1111 |
|
|
1112 |
DROP TABLE IF EXISTS `raw_occurrence_record`; |
|
1113 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1114 |
/*!40101 SET character_set_client = utf8 */; |
|
1115 |
CREATE TABLE `raw_occurrence_record` ( |
|
1116 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1117 |
`data_provider_id` smallint(6) DEFAULT NULL, |
|
1118 |
`data_resource_id` smallint(6) DEFAULT NULL, |
|
1119 |
`resource_access_point_id` smallint(6) DEFAULT NULL, |
|
1120 |
`institution_code` varchar(255) DEFAULT NULL, |
|
1121 |
`collection_code` varchar(255) DEFAULT NULL, |
|
1122 |
`catalogue_number` varchar(255) DEFAULT NULL, |
|
1123 |
`scientific_name` varchar(255) DEFAULT NULL, |
|
1124 |
`author` varchar(255) DEFAULT NULL, |
|
1125 |
`rank` varchar(50) DEFAULT NULL, |
|
1126 |
`kingdom` varchar(150) DEFAULT NULL, |
|
1127 |
`phylum` varchar(150) DEFAULT NULL, |
|
1128 |
`class` varchar(250) DEFAULT NULL, |
|
1129 |
`order_rank` varchar(50) DEFAULT NULL, |
|
1130 |
`family` varchar(250) DEFAULT NULL, |
|
1131 |
`genus` varchar(150) DEFAULT NULL, |
|
1132 |
`species` varchar(150) DEFAULT NULL, |
|
1133 |
`subspecies` varchar(150) DEFAULT NULL, |
|
1134 |
`latitude` varchar(50) DEFAULT NULL, |
|
1135 |
`longitude` varchar(50) DEFAULT NULL, |
|
1136 |
`lat_long_precision` varchar(50) DEFAULT NULL, |
|
1137 |
`max_altitude` varchar(50) DEFAULT NULL, |
|
1138 |
`min_altitude` varchar(50) DEFAULT NULL, |
|
1139 |
`altitude_precision` varchar(50) DEFAULT NULL, |
|
1140 |
`min_depth` varchar(50) DEFAULT NULL, |
|
1141 |
`max_depth` varchar(50) DEFAULT NULL, |
|
1142 |
`depth_precision` varchar(50) DEFAULT NULL, |
|
1143 |
`continent_ocean` varchar(100) DEFAULT NULL, |
|
1144 |
`country` varchar(100) DEFAULT NULL, |
|
1145 |
`state_province` varchar(100) DEFAULT NULL, |
|
1146 |
`county` varchar(100) DEFAULT NULL, |
|
1147 |
`collector_name` varchar(255) DEFAULT NULL, |
|
1148 |
`locality` text, |
|
1149 |
`year` varchar(50) DEFAULT NULL, |
|
1150 |
`month` varchar(50) DEFAULT NULL, |
|
1151 |
`day` varchar(50) DEFAULT NULL, |
|
1152 |
`basis_of_record` varchar(100) DEFAULT NULL, |
|
1153 |
`identifier_name` varchar(255) DEFAULT NULL, |
|
1154 |
`identification_date` datetime DEFAULT NULL, |
|
1155 |
`unit_qualifier` varchar(255) DEFAULT NULL, |
|
1156 |
`created` timestamp NULL DEFAULT NULL, |
|
1157 |
`modified` timestamp NULL DEFAULT NULL, |
|
1158 |
`deleted` timestamp NULL DEFAULT NULL, |
|
1159 |
PRIMARY KEY (`id`), |
|
1160 |
KEY `primarykey` (`id`), |
|
1161 |
KEY `created` (`created`,`modified`), |
|
1162 |
KEY `resource_access_point_id` (`resource_access_point_id`,`id`), |
|
1163 |
KEY `data_resource_id` (`data_resource_id`,`catalogue_number`(50),`collection_code`(10),`institution_code`(10)) |
|
1164 |
) ENGINE=MyISAM AUTO_INCREMENT=767068790 DEFAULT CHARSET=utf8; |
|
1165 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1166 |
-- Table structure for table `registration_login` |
|
1167 |
-- |
|
1168 |
|
|
1169 |
DROP TABLE IF EXISTS `registration_login`; |
|
1170 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1171 |
/*!40101 SET character_set_client = utf8 */; |
|
1172 |
CREATE TABLE `registration_login` ( |
|
1173 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1174 |
`login_id` varchar(255) DEFAULT NULL, |
|
1175 |
`business_key` varchar(255) DEFAULT NULL, |
|
1176 |
PRIMARY KEY (`id`), |
|
1177 |
KEY `IX_registration_login_login_id` (`login_id`), |
|
1178 |
KEY `IX_registration_login_business_key` (`business_key`) |
|
1179 |
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; |
|
1180 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1181 |
-- Table structure for table `relationship_assertion` |
|
1182 |
-- |
|
1183 |
|
|
1184 |
DROP TABLE IF EXISTS `relationship_assertion`; |
|
1185 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1186 |
/*!40101 SET character_set_client = utf8 */; |
|
1187 |
CREATE TABLE `relationship_assertion` ( |
|
1188 |
`from_concept_id` int(11) NOT NULL, |
|
1189 |
`to_concept_id` int(11) NOT NULL, |
|
1190 |
`relationship_type` int(11) NOT NULL, |
|
1191 |
PRIMARY KEY (`from_concept_id`,`to_concept_id`,`relationship_type`), |
|
1192 |
KEY `from_concept_id` (`from_concept_id`), |
|
1193 |
KEY `IX_relationship_assertion_1` (`relationship_type`), |
|
1194 |
KEY `IX_TO_CONCEPT_ID` (`to_concept_id`) |
|
1195 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
1196 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1197 |
-- Table structure for table `remote_concept` |
|
1198 |
-- |
|
1199 |
|
|
1200 |
DROP TABLE IF EXISTS `remote_concept`; |
|
1201 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1202 |
/*!40101 SET character_set_client = utf8 */; |
|
1203 |
CREATE TABLE `remote_concept` ( |
|
1204 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1205 |
`taxon_concept_id` int(11) NOT NULL, |
|
1206 |
`remote_id` varchar(255) DEFAULT NULL, |
|
1207 |
`id_type` smallint(5) unsigned NOT NULL, |
|
1208 |
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
|
1209 |
PRIMARY KEY (`id`), |
|
1210 |
KEY `ix_remote_concept_remote_id` (`remote_id`), |
|
1211 |
KEY `ix_remote_concept_tc_id` (`taxon_concept_id`) |
|
1212 |
) ENGINE=MyISAM AUTO_INCREMENT=191799134 DEFAULT CHARSET=utf8; |
|
1213 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1214 |
-- Table structure for table `resource_access_point` |
|
1215 |
-- |
|
1216 |
|
|
1217 |
DROP TABLE IF EXISTS `resource_access_point`; |
|
1218 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1219 |
/*!40101 SET character_set_client = utf8 */; |
|
1220 |
CREATE TABLE `resource_access_point` ( |
|
1221 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1222 |
`data_provider_id` int(11) DEFAULT NULL, |
|
1223 |
`data_resource_id` int(11) DEFAULT NULL, |
|
1224 |
`url` varchar(255) DEFAULT NULL, |
|
1225 |
`remote_id_at_url` varchar(255) DEFAULT NULL, |
|
1226 |
`uuid` char(50) DEFAULT NULL, |
|
1227 |
`created` datetime DEFAULT NULL, |
|
1228 |
`modified` datetime DEFAULT NULL, |
|
1229 |
`deleted` datetime DEFAULT NULL, |
|
1230 |
`last_harvest_start` datetime DEFAULT NULL, |
|
1231 |
`last_extract_start` datetime DEFAULT NULL, |
|
1232 |
`supports_date_last_modified` tinyint(1) NOT NULL DEFAULT '0', |
|
1233 |
`interval_metadata_days` int(11) DEFAULT NULL, |
|
1234 |
`interval_harvest_days` int(11) DEFAULT NULL, |
|
1235 |
PRIMARY KEY (`id`), |
|
1236 |
KEY `data_provider_id` (`data_provider_id`), |
|
1237 |
KEY `ix_rap_dr` (`data_resource_id`) |
|
1238 |
) ENGINE=MyISAM AUTO_INCREMENT=15267 DEFAULT CHARSET=utf8; |
|
1239 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1240 |
-- Table structure for table `resource_country` |
|
1241 |
-- |
|
1242 |
|
|
1243 |
DROP TABLE IF EXISTS `resource_country`; |
|
1244 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1245 |
/*!40101 SET character_set_client = utf8 */; |
|
1246 |
CREATE TABLE `resource_country` ( |
|
1247 |
`data_resource_id` int(11) NOT NULL, |
|
1248 |
`iso_country_code` char(2) NOT NULL, |
|
1249 |
`count` int(11) DEFAULT NULL, |
|
1250 |
`occurrence_coordinate_count` int(11) DEFAULT '0', |
|
1251 |
PRIMARY KEY (`data_resource_id`,`iso_country_code`), |
|
1252 |
KEY `IX_data_resource_ids` (`data_resource_id`), |
|
1253 |
KEY `IX_iso_country_codes` (`iso_country_code`) |
|
1254 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
1255 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1256 |
-- Table structure for table `resource_network` |
|
1257 |
-- |
|
1258 |
|
|
1259 |
DROP TABLE IF EXISTS `resource_network`; |
|
1260 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1261 |
/*!40101 SET character_set_client = utf8 */; |
|
1262 |
CREATE TABLE `resource_network` ( |
|
1263 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1264 |
`name` varchar(255) DEFAULT NULL, |
|
1265 |
`code` varchar(50) DEFAULT NULL, |
|
1266 |
`description` text, |
|
1267 |
`address` varchar(255) DEFAULT NULL, |
|
1268 |
`website_url` varchar(255) DEFAULT NULL, |
|
1269 |
`logo_url` varchar(255) DEFAULT NULL, |
|
1270 |
`email` varchar(255) DEFAULT NULL, |
|
1271 |
`telephone` varchar(255) DEFAULT NULL, |
|
1272 |
`concept_count` int(11) DEFAULT '0', |
|
1273 |
`species_count` int(11) DEFAULT '0', |
|
1274 |
`occurrence_count` int(11) DEFAULT '0', |
|
1275 |
`occurrence_coordinate_count` int(11) DEFAULT '0', |
|
1276 |
`created` datetime DEFAULT NULL, |
|
1277 |
`modified` datetime DEFAULT NULL, |
|
1278 |
`deleted` datetime DEFAULT NULL, |
|
1279 |
`data_resource_count` int(11) DEFAULT '0', |
|
1280 |
PRIMARY KEY (`id`), |
|
1281 |
KEY `IX_resource_network_name` (`name`) |
|
1282 |
) ENGINE=MyISAM AUTO_INCREMENT=72 DEFAULT CHARSET=utf8; |
|
1283 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1284 |
-- Table structure for table `resource_rank` |
|
1285 |
-- |
|
1286 |
|
|
1287 |
DROP TABLE IF EXISTS `resource_rank`; |
|
1288 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1289 |
/*!40101 SET character_set_client = utf8 */; |
|
1290 |
CREATE TABLE `resource_rank` ( |
|
1291 |
`id` int(11) NOT NULL, |
|
1292 |
`resource_type` int(11) DEFAULT NULL, |
|
1293 |
`entity_id` int(11) DEFAULT NULL, |
|
1294 |
`entity_type` int(11) DEFAULT NULL, |
|
1295 |
`rank` int(11) DEFAULT NULL, |
|
1296 |
PRIMARY KEY (`id`), |
|
1297 |
KEY `IX_resource_rank_type` (`resource_type`), |
|
1298 |
KEY `IX_resource_rank_entity_id` (`entity_id`), |
|
1299 |
KEY `IX_resource_rank_entity_type` (`entity_type`), |
|
1300 |
KEY `IX_resource_rank_rank` (`rank`) |
|
1301 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
1302 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1303 |
-- Table structure for table `rollover` |
|
1304 |
-- |
|
1305 |
|
|
1306 |
DROP TABLE IF EXISTS `rollover`; |
|
1307 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1308 |
/*!40101 SET character_set_client = utf8 */; |
|
1309 |
CREATE TABLE `rollover` ( |
|
1310 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1311 |
`rollover_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
|
1312 |
PRIMARY KEY (`id`) |
|
1313 |
) ENGINE=MyISAM AUTO_INCREMENT=41 DEFAULT CHARSET=utf8; |
|
1314 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1315 |
-- Table structure for table `stats_country_contribution` |
|
1316 |
-- |
|
1317 |
|
|
1318 |
DROP TABLE IF EXISTS `stats_country_contribution`; |
|
1319 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1320 |
/*!40101 SET character_set_client = utf8 */; |
|
1321 |
CREATE TABLE `stats_country_contribution` ( |
|
1322 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1323 |
`rollover_id` int(11) NOT NULL, |
|
1324 |
`iso_country_code` char(2) DEFAULT NULL, |
|
1325 |
`provider_count` int(11) DEFAULT '0', |
|
1326 |
`dataset_count` int(11) DEFAULT '0', |
|
1327 |
`occurrence_count` int(11) DEFAULT '0', |
|
1328 |
`occurrence_georeferenced_count` int(11) DEFAULT '0', |
|
1329 |
`created` datetime DEFAULT NULL, |
|
1330 |
PRIMARY KEY (`id`) |
|
1331 |
) ENGINE=MyISAM AUTO_INCREMENT=1461 DEFAULT CHARSET=utf8; |
|
1332 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1333 |
-- Table structure for table `stats_participant_contribution` |
|
1334 |
-- |
|
1335 |
|
|
1336 |
DROP TABLE IF EXISTS `stats_participant_contribution`; |
|
1337 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1338 |
/*!40101 SET character_set_client = utf8 */; |
|
1339 |
CREATE TABLE `stats_participant_contribution` ( |
|
1340 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1341 |
`rollover_id` int(11) NOT NULL, |
|
1342 |
`gbif_approver` varchar(255) DEFAULT NULL, |
|
1343 |
`provider_count` int(11) DEFAULT '0', |
|
1344 |
`dataset_count` int(11) DEFAULT '0', |
|
1345 |
`occurrence_count` int(11) DEFAULT '0', |
|
1346 |
`occurrence_georeferenced_count` int(11) DEFAULT '0', |
|
1347 |
`created` datetime DEFAULT NULL, |
|
1348 |
PRIMARY KEY (`id`) |
|
1349 |
) ENGINE=MyISAM AUTO_INCREMENT=1883 DEFAULT CHARSET=utf8; |
|
1350 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1351 |
-- Table structure for table `stats_participant_data_usage` |
|
1352 |
-- |
|
1353 |
|
|
1354 |
DROP TABLE IF EXISTS `stats_participant_data_usage`; |
|
1355 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1356 |
/*!40101 SET character_set_client = utf8 */; |
|
1357 |
CREATE TABLE `stats_participant_data_usage` ( |
|
1358 |
`gbif_approver` varchar(150) DEFAULT NULL, |
|
1359 |
`month` varchar(50) DEFAULT NULL, |
|
1360 |
`year` varchar(50) DEFAULT NULL, |
|
1361 |
`search_event_count` int(10) unsigned DEFAULT '0', |
|
1362 |
`search_record_count` int(10) unsigned DEFAULT '0', |
|
1363 |
`occurrence_detail_page_view` int(10) unsigned DEFAULT '0', |
|
1364 |
`download_event_count` int(10) unsigned DEFAULT '0', |
|
1365 |
`download_record_count` int(10) unsigned DEFAULT '0' |
|
1366 |
) ENGINE=MyISAM AUTO_INCREMENT=286295989 DEFAULT CHARSET=utf8; |
|
1367 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1368 |
-- Table structure for table `string_tag` |
|
1369 |
-- |
|
1370 |
|
|
1371 |
DROP TABLE IF EXISTS `string_tag`; |
|
1372 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1373 |
/*!40101 SET character_set_client = utf8 */; |
|
1374 |
CREATE TABLE `string_tag` ( |
|
1375 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1376 |
`tag_id` int(11) DEFAULT NULL, |
|
1377 |
`entity_id` int(11) DEFAULT NULL, |
|
1378 |
`value` text, |
|
1379 |
`is_system_generated` bit(1) DEFAULT NULL, |
|
1380 |
PRIMARY KEY (`id`), |
|
1381 |
KEY `tag_id` (`tag_id`) |
|
1382 |
) ENGINE=MyISAM AUTO_INCREMENT=5663064 DEFAULT CHARSET=utf8; |
|
1383 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1384 |
-- Table structure for table `tag` |
|
1385 |
-- |
|
1386 |
|
|
1387 |
DROP TABLE IF EXISTS `tag`; |
|
1388 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1389 |
/*!40101 SET character_set_client = utf8 */; |
|
1390 |
CREATE TABLE `tag` ( |
|
1391 |
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, |
|
1392 |
`name` char(200) DEFAULT NULL, |
|
1393 |
`entity_type` smallint(5) unsigned DEFAULT NULL, |
|
1394 |
`tag_table` char(30) DEFAULT NULL, |
|
1395 |
`description` varchar(255) DEFAULT NULL, |
|
1396 |
PRIMARY KEY (`id`) |
|
1397 |
) ENGINE=MyISAM AUTO_INCREMENT=6001 DEFAULT CHARSET=utf8; |
|
1398 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1399 |
-- Table structure for table `taxon_concept` |
|
1400 |
-- |
|
1401 |
|
|
1402 |
DROP TABLE IF EXISTS `taxon_concept`; |
|
1403 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1404 |
/*!40101 SET character_set_client = utf8 */; |
|
1405 |
CREATE TABLE `taxon_concept` ( |
|
1406 |
`id` int(10) unsigned NOT NULL DEFAULT '0', |
|
1407 |
`rank` smallint(5) unsigned NOT NULL, |
|
1408 |
`taxon_name_id` mediumint(8) unsigned NOT NULL, |
|
1409 |
`data_provider_id` smallint(5) unsigned NOT NULL, |
|
1410 |
`data_resource_id` smallint(5) unsigned NOT NULL, |
|
1411 |
`parent_concept_id` int(10) unsigned DEFAULT NULL, |
|
1412 |
`kingdom_concept_id` int(10) unsigned DEFAULT NULL, |
|
1413 |
`phylum_concept_id` int(10) unsigned DEFAULT NULL, |
|
1414 |
`class_concept_id` int(10) unsigned DEFAULT NULL, |
|
1415 |
`order_concept_id` int(10) unsigned DEFAULT NULL, |
|
1416 |
`family_concept_id` int(10) unsigned DEFAULT NULL, |
|
1417 |
`genus_concept_id` int(10) unsigned DEFAULT NULL, |
|
1418 |
`species_concept_id` int(10) unsigned DEFAULT NULL, |
|
1419 |
`is_accepted` tinyint(1) DEFAULT '1', |
|
1420 |
`is_nub_concept` tinyint(1) DEFAULT '0', |
|
1421 |
`partner_concept_id` int(10) unsigned DEFAULT NULL, |
|
1422 |
`priority` smallint(6) NOT NULL DEFAULT '100', |
|
1423 |
`is_secondary` tinyint(1) DEFAULT '0', |
|
1424 |
`created` timestamp NULL DEFAULT NULL, |
|
1425 |
`modified` timestamp NULL DEFAULT NULL, |
|
1426 |
`deleted` timestamp NULL DEFAULT NULL, |
|
1427 |
PRIMARY KEY (`id`), |
|
1428 |
KEY `ix_taxon_concept_dr_rank` (`data_resource_id`,`rank`), |
|
1429 |
KEY `ix_taxon_concept_partner_dr` (`partner_concept_id`,`data_resource_id`), |
|
1430 |
KEY `ix_taxon_concept_tn_dr` (`taxon_name_id`,`data_resource_id`), |
|
1431 |
KEY `ix_taxon_concept_parent` (`parent_concept_id`), |
|
1432 |
KEY `ix_taxon_concept_k` (`kingdom_concept_id`), |
|
1433 |
KEY `ix_taxon_concept_p` (`phylum_concept_id`), |
|
1434 |
KEY `ix_taxon_concept_c` (`class_concept_id`), |
|
1435 |
KEY `ix_taxon_concept_o` (`order_concept_id`), |
|
1436 |
KEY `ix_taxon_concept_f` (`family_concept_id`), |
|
1437 |
KEY `ix_taxon_concept_g` (`genus_concept_id`), |
|
1438 |
KEY `ix_taxon_concept_s` (`species_concept_id`), |
|
1439 |
KEY `ix_taxon_concept_dp` (`data_provider_id`), |
|
1440 |
KEY `ix_taxon_concept_dp_rank` (`data_provider_id`,`rank`) |
|
1441 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
1442 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1443 |
-- Table structure for table `taxon_country` |
|
1444 |
-- |
|
1445 |
|
|
1446 |
DROP TABLE IF EXISTS `taxon_country`; |
|
1447 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1448 |
/*!40101 SET character_set_client = utf8 */; |
|
1449 |
CREATE TABLE `taxon_country` ( |
|
1450 |
`taxon_concept_id` int(11) NOT NULL, |
|
1451 |
`iso_country_code` char(2) NOT NULL, |
|
1452 |
`count` int(11) DEFAULT NULL, |
|
1453 |
PRIMARY KEY (`taxon_concept_id`,`iso_country_code`), |
|
1454 |
KEY `IX_taxon_concept_ids` (`taxon_concept_id`), |
|
1455 |
KEY `IX_iso_country_codes` (`iso_country_code`) |
|
1456 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
1457 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1458 |
-- Table structure for table `taxon_name` |
|
1459 |
-- |
|
1460 |
|
|
1461 |
DROP TABLE IF EXISTS `taxon_name`; |
|
1462 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1463 |
/*!40101 SET character_set_client = utf8 */; |
|
1464 |
CREATE TABLE `taxon_name` ( |
|
1465 |
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, |
|
1466 |
`canonical` text, |
|
1467 |
`supra_generic` varchar(255) DEFAULT NULL, |
|
1468 |
`generic` varchar(255) DEFAULT NULL, |
|
1469 |
`infrageneric` varchar(255) DEFAULT NULL, |
|
1470 |
`specific_epithet` varchar(255) DEFAULT NULL, |
|
1471 |
`infraspecific` varchar(255) DEFAULT NULL, |
|
1472 |
`infraspecific_marker` varchar(255) DEFAULT NULL, |
|
1473 |
`is_hybrid` tinyint(1) DEFAULT NULL, |
|
1474 |
`rank` smallint(5) unsigned NOT NULL, |
|
1475 |
`author` varchar(255) DEFAULT NULL, |
|
1476 |
`searchable_canonical` text, |
|
1477 |
PRIMARY KEY (`id`), |
|
1478 |
KEY `IX_taxon_name_specific_epithet` (`specific_epithet`), |
|
1479 |
KEY `ix_taxon_name_canonical_rank` (`canonical`(50),`rank`), |
|
1480 |
KEY `ix_taxon_name_searchable_canonical_rank` (`searchable_canonical`(50),`rank`) |
|
1481 |
) ENGINE=MyISAM AUTO_INCREMENT=13344684 DEFAULT CHARSET=utf8; |
|
1482 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
1483 |
-- Table structure for table `temporal_coverage_tag` |
|
1484 |
-- |
|
1485 |
|
|
1486 |
DROP TABLE IF EXISTS `temporal_coverage_tag`; |
|
1487 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
1488 |
/*!40101 SET character_set_client = utf8 */; |
|
1489 |
CREATE TABLE `temporal_coverage_tag` ( |
|
1490 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
|
1491 |
`tag_id` int(11) DEFAULT NULL, |
|
1492 |
`entity_id` int(11) DEFAULT NULL, |
|
1493 |
`start_date` date NOT NULL, |
|
1494 |
`end_date` date DEFAULT NULL, |
|
1495 |
`is_system_generated` bit(1) DEFAULT NULL, |
|
1496 |
PRIMARY KEY (`id`), |
Also available in: Unified diff
Added inputs/GBIF/_MySQL/GBIFPortalDB-2013-02-20.schema.sql