Project

General

Profile

1 7696 aaronmk
-- MySQL dump 10.13  Distrib 5.5.29, for debian-linux-gnu (x86_64)
2
--
3
-- Host: localhost    Database: BRIT
4
-- ------------------------------------------------------
5
-- Server version	5.5.29-0ubuntu0.12.04.1
6
7
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10
/*!40101 SET NAMES latin1 */;
11
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12
/*!40103 SET TIME_ZONE='+00:00' */;
13
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,POSTGRESQL' */;
16
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
18
--
19 7797 aaronmk
-- Table structure for table "agent"
20
--
21
22
DROP TABLE IF EXISTS "agent";
23
/*!40101 SET @saved_cs_client     = @@character_set_client */;
24
/*!40101 SET character_set_client = utf8 */;
25
CREATE TABLE "agent" (
26
  "agent_id" int(11) NOT NULL,
27
  "first_name" varchar(60) DEFAULT NULL,
28
  "middle_name" varchar(60) DEFAULT NULL,
29
  "last_name" varchar(60) DEFAULT NULL,
30
  "institution" varchar(30) DEFAULT NULL,
31
  "institution_full" varchar(100) DEFAULT NULL,
32
  "annotator_abbrev_name" varchar(60) DEFAULT NULL,
33
  "taxon_author_abbrev_name" varchar(60) DEFAULT NULL,
34
  "collector_abbrev_name" varchar(60) DEFAULT NULL,
35
  "year_birth" int(4) DEFAULT NULL,
36
  "year_death" int(4) DEFAULT NULL,
37
  "notes" text,
38
  "added_date" datetime DEFAULT NULL,
39
  "added_by_signon" varchar(30) DEFAULT NULL,
40
  "updated_date" datetime DEFAULT NULL,
41
  "updated_by_signon" varchar(30) DEFAULT NULL,
42
  PRIMARY KEY ("agent_id"),
43
  KEY "collector_abbrev_name" ("collector_abbrev_name")
44
);
45
/*!40101 SET character_set_client = @saved_cs_client */;
46
47
--
48
-- Table structure for table "analysis_scripts"
49
--
50
51
DROP TABLE IF EXISTS "analysis_scripts";
52
/*!40101 SET @saved_cs_client     = @@character_set_client */;
53
/*!40101 SET character_set_client = utf8 */;
54
CREATE TABLE "analysis_scripts" (
55
  "analysis_id" int(11) NOT NULL,
56
  "analysis_name" varchar(30) DEFAULT NULL,
57
  "analysis_script" text,
58
  "analysis_script_type" varchar(20) DEFAULT NULL,
59
  "analysis_input_parameters" text,
60
  "analysis_output_template" text,
61
  PRIMARY KEY ("analysis_id")
62
);
63
/*!40101 SET character_set_client = @saved_cs_client */;
64
65
--
66
-- Table structure for table "annotation_hist"
67
--
68
69
DROP TABLE IF EXISTS "annotation_hist";
70
/*!40101 SET @saved_cs_client     = @@character_set_client */;
71
/*!40101 SET character_set_client = utf8 */;
72
CREATE TABLE "annotation_hist" (
73
  "Annotation_History_ID" int(11) NOT NULL,
74
  "Determined_By_DateSent" varchar(60) DEFAULT NULL,
75
  "Determined_By_DateRecieved" varchar(60) DEFAULT NULL,
76
  "Added_Date" varchar(60) DEFAULT NULL,
77
  "Added_By_Signon" varchar(40) DEFAULT NULL,
78
  "Updated_Date" varchar(60) DEFAULT NULL,
79
  "Updated_By_Signon" varchar(40) DEFAULT NULL,
80
  "Determined_By_Date" varchar(30) DEFAULT NULL,
81
  "Determined_By_Institution" varchar(200) DEFAULT NULL,
82
  "Determination_Name" varchar(200) DEFAULT NULL,
83
  "Family_Name" varchar(40) DEFAULT NULL,
84
  "Genus_Name" varchar(40) DEFAULT NULL,
85
  "Specific_Epithet" varchar(60) DEFAULT NULL,
86
  "Infra_Epithet" varchar(40) DEFAULT NULL,
87
  "Species_ID" int(11) DEFAULT NULL,
88
  "Infraspecific_Taxon_ID" int(11) DEFAULT NULL,
89
  "taxon_id" int(11) DEFAULT NULL,
90
  "Determined_By_Name" varchar(200) DEFAULT NULL,
91
  "collection_lsid_object_id" varchar(15) DEFAULT NULL,
92
  "specimen_lsid_object_id" varchar(15) DEFAULT NULL,
93
  "specimen_number" int(11) DEFAULT NULL,
94
  "annotation_type" varchar(15) DEFAULT NULL,
95
  "Conf_Indicator" varchar(10) DEFAULT NULL,
96
  "Basis_Of_Determination" varchar(20) DEFAULT NULL,
97
  "Basis_Institution" varchar(200) DEFAULT NULL,
98
  "annotation_notes" text,
99
  "author" varchar(255) DEFAULT NULL,
100
  PRIMARY KEY ("Annotation_History_ID"),
101
  KEY "Species_ID" ("Species_ID"),
102
  KEY "Infraspecific_Taxon_ID" ("Infraspecific_Taxon_ID"),
103
  KEY "taxon_id" ("taxon_id")
104
);
105
/*!40101 SET character_set_client = @saved_cs_client */;
106
107
--
108
-- Table structure for table "authority"
109
--
110
111
DROP TABLE IF EXISTS "authority";
112
/*!40101 SET @saved_cs_client     = @@character_set_client */;
113
/*!40101 SET character_set_client = utf8 */;
114
CREATE TABLE "authority" (
115
  "Authority_ID" int(11) NOT NULL,
116
  "Authority_Abbrev_Name" varchar(120) NOT NULL DEFAULT '',
117
  "Authority_Full_Name" varchar(200) DEFAULT NULL,
118
  "Authority_Statement" text,
119
  PRIMARY KEY ("Authority_ID"),
120
  UNIQUE KEY "XPKAuthority" ("Authority_ID")
121
);
122
/*!40101 SET character_set_client = @saved_cs_client */;
123
124
--
125
-- Table structure for table "collection"
126
--
127
128
DROP TABLE IF EXISTS "collection";
129
/*!40101 SET @saved_cs_client     = @@character_set_client */;
130
/*!40101 SET character_set_client = utf8 */;
131
CREATE TABLE "collection" (
132
  "Collection_ID" int(11) NOT NULL,
133
  "LSID_Object_ID" varchar(15) DEFAULT NULL,
134
  "LSID_Replaces_Object_ID" varchar(15) DEFAULT NULL,
135
  "LSID_Authority_ID" int(11) DEFAULT NULL,
136
  "LSID_Namespace_ID" int(11) DEFAULT NULL,
137
  "LSID_Name" varchar(150) DEFAULT NULL,
138
  "Collection_Version" int(11) DEFAULT NULL,
139
  "Published_Collection" tinyint(1) DEFAULT NULL,
140
  "agent_id" int(11) DEFAULT NULL,
141
  "Collection_Number" varchar(20) DEFAULT NULL,
142
  "Collection_Team" varchar(255) DEFAULT NULL,
143
  "Annotation_History_ID" int(11) DEFAULT NULL,
144
  "Local_Name" varchar(60) DEFAULT NULL,
145
  "Date_of_Collection" varchar(60) DEFAULT NULL,
146
  "Basis_of_Collection" varchar(60) DEFAULT NULL,
147
  "Locality_Summary" varchar(60) DEFAULT NULL,
148
  "Locality_Description" text,
149
  "Locality_Site_Specific" varchar(120) DEFAULT NULL,
150
  "Closest_Town" varchar(60) DEFAULT NULL,
151
  "Subregion_ID" int(11) DEFAULT NULL,
152
  "Region_ID" int(11) DEFAULT NULL,
153
  "Country_ID" int(11) DEFAULT NULL,
154
  "Continent_ID" int(11) DEFAULT NULL,
155
  "Latitude" float DEFAULT NULL,
156
  "Longitude" float DEFAULT NULL,
157
  "Coordinate_Uncertainity" varchar(60) DEFAULT NULL,
158
  "Elevation_Min" float DEFAULT NULL,
159
  "Elevation_Max" float DEFAULT NULL,
160
  "Research_Site_ID" int(11) DEFAULT NULL,
161
  "Project_ID" int(11) DEFAULT NULL,
162
  "Habitat_Description" text,
163
  "Habitat_Summary" varchar(200) DEFAULT NULL,
164
  "Soil_Description" text,
165
  "Notes_Plant" text,
166
  "Height_Min" float DEFAULT NULL,
167
  "Height_Max" float DEFAULT NULL,
168
  "DBH_Min" float DEFAULT NULL,
169
  "DBH_Max" float DEFAULT NULL,
170
  "Added_Date" varchar(60) DEFAULT NULL,
171
  "Added_By_Signon" varchar(30) DEFAULT NULL,
172
  PRIMARY KEY ("Collection_ID"),
173
  KEY "Collection_LSID" ("LSID_Object_ID"),
174
  KEY "Continent_ID" ("Continent_ID"),
175
  KEY "Country_ID" ("Country_ID"),
176
  KEY "Collector_ID" ("agent_id"),
177
  KEY "Subregion_ID" ("Subregion_ID"),
178
  KEY "Research_Site_ID" ("Research_Site_ID"),
179
  KEY "Project_ID" ("Project_ID"),
180
  KEY "Annotation_History_ID" ("Annotation_History_ID"),
181
  KEY "Closeest_Town" ("Closest_Town"),
182
  KEY "date_of_collection" ("Date_of_Collection"),
183
  KEY "added_date" ("Added_Date"),
184
  KEY "collection_team" ("Collection_Team"),
185
  KEY "locality_summary" ("Locality_Summary"),
186
  KEY "latitude" ("Latitude"),
187
  KEY "longitude" ("Longitude"),
188
  KEY "elevation_min" ("Elevation_Min"),
189
  KEY "coordinate_uncertainity" ("Coordinate_Uncertainity"),
190
  KEY "local_name" ("Local_Name"),
191
  KEY "elevation_max" ("Elevation_Max"),
192
  KEY "Collection_Number" ("Collection_Number")
193
);
194
/*!40101 SET character_set_client = @saved_cs_client */;
195
196
--
197
-- Table structure for table "collection_habit"
198
--
199
200
DROP TABLE IF EXISTS "collection_habit";
201
/*!40101 SET @saved_cs_client     = @@character_set_client */;
202
/*!40101 SET character_set_client = utf8 */;
203
CREATE TABLE "collection_habit" (
204
  "Habit_ID" int(6) DEFAULT NULL,
205
  "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL,
206
  KEY "Habit_ID" ("Habit_ID"),
207
  KEY "Collection_LSID_num" ("Collection_LSID_Object_ID")
208
);
209
/*!40101 SET character_set_client = @saved_cs_client */;
210
211
--
212
-- Table structure for table "collection_habitat"
213
--
214
215
DROP TABLE IF EXISTS "collection_habitat";
216
/*!40101 SET @saved_cs_client     = @@character_set_client */;
217
/*!40101 SET character_set_client = utf8 */;
218
CREATE TABLE "collection_habitat" (
219
  "Habitat_ID" int(6) DEFAULT NULL,
220
  "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL,
221
  KEY "Habitat_ID" ("Habitat_ID"),
222
  KEY "Collection_LSID_num" ("Collection_LSID_Object_ID")
223
);
224
/*!40101 SET character_set_client = @saved_cs_client */;
225
226
--
227
-- Table structure for table "contact_persons"
228
--
229
230
DROP TABLE IF EXISTS "contact_persons";
231
/*!40101 SET @saved_cs_client     = @@character_set_client */;
232
/*!40101 SET character_set_client = utf8 */;
233
CREATE TABLE "contact_persons" (
234
  "Contact_ID" int(11) NOT NULL,
235
  "First_Name" varchar(60) NOT NULL DEFAULT '',
236
  "Middle_Name" varchar(60) DEFAULT NULL,
237
  "Last_Name" varchar(60) DEFAULT NULL,
238
  "Title" varchar(60) DEFAULT NULL,
239
  "Position" varchar(60) DEFAULT NULL,
240
  "Organization_ID" text,
241
  "Address_Line1" varchar(60) DEFAULT NULL,
242
  "Address_Line2" varchar(60) DEFAULT NULL,
243
  "Address_Line3" varchar(60) DEFAULT NULL,
244
  "City" varchar(60) DEFAULT NULL,
245
  "Zip" varchar(20) DEFAULT NULL,
246
  "Region_ID" smallint(6) DEFAULT NULL,
247
  "Country_ID" int(11) DEFAULT NULL,
248
  "Phone1" varchar(20) DEFAULT NULL,
249
  "Phone2" varchar(20) DEFAULT NULL,
250
  "Fax" varchar(20) DEFAULT NULL,
251
  "Email" varchar(60) DEFAULT NULL,
252
  "URL" varchar(255) DEFAULT NULL,
253
  "Research" text,
254
  "Added_Date" varchar(60) DEFAULT NULL,
255
  "Added_By_Signon" varchar(10) DEFAULT NULL,
256
  "Notes" text,
257
  "Continent_ID" int(11) DEFAULT NULL,
258
  "Updated_Date" varchar(60) DEFAULT NULL,
259
  "Updated_By_Signon" varchar(60) DEFAULT NULL,
260
  PRIMARY KEY ("Contact_ID"),
261
  UNIQUE KEY "XPKContact_Persons" ("Contact_ID")
262
);
263
/*!40101 SET character_set_client = @saved_cs_client */;
264
265
--
266
-- Table structure for table "continent"
267
--
268
269
DROP TABLE IF EXISTS "continent";
270
/*!40101 SET @saved_cs_client     = @@character_set_client */;
271
/*!40101 SET character_set_client = utf8 */;
272
CREATE TABLE "continent" (
273
  "Continent_ID" int(11) NOT NULL,
274
  "Continent_Name" varchar(60) DEFAULT NULL,
275
  PRIMARY KEY ("Continent_ID")
276
);
277
/*!40101 SET character_set_client = @saved_cs_client */;
278
279
--
280
-- Table structure for table "country"
281
--
282
283
DROP TABLE IF EXISTS "country";
284
/*!40101 SET @saved_cs_client     = @@character_set_client */;
285
/*!40101 SET character_set_client = utf8 */;
286
CREATE TABLE "country" (
287
  "Country_ID" smallint(6) NOT NULL,
288
  "Country_Name" varchar(60) NOT NULL DEFAULT '',
289
  "Continent_ID" int(11) NOT NULL DEFAULT '0',
290
  PRIMARY KEY ("Country_ID"),
291
  KEY "Continent_ID" ("Continent_ID")
292
);
293
/*!40101 SET character_set_client = @saved_cs_client */;
294
295
--
296
-- Table structure for table "custom_field_associations"
297
--
298
299
DROP TABLE IF EXISTS "custom_field_associations";
300
/*!40101 SET @saved_cs_client     = @@character_set_client */;
301
/*!40101 SET character_set_client = utf8 */;
302
CREATE TABLE "custom_field_associations" (
303
  "structure_id" int(11) DEFAULT NULL,
304
  "target_id" int(11) DEFAULT NULL,
305
  "target_type" varchar(30) DEFAULT NULL,
306
  KEY "structure_id" ("structure_id"),
307
  KEY "target_id" ("target_id")
308
);
309
/*!40101 SET character_set_client = @saved_cs_client */;
310
311
--
312
-- Table structure for table "custom_field_data"
313
--
314
315
DROP TABLE IF EXISTS "custom_field_data";
316
/*!40101 SET @saved_cs_client     = @@character_set_client */;
317
/*!40101 SET character_set_client = utf8 */;
318
CREATE TABLE "custom_field_data" (
319
  "id" int(11) NOT NULL,
320
  "structure_id" int(11) DEFAULT NULL,
321
  "target_id" int(11) DEFAULT NULL,
322
  "data_id" int(11) DEFAULT NULL,
323
  PRIMARY KEY ("id"),
324
  KEY "structure_id" ("structure_id"),
325
  KEY "target_id" ("target_id"),
326
  KEY "data_id" ("data_id")
327
);
328
/*!40101 SET character_set_client = @saved_cs_client */;
329
330
--
331
-- Table structure for table "custom_field_definition"
332
--
333
334
DROP TABLE IF EXISTS "custom_field_definition";
335
/*!40101 SET @saved_cs_client     = @@character_set_client */;
336
/*!40101 SET character_set_client = utf8 */;
337
CREATE TABLE "custom_field_definition" (
338
  "definition_id" int(11) NOT NULL,
339
  "field_name" varchar(60) DEFAULT NULL,
340
  "control_type" varchar(20) DEFAULT NULL,
341
  "default_values" text,
342
  "description" text,
343
  "data_type" varchar(20) DEFAULT NULL,
344
  "unit_type" varchar(20) DEFAULT NULL,
345
  "field_authority" varchar(100) DEFAULT NULL,
346
  "field_authority_uri" varchar(256) DEFAULT NULL,
347
  "added_by_signon" varchar(30) DEFAULT NULL,
348
  "added_by_date" datetime DEFAULT NULL,
349
  "updated_by_signon" varchar(30) DEFAULT NULL,
350
  "updated_by_date" datetime DEFAULT NULL,
351
  PRIMARY KEY ("definition_id")
352
);
353
/*!40101 SET character_set_client = @saved_cs_client */;
354
355
--
356
-- Table structure for table "custom_field_group"
357
--
358
359
DROP TABLE IF EXISTS "custom_field_group";
360
/*!40101 SET @saved_cs_client     = @@character_set_client */;
361
/*!40101 SET character_set_client = utf8 */;
362
CREATE TABLE "custom_field_group" (
363
  "group_id" int(11) NOT NULL,
364
  "group_name" varchar(60) DEFAULT NULL,
365
  "group_weight" int(4) DEFAULT NULL,
366
  "description" text,
367
  "added_by_signon" varchar(30) DEFAULT NULL,
368
  "added_by_date" datetime DEFAULT NULL,
369
  "updated_by_signon" varchar(30) DEFAULT NULL,
370
  "updated_by_date" datetime DEFAULT NULL,
371
  PRIMARY KEY ("group_id")
372
);
373
/*!40101 SET character_set_client = @saved_cs_client */;
374
375
--
376
-- Table structure for table "custom_field_structure"
377
--
378
379
DROP TABLE IF EXISTS "custom_field_structure";
380
/*!40101 SET @saved_cs_client     = @@character_set_client */;
381
/*!40101 SET character_set_client = utf8 */;
382
CREATE TABLE "custom_field_structure" (
383
  "structure_id" int(11) NOT NULL,
384
  "taxon_id" int(11) DEFAULT NULL,
385
  "taxon_rank_id" int(11) DEFAULT NULL,
386
  "definition_id" int(11) DEFAULT NULL,
387
  "group_id" int(11) DEFAULT NULL,
388
  "field_weight" int(4) DEFAULT NULL,
389
  "hidden_flag" tinyint(1) DEFAULT NULL,
390
  "key_flag" tinyint(1) DEFAULT NULL,
391
  "filter_flag" tinyint(1) DEFAULT NULL,
392
  "added_by_signon" varchar(30) DEFAULT NULL,
393
  "added_by_date" datetime DEFAULT NULL,
394
  "updated_by_signon" varchar(30) DEFAULT NULL,
395
  "updated_by_date" datetime DEFAULT NULL,
396
  PRIMARY KEY ("structure_id")
397
);
398
/*!40101 SET character_set_client = @saved_cs_client */;
399
400
--
401
-- Table structure for table "custom_fields_datetime"
402
--
403
404
DROP TABLE IF EXISTS "custom_fields_datetime";
405
/*!40101 SET @saved_cs_client     = @@character_set_client */;
406
/*!40101 SET character_set_client = utf8 */;
407
CREATE TABLE "custom_fields_datetime" (
408
  "id" int(11) NOT NULL,
409
  "value" datetime DEFAULT NULL,
410
  PRIMARY KEY ("id")
411
);
412
/*!40101 SET character_set_client = @saved_cs_client */;
413
414
--
415
-- Table structure for table "custom_fields_float"
416
--
417
418
DROP TABLE IF EXISTS "custom_fields_float";
419
/*!40101 SET @saved_cs_client     = @@character_set_client */;
420
/*!40101 SET character_set_client = utf8 */;
421
CREATE TABLE "custom_fields_float" (
422
  "id" int(11) NOT NULL,
423
  "value" float DEFAULT NULL,
424
  PRIMARY KEY ("id")
425
);
426
/*!40101 SET character_set_client = @saved_cs_client */;
427
428
--
429
-- Table structure for table "custom_fields_integer"
430
--
431
432
DROP TABLE IF EXISTS "custom_fields_integer";
433
/*!40101 SET @saved_cs_client     = @@character_set_client */;
434
/*!40101 SET character_set_client = utf8 */;
435
CREATE TABLE "custom_fields_integer" (
436
  "id" int(11) NOT NULL,
437
  "value" int(12) DEFAULT NULL,
438
  PRIMARY KEY ("id")
439
);
440
/*!40101 SET character_set_client = @saved_cs_client */;
441
442
--
443
-- Table structure for table "custom_fields_text"
444
--
445
446
DROP TABLE IF EXISTS "custom_fields_text";
447
/*!40101 SET @saved_cs_client     = @@character_set_client */;
448
/*!40101 SET character_set_client = utf8 */;
449
CREATE TABLE "custom_fields_text" (
450
  "id" int(11) NOT NULL,
451
  "value" text,
452
  PRIMARY KEY ("id")
453
);
454
/*!40101 SET character_set_client = @saved_cs_client */;
455
456
--
457
-- Table structure for table "custom_fields_url"
458
--
459
460
DROP TABLE IF EXISTS "custom_fields_url";
461
/*!40101 SET @saved_cs_client     = @@character_set_client */;
462
/*!40101 SET character_set_client = utf8 */;
463
CREATE TABLE "custom_fields_url" (
464
  "id" int(11) NOT NULL,
465
  "value" tinytext,
466
  PRIMARY KEY ("id")
467
);
468
/*!40101 SET character_set_client = @saved_cs_client */;
469
470
--
471
-- Table structure for table "custom_fields_varchar"
472
--
473
474
DROP TABLE IF EXISTS "custom_fields_varchar";
475
/*!40101 SET @saved_cs_client     = @@character_set_client */;
476
/*!40101 SET character_set_client = utf8 */;
477
CREATE TABLE "custom_fields_varchar" (
478
  "id" int(11) NOT NULL,
479
  "value" varchar(100) DEFAULT NULL,
480
  PRIMARY KEY ("id")
481
);
482
/*!40101 SET character_set_client = @saved_cs_client */;
483
484
--
485
-- Table structure for table "debug_output"
486
--
487
488
DROP TABLE IF EXISTS "debug_output";
489
/*!40101 SET @saved_cs_client     = @@character_set_client */;
490
/*!40101 SET character_set_client = utf8 */;
491
CREATE TABLE "debug_output" (
492
  "debug_string" varchar(120) DEFAULT NULL,
493
  "timestamp" datetime DEFAULT NULL
494
);
495
/*!40101 SET character_set_client = @saved_cs_client */;
496
497
--
498
-- Table structure for table "ecoregion"
499
--
500
501
DROP TABLE IF EXISTS "ecoregion";
502
/*!40101 SET @saved_cs_client     = @@character_set_client */;
503
/*!40101 SET character_set_client = utf8 */;
504
CREATE TABLE "ecoregion" (
505
  "Ecoregion_ID" int(11) NOT NULL,
506
  "Eco_ID" int(11) DEFAULT NULL,
507
  "Realm" varchar(20) DEFAULT NULL,
508
  "Bio" varchar(60) DEFAULT NULL,
509
  "Eco_Num" int(6) DEFAULT NULL,
510
  "Eco_Code" varchar(10) DEFAULT NULL,
511
  "Eco_Name" varchar(100) DEFAULT NULL,
512
  "GBL_Stat" varchar(30) DEFAULT NULL,
513
  "G200_Region" varchar(60) DEFAULT NULL,
514
  "G200_Bio" varchar(60) DEFAULT NULL,
515
  "G200_Stat" varchar(30) DEFAULT NULL,
516
  "G200_Num" int(6) DEFAULT NULL,
517
  UNIQUE KEY "XPKEcoregion" ("Ecoregion_ID"),
518
  KEY "Eco_ID" ("Eco_ID")
519
);
520
/*!40101 SET character_set_client = @saved_cs_client */;
521
522
--
523
-- Table structure for table "glossary"
524
--
525
526
DROP TABLE IF EXISTS "glossary";
527
/*!40101 SET @saved_cs_client     = @@character_set_client */;
528
/*!40101 SET character_set_client = utf8 */;
529
CREATE TABLE "glossary" (
530
  "Term" varchar(60) NOT NULL DEFAULT '',
531
  "Synonyms" varchar(60) DEFAULT NULL,
532
  "Category" varchar(60) DEFAULT NULL,
533
  "Limitation" varchar(60) DEFAULT NULL,
534
  "Definition" text,
535
  UNIQUE KEY "XPKGlossary" ("Term")
536
);
537
/*!40101 SET character_set_client = @saved_cs_client */;
538
539
--
540
-- Table structure for table "habit"
541
--
542
543
DROP TABLE IF EXISTS "habit";
544
/*!40101 SET @saved_cs_client     = @@character_set_client */;
545
/*!40101 SET character_set_client = utf8 */;
546
CREATE TABLE "habit" (
547
  "Habit_ID" int(6) NOT NULL,
548
  "Habit_Description" text,
549
  "Habit_Name" varchar(60) DEFAULT NULL,
550
  PRIMARY KEY ("Habit_ID")
551
);
552
/*!40101 SET character_set_client = @saved_cs_client */;
553
554
--
555
-- Table structure for table "habitat"
556
--
557
558
DROP TABLE IF EXISTS "habitat";
559
/*!40101 SET @saved_cs_client     = @@character_set_client */;
560
/*!40101 SET character_set_client = utf8 */;
561
CREATE TABLE "habitat" (
562
  "Habitat_ID" int(6) NOT NULL,
563
  "Habitat_Description" text,
564
  "Habitat_Name" varchar(60) DEFAULT NULL,
565
  PRIMARY KEY ("Habitat_ID")
566
);
567
/*!40101 SET character_set_client = @saved_cs_client */;
568
569
--
570
-- Table structure for table "herbarium_contact"
571
--
572
573
DROP TABLE IF EXISTS "herbarium_contact";
574
/*!40101 SET @saved_cs_client     = @@character_set_client */;
575
/*!40101 SET character_set_client = utf8 */;
576
CREATE TABLE "herbarium_contact" (
577
  "Herbarium_Contact_ID" smallint(6) NOT NULL DEFAULT '0',
578
  "Function" varchar(60) DEFAULT NULL,
579
  "Contact_ID" int(11) DEFAULT NULL,
580
  "Notes" text,
581
  UNIQUE KEY "XPKHerbarium_Contact" ("Herbarium_Contact_ID")
582
);
583
/*!40101 SET character_set_client = @saved_cs_client */;
584
585
--
586
-- Table structure for table "image_category"
587
--
588
589
DROP TABLE IF EXISTS "image_category";
590
/*!40101 SET @saved_cs_client     = @@character_set_client */;
591
/*!40101 SET character_set_client = utf8 */;
592
CREATE TABLE "image_category" (
593
  "Image_Category_ID" smallint(6) NOT NULL,
594
  "Image_Category" varchar(60) DEFAULT NULL,
595
  "Image_Category_Description" text,
596
  PRIMARY KEY ("Image_Category_ID"),
597
  UNIQUE KEY "XPKImage_Category" ("Image_Category_ID")
598
);
599
/*!40101 SET character_set_client = @saved_cs_client */;
600
601
--
602
-- Table structure for table "image_management"
603
--
604
605
DROP TABLE IF EXISTS "image_management";
606
/*!40101 SET @saved_cs_client     = @@character_set_client */;
607
/*!40101 SET character_set_client = utf8 */;
608
CREATE TABLE "image_management" (
609
  "imt_id" int(11) NOT NULL DEFAULT '0',
610
  "imt_notes" text,
611
  "imt_hidden_flag" tinyint(1) DEFAULT NULL,
612
  "imt_added_by" varchar(20) DEFAULT NULL,
613
  "imt_added_date" varchar(40) DEFAULT NULL,
614
  "imt_updated_by" varchar(20) DEFAULT NULL,
615
  "imt_updated_date" varchar(40) DEFAULT NULL,
616
  PRIMARY KEY ("imt_id")
617
);
618
/*!40101 SET character_set_client = @saved_cs_client */;
619
620
--
621
-- Table structure for table "images"
622
--
623
624
DROP TABLE IF EXISTS "images";
625
/*!40101 SET @saved_cs_client     = @@character_set_client */;
626
/*!40101 SET character_set_client = utf8 */;
627
CREATE TABLE "images" (
628
  "Image_ID" int(11) NOT NULL,
629
  "Image_Name" varchar(100) DEFAULT NULL,
630
  "Image_Path_New" varchar(60) DEFAULT NULL,
631
  "Image_Path_Old" varchar(120) DEFAULT NULL,
632
  "Creator" varchar(100) DEFAULT NULL,
633
  "Headline" varchar(255) DEFAULT NULL,
634
  "Title" varchar(255) DEFAULT NULL,
635
  "Caption" text,
636
  "Keywords" varchar(255) DEFAULT NULL,
637
  "Source" varchar(60) DEFAULT NULL,
638
  "Credit" varchar(255) DEFAULT NULL,
639
  "Copyright" varchar(120) DEFAULT NULL,
640
  "Usage_Terms" text,
641
  "Instructions" text,
642
  "Create_Date" varchar(60) DEFAULT NULL,
643
  "Country" varchar(100) DEFAULT NULL,
644
  "Region" varchar(100) DEFAULT NULL,
645
  "Locality_Description" text,
646
  "Latitude" float DEFAULT NULL,
647
  "Longitude" float DEFAULT NULL,
648
  "EXIF" text,
649
  "Original_Width" int(6) DEFAULT NULL,
650
  "Original_Height" int(6) DEFAULT NULL,
651
  "Original_Scale" float DEFAULT NULL,
652
  "Image_Category_ID" smallint(6) DEFAULT NULL,
653
  "collection_lsid_object_id" varchar(15) DEFAULT NULL,
654
  "specimen_lsid_object_id" varchar(15) DEFAULT NULL,
655
  "veg_survey_id" int(11) DEFAULT NULL,
656
  "taxon_id" int(11) DEFAULT NULL,
657
  "added_by_signon" varchar(30) DEFAULT NULL,
658
  "added_date" datetime DEFAULT NULL,
659
  "updated_by_signon" varchar(30) DEFAULT NULL,
660
  "updated_date" datetime DEFAULT NULL,
661
  PRIMARY KEY ("Image_ID"),
662
  UNIQUE KEY "XPKImages" ("Image_ID"),
663
  KEY "Collection_LSID" ("collection_lsid_object_id"),
664
  KEY "Image_Category_ID" ("Image_Category_ID"),
665
  KEY "Specimen_LSID" ("specimen_lsid_object_id")
666
);
667
/*!40101 SET character_set_client = @saved_cs_client */;
668
669
--
670
-- Table structure for table "institution"
671
--
672
673
DROP TABLE IF EXISTS "institution";
674
/*!40101 SET @saved_cs_client     = @@character_set_client */;
675
/*!40101 SET character_set_client = utf8 */;
676
CREATE TABLE "institution" (
677
  "Institution_ID" int(11) NOT NULL,
678
  "Name" varchar(255) DEFAULT NULL,
679
  "Abbreviation" varchar(30) DEFAULT NULL,
680
  "Institution" varchar(255) DEFAULT NULL,
681
  "Address_Line1" varchar(120) DEFAULT NULL,
682
  "Address_Line2" varchar(120) DEFAULT NULL,
683
  "Address_Line3" varchar(120) DEFAULT NULL,
684
  "City" varchar(60) DEFAULT NULL,
685
  "Zip" varchar(15) DEFAULT NULL,
686
  "Region_ID" smallint(6) DEFAULT NULL,
687
  "State_Province" varchar(60) DEFAULT NULL,
688
  "Country_ID" smallint(6) DEFAULT NULL,
689
  "Continent_ID" int(11) DEFAULT NULL,
690
  "Contact" varchar(60) DEFAULT NULL,
691
  "Phone1" varchar(20) DEFAULT NULL,
692
  "Phone2" varchar(20) DEFAULT NULL,
693
  "Fax" varchar(20) DEFAULT NULL,
694
  "Email" varchar(30) DEFAULT NULL,
695
  "URL" varchar(255) DEFAULT NULL,
696
  "Category" varchar(60) DEFAULT NULL,
697
  "Notes" text,
698
  PRIMARY KEY ("Institution_ID"),
699
  KEY "XPKOrganization" ("Institution_ID")
700
);
701
/*!40101 SET character_set_client = @saved_cs_client */;
702
703
--
704
-- Table structure for table "languages"
705
--
706
707
DROP TABLE IF EXISTS "languages";
708
/*!40101 SET @saved_cs_client     = @@character_set_client */;
709
/*!40101 SET character_set_client = utf8 */;
710
CREATE TABLE "languages" (
711
  "language_id" int(11) NOT NULL,
712
  "language_name" varchar(30) DEFAULT NULL,
713
  PRIMARY KEY ("language_id")
714
);
715
/*!40101 SET character_set_client = @saved_cs_client */;
716
717
--
718
-- Table structure for table "life_zone"
719
--
720
721
DROP TABLE IF EXISTS "life_zone";
722
/*!40101 SET @saved_cs_client     = @@character_set_client */;
723
/*!40101 SET character_set_client = utf8 */;
724
CREATE TABLE "life_zone" (
725
  "Life_Zone_ID" int(11) NOT NULL,
726
  "Life_Zone_Name" varchar(60) DEFAULT NULL,
727
  "Life_Zone_Code" varchar(10) DEFAULT NULL,
728
  UNIQUE KEY "XPKLife_Zone" ("Life_Zone_ID")
729
);
730
/*!40101 SET character_set_client = @saved_cs_client */;
731
732
--
733
-- Table structure for table "literature"
734
--
735
736
DROP TABLE IF EXISTS "literature";
737
/*!40101 SET @saved_cs_client     = @@character_set_client */;
738
/*!40101 SET character_set_client = utf8 */;
739
CREATE TABLE "literature" (
740
  "Literature_ID" int(11) NOT NULL,
741
  "Type" int(11) DEFAULT NULL,
742
  "Author" text,
743
  "Editor" text,
744
  "Year" int(11) DEFAULT NULL,
745
  "Title" text,
746
  "Series_Editor" text,
747
  "Series_Title" varchar(50) DEFAULT NULL,
748
  "Short_Title" text,
749
  "Volume" varchar(15) DEFAULT NULL,
750
  "Edition" varchar(30) DEFAULT NULL,
751
  "Issue" varchar(30) DEFAULT NULL,
752
  "Pages" varchar(30) DEFAULT NULL,
753
  "Secondary_Title" text,
754
  "Alt_Journal" text,
755
  "Publisher" text,
756
  "City" varchar(30) DEFAULT NULL,
757
  "University" varchar(50) DEFAULT NULL,
758
  "ISSN" varchar(50) DEFAULT NULL,
759
  "ISBN" varchar(30) DEFAULT NULL,
760
  "Date" varchar(60) DEFAULT NULL,
761
  "Thesis_Type" varchar(30) DEFAULT NULL,
762
  "Keywords" text,
763
  "Abstract" text,
764
  "Notes" text,
765
  "Doc_URL" text,
766
  "Doc_Name" text,
767
  "Doc_Path" varchar(60) DEFAULT NULL,
768
  "Language" varchar(20) DEFAULT NULL,
769
  "Plot_ID" smallint(6) DEFAULT NULL,
770
  "Added_By_Signon" varchar(40) DEFAULT NULL,
771
  "Added_Date" varchar(60) DEFAULT NULL,
772
  "Updated_By_Signon" varchar(40) DEFAULT NULL,
773
  "Updated_Date" varchar(60) DEFAULT NULL,
774
  "published" tinyint(1) DEFAULT NULL,
775
  PRIMARY KEY ("Literature_ID"),
776
  UNIQUE KEY "XPKLiterature" ("Literature_ID")
777
);
778
/*!40101 SET character_set_client = @saved_cs_client */;
779
780
--
781
-- Table structure for table "literature_contact"
782
--
783
784
DROP TABLE IF EXISTS "literature_contact";
785
/*!40101 SET @saved_cs_client     = @@character_set_client */;
786
/*!40101 SET character_set_client = utf8 */;
787
CREATE TABLE "literature_contact" (
788
  "Contact_ID" int(11) NOT NULL DEFAULT '0',
789
  "Literature_ID" int(11) NOT NULL DEFAULT '0',
790
  UNIQUE KEY "XPKLiteratur_Contact" ("Contact_ID","Literature_ID")
791
);
792
/*!40101 SET character_set_client = @saved_cs_client */;
793
794
--
795
-- Table structure for table "literature_family"
796
--
797
798
DROP TABLE IF EXISTS "literature_family";
799
/*!40101 SET @saved_cs_client     = @@character_set_client */;
800
/*!40101 SET character_set_client = utf8 */;
801
CREATE TABLE "literature_family" (
802
  "Family_ID" smallint(6) NOT NULL DEFAULT '0',
803
  "Literature_ID" int(11) NOT NULL DEFAULT '0',
804
  UNIQUE KEY "XPKLiterature_Family" ("Family_ID","Literature_ID")
805
);
806
/*!40101 SET character_set_client = @saved_cs_client */;
807
808
--
809
-- Table structure for table "local_names"
810
--
811
812
DROP TABLE IF EXISTS "local_names";
813
/*!40101 SET @saved_cs_client     = @@character_set_client */;
814
/*!40101 SET character_set_client = utf8 */;
815
CREATE TABLE "local_names" (
816
  "Local_Name_ID" int(11) NOT NULL,
817
  "Local_Name" varchar(60) DEFAULT NULL,
818
  "Language" varchar(60) DEFAULT NULL,
819
  "Country_ID" int(11) DEFAULT NULL,
820
  "Species_ID" int(11) DEFAULT NULL,
821
  "Specimen_ID" int(11) DEFAULT NULL,
822
  PRIMARY KEY ("Local_Name_ID"),
823
  UNIQUE KEY "XPKLocal_Names" ("Local_Name_ID")
824
);
825
/*!40101 SET character_set_client = @saved_cs_client */;
826
827
--
828
-- Table structure for table "localized_strings"
829
--
830
831
DROP TABLE IF EXISTS "localized_strings";
832
/*!40101 SET @saved_cs_client     = @@character_set_client */;
833
/*!40101 SET character_set_client = utf8 */;
834
CREATE TABLE "localized_strings" (
835
  "string_id" int(11) NOT NULL,
836
  "page_name" varchar(60) DEFAULT NULL,
837
  "string_name" varchar(10) DEFAULT NULL,
838
  "string_tag" varchar(10) DEFAULT NULL,
839
  "language" varchar(20) DEFAULT NULL,
840
  "localized_string" text,
841
  PRIMARY KEY ("string_id")
842
);
843
/*!40101 SET character_set_client = @saved_cs_client */;
844
845
--
846
-- Table structure for table "lsid_authority"
847
--
848
849
DROP TABLE IF EXISTS "lsid_authority";
850
/*!40101 SET @saved_cs_client     = @@character_set_client */;
851
/*!40101 SET character_set_client = utf8 */;
852
CREATE TABLE "lsid_authority" (
853
  "authority_id" int(11) NOT NULL,
854
  "authority_text" varchar(60) DEFAULT NULL,
855
  "authority_description" text,
856
  PRIMARY KEY ("authority_id")
857
);
858
/*!40101 SET character_set_client = @saved_cs_client */;
859
860
--
861
-- Table structure for table "lsid_namespace"
862
--
863
864
DROP TABLE IF EXISTS "lsid_namespace";
865
/*!40101 SET @saved_cs_client     = @@character_set_client */;
866
/*!40101 SET character_set_client = utf8 */;
867
CREATE TABLE "lsid_namespace" (
868
  "namespace_id" int(11) NOT NULL,
869
  "namespace_text" varchar(60) DEFAULT NULL,
870
  "namespace_description" text,
871
  PRIMARY KEY ("namespace_id")
872
);
873
/*!40101 SET character_set_client = @saved_cs_client */;
874
875
--
876
-- Table structure for table "metadata"
877
--
878
879
DROP TABLE IF EXISTS "metadata";
880
/*!40101 SET @saved_cs_client     = @@character_set_client */;
881
/*!40101 SET character_set_client = utf8 */;
882
CREATE TABLE "metadata" (
883
  "DatasetID" int(11) NOT NULL,
884
  "ResTitle" varchar(200) DEFAULT NULL,
885
  "ResAltTitle" text,
886
  "IdAbs" text,
887
  "WestBL" float DEFAULT NULL,
888
  "EastBL" float DEFAULT NULL,
889
  "NorthBL" float DEFAULT NULL,
890
  "SouthBL" float DEFAULT NULL,
891
  "CreateDate" datetime DEFAULT NULL,
892
  "SpatRepTypeCd" varchar(20) DEFAULT NULL,
893
  "ContentType" int(10) DEFAULT NULL,
894
  "ImageType" varchar(20) DEFAULT NULL,
895
  "ImagePath" int(10) DEFAULT NULL,
896
  "ImageRow" int(10) DEFAULT NULL,
897
  "FormatName" varchar(20) DEFAULT NULL,
898
  "MetXML" mediumtext,
899
  "FileName" varchar(255) DEFAULT NULL,
900
  "FileSize" int(10) DEFAULT NULL,
901
  "FileSizeZip" int(10) DEFAULT NULL,
902
  "OriginalFileName" varchar(255) DEFAULT NULL,
903
  "ImageFileName" varchar(255) DEFAULT NULL,
904
  "ThumbFileName" varchar(255) DEFAULT NULL,
905
  "Keywords1" text,
906
  "Keywords2" text,
907
  "Keywords3" text,
908
  "Keywords4" text,
909
  "Keywords5" text,
910
  "TopicCatCd" varchar(255) DEFAULT NULL,
911
  "DateCreate" varchar(60) DEFAULT NULL,
912
  "UserCreate" varchar(20) DEFAULT NULL,
913
  "DateLastChange" varchar(60) DEFAULT NULL,
914
  "UserLastChange" varchar(20) DEFAULT NULL,
915
  "PublishDate" varchar(60) DEFAULT NULL,
916
  "plot_id" int(11) DEFAULT NULL,
917
  PRIMARY KEY ("DatasetID"),
918
  KEY "Plot_ID" ("plot_id")
919
);
920
/*!40101 SET character_set_client = @saved_cs_client */;
921
922
--
923
-- Table structure for table "meteo_data"
924
--
925
926
DROP TABLE IF EXISTS "meteo_data";
927
/*!40101 SET @saved_cs_client     = @@character_set_client */;
928
/*!40101 SET character_set_client = utf8 */;
929
CREATE TABLE "meteo_data" (
930
  "Meteo_Data_ID" bigint(20) NOT NULL,
931
  "Station_ID" int(11) NOT NULL DEFAULT '0',
932
  "Reading_Datetime" datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
933
  "Temperature" float DEFAULT NULL,
934
  "Precipitation" float DEFAULT NULL,
935
  "Humidity" float DEFAULT NULL,
936
  "Wind_Direction" float DEFAULT NULL,
937
  "Wind_Gust" float DEFAULT NULL,
938
  "Wind_Speed" float DEFAULT NULL,
939
  "Atmospheric_Pressure" float DEFAULT NULL,
940
  "Solar_Radiation" float DEFAULT NULL,
941
  "PAR" float DEFAULT NULL,
942
  "Evapotranspiration" float DEFAULT NULL,
943
  "Soil_Moisture_A" float DEFAULT NULL,
944
  "Soil_Temperature_A" float DEFAULT NULL,
945
  "Soil_Moisture_B" float DEFAULT NULL,
946
  "Soil_Temperature_B" float DEFAULT NULL,
947
  "Water_Level" float DEFAULT NULL,
948
  PRIMARY KEY ("Meteo_Data_ID"),
949
  UNIQUE KEY "XPKMeteo_Data" ("Meteo_Data_ID","Station_ID"),
950
  KEY "Station_ID" ("Station_ID")
951
);
952
/*!40101 SET character_set_client = @saved_cs_client */;
953
954
--
955
-- Table structure for table "meteo_images"
956
--
957
958
DROP TABLE IF EXISTS "meteo_images";
959
/*!40101 SET @saved_cs_client     = @@character_set_client */;
960
/*!40101 SET character_set_client = utf8 */;
961
CREATE TABLE "meteo_images" (
962
  "image_id" int(11) NOT NULL,
963
  "station_id" int(11) NOT NULL DEFAULT '0',
964
  "image_path" text,
965
  "image_description" text,
966
  PRIMARY KEY ("image_id"),
967
  KEY "station_id" ("station_id")
968
);
969
/*!40101 SET character_set_client = @saved_cs_client */;
970
971
--
972
-- Table structure for table "meteo_missing_data"
973
--
974
975
DROP TABLE IF EXISTS "meteo_missing_data";
976
/*!40101 SET @saved_cs_client     = @@character_set_client */;
977
/*!40101 SET character_set_client = utf8 */;
978
CREATE TABLE "meteo_missing_data" (
979
  "meteo_data_id" int(11) DEFAULT NULL,
980
  "station_id" int(11) DEFAULT NULL,
981
  "data_type" varchar(40) DEFAULT NULL,
982
  "current_datetime" varchar(40) DEFAULT NULL,
983
  "prior_datetime" varchar(40) DEFAULT NULL,
984
  "curr_timestamp" varchar(40) DEFAULT NULL,
985
  "prior_timestamp" varchar(40) DEFAULT NULL,
986
  "time_difference" int(11) DEFAULT NULL,
987
  KEY "station_id" ("station_id")
988
);
989
/*!40101 SET character_set_client = @saved_cs_client */;
990
991
--
992
-- Table structure for table "meteo_station"
993
--
994
995
DROP TABLE IF EXISTS "meteo_station";
996
/*!40101 SET @saved_cs_client     = @@character_set_client */;
997
/*!40101 SET character_set_client = utf8 */;
998
CREATE TABLE "meteo_station" (
999
  "Station_ID" smallint(6) NOT NULL,
1000
  "Name" varchar(60) DEFAULT NULL,
1001
  "Description" text,
1002
  "Instrument_Manufacturer" varchar(120) DEFAULT NULL,
1003
  "Instrument_Model" varchar(120) DEFAULT NULL,
1004
  "Instrument_Serial_Number" varchar(60) DEFAULT NULL,
1005
  "File_Format" varchar(30) DEFAULT NULL,
1006
  "Location" varchar(60) DEFAULT NULL,
1007
  "Country_ID" smallint(6) DEFAULT NULL,
1008
  "Region_ID" smallint(6) DEFAULT NULL,
1009
  "Latitude" float DEFAULT NULL,
1010
  "Longitude" float DEFAULT NULL,
1011
  "Elevation" float DEFAULT NULL,
1012
  "Start_Date" varchar(60) DEFAULT NULL,
1013
  "End_Date" varchar(60) DEFAULT NULL,
1014
  "Contact_ID" int(11) DEFAULT NULL,
1015
  "Operator" varchar(30) DEFAULT NULL,
1016
  "Image_Main_ID" int(11) DEFAULT NULL,
1017
  "Image_Additional_ID" int(11) DEFAULT NULL,
1018
  "Notes" text,
1019
  "Last_Calibration_Date" varchar(60) DEFAULT NULL,
1020
  "Measure_Interval" varchar(120) DEFAULT NULL,
1021
  "Contact_Info" text,
1022
  "Temperature" tinyint(1) DEFAULT NULL,
1023
  "Precipitation" tinyint(1) DEFAULT NULL,
1024
  "Humidity" tinyint(1) DEFAULT NULL,
1025
  "Wind" tinyint(1) DEFAULT NULL,
1026
  "Atmospheric_Pressure" tinyint(1) DEFAULT NULL,
1027
  "Solar_Radiation" tinyint(1) DEFAULT NULL,
1028
  "PAR" tinyint(1) DEFAULT NULL,
1029
  "Evapotranspiration" tinyint(1) DEFAULT NULL,
1030
  "Soil_Moisture" tinyint(1) DEFAULT NULL,
1031
  "Soil_Temperature" tinyint(1) DEFAULT NULL,
1032
  "Water_Level" tinyint(1) DEFAULT NULL,
1033
  "Temperature_Description" text,
1034
  "Precipitation_Description" text,
1035
  "Humidity_Description" text,
1036
  "Wind_Description" text,
1037
  "Atmospheric_Pressure_Description" text,
1038
  "Solar_Radiation_Description" text,
1039
  "PAR_Description" text,
1040
  "Evapotranspiration_Description" text,
1041
  "Soil_Moisture_Description" text,
1042
  "Soil_Temperature_Description" text,
1043
  "Water_Level_Description" text,
1044
  "station_managers" text,
1045
  PRIMARY KEY ("Station_ID"),
1046
  UNIQUE KEY "XPKMeteo_Station" ("Station_ID")
1047
);
1048
/*!40101 SET character_set_client = @saved_cs_client */;
1049
1050
--
1051
-- Table structure for table "navigation_menu"
1052
--
1053
1054
DROP TABLE IF EXISTS "navigation_menu";
1055
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1056
/*!40101 SET character_set_client = utf8 */;
1057
CREATE TABLE "navigation_menu" (
1058
  "nav_id" int(11) NOT NULL,
1059
  "section" varchar(30) DEFAULT NULL,
1060
  "top_level_name" varchar(90) DEFAULT NULL,
1061
  "top_level_action" varchar(90) DEFAULT NULL,
1062
  "top_level_rank" int(3) DEFAULT NULL,
1063
  "second_level_name" varchar(90) DEFAULT NULL,
1064
  "second_level_action" varchar(90) DEFAULT NULL,
1065
  "second_level_rank" int(3) DEFAULT NULL,
1066
  "third_level_name" varchar(90) DEFAULT NULL,
1067
  "third_level_action" varchar(90) DEFAULT NULL,
1068
  "third_level_rank" char(3) DEFAULT NULL,
1069
  PRIMARY KEY ("nav_id")
1070
);
1071
/*!40101 SET character_set_client = @saved_cs_client */;
1072
1073
--
1074
-- Table structure for table "organization_members"
1075
--
1076
1077
DROP TABLE IF EXISTS "organization_members";
1078
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1079
/*!40101 SET character_set_client = utf8 */;
1080
CREATE TABLE "organization_members" (
1081
  "Organization_ID" int(11) NOT NULL,
1082
  "Function_Org" varchar(120) DEFAULT NULL,
1083
  "Notes" text,
1084
  "Contact_ID" int(11) NOT NULL DEFAULT '0',
1085
  PRIMARY KEY ("Organization_ID"),
1086
  UNIQUE KEY "XPKOrganization_Members" ("Organization_ID","Contact_ID")
1087
);
1088
/*!40101 SET character_set_client = @saved_cs_client */;
1089
1090
--
1091
-- Table structure for table "project"
1092
--
1093
1094
DROP TABLE IF EXISTS "project";
1095
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1096
/*!40101 SET character_set_client = utf8 */;
1097
CREATE TABLE "project" (
1098
  "Project_ID" int(11) NOT NULL,
1099
  "Project_Name" varchar(60) DEFAULT NULL,
1100
  "Project_Description" text,
1101
  PRIMARY KEY ("Project_ID")
1102
);
1103
/*!40101 SET character_set_client = @saved_cs_client */;
1104
1105
--
1106
-- Table structure for table "reference"
1107
--
1108
1109
DROP TABLE IF EXISTS "reference";
1110
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1111
/*!40101 SET character_set_client = utf8 */;
1112
CREATE TABLE "reference" (
1113
  "reference_id" int(11) NOT NULL,
1114
  "Title" varchar(100) DEFAULT NULL,
1115
  "Description" text,
1116
  "biblio_id" int(11) DEFAULT NULL,
1117
  "Scheme" varchar(30) DEFAULT NULL,
1118
  "URL" text,
1119
  "Taxon_Type" varchar(30) DEFAULT NULL,
1120
  "taxon_id" int(11) DEFAULT NULL,
1121
  "old_Taxon_ID" int(11) DEFAULT NULL,
1122
  "Added_By_Signon" varchar(30) DEFAULT NULL,
1123
  "Added_Date" varchar(60) DEFAULT NULL,
1124
  "Updated_By_Signon" varchar(30) DEFAULT NULL,
1125
  "Updated_Date" varchar(60) DEFAULT NULL,
1126
  PRIMARY KEY ("reference_id"),
1127
  KEY "taxon_id" ("taxon_id"),
1128
  KEY "biblio_id" ("biblio_id")
1129
);
1130
/*!40101 SET character_set_client = @saved_cs_client */;
1131
1132
--
1133
-- Table structure for table "region"
1134
--
1135
1136
DROP TABLE IF EXISTS "region";
1137
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1138
/*!40101 SET character_set_client = utf8 */;
1139
CREATE TABLE "region" (
1140
  "Region_ID" smallint(6) NOT NULL,
1141
  "Region_Name" varchar(60) NOT NULL DEFAULT '',
1142
  "Continent_ID" int(11) DEFAULT NULL,
1143
  "Country_ID" smallint(6) DEFAULT NULL,
1144
  PRIMARY KEY ("Region_ID")
1145
);
1146
/*!40101 SET character_set_client = @saved_cs_client */;
1147
1148
--
1149
-- Table structure for table "research_site"
1150
--
1151
1152
DROP TABLE IF EXISTS "research_site";
1153
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1154
/*!40101 SET character_set_client = utf8 */;
1155
CREATE TABLE "research_site" (
1156
  "Research_Site_ID" smallint(6) NOT NULL,
1157
  "Research_Site_Description" text,
1158
  "Research_Site_Name" varchar(60) DEFAULT NULL,
1159
  PRIMARY KEY ("Research_Site_ID")
1160
);
1161
/*!40101 SET character_set_client = @saved_cs_client */;
1162
1163
--
1164
-- Table structure for table "specimen"
1165
--
1166
1167
DROP TABLE IF EXISTS "specimen";
1168
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1169
/*!40101 SET character_set_client = utf8 */;
1170
CREATE TABLE "specimen" (
1171
  "Specimen_ID" int(11) NOT NULL,
1172
  "LSID_Object_ID" varchar(15) DEFAULT NULL,
1173
  "LSID_Authority_ID" int(11) DEFAULT NULL,
1174
  "LSID_Namespace_ID" int(11) DEFAULT NULL,
1175
  "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL,
1176
  "Specimen_Number" int(11) DEFAULT NULL,
1177
  "Specimen_Version" int(11) DEFAULT NULL,
1178
  "Published_Specimen" tinyint(1) DEFAULT NULL,
1179
  "Accession_Location_ID" int(11) DEFAULT NULL,
1180
  "Accession_Number" varchar(60) DEFAULT NULL,
1181
  "Auxiliary_Collections" varchar(60) DEFAULT NULL,
1182
  "Type_Specimen" varchar(60) DEFAULT NULL,
1183
  "Phenology_Stage" text,
1184
  "Collection_Method" text,
1185
  "ID_Notes" varchar(100) DEFAULT NULL,
1186
  "Specimen_Rep_Image" varchar(60) DEFAULT NULL,
1187
  "Specimen_Exists" tinyint(1) DEFAULT '1',
1188
  "Institution_ID" int(11) DEFAULT NULL,
1189
  "Added_By_Signon" varchar(30) DEFAULT NULL,
1190
  "Added_Date" varchar(60) DEFAULT NULL,
1191
  PRIMARY KEY ("Specimen_ID"),
1192
  KEY "XPKSpecimen" ("Specimen_ID"),
1193
  KEY "Collection_LSID" ("Collection_LSID_Object_ID")
1194
);
1195
/*!40101 SET character_set_client = @saved_cs_client */;
1196
1197
--
1198 7696 aaronmk
-- Table structure for table "specimen_flat"
1199
--
1200
1201
DROP TABLE IF EXISTS "specimen_flat";
1202
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1203
/*!40101 SET character_set_client = utf8 */;
1204
CREATE TABLE "specimen_flat" (
1205
  "specimen_id" int(11) NOT NULL DEFAULT '0',
1206
  "Institution_Code" varchar(4) NOT NULL DEFAULT '',
1207
  "Global_Unique_Identifier" binary(0) DEFAULT NULL,
1208
  "Collector_Abbrev_Name" varchar(60) DEFAULT NULL,
1209
  "Collection_Team" varchar(120) DEFAULT NULL,
1210
  "Collection_Number" varchar(20) DEFAULT NULL,
1211
  "Date_of_Collection" varchar(60) DEFAULT NULL,
1212
  "Year_Collected" int(4) DEFAULT NULL,
1213
  "Month_Collected" int(2) DEFAULT NULL,
1214
  "Day_Collected" int(2) DEFAULT NULL,
1215
  "Catalog_Number" varchar(81) DEFAULT NULL,
1216
  "Scientific_Name" varchar(255) DEFAULT NULL,
1217
  "Kingdom_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1218
  "Division_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1219
  "Class_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1220
  "Subclass_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1221
  "Order_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1222
  "Family_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1223
  "Genus_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1224
  "Specific_Epithet" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1225
  "Sp_Authority" varchar(255) DEFAULT NULL,
1226
  "Infra_Rank" varchar(100) DEFAULT NULL,
1227
  "Infra_Epithet" varchar(60) DEFAULT NULL,
1228
  "Local_Name" varchar(60) DEFAULT NULL,
1229
  "Continent_Name" varchar(60) DEFAULT NULL,
1230
  "Country_Name" varchar(60) DEFAULT '',
1231
  "Region_Name" varchar(60) DEFAULT '',
1232
  "Subregion_Name" varchar(60) DEFAULT NULL,
1233
  "Closest_Town" varchar(60) DEFAULT NULL,
1234
  "Research_Site_Name" varchar(60) DEFAULT NULL,
1235
  "Project_Name" varchar(60) DEFAULT NULL,
1236
  "Locality_Summary" varchar(60) DEFAULT NULL,
1237
  "Locality_Description" text,
1238
  "Locality_Site_Specific" varchar(120) DEFAULT NULL,
1239
  "Habitat_Description" text,
1240
  "Habitat_Summary" varchar(200) DEFAULT NULL,
1241
  "Soil_Description" text,
1242
  "Notes_Plant" text,
1243
  "Phenology_Stage" char(0) NOT NULL DEFAULT '',
1244
  "Height_Min" float DEFAULT NULL,
1245
  "Height_Max" float DEFAULT NULL,
1246
  "DBH_Min" float DEFAULT NULL,
1247
  "DBH_Max" float DEFAULT NULL,
1248
  "Latitude" float DEFAULT NULL,
1249
  "Longitude" float DEFAULT NULL,
1250
  "Coordinate_Uncertainity" varchar(60) DEFAULT NULL,
1251
  "Elevation_Min" float DEFAULT NULL,
1252
  "Elevation_Max" float DEFAULT NULL,
1253
  "Basis_Of_Specimen" varchar(1) NOT NULL DEFAULT '',
1254
  "Auxilirary_Collections" char(0) NOT NULL DEFAULT '',
1255
  "Collection_Method" varchar(5) NOT NULL DEFAULT '',
1256
  "Dubpliate_Herbarium" char(0) NOT NULL DEFAULT '',
1257
  "Duplicates" bigint(21) DEFAULT NULL,
1258
  "Type_Specimen" char(0) NOT NULL DEFAULT '',
1259
  "Updated_date" varchar(60) DEFAULT NULL,
1260
  "Determined_By_Name" varchar(200) DEFAULT NULL,
1261
  "Determined_By_Date" varchar(30) DEFAULT NULL,
1262
  "Year_Identified" int(4) DEFAULT NULL,
1263
  "Month_Identified" int(2) DEFAULT NULL,
1264
  "Day_Identified" int(2) DEFAULT NULL
1265
);
1266
/*!40101 SET character_set_client = @saved_cs_client */;
1267 7797 aaronmk
1268
--
1269
-- Table structure for table "subregion"
1270
--
1271
1272
DROP TABLE IF EXISTS "subregion";
1273
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1274
/*!40101 SET character_set_client = utf8 */;
1275
CREATE TABLE "subregion" (
1276
  "Region_ID" smallint(6) NOT NULL DEFAULT '0',
1277
  "Subregion_ID" int(11) NOT NULL,
1278
  "Subregion_Name" varchar(60) DEFAULT NULL,
1279
  PRIMARY KEY ("Subregion_ID")
1280
);
1281
/*!40101 SET character_set_client = @saved_cs_client */;
1282
1283
--
1284
-- Table structure for table "sync_resolution"
1285
--
1286
1287
DROP TABLE IF EXISTS "sync_resolution";
1288
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1289
/*!40101 SET character_set_client = utf8 */;
1290
CREATE TABLE "sync_resolution" (
1291
  "sync_resolution_id" int(11) NOT NULL,
1292
  "source" varchar(100) DEFAULT NULL,
1293
  "table_name" varchar(50) DEFAULT NULL,
1294
  "sync_lsid_full" varchar(150) DEFAULT NULL COMMENT 'Length is based upon sum of max length of lsid text fields plus version',
1295
  "sync_lsid_version" int(11) DEFAULT NULL,
1296
  "previous_lsid_full" varchar(150) DEFAULT NULL COMMENT 'Length is based upon sum of max length of lsid text fields plus version',
1297
  "previous_lsid_version" int(11) DEFAULT NULL,
1298
  "resolved_lsid_full" varchar(150) DEFAULT NULL COMMENT 'Length is based upon sum of max length of lsid text fields plus version',
1299
  "resolved_lsid_version" int(11) DEFAULT NULL,
1300
  "conflicted" smallint(1) DEFAULT NULL,
1301
  "resolved" smallint(1) DEFAULT NULL,
1302
  "conflict_manager_id" int(11) DEFAULT NULL,
1303
  "conflict_description" text,
1304
  "uploaded_by_signon" varchar(30) DEFAULT NULL,
1305
  "uploaded_date" varchar(60) DEFAULT NULL,
1306
  "updated_by_signon" varchar(30) DEFAULT NULL,
1307
  "updated_date" varchar(60) DEFAULT NULL,
1308
  "resolved_by_signon" varchar(30) DEFAULT NULL,
1309
  "resolved_date" varchar(60) DEFAULT NULL,
1310
  "notes" text,
1311
  PRIMARY KEY ("sync_resolution_id")
1312
);
1313
/*!40101 SET character_set_client = @saved_cs_client */;
1314
1315
--
1316
-- Table structure for table "taxon"
1317
--
1318
1319
DROP TABLE IF EXISTS "taxon";
1320
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1321
/*!40101 SET character_set_client = utf8 */;
1322
CREATE TABLE "taxon" (
1323
  "taxon_id" int(11) NOT NULL,
1324
  "taxon_name" varchar(60) DEFAULT NULL,
1325
  "taxon_rank_id" int(4) DEFAULT NULL,
1326
  "taxon_path" varchar(112) DEFAULT NULL,
1327
  "taxon_original_id" int(11) DEFAULT NULL,
1328
  "parent_id" int(11) DEFAULT NULL,
1329
  "kingdom_id" int(11) DEFAULT NULL,
1330
  "status" tinyint(1) DEFAULT NULL,
1331
  "unaccept_reason_id" int(11) DEFAULT NULL,
1332
  "credibility_rating" varchar(40) DEFAULT NULL,
1333
  "taxon_authority" varchar(50) DEFAULT NULL,
1334
  "taxon_lsid" varchar(50) DEFAULT NULL,
1335
  "verified_date" datetime DEFAULT NULL,
1336
  "added_date" datetime DEFAULT NULL,
1337
  "added_by_signon" varchar(30) DEFAULT NULL,
1338
  "updated_date" datetime DEFAULT NULL,
1339
  "updated_by_signon" varchar(30) DEFAULT NULL,
1340
  "author" varchar(255) DEFAULT NULL,
1341
  "old_id" int(11) DEFAULT NULL,
1342
  PRIMARY KEY ("taxon_id"),
1343
  UNIQUE KEY "taxon_original_id" ("taxon_original_id"),
1344
  KEY "taxon_rank_id" ("taxon_rank_id"),
1345
  KEY "taxon_path" ("taxon_path"),
1346
  KEY "taxon_name" ("taxon_name"),
1347
  KEY "parent_id" ("parent_id"),
1348
  KEY "kingdom_id" ("kingdom_id")
1349
);
1350
/*!40101 SET character_set_client = @saved_cs_client */;
1351
1352
--
1353
-- Table structure for table "taxon_common_name"
1354
--
1355
1356
DROP TABLE IF EXISTS "taxon_common_name";
1357
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1358
/*!40101 SET character_set_client = utf8 */;
1359
CREATE TABLE "taxon_common_name" (
1360
  "taxon_common_name_id" int(11) NOT NULL,
1361
  "taxon_id" int(11) DEFAULT NULL,
1362
  "language_id" int(11) DEFAULT NULL,
1363
  "common_name" varchar(100) DEFAULT NULL,
1364
  "notes" text,
1365
  "added_date" datetime DEFAULT NULL,
1366
  "added_by_signon" varchar(60) DEFAULT NULL,
1367
  "updated_date" datetime DEFAULT NULL,
1368
  "updated_by_signon" varchar(60) DEFAULT NULL,
1369
  PRIMARY KEY ("taxon_common_name_id"),
1370
  UNIQUE KEY "XPKLocal_Names" ("taxon_common_name_id")
1371
);
1372
/*!40101 SET character_set_client = @saved_cs_client */;
1373
1374
--
1375
-- Table structure for table "taxon_common_name_country"
1376
--
1377
1378
DROP TABLE IF EXISTS "taxon_common_name_country";
1379
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1380
/*!40101 SET character_set_client = utf8 */;
1381
CREATE TABLE "taxon_common_name_country" (
1382
  "taxon_common_name_id" int(11) DEFAULT NULL,
1383
  "country_id" int(11) DEFAULT NULL
1384
);
1385
/*!40101 SET character_set_client = @saved_cs_client */;
1386
1387
--
1388
-- Table structure for table "taxon_flat"
1389
--
1390
1391
DROP TABLE IF EXISTS "taxon_flat";
1392
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1393
/*!40101 SET character_set_client = utf8 */;
1394
CREATE TABLE "taxon_flat" (
1395
  "taxon_id" int(11) NOT NULL DEFAULT '0',
1396
  "taxon_rank_id" int(4) DEFAULT NULL,
1397
  "Kingdom_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1398
  "Kingdom_id" bigint(20) DEFAULT NULL,
1399
  "Subkingdom_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1400
  "Subkingdom_id" bigint(20) DEFAULT NULL,
1401
  "Division_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1402
  "Division_id" bigint(20) DEFAULT NULL,
1403
  "Subdivision_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1404
  "Subdivision_id" bigint(20) DEFAULT NULL,
1405
  "Class_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1406
  "Class_id" bigint(20) DEFAULT NULL,
1407
  "Subclass_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1408
  "Subclass_id" bigint(20) DEFAULT NULL,
1409
  "Order_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1410
  "Order_id" bigint(20) DEFAULT NULL,
1411
  "Suborder_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1412
  "Suborder_id" bigint(20) DEFAULT NULL,
1413
  "Family_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1414
  "Family_id" bigint(20) DEFAULT NULL,
1415
  "Subfamily_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1416
  "Subfamily_id" bigint(20) DEFAULT NULL,
1417
  "Tribe_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1418
  "Tribe_id" bigint(20) DEFAULT NULL,
1419
  "Subtribe_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1420
  "Subtribe_id" bigint(20) DEFAULT NULL,
1421
  "Genus_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1422
  "Genus_id" bigint(20) DEFAULT NULL,
1423
  "Subgenus_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1424
  "Subgenus_id" bigint(20) DEFAULT NULL,
1425
  "Section_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1426
  "Section_id" bigint(20) DEFAULT NULL,
1427
  "Subsection_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1428
  "Subsection_id" bigint(20) DEFAULT NULL,
1429
  "Species_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1430
  "Species_id" bigint(20) DEFAULT NULL,
1431
  "Subspecies_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1432
  "Subspecies_id" bigint(20) DEFAULT NULL,
1433
  "Variety_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1434
  "Variety_id" bigint(20) DEFAULT NULL,
1435
  "Subvariety_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1436
  "Subvariety_id" bigint(20) DEFAULT NULL,
1437
  "Form_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1438
  "Form_id" bigint(20) DEFAULT NULL,
1439
  "Subform_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
1440
  "Subform_id" bigint(20) DEFAULT NULL,
1441
  KEY "taxon_id" ("taxon_id"),
1442
  KEY "taxon_rank_id" ("taxon_rank_id")
1443
);
1444
/*!40101 SET character_set_client = @saved_cs_client */;
1445
1446
--
1447
-- Table structure for table "taxon_kingdom"
1448
--
1449
1450
DROP TABLE IF EXISTS "taxon_kingdom";
1451
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1452
/*!40101 SET character_set_client = utf8 */;
1453
CREATE TABLE "taxon_kingdom" (
1454
  "taxon_kingdom_id" smallint(6) NOT NULL,
1455
  "kingdom_name" varchar(60) DEFAULT NULL,
1456
  PRIMARY KEY ("taxon_kingdom_id"),
1457
  UNIQUE KEY "XPKKingdom" ("taxon_kingdom_id")
1458
);
1459
/*!40101 SET character_set_client = @saved_cs_client */;
1460
1461
--
1462
-- Table structure for table "taxon_literature"
1463
--
1464
1465
DROP TABLE IF EXISTS "taxon_literature";
1466
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1467
/*!40101 SET character_set_client = utf8 */;
1468
CREATE TABLE "taxon_literature" (
1469
  "taxon_id" int(11) DEFAULT NULL,
1470
  "literature_id" int(11) DEFAULT NULL
1471
);
1472
/*!40101 SET character_set_client = @saved_cs_client */;
1473
1474
--
1475
-- Table structure for table "taxon_rank"
1476
--
1477
1478
DROP TABLE IF EXISTS "taxon_rank";
1479
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1480
/*!40101 SET character_set_client = utf8 */;
1481
CREATE TABLE "taxon_rank" (
1482
  "taxon_rank_id" int(11) NOT NULL,
1483
  "rank" varchar(60) DEFAULT NULL,
1484
  "kingdom_id" int(11) DEFAULT NULL,
1485
  "direct_parent_rank_id" int(11) DEFAULT NULL,
1486
  "required_parent_rank_id" int(11) DEFAULT NULL,
1487
  "standard_rank" tinyint(1) DEFAULT NULL,
1488
  "itis_rank_id" int(11) DEFAULT NULL,
1489
  PRIMARY KEY ("taxon_rank_id"),
1490
  KEY "type" ("rank")
1491
);
1492
/*!40101 SET character_set_client = @saved_cs_client */;
1493
1494
--
1495
-- Table structure for table "taxon_rep_image"
1496
--
1497
1498
DROP TABLE IF EXISTS "taxon_rep_image";
1499
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1500
/*!40101 SET character_set_client = utf8 */;
1501
CREATE TABLE "taxon_rep_image" (
1502
  "taxon_id" int(11) DEFAULT NULL,
1503
  "image_id" int(11) DEFAULT NULL
1504
);
1505
/*!40101 SET character_set_client = @saved_cs_client */;
1506
1507
--
1508
-- Table structure for table "taxon_synonym"
1509
--
1510
1511
DROP TABLE IF EXISTS "taxon_synonym";
1512
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1513
/*!40101 SET character_set_client = utf8 */;
1514
CREATE TABLE "taxon_synonym" (
1515
  "taxon_id" int(11) DEFAULT NULL,
1516
  "accepted_taxon_id" int(11) DEFAULT NULL,
1517
  "added_date" datetime DEFAULT NULL,
1518
  "added_by_signon" varchar(30) DEFAULT NULL,
1519
  "updated_date" datetime DEFAULT NULL,
1520
  "updated_by_signon" varchar(30) DEFAULT NULL
1521
);
1522
/*!40101 SET character_set_client = @saved_cs_client */;
1523
1524
--
1525
-- Table structure for table "taxon_unaccept_reason"
1526
--
1527
1528
DROP TABLE IF EXISTS "taxon_unaccept_reason";
1529
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1530
/*!40101 SET character_set_client = utf8 */;
1531
CREATE TABLE "taxon_unaccept_reason" (
1532
  "taxon_unaccept_reason_id" int(11) NOT NULL,
1533
  "unaccept_reason" varchar(50) DEFAULT NULL,
1534
  "kingdom_id" int(11) DEFAULT NULL,
1535
  PRIMARY KEY ("taxon_unaccept_reason_id")
1536
);
1537
/*!40101 SET character_set_client = @saved_cs_client */;
1538
1539
--
1540
-- Table structure for table "upload_status"
1541
--
1542
1543
DROP TABLE IF EXISTS "upload_status";
1544
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1545
/*!40101 SET character_set_client = utf8 */;
1546
CREATE TABLE "upload_status" (
1547
  "upload_id" char(36) DEFAULT NULL,
1548
  "filename" varchar(150) DEFAULT NULL,
1549
  "records_processed" int(8) DEFAULT NULL,
1550
  "status" varchar(50) DEFAULT NULL,
1551
  "start_time" datetime DEFAULT NULL,
1552
  "last_update_time" datetime DEFAULT NULL,
1553
  "complete_time" datetime DEFAULT NULL
1554
);
1555
/*!40101 SET character_set_client = @saved_cs_client */;
1556
1557
--
1558
-- Table structure for table "veg_indv"
1559
--
1560
1561
DROP TABLE IF EXISTS "veg_indv";
1562
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1563
/*!40101 SET character_set_client = utf8 */;
1564
CREATE TABLE "veg_indv" (
1565
  "veg_indv_id" int(11) NOT NULL,
1566
  "veg_subunit_id" int(11) DEFAULT NULL,
1567
  "Rep_Collection_LSID_Object_ID" varchar(15) DEFAULT NULL,
1568
  "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL COMMENT 'lsid of the collection collected from this individual',
1569
  "tag_nbr" varchar(10) DEFAULT NULL,
1570
  "x" float DEFAULT NULL,
1571
  "y" float DEFAULT NULL,
1572
  "distance" float DEFAULT NULL,
1573
  UNIQUE KEY "veg_indv_id" ("veg_indv_id"),
1574
  KEY "veg_subunit_id" ("veg_subunit_id"),
1575
  KEY "collection_lsid" ("Collection_LSID_Object_ID"),
1576
  KEY "rep_collection_lsid_num" ("Rep_Collection_LSID_Object_ID")
1577
);
1578
/*!40101 SET character_set_client = @saved_cs_client */;
1579
1580
--
1581
-- Table structure for table "veg_indv_measurement"
1582
--
1583
1584
DROP TABLE IF EXISTS "veg_indv_measurement";
1585
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1586
/*!40101 SET character_set_client = utf8 */;
1587
CREATE TABLE "veg_indv_measurement" (
1588
  "veg_indv_measurement_id" int(11) NOT NULL,
1589
  "veg_survey_id" int(11) DEFAULT NULL,
1590
  "veg_indv_id" int(11) DEFAULT NULL,
1591
  "dbh1" float DEFAULT NULL,
1592
  "pom1" float DEFAULT NULL,
1593
  "dbh2" float DEFAULT NULL,
1594
  "pom2" float DEFAULT NULL,
1595
  "bole_form" varchar(20) DEFAULT NULL,
1596
  "height" float DEFAULT NULL,
1597
  "crown_n" float DEFAULT NULL,
1598
  "crown_s" float DEFAULT NULL,
1599
  "crown_e" float DEFAULT NULL,
1600
  "crown_w" float DEFAULT NULL,
1601
  "crown_width" float DEFAULT NULL,
1602
  "alive" tinyint(1) DEFAULT NULL,
1603
  "status" varchar(20) DEFAULT NULL,
1604
  "obs_plant" text,
1605
  "obs_cond" text,
1606
  "data_notes" text,
1607
  UNIQUE KEY "veg_indv_measurement_id" ("veg_indv_measurement_id"),
1608
  KEY "veg_survey_id" ("veg_survey_id"),
1609
  KEY "veg_indv_id" ("veg_indv_id")
1610
);
1611
/*!40101 SET character_set_client = @saved_cs_client */;
1612
1613
--
1614
-- Table structure for table "veg_literature"
1615
--
1616
1617
DROP TABLE IF EXISTS "veg_literature";
1618
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1619
/*!40101 SET character_set_client = utf8 */;
1620
CREATE TABLE "veg_literature" (
1621
  "veg_literature_id" int(11) NOT NULL,
1622
  "literature_id" int(11) DEFAULT NULL,
1623
  "tansect_unit_id" int(11) DEFAULT NULL,
1624
  "veg_id" int(11) DEFAULT NULL,
1625
  PRIMARY KEY ("veg_literature_id")
1626
);
1627
/*!40101 SET character_set_client = @saved_cs_client */;
1628
1629
--
1630
-- Table structure for table "veg_soil"
1631
--
1632
1633
DROP TABLE IF EXISTS "veg_soil";
1634
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1635
/*!40101 SET character_set_client = utf8 */;
1636
CREATE TABLE "veg_soil" (
1637
  "veg_soil_id" int(11) NOT NULL,
1638
  "veg_unit_id" int(11) DEFAULT NULL,
1639
  "veg_subunit_id" int(11) DEFAULT NULL,
1640
  "measurement" text,
1641
  "pi" text,
1642
  "lab" text,
1643
  "date_collected" date DEFAULT NULL,
1644
  "date_analysed" date DEFAULT NULL,
1645
  "x" float DEFAULT NULL,
1646
  "y" float DEFAULT NULL,
1647
  "ph_h20" float DEFAULT NULL,
1648
  "ph_kcl" float DEFAULT NULL,
1649
  "sand" float DEFAULT NULL,
1650
  "silt" float DEFAULT NULL,
1651
  "clay" float DEFAULT NULL,
1652
  "org_matter" float DEFAULT NULL,
1653
  "loss_ign" float DEFAULT NULL,
1654
  "n" float DEFAULT NULL,
1655
  "p_bray" float DEFAULT NULL,
1656
  "p_tot" float DEFAULT NULL,
1657
  "k" float DEFAULT NULL,
1658
  "ca" float DEFAULT NULL,
1659
  "mg" float DEFAULT NULL,
1660
  "na" float DEFAULT NULL,
1661
  "b" float DEFAULT NULL,
1662
  "cd" float DEFAULT NULL,
1663
  "co" float DEFAULT NULL,
1664
  "cu" float DEFAULT NULL,
1665
  "fe" float DEFAULT NULL,
1666
  "mn" float DEFAULT NULL,
1667
  "mo" float DEFAULT NULL,
1668
  "si" float DEFAULT NULL,
1669
  "ti" float DEFAULT NULL,
1670
  "zn" float DEFAULT NULL,
1671
  "cic" float DEFAULT NULL,
1672
  "cai2" float DEFAULT NULL,
1673
  "mgi2" float DEFAULT NULL,
1674
  "ki" float DEFAULT NULL,
1675
  "nai" float DEFAULT NULL,
1676
  "ali3hi" float DEFAULT NULL,
1677
  "cat_tot" float DEFAULT NULL,
1678
  "ecec" float DEFAULT NULL,
1679
  "base_tot" float DEFAULT NULL,
1680
  UNIQUE KEY "veg_soil_id" ("veg_soil_id"),
1681
  KEY "veg_unit_id" ("veg_unit_id"),
1682
  KEY "veg_subunit_id" ("veg_subunit_id")
1683
);
1684
/*!40101 SET character_set_client = @saved_cs_client */;
1685
1686
--
1687
-- Table structure for table "veg_subunit"
1688
--
1689
1690
DROP TABLE IF EXISTS "veg_subunit";
1691
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1692
/*!40101 SET character_set_client = utf8 */;
1693
CREATE TABLE "veg_subunit" (
1694
  "veg_subunit_id" int(11) NOT NULL,
1695
  "veg_unit_id" int(11) DEFAULT NULL,
1696
  "veg_subunit_code" varchar(15) DEFAULT NULL,
1697
  "latitude" float DEFAULT NULL,
1698
  "longitude" float DEFAULT NULL,
1699
  "bearing" float DEFAULT NULL,
1700
  "x" float DEFAULT NULL,
1701
  "y" float DEFAULT NULL,
1702
  UNIQUE KEY "veg_subunit_id" ("veg_subunit_id"),
1703
  KEY "veg_unit_id" ("veg_unit_id")
1704
);
1705
/*!40101 SET character_set_client = @saved_cs_client */;
1706
1707
--
1708
-- Table structure for table "veg_survey"
1709
--
1710
1711
DROP TABLE IF EXISTS "veg_survey";
1712
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1713
/*!40101 SET character_set_client = utf8 */;
1714
CREATE TABLE "veg_survey" (
1715
  "veg_survey_id" int(11) NOT NULL,
1716
  "min_dbh" float DEFAULT NULL,
1717
  "method_notes" text,
1718
  "institution_id" int(11) DEFAULT NULL,
1719
  "project_id" int(11) DEFAULT NULL,
1720
  "principal_investigator" text,
1721
  "investigators" text,
1722
  "date_begin" date DEFAULT NULL,
1723
  "date_end" date DEFAULT NULL,
1724
  "notes" text,
1725
  "veg_unit_id" int(11) DEFAULT NULL,
1726
  UNIQUE KEY "veg_survey_id" ("veg_survey_id"),
1727
  KEY "institution_id" ("institution_id"),
1728
  KEY "project_id" ("project_id"),
1729
  KEY "veg_unit_id" ("veg_unit_id")
1730
);
1731
/*!40101 SET character_set_client = @saved_cs_client */;
1732
1733
--
1734
-- Table structure for table "veg_unit"
1735
--
1736
1737
DROP TABLE IF EXISTS "veg_unit";
1738
/*!40101 SET @saved_cs_client     = @@character_set_client */;
1739
/*!40101 SET character_set_client = utf8 */;
1740
CREATE TABLE "veg_unit" (
1741
  "veg_unit_id" int(11) NOT NULL,
1742
  "veg_unit_name" varchar(60) DEFAULT NULL,
1743
  "veg_unit_code" varchar(10) DEFAULT NULL,
1744
  "date_established" date DEFAULT NULL,
1745
  "description" text,
1746
  "location_notes" text,
1747
  "research_site_id" int(11) DEFAULT NULL,
1748
  "life_zone_id" int(11) DEFAULT NULL,
1749
  "topography" text,
1750
  "slope_aspect" float DEFAULT NULL,
1751
  "slope_gradient" float DEFAULT NULL,
1752
  "average_temp" float DEFAULT NULL,
1753
  "average_precipitation" float DEFAULT NULL,
1754
  "notes" text,
1755
  "institution_id" int(11) DEFAULT NULL,
1756
  "contact" text,
1757
  "permanent" tinyint(1) DEFAULT NULL,
1758
  "size" float DEFAULT NULL,
1759
  "shape" varchar(60) DEFAULT NULL,
1760
  "latitude" float DEFAULT NULL,
1761
  "longitude" float DEFAULT NULL,
1762
  "elevation" float DEFAULT NULL,
1763
  "country_id" int(11) DEFAULT NULL,
1764
  "region_id" int(11) DEFAULT NULL,
1765
  "subregion_id" int(11) DEFAULT NULL,
1766
  "protected_area" varchar(60) DEFAULT NULL,
1767
  "soil_statement" text,
1768
  "habitat_statement" text,
1769
  "eco_id" int(11) DEFAULT NULL,
1770
  "vegetation_type" varchar(60) DEFAULT NULL,
1771
  "length" float DEFAULT NULL,
1772
  "width" float DEFAULT NULL,
1773
  "survey_type" varchar(60) DEFAULT NULL,
1774
  "history_statement" varchar(60) DEFAULT NULL,
1775
  "use_statement" text,
1776
  "orientation" float DEFAULT NULL,
1777
  "published" tinyint(1) DEFAULT NULL,
1778
  "unit_managers" text,
1779
  "public_downloads" tinyint(1) DEFAULT NULL,
1780
  "gis_ids" text,
1781
  UNIQUE KEY "veg_unit_id" ("veg_unit_id"),
1782
  KEY "institution_id" ("institution_id"),
1783
  KEY "country_id" ("country_id"),
1784
  KEY "region_id" ("region_id"),
1785
  KEY "subregion_id" ("subregion_id"),
1786
  KEY "life_zone_id" ("life_zone_id"),
1787
  KEY "research_site_id" ("research_site_id")
1788
);
1789
/*!40101 SET character_set_client = @saved_cs_client */;
1790 7696 aaronmk
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1791
1792
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
1793
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
1794
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
1795
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1796
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1797
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
1798
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
1799
1800 7797 aaronmk
-- Dump completed on 2013-02-28 14:55:24