-- MySQL dump 10.13  Distrib 5.5.29, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: BRIT
-- ------------------------------------------------------
-- Server version	5.5.29-0ubuntu0.12.04.1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES latin1 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,POSTGRESQL' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table "agent"
--

DROP TABLE IF EXISTS "agent";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "agent" (
  "agent_id" int(11) NOT NULL,
  "first_name" varchar(60) DEFAULT NULL,
  "middle_name" varchar(60) DEFAULT NULL,
  "last_name" varchar(60) DEFAULT NULL,
  "institution" varchar(30) DEFAULT NULL,
  "institution_full" varchar(100) DEFAULT NULL,
  "annotator_abbrev_name" varchar(60) DEFAULT NULL,
  "taxon_author_abbrev_name" varchar(60) DEFAULT NULL,
  "collector_abbrev_name" varchar(60) DEFAULT NULL,
  "year_birth" int(4) DEFAULT NULL,
  "year_death" int(4) DEFAULT NULL,
  "notes" text,
  "added_date" datetime DEFAULT NULL,
  "added_by_signon" varchar(30) DEFAULT NULL,
  "updated_date" datetime DEFAULT NULL,
  "updated_by_signon" varchar(30) DEFAULT NULL,
  PRIMARY KEY ("agent_id"),
  KEY "collector_abbrev_name" ("collector_abbrev_name")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "analysis_scripts"
--

DROP TABLE IF EXISTS "analysis_scripts";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "analysis_scripts" (
  "analysis_id" int(11) NOT NULL,
  "analysis_name" varchar(30) DEFAULT NULL,
  "analysis_script" text,
  "analysis_script_type" varchar(20) DEFAULT NULL,
  "analysis_input_parameters" text,
  "analysis_output_template" text,
  PRIMARY KEY ("analysis_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "annotation_hist"
--

DROP TABLE IF EXISTS "annotation_hist";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "annotation_hist" (
  "Annotation_History_ID" int(11) NOT NULL,
  "Determined_By_DateSent" varchar(60) DEFAULT NULL,
  "Determined_By_DateRecieved" varchar(60) DEFAULT NULL,
  "Added_Date" varchar(60) DEFAULT NULL,
  "Added_By_Signon" varchar(40) DEFAULT NULL,
  "Updated_Date" varchar(60) DEFAULT NULL,
  "Updated_By_Signon" varchar(40) DEFAULT NULL,
  "Determined_By_Date" varchar(30) DEFAULT NULL,
  "Determined_By_Institution" varchar(200) DEFAULT NULL,
  "Determination_Name" varchar(200) DEFAULT NULL,
  "Family_Name" varchar(40) DEFAULT NULL,
  "Genus_Name" varchar(40) DEFAULT NULL,
  "Specific_Epithet" varchar(60) DEFAULT NULL,
  "Infra_Epithet" varchar(40) DEFAULT NULL,
  "Species_ID" int(11) DEFAULT NULL,
  "Infraspecific_Taxon_ID" int(11) DEFAULT NULL,
  "taxon_id" int(11) DEFAULT NULL,
  "Determined_By_Name" varchar(200) DEFAULT NULL,
  "collection_lsid_object_id" varchar(15) DEFAULT NULL,
  "specimen_lsid_object_id" varchar(15) DEFAULT NULL,
  "specimen_number" int(11) DEFAULT NULL,
  "annotation_type" varchar(15) DEFAULT NULL,
  "Conf_Indicator" varchar(10) DEFAULT NULL,
  "Basis_Of_Determination" varchar(20) DEFAULT NULL,
  "Basis_Institution" varchar(200) DEFAULT NULL,
  "annotation_notes" text,
  "author" varchar(255) DEFAULT NULL,
  PRIMARY KEY ("Annotation_History_ID"),
  KEY "Species_ID" ("Species_ID"),
  KEY "Infraspecific_Taxon_ID" ("Infraspecific_Taxon_ID"),
  KEY "taxon_id" ("taxon_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "authority"
--

DROP TABLE IF EXISTS "authority";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "authority" (
  "Authority_ID" int(11) NOT NULL,
  "Authority_Abbrev_Name" varchar(120) NOT NULL DEFAULT '',
  "Authority_Full_Name" varchar(200) DEFAULT NULL,
  "Authority_Statement" text,
  PRIMARY KEY ("Authority_ID"),
  UNIQUE KEY "XPKAuthority" ("Authority_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "collection"
--

DROP TABLE IF EXISTS "collection";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "collection" (
  "Collection_ID" int(11) NOT NULL,
  "LSID_Object_ID" varchar(15) DEFAULT NULL,
  "LSID_Replaces_Object_ID" varchar(15) DEFAULT NULL,
  "LSID_Authority_ID" int(11) DEFAULT NULL,
  "LSID_Namespace_ID" int(11) DEFAULT NULL,
  "LSID_Name" varchar(150) DEFAULT NULL,
  "Collection_Version" int(11) DEFAULT NULL,
  "Published_Collection" tinyint(1) DEFAULT NULL,
  "agent_id" int(11) DEFAULT NULL,
  "Collection_Number" varchar(20) DEFAULT NULL,
  "Collection_Team" varchar(255) DEFAULT NULL,
  "Annotation_History_ID" int(11) DEFAULT NULL,
  "Local_Name" varchar(60) DEFAULT NULL,
  "Date_of_Collection" varchar(60) DEFAULT NULL,
  "Basis_of_Collection" varchar(60) DEFAULT NULL,
  "Locality_Summary" varchar(60) DEFAULT NULL,
  "Locality_Description" text,
  "Locality_Site_Specific" varchar(120) DEFAULT NULL,
  "Closest_Town" varchar(60) DEFAULT NULL,
  "Subregion_ID" int(11) DEFAULT NULL,
  "Region_ID" int(11) DEFAULT NULL,
  "Country_ID" int(11) DEFAULT NULL,
  "Continent_ID" int(11) DEFAULT NULL,
  "Latitude" float DEFAULT NULL,
  "Longitude" float DEFAULT NULL,
  "Coordinate_Uncertainity" varchar(60) DEFAULT NULL,
  "Elevation_Min" float DEFAULT NULL,
  "Elevation_Max" float DEFAULT NULL,
  "Research_Site_ID" int(11) DEFAULT NULL,
  "Project_ID" int(11) DEFAULT NULL,
  "Habitat_Description" text,
  "Habitat_Summary" varchar(200) DEFAULT NULL,
  "Soil_Description" text,
  "Notes_Plant" text,
  "Height_Min" float DEFAULT NULL,
  "Height_Max" float DEFAULT NULL,
  "DBH_Min" float DEFAULT NULL,
  "DBH_Max" float DEFAULT NULL,
  "Added_Date" varchar(60) DEFAULT NULL,
  "Added_By_Signon" varchar(30) DEFAULT NULL,
  PRIMARY KEY ("Collection_ID"),
  KEY "Collection_LSID" ("LSID_Object_ID"),
  KEY "Continent_ID" ("Continent_ID"),
  KEY "Country_ID" ("Country_ID"),
  KEY "Collector_ID" ("agent_id"),
  KEY "Subregion_ID" ("Subregion_ID"),
  KEY "Research_Site_ID" ("Research_Site_ID"),
  KEY "Project_ID" ("Project_ID"),
  KEY "Annotation_History_ID" ("Annotation_History_ID"),
  KEY "Closeest_Town" ("Closest_Town"),
  KEY "date_of_collection" ("Date_of_Collection"),
  KEY "added_date" ("Added_Date"),
  KEY "collection_team" ("Collection_Team"),
  KEY "locality_summary" ("Locality_Summary"),
  KEY "latitude" ("Latitude"),
  KEY "longitude" ("Longitude"),
  KEY "elevation_min" ("Elevation_Min"),
  KEY "coordinate_uncertainity" ("Coordinate_Uncertainity"),
  KEY "local_name" ("Local_Name"),
  KEY "elevation_max" ("Elevation_Max"),
  KEY "Collection_Number" ("Collection_Number")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "collection_habit"
--

DROP TABLE IF EXISTS "collection_habit";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "collection_habit" (
  "Habit_ID" int(6) DEFAULT NULL,
  "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL,
  KEY "Habit_ID" ("Habit_ID"),
  KEY "Collection_LSID_num" ("Collection_LSID_Object_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "collection_habitat"
--

DROP TABLE IF EXISTS "collection_habitat";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "collection_habitat" (
  "Habitat_ID" int(6) DEFAULT NULL,
  "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL,
  KEY "Habitat_ID" ("Habitat_ID"),
  KEY "Collection_LSID_num" ("Collection_LSID_Object_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "contact_persons"
--

DROP TABLE IF EXISTS "contact_persons";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "contact_persons" (
  "Contact_ID" int(11) NOT NULL,
  "First_Name" varchar(60) NOT NULL DEFAULT '',
  "Middle_Name" varchar(60) DEFAULT NULL,
  "Last_Name" varchar(60) DEFAULT NULL,
  "Title" varchar(60) DEFAULT NULL,
  "Position" varchar(60) DEFAULT NULL,
  "Organization_ID" text,
  "Address_Line1" varchar(60) DEFAULT NULL,
  "Address_Line2" varchar(60) DEFAULT NULL,
  "Address_Line3" varchar(60) DEFAULT NULL,
  "City" varchar(60) DEFAULT NULL,
  "Zip" varchar(20) DEFAULT NULL,
  "Region_ID" smallint(6) DEFAULT NULL,
  "Country_ID" int(11) DEFAULT NULL,
  "Phone1" varchar(20) DEFAULT NULL,
  "Phone2" varchar(20) DEFAULT NULL,
  "Fax" varchar(20) DEFAULT NULL,
  "Email" varchar(60) DEFAULT NULL,
  "URL" varchar(255) DEFAULT NULL,
  "Research" text,
  "Added_Date" varchar(60) DEFAULT NULL,
  "Added_By_Signon" varchar(10) DEFAULT NULL,
  "Notes" text,
  "Continent_ID" int(11) DEFAULT NULL,
  "Updated_Date" varchar(60) DEFAULT NULL,
  "Updated_By_Signon" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("Contact_ID"),
  UNIQUE KEY "XPKContact_Persons" ("Contact_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "continent"
--

DROP TABLE IF EXISTS "continent";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "continent" (
  "Continent_ID" int(11) NOT NULL,
  "Continent_Name" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("Continent_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "country"
--

DROP TABLE IF EXISTS "country";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "country" (
  "Country_ID" smallint(6) NOT NULL,
  "Country_Name" varchar(60) NOT NULL DEFAULT '',
  "Continent_ID" int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY ("Country_ID"),
  KEY "Continent_ID" ("Continent_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_field_associations"
--

DROP TABLE IF EXISTS "custom_field_associations";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_field_associations" (
  "structure_id" int(11) DEFAULT NULL,
  "target_id" int(11) DEFAULT NULL,
  "target_type" varchar(30) DEFAULT NULL,
  KEY "structure_id" ("structure_id"),
  KEY "target_id" ("target_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_field_data"
--

DROP TABLE IF EXISTS "custom_field_data";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_field_data" (
  "id" int(11) NOT NULL,
  "structure_id" int(11) DEFAULT NULL,
  "target_id" int(11) DEFAULT NULL,
  "data_id" int(11) DEFAULT NULL,
  PRIMARY KEY ("id"),
  KEY "structure_id" ("structure_id"),
  KEY "target_id" ("target_id"),
  KEY "data_id" ("data_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_field_definition"
--

DROP TABLE IF EXISTS "custom_field_definition";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_field_definition" (
  "definition_id" int(11) NOT NULL,
  "field_name" varchar(60) DEFAULT NULL,
  "control_type" varchar(20) DEFAULT NULL,
  "default_values" text,
  "description" text,
  "data_type" varchar(20) DEFAULT NULL,
  "unit_type" varchar(20) DEFAULT NULL,
  "field_authority" varchar(100) DEFAULT NULL,
  "field_authority_uri" varchar(256) DEFAULT NULL,
  "added_by_signon" varchar(30) DEFAULT NULL,
  "added_by_date" datetime DEFAULT NULL,
  "updated_by_signon" varchar(30) DEFAULT NULL,
  "updated_by_date" datetime DEFAULT NULL,
  PRIMARY KEY ("definition_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_field_group"
--

DROP TABLE IF EXISTS "custom_field_group";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_field_group" (
  "group_id" int(11) NOT NULL,
  "group_name" varchar(60) DEFAULT NULL,
  "group_weight" int(4) DEFAULT NULL,
  "description" text,
  "added_by_signon" varchar(30) DEFAULT NULL,
  "added_by_date" datetime DEFAULT NULL,
  "updated_by_signon" varchar(30) DEFAULT NULL,
  "updated_by_date" datetime DEFAULT NULL,
  PRIMARY KEY ("group_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_field_structure"
--

DROP TABLE IF EXISTS "custom_field_structure";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_field_structure" (
  "structure_id" int(11) NOT NULL,
  "taxon_id" int(11) DEFAULT NULL,
  "taxon_rank_id" int(11) DEFAULT NULL,
  "definition_id" int(11) DEFAULT NULL,
  "group_id" int(11) DEFAULT NULL,
  "field_weight" int(4) DEFAULT NULL,
  "hidden_flag" tinyint(1) DEFAULT NULL,
  "key_flag" tinyint(1) DEFAULT NULL,
  "filter_flag" tinyint(1) DEFAULT NULL,
  "added_by_signon" varchar(30) DEFAULT NULL,
  "added_by_date" datetime DEFAULT NULL,
  "updated_by_signon" varchar(30) DEFAULT NULL,
  "updated_by_date" datetime DEFAULT NULL,
  PRIMARY KEY ("structure_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_fields_datetime"
--

DROP TABLE IF EXISTS "custom_fields_datetime";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_fields_datetime" (
  "id" int(11) NOT NULL,
  "value" datetime DEFAULT NULL,
  PRIMARY KEY ("id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_fields_float"
--

DROP TABLE IF EXISTS "custom_fields_float";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_fields_float" (
  "id" int(11) NOT NULL,
  "value" float DEFAULT NULL,
  PRIMARY KEY ("id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_fields_integer"
--

DROP TABLE IF EXISTS "custom_fields_integer";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_fields_integer" (
  "id" int(11) NOT NULL,
  "value" int(12) DEFAULT NULL,
  PRIMARY KEY ("id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_fields_text"
--

DROP TABLE IF EXISTS "custom_fields_text";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_fields_text" (
  "id" int(11) NOT NULL,
  "value" text,
  PRIMARY KEY ("id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_fields_url"
--

DROP TABLE IF EXISTS "custom_fields_url";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_fields_url" (
  "id" int(11) NOT NULL,
  "value" tinytext,
  PRIMARY KEY ("id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "custom_fields_varchar"
--

DROP TABLE IF EXISTS "custom_fields_varchar";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "custom_fields_varchar" (
  "id" int(11) NOT NULL,
  "value" varchar(100) DEFAULT NULL,
  PRIMARY KEY ("id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "debug_output"
--

DROP TABLE IF EXISTS "debug_output";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "debug_output" (
  "debug_string" varchar(120) DEFAULT NULL,
  "timestamp" datetime DEFAULT NULL
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "ecoregion"
--

DROP TABLE IF EXISTS "ecoregion";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "ecoregion" (
  "Ecoregion_ID" int(11) NOT NULL,
  "Eco_ID" int(11) DEFAULT NULL,
  "Realm" varchar(20) DEFAULT NULL,
  "Bio" varchar(60) DEFAULT NULL,
  "Eco_Num" int(6) DEFAULT NULL,
  "Eco_Code" varchar(10) DEFAULT NULL,
  "Eco_Name" varchar(100) DEFAULT NULL,
  "GBL_Stat" varchar(30) DEFAULT NULL,
  "G200_Region" varchar(60) DEFAULT NULL,
  "G200_Bio" varchar(60) DEFAULT NULL,
  "G200_Stat" varchar(30) DEFAULT NULL,
  "G200_Num" int(6) DEFAULT NULL,
  UNIQUE KEY "XPKEcoregion" ("Ecoregion_ID"),
  KEY "Eco_ID" ("Eco_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "glossary"
--

DROP TABLE IF EXISTS "glossary";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "glossary" (
  "Term" varchar(60) NOT NULL DEFAULT '',
  "Synonyms" varchar(60) DEFAULT NULL,
  "Category" varchar(60) DEFAULT NULL,
  "Limitation" varchar(60) DEFAULT NULL,
  "Definition" text,
  UNIQUE KEY "XPKGlossary" ("Term")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "habit"
--

DROP TABLE IF EXISTS "habit";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "habit" (
  "Habit_ID" int(6) NOT NULL,
  "Habit_Description" text,
  "Habit_Name" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("Habit_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "habitat"
--

DROP TABLE IF EXISTS "habitat";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "habitat" (
  "Habitat_ID" int(6) NOT NULL,
  "Habitat_Description" text,
  "Habitat_Name" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("Habitat_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "herbarium_contact"
--

DROP TABLE IF EXISTS "herbarium_contact";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "herbarium_contact" (
  "Herbarium_Contact_ID" smallint(6) NOT NULL DEFAULT '0',
  "Function" varchar(60) DEFAULT NULL,
  "Contact_ID" int(11) DEFAULT NULL,
  "Notes" text,
  UNIQUE KEY "XPKHerbarium_Contact" ("Herbarium_Contact_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "image_category"
--

DROP TABLE IF EXISTS "image_category";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "image_category" (
  "Image_Category_ID" smallint(6) NOT NULL,
  "Image_Category" varchar(60) DEFAULT NULL,
  "Image_Category_Description" text,
  PRIMARY KEY ("Image_Category_ID"),
  UNIQUE KEY "XPKImage_Category" ("Image_Category_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "image_management"
--

DROP TABLE IF EXISTS "image_management";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "image_management" (
  "imt_id" int(11) NOT NULL DEFAULT '0',
  "imt_notes" text,
  "imt_hidden_flag" tinyint(1) DEFAULT NULL,
  "imt_added_by" varchar(20) DEFAULT NULL,
  "imt_added_date" varchar(40) DEFAULT NULL,
  "imt_updated_by" varchar(20) DEFAULT NULL,
  "imt_updated_date" varchar(40) DEFAULT NULL,
  PRIMARY KEY ("imt_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "images"
--

DROP TABLE IF EXISTS "images";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "images" (
  "Image_ID" int(11) NOT NULL,
  "Image_Name" varchar(100) DEFAULT NULL,
  "Image_Path_New" varchar(60) DEFAULT NULL,
  "Image_Path_Old" varchar(120) DEFAULT NULL,
  "Creator" varchar(100) DEFAULT NULL,
  "Headline" varchar(255) DEFAULT NULL,
  "Title" varchar(255) DEFAULT NULL,
  "Caption" text,
  "Keywords" varchar(255) DEFAULT NULL,
  "Source" varchar(60) DEFAULT NULL,
  "Credit" varchar(255) DEFAULT NULL,
  "Copyright" varchar(120) DEFAULT NULL,
  "Usage_Terms" text,
  "Instructions" text,
  "Create_Date" varchar(60) DEFAULT NULL,
  "Country" varchar(100) DEFAULT NULL,
  "Region" varchar(100) DEFAULT NULL,
  "Locality_Description" text,
  "Latitude" float DEFAULT NULL,
  "Longitude" float DEFAULT NULL,
  "EXIF" text,
  "Original_Width" int(6) DEFAULT NULL,
  "Original_Height" int(6) DEFAULT NULL,
  "Original_Scale" float DEFAULT NULL,
  "Image_Category_ID" smallint(6) DEFAULT NULL,
  "collection_lsid_object_id" varchar(15) DEFAULT NULL,
  "specimen_lsid_object_id" varchar(15) DEFAULT NULL,
  "veg_survey_id" int(11) DEFAULT NULL,
  "taxon_id" int(11) DEFAULT NULL,
  "added_by_signon" varchar(30) DEFAULT NULL,
  "added_date" datetime DEFAULT NULL,
  "updated_by_signon" varchar(30) DEFAULT NULL,
  "updated_date" datetime DEFAULT NULL,
  PRIMARY KEY ("Image_ID"),
  UNIQUE KEY "XPKImages" ("Image_ID"),
  KEY "Collection_LSID" ("collection_lsid_object_id"),
  KEY "Image_Category_ID" ("Image_Category_ID"),
  KEY "Specimen_LSID" ("specimen_lsid_object_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "institution"
--

DROP TABLE IF EXISTS "institution";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "institution" (
  "Institution_ID" int(11) NOT NULL,
  "Name" varchar(255) DEFAULT NULL,
  "Abbreviation" varchar(30) DEFAULT NULL,
  "Institution" varchar(255) DEFAULT NULL,
  "Address_Line1" varchar(120) DEFAULT NULL,
  "Address_Line2" varchar(120) DEFAULT NULL,
  "Address_Line3" varchar(120) DEFAULT NULL,
  "City" varchar(60) DEFAULT NULL,
  "Zip" varchar(15) DEFAULT NULL,
  "Region_ID" smallint(6) DEFAULT NULL,
  "State_Province" varchar(60) DEFAULT NULL,
  "Country_ID" smallint(6) DEFAULT NULL,
  "Continent_ID" int(11) DEFAULT NULL,
  "Contact" varchar(60) DEFAULT NULL,
  "Phone1" varchar(20) DEFAULT NULL,
  "Phone2" varchar(20) DEFAULT NULL,
  "Fax" varchar(20) DEFAULT NULL,
  "Email" varchar(30) DEFAULT NULL,
  "URL" varchar(255) DEFAULT NULL,
  "Category" varchar(60) DEFAULT NULL,
  "Notes" text,
  PRIMARY KEY ("Institution_ID"),
  KEY "XPKOrganization" ("Institution_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "languages"
--

DROP TABLE IF EXISTS "languages";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "languages" (
  "language_id" int(11) NOT NULL,
  "language_name" varchar(30) DEFAULT NULL,
  PRIMARY KEY ("language_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "life_zone"
--

DROP TABLE IF EXISTS "life_zone";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "life_zone" (
  "Life_Zone_ID" int(11) NOT NULL,
  "Life_Zone_Name" varchar(60) DEFAULT NULL,
  "Life_Zone_Code" varchar(10) DEFAULT NULL,
  UNIQUE KEY "XPKLife_Zone" ("Life_Zone_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "literature"
--

DROP TABLE IF EXISTS "literature";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "literature" (
  "Literature_ID" int(11) NOT NULL,
  "Type" int(11) DEFAULT NULL,
  "Author" text,
  "Editor" text,
  "Year" int(11) DEFAULT NULL,
  "Title" text,
  "Series_Editor" text,
  "Series_Title" varchar(50) DEFAULT NULL,
  "Short_Title" text,
  "Volume" varchar(15) DEFAULT NULL,
  "Edition" varchar(30) DEFAULT NULL,
  "Issue" varchar(30) DEFAULT NULL,
  "Pages" varchar(30) DEFAULT NULL,
  "Secondary_Title" text,
  "Alt_Journal" text,
  "Publisher" text,
  "City" varchar(30) DEFAULT NULL,
  "University" varchar(50) DEFAULT NULL,
  "ISSN" varchar(50) DEFAULT NULL,
  "ISBN" varchar(30) DEFAULT NULL,
  "Date" varchar(60) DEFAULT NULL,
  "Thesis_Type" varchar(30) DEFAULT NULL,
  "Keywords" text,
  "Abstract" text,
  "Notes" text,
  "Doc_URL" text,
  "Doc_Name" text,
  "Doc_Path" varchar(60) DEFAULT NULL,
  "Language" varchar(20) DEFAULT NULL,
  "Plot_ID" smallint(6) DEFAULT NULL,
  "Added_By_Signon" varchar(40) DEFAULT NULL,
  "Added_Date" varchar(60) DEFAULT NULL,
  "Updated_By_Signon" varchar(40) DEFAULT NULL,
  "Updated_Date" varchar(60) DEFAULT NULL,
  "published" tinyint(1) DEFAULT NULL,
  PRIMARY KEY ("Literature_ID"),
  UNIQUE KEY "XPKLiterature" ("Literature_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "literature_contact"
--

DROP TABLE IF EXISTS "literature_contact";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "literature_contact" (
  "Contact_ID" int(11) NOT NULL DEFAULT '0',
  "Literature_ID" int(11) NOT NULL DEFAULT '0',
  UNIQUE KEY "XPKLiteratur_Contact" ("Contact_ID","Literature_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "literature_family"
--

DROP TABLE IF EXISTS "literature_family";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "literature_family" (
  "Family_ID" smallint(6) NOT NULL DEFAULT '0',
  "Literature_ID" int(11) NOT NULL DEFAULT '0',
  UNIQUE KEY "XPKLiterature_Family" ("Family_ID","Literature_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "local_names"
--

DROP TABLE IF EXISTS "local_names";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "local_names" (
  "Local_Name_ID" int(11) NOT NULL,
  "Local_Name" varchar(60) DEFAULT NULL,
  "Language" varchar(60) DEFAULT NULL,
  "Country_ID" int(11) DEFAULT NULL,
  "Species_ID" int(11) DEFAULT NULL,
  "Specimen_ID" int(11) DEFAULT NULL,
  PRIMARY KEY ("Local_Name_ID"),
  UNIQUE KEY "XPKLocal_Names" ("Local_Name_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "localized_strings"
--

DROP TABLE IF EXISTS "localized_strings";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "localized_strings" (
  "string_id" int(11) NOT NULL,
  "page_name" varchar(60) DEFAULT NULL,
  "string_name" varchar(10) DEFAULT NULL,
  "string_tag" varchar(10) DEFAULT NULL,
  "language" varchar(20) DEFAULT NULL,
  "localized_string" text,
  PRIMARY KEY ("string_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "lsid_authority"
--

DROP TABLE IF EXISTS "lsid_authority";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "lsid_authority" (
  "authority_id" int(11) NOT NULL,
  "authority_text" varchar(60) DEFAULT NULL,
  "authority_description" text,
  PRIMARY KEY ("authority_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "lsid_namespace"
--

DROP TABLE IF EXISTS "lsid_namespace";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "lsid_namespace" (
  "namespace_id" int(11) NOT NULL,
  "namespace_text" varchar(60) DEFAULT NULL,
  "namespace_description" text,
  PRIMARY KEY ("namespace_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "metadata"
--

DROP TABLE IF EXISTS "metadata";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "metadata" (
  "DatasetID" int(11) NOT NULL,
  "ResTitle" varchar(200) DEFAULT NULL,
  "ResAltTitle" text,
  "IdAbs" text,
  "WestBL" float DEFAULT NULL,
  "EastBL" float DEFAULT NULL,
  "NorthBL" float DEFAULT NULL,
  "SouthBL" float DEFAULT NULL,
  "CreateDate" datetime DEFAULT NULL,
  "SpatRepTypeCd" varchar(20) DEFAULT NULL,
  "ContentType" int(10) DEFAULT NULL,
  "ImageType" varchar(20) DEFAULT NULL,
  "ImagePath" int(10) DEFAULT NULL,
  "ImageRow" int(10) DEFAULT NULL,
  "FormatName" varchar(20) DEFAULT NULL,
  "MetXML" mediumtext,
  "FileName" varchar(255) DEFAULT NULL,
  "FileSize" int(10) DEFAULT NULL,
  "FileSizeZip" int(10) DEFAULT NULL,
  "OriginalFileName" varchar(255) DEFAULT NULL,
  "ImageFileName" varchar(255) DEFAULT NULL,
  "ThumbFileName" varchar(255) DEFAULT NULL,
  "Keywords1" text,
  "Keywords2" text,
  "Keywords3" text,
  "Keywords4" text,
  "Keywords5" text,
  "TopicCatCd" varchar(255) DEFAULT NULL,
  "DateCreate" varchar(60) DEFAULT NULL,
  "UserCreate" varchar(20) DEFAULT NULL,
  "DateLastChange" varchar(60) DEFAULT NULL,
  "UserLastChange" varchar(20) DEFAULT NULL,
  "PublishDate" varchar(60) DEFAULT NULL,
  "plot_id" int(11) DEFAULT NULL,
  PRIMARY KEY ("DatasetID"),
  KEY "Plot_ID" ("plot_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "meteo_data"
--

DROP TABLE IF EXISTS "meteo_data";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "meteo_data" (
  "Meteo_Data_ID" bigint(20) NOT NULL,
  "Station_ID" int(11) NOT NULL DEFAULT '0',
  "Reading_Datetime" datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  "Temperature" float DEFAULT NULL,
  "Precipitation" float DEFAULT NULL,
  "Humidity" float DEFAULT NULL,
  "Wind_Direction" float DEFAULT NULL,
  "Wind_Gust" float DEFAULT NULL,
  "Wind_Speed" float DEFAULT NULL,
  "Atmospheric_Pressure" float DEFAULT NULL,
  "Solar_Radiation" float DEFAULT NULL,
  "PAR" float DEFAULT NULL,
  "Evapotranspiration" float DEFAULT NULL,
  "Soil_Moisture_A" float DEFAULT NULL,
  "Soil_Temperature_A" float DEFAULT NULL,
  "Soil_Moisture_B" float DEFAULT NULL,
  "Soil_Temperature_B" float DEFAULT NULL,
  "Water_Level" float DEFAULT NULL,
  PRIMARY KEY ("Meteo_Data_ID"),
  UNIQUE KEY "XPKMeteo_Data" ("Meteo_Data_ID","Station_ID"),
  KEY "Station_ID" ("Station_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "meteo_images"
--

DROP TABLE IF EXISTS "meteo_images";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "meteo_images" (
  "image_id" int(11) NOT NULL,
  "station_id" int(11) NOT NULL DEFAULT '0',
  "image_path" text,
  "image_description" text,
  PRIMARY KEY ("image_id"),
  KEY "station_id" ("station_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "meteo_missing_data"
--

DROP TABLE IF EXISTS "meteo_missing_data";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "meteo_missing_data" (
  "meteo_data_id" int(11) DEFAULT NULL,
  "station_id" int(11) DEFAULT NULL,
  "data_type" varchar(40) DEFAULT NULL,
  "current_datetime" varchar(40) DEFAULT NULL,
  "prior_datetime" varchar(40) DEFAULT NULL,
  "curr_timestamp" varchar(40) DEFAULT NULL,
  "prior_timestamp" varchar(40) DEFAULT NULL,
  "time_difference" int(11) DEFAULT NULL,
  KEY "station_id" ("station_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "meteo_station"
--

DROP TABLE IF EXISTS "meteo_station";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "meteo_station" (
  "Station_ID" smallint(6) NOT NULL,
  "Name" varchar(60) DEFAULT NULL,
  "Description" text,
  "Instrument_Manufacturer" varchar(120) DEFAULT NULL,
  "Instrument_Model" varchar(120) DEFAULT NULL,
  "Instrument_Serial_Number" varchar(60) DEFAULT NULL,
  "File_Format" varchar(30) DEFAULT NULL,
  "Location" varchar(60) DEFAULT NULL,
  "Country_ID" smallint(6) DEFAULT NULL,
  "Region_ID" smallint(6) DEFAULT NULL,
  "Latitude" float DEFAULT NULL,
  "Longitude" float DEFAULT NULL,
  "Elevation" float DEFAULT NULL,
  "Start_Date" varchar(60) DEFAULT NULL,
  "End_Date" varchar(60) DEFAULT NULL,
  "Contact_ID" int(11) DEFAULT NULL,
  "Operator" varchar(30) DEFAULT NULL,
  "Image_Main_ID" int(11) DEFAULT NULL,
  "Image_Additional_ID" int(11) DEFAULT NULL,
  "Notes" text,
  "Last_Calibration_Date" varchar(60) DEFAULT NULL,
  "Measure_Interval" varchar(120) DEFAULT NULL,
  "Contact_Info" text,
  "Temperature" tinyint(1) DEFAULT NULL,
  "Precipitation" tinyint(1) DEFAULT NULL,
  "Humidity" tinyint(1) DEFAULT NULL,
  "Wind" tinyint(1) DEFAULT NULL,
  "Atmospheric_Pressure" tinyint(1) DEFAULT NULL,
  "Solar_Radiation" tinyint(1) DEFAULT NULL,
  "PAR" tinyint(1) DEFAULT NULL,
  "Evapotranspiration" tinyint(1) DEFAULT NULL,
  "Soil_Moisture" tinyint(1) DEFAULT NULL,
  "Soil_Temperature" tinyint(1) DEFAULT NULL,
  "Water_Level" tinyint(1) DEFAULT NULL,
  "Temperature_Description" text,
  "Precipitation_Description" text,
  "Humidity_Description" text,
  "Wind_Description" text,
  "Atmospheric_Pressure_Description" text,
  "Solar_Radiation_Description" text,
  "PAR_Description" text,
  "Evapotranspiration_Description" text,
  "Soil_Moisture_Description" text,
  "Soil_Temperature_Description" text,
  "Water_Level_Description" text,
  "station_managers" text,
  PRIMARY KEY ("Station_ID"),
  UNIQUE KEY "XPKMeteo_Station" ("Station_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "navigation_menu"
--

DROP TABLE IF EXISTS "navigation_menu";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "navigation_menu" (
  "nav_id" int(11) NOT NULL,
  "section" varchar(30) DEFAULT NULL,
  "top_level_name" varchar(90) DEFAULT NULL,
  "top_level_action" varchar(90) DEFAULT NULL,
  "top_level_rank" int(3) DEFAULT NULL,
  "second_level_name" varchar(90) DEFAULT NULL,
  "second_level_action" varchar(90) DEFAULT NULL,
  "second_level_rank" int(3) DEFAULT NULL,
  "third_level_name" varchar(90) DEFAULT NULL,
  "third_level_action" varchar(90) DEFAULT NULL,
  "third_level_rank" char(3) DEFAULT NULL,
  PRIMARY KEY ("nav_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "organization_members"
--

DROP TABLE IF EXISTS "organization_members";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "organization_members" (
  "Organization_ID" int(11) NOT NULL,
  "Function_Org" varchar(120) DEFAULT NULL,
  "Notes" text,
  "Contact_ID" int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY ("Organization_ID"),
  UNIQUE KEY "XPKOrganization_Members" ("Organization_ID","Contact_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "project"
--

DROP TABLE IF EXISTS "project";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "project" (
  "Project_ID" int(11) NOT NULL,
  "Project_Name" varchar(60) DEFAULT NULL,
  "Project_Description" text,
  PRIMARY KEY ("Project_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "reference"
--

DROP TABLE IF EXISTS "reference";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "reference" (
  "reference_id" int(11) NOT NULL,
  "Title" varchar(100) DEFAULT NULL,
  "Description" text,
  "biblio_id" int(11) DEFAULT NULL,
  "Scheme" varchar(30) DEFAULT NULL,
  "URL" text,
  "Taxon_Type" varchar(30) DEFAULT NULL,
  "taxon_id" int(11) DEFAULT NULL,
  "old_Taxon_ID" int(11) DEFAULT NULL,
  "Added_By_Signon" varchar(30) DEFAULT NULL,
  "Added_Date" varchar(60) DEFAULT NULL,
  "Updated_By_Signon" varchar(30) DEFAULT NULL,
  "Updated_Date" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("reference_id"),
  KEY "taxon_id" ("taxon_id"),
  KEY "biblio_id" ("biblio_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "region"
--

DROP TABLE IF EXISTS "region";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "region" (
  "Region_ID" smallint(6) NOT NULL,
  "Region_Name" varchar(60) NOT NULL DEFAULT '',
  "Continent_ID" int(11) DEFAULT NULL,
  "Country_ID" smallint(6) DEFAULT NULL,
  PRIMARY KEY ("Region_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "research_site"
--

DROP TABLE IF EXISTS "research_site";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "research_site" (
  "Research_Site_ID" smallint(6) NOT NULL,
  "Research_Site_Description" text,
  "Research_Site_Name" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("Research_Site_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "specimen"
--

DROP TABLE IF EXISTS "specimen";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "specimen" (
  "Specimen_ID" int(11) NOT NULL,
  "LSID_Object_ID" varchar(15) DEFAULT NULL,
  "LSID_Authority_ID" int(11) DEFAULT NULL,
  "LSID_Namespace_ID" int(11) DEFAULT NULL,
  "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL,
  "Specimen_Number" int(11) DEFAULT NULL,
  "Specimen_Version" int(11) DEFAULT NULL,
  "Published_Specimen" tinyint(1) DEFAULT NULL,
  "Accession_Location_ID" int(11) DEFAULT NULL,
  "Accession_Number" varchar(60) DEFAULT NULL,
  "Auxiliary_Collections" varchar(60) DEFAULT NULL,
  "Type_Specimen" varchar(60) DEFAULT NULL,
  "Phenology_Stage" text,
  "Collection_Method" text,
  "ID_Notes" varchar(100) DEFAULT NULL,
  "Specimen_Rep_Image" varchar(60) DEFAULT NULL,
  "Specimen_Exists" tinyint(1) DEFAULT '1',
  "Institution_ID" int(11) DEFAULT NULL,
  "Added_By_Signon" varchar(30) DEFAULT NULL,
  "Added_Date" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("Specimen_ID"),
  KEY "XPKSpecimen" ("Specimen_ID"),
  KEY "Collection_LSID" ("Collection_LSID_Object_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "specimen_flat"
--

DROP TABLE IF EXISTS "specimen_flat";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "specimen_flat" (
  "specimen_id" int(11) NOT NULL DEFAULT '0',
  "Institution_Code" varchar(4) NOT NULL DEFAULT '',
  "Global_Unique_Identifier" binary(0) DEFAULT NULL,
  "Collector_Abbrev_Name" varchar(60) DEFAULT NULL,
  "Collection_Team" varchar(120) DEFAULT NULL,
  "Collection_Number" varchar(20) DEFAULT NULL,
  "Date_of_Collection" varchar(60) DEFAULT NULL,
  "Year_Collected" int(4) DEFAULT NULL,
  "Month_Collected" int(2) DEFAULT NULL,
  "Day_Collected" int(2) DEFAULT NULL,
  "Catalog_Number" varchar(81) DEFAULT NULL,
  "Scientific_Name" varchar(255) DEFAULT NULL,
  "Kingdom_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Division_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Class_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subclass_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Order_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Family_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Genus_Name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Specific_Epithet" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Sp_Authority" varchar(255) DEFAULT NULL,
  "Infra_Rank" varchar(100) DEFAULT NULL,
  "Infra_Epithet" varchar(60) DEFAULT NULL,
  "Local_Name" varchar(60) DEFAULT NULL,
  "Continent_Name" varchar(60) DEFAULT NULL,
  "Country_Name" varchar(60) DEFAULT '',
  "Region_Name" varchar(60) DEFAULT '',
  "Subregion_Name" varchar(60) DEFAULT NULL,
  "Closest_Town" varchar(60) DEFAULT NULL,
  "Research_Site_Name" varchar(60) DEFAULT NULL,
  "Project_Name" varchar(60) DEFAULT NULL,
  "Locality_Summary" varchar(60) DEFAULT NULL,
  "Locality_Description" text,
  "Locality_Site_Specific" varchar(120) DEFAULT NULL,
  "Habitat_Description" text,
  "Habitat_Summary" varchar(200) DEFAULT NULL,
  "Soil_Description" text,
  "Notes_Plant" text,
  "Phenology_Stage" char(0) NOT NULL DEFAULT '',
  "Height_Min" float DEFAULT NULL,
  "Height_Max" float DEFAULT NULL,
  "DBH_Min" float DEFAULT NULL,
  "DBH_Max" float DEFAULT NULL,
  "Latitude" float DEFAULT NULL,
  "Longitude" float DEFAULT NULL,
  "Coordinate_Uncertainity" varchar(60) DEFAULT NULL,
  "Elevation_Min" float DEFAULT NULL,
  "Elevation_Max" float DEFAULT NULL,
  "Basis_Of_Specimen" varchar(1) NOT NULL DEFAULT '',
  "Auxilirary_Collections" char(0) NOT NULL DEFAULT '',
  "Collection_Method" varchar(5) NOT NULL DEFAULT '',
  "Dubpliate_Herbarium" char(0) NOT NULL DEFAULT '',
  "Duplicates" bigint(21) DEFAULT NULL,
  "Type_Specimen" char(0) NOT NULL DEFAULT '',
  "Updated_date" varchar(60) DEFAULT NULL,
  "Determined_By_Name" varchar(200) DEFAULT NULL,
  "Determined_By_Date" varchar(30) DEFAULT NULL,
  "Year_Identified" int(4) DEFAULT NULL,
  "Month_Identified" int(2) DEFAULT NULL,
  "Day_Identified" int(2) DEFAULT NULL
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "subregion"
--

DROP TABLE IF EXISTS "subregion";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "subregion" (
  "Region_ID" smallint(6) NOT NULL DEFAULT '0',
  "Subregion_ID" int(11) NOT NULL,
  "Subregion_Name" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("Subregion_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "sync_resolution"
--

DROP TABLE IF EXISTS "sync_resolution";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "sync_resolution" (
  "sync_resolution_id" int(11) NOT NULL,
  "source" varchar(100) DEFAULT NULL,
  "table_name" varchar(50) DEFAULT NULL,
  "sync_lsid_full" varchar(150) DEFAULT NULL COMMENT 'Length is based upon sum of max length of lsid text fields plus version',
  "sync_lsid_version" int(11) DEFAULT NULL,
  "previous_lsid_full" varchar(150) DEFAULT NULL COMMENT 'Length is based upon sum of max length of lsid text fields plus version',
  "previous_lsid_version" int(11) DEFAULT NULL,
  "resolved_lsid_full" varchar(150) DEFAULT NULL COMMENT 'Length is based upon sum of max length of lsid text fields plus version',
  "resolved_lsid_version" int(11) DEFAULT NULL,
  "conflicted" smallint(1) DEFAULT NULL,
  "resolved" smallint(1) DEFAULT NULL,
  "conflict_manager_id" int(11) DEFAULT NULL,
  "conflict_description" text,
  "uploaded_by_signon" varchar(30) DEFAULT NULL,
  "uploaded_date" varchar(60) DEFAULT NULL,
  "updated_by_signon" varchar(30) DEFAULT NULL,
  "updated_date" varchar(60) DEFAULT NULL,
  "resolved_by_signon" varchar(30) DEFAULT NULL,
  "resolved_date" varchar(60) DEFAULT NULL,
  "notes" text,
  PRIMARY KEY ("sync_resolution_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon"
--

DROP TABLE IF EXISTS "taxon";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon" (
  "taxon_id" int(11) NOT NULL,
  "taxon_name" varchar(60) DEFAULT NULL,
  "taxon_rank_id" int(4) DEFAULT NULL,
  "taxon_path" varchar(112) DEFAULT NULL,
  "taxon_original_id" int(11) DEFAULT NULL,
  "parent_id" int(11) DEFAULT NULL,
  "kingdom_id" int(11) DEFAULT NULL,
  "status" tinyint(1) DEFAULT NULL,
  "unaccept_reason_id" int(11) DEFAULT NULL,
  "credibility_rating" varchar(40) DEFAULT NULL,
  "taxon_authority" varchar(50) DEFAULT NULL,
  "taxon_lsid" varchar(50) DEFAULT NULL,
  "verified_date" datetime DEFAULT NULL,
  "added_date" datetime DEFAULT NULL,
  "added_by_signon" varchar(30) DEFAULT NULL,
  "updated_date" datetime DEFAULT NULL,
  "updated_by_signon" varchar(30) DEFAULT NULL,
  "author" varchar(255) DEFAULT NULL,
  "old_id" int(11) DEFAULT NULL,
  PRIMARY KEY ("taxon_id"),
  UNIQUE KEY "taxon_original_id" ("taxon_original_id"),
  KEY "taxon_rank_id" ("taxon_rank_id"),
  KEY "taxon_path" ("taxon_path"),
  KEY "taxon_name" ("taxon_name"),
  KEY "parent_id" ("parent_id"),
  KEY "kingdom_id" ("kingdom_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon_common_name"
--

DROP TABLE IF EXISTS "taxon_common_name";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon_common_name" (
  "taxon_common_name_id" int(11) NOT NULL,
  "taxon_id" int(11) DEFAULT NULL,
  "language_id" int(11) DEFAULT NULL,
  "common_name" varchar(100) DEFAULT NULL,
  "notes" text,
  "added_date" datetime DEFAULT NULL,
  "added_by_signon" varchar(60) DEFAULT NULL,
  "updated_date" datetime DEFAULT NULL,
  "updated_by_signon" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("taxon_common_name_id"),
  UNIQUE KEY "XPKLocal_Names" ("taxon_common_name_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon_common_name_country"
--

DROP TABLE IF EXISTS "taxon_common_name_country";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon_common_name_country" (
  "taxon_common_name_id" int(11) DEFAULT NULL,
  "country_id" int(11) DEFAULT NULL
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon_flat"
--

DROP TABLE IF EXISTS "taxon_flat";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon_flat" (
  "taxon_id" int(11) NOT NULL DEFAULT '0',
  "taxon_rank_id" int(4) DEFAULT NULL,
  "Kingdom_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Kingdom_id" bigint(20) DEFAULT NULL,
  "Subkingdom_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subkingdom_id" bigint(20) DEFAULT NULL,
  "Division_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Division_id" bigint(20) DEFAULT NULL,
  "Subdivision_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subdivision_id" bigint(20) DEFAULT NULL,
  "Class_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Class_id" bigint(20) DEFAULT NULL,
  "Subclass_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subclass_id" bigint(20) DEFAULT NULL,
  "Order_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Order_id" bigint(20) DEFAULT NULL,
  "Suborder_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Suborder_id" bigint(20) DEFAULT NULL,
  "Family_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Family_id" bigint(20) DEFAULT NULL,
  "Subfamily_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subfamily_id" bigint(20) DEFAULT NULL,
  "Tribe_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Tribe_id" bigint(20) DEFAULT NULL,
  "Subtribe_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subtribe_id" bigint(20) DEFAULT NULL,
  "Genus_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Genus_id" bigint(20) DEFAULT NULL,
  "Subgenus_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subgenus_id" bigint(20) DEFAULT NULL,
  "Section_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Section_id" bigint(20) DEFAULT NULL,
  "Subsection_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subsection_id" bigint(20) DEFAULT NULL,
  "Species_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Species_id" bigint(20) DEFAULT NULL,
  "Subspecies_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subspecies_id" bigint(20) DEFAULT NULL,
  "Variety_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Variety_id" bigint(20) DEFAULT NULL,
  "Subvariety_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subvariety_id" bigint(20) DEFAULT NULL,
  "Form_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Form_id" bigint(20) DEFAULT NULL,
  "Subform_name" varchar(60) CHARACTER SET utf8 DEFAULT NULL,
  "Subform_id" bigint(20) DEFAULT NULL,
  KEY "taxon_id" ("taxon_id"),
  KEY "taxon_rank_id" ("taxon_rank_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon_kingdom"
--

DROP TABLE IF EXISTS "taxon_kingdom";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon_kingdom" (
  "taxon_kingdom_id" smallint(6) NOT NULL,
  "kingdom_name" varchar(60) DEFAULT NULL,
  PRIMARY KEY ("taxon_kingdom_id"),
  UNIQUE KEY "XPKKingdom" ("taxon_kingdom_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon_literature"
--

DROP TABLE IF EXISTS "taxon_literature";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon_literature" (
  "taxon_id" int(11) DEFAULT NULL,
  "literature_id" int(11) DEFAULT NULL
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon_rank"
--

DROP TABLE IF EXISTS "taxon_rank";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon_rank" (
  "taxon_rank_id" int(11) NOT NULL,
  "rank" varchar(60) DEFAULT NULL,
  "kingdom_id" int(11) DEFAULT NULL,
  "direct_parent_rank_id" int(11) DEFAULT NULL,
  "required_parent_rank_id" int(11) DEFAULT NULL,
  "standard_rank" tinyint(1) DEFAULT NULL,
  "itis_rank_id" int(11) DEFAULT NULL,
  PRIMARY KEY ("taxon_rank_id"),
  KEY "type" ("rank")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon_rep_image"
--

DROP TABLE IF EXISTS "taxon_rep_image";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon_rep_image" (
  "taxon_id" int(11) DEFAULT NULL,
  "image_id" int(11) DEFAULT NULL
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon_synonym"
--

DROP TABLE IF EXISTS "taxon_synonym";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon_synonym" (
  "taxon_id" int(11) DEFAULT NULL,
  "accepted_taxon_id" int(11) DEFAULT NULL,
  "added_date" datetime DEFAULT NULL,
  "added_by_signon" varchar(30) DEFAULT NULL,
  "updated_date" datetime DEFAULT NULL,
  "updated_by_signon" varchar(30) DEFAULT NULL
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "taxon_unaccept_reason"
--

DROP TABLE IF EXISTS "taxon_unaccept_reason";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "taxon_unaccept_reason" (
  "taxon_unaccept_reason_id" int(11) NOT NULL,
  "unaccept_reason" varchar(50) DEFAULT NULL,
  "kingdom_id" int(11) DEFAULT NULL,
  PRIMARY KEY ("taxon_unaccept_reason_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "upload_status"
--

DROP TABLE IF EXISTS "upload_status";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "upload_status" (
  "upload_id" char(36) DEFAULT NULL,
  "filename" varchar(150) DEFAULT NULL,
  "records_processed" int(8) DEFAULT NULL,
  "status" varchar(50) DEFAULT NULL,
  "start_time" datetime DEFAULT NULL,
  "last_update_time" datetime DEFAULT NULL,
  "complete_time" datetime DEFAULT NULL
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "veg_indv"
--

DROP TABLE IF EXISTS "veg_indv";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "veg_indv" (
  "veg_indv_id" int(11) NOT NULL,
  "veg_subunit_id" int(11) DEFAULT NULL,
  "Rep_Collection_LSID_Object_ID" varchar(15) DEFAULT NULL,
  "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL COMMENT 'lsid of the collection collected from this individual',
  "tag_nbr" varchar(10) DEFAULT NULL,
  "x" float DEFAULT NULL,
  "y" float DEFAULT NULL,
  "distance" float DEFAULT NULL,
  UNIQUE KEY "veg_indv_id" ("veg_indv_id"),
  KEY "veg_subunit_id" ("veg_subunit_id"),
  KEY "collection_lsid" ("Collection_LSID_Object_ID"),
  KEY "rep_collection_lsid_num" ("Rep_Collection_LSID_Object_ID")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "veg_indv_measurement"
--

DROP TABLE IF EXISTS "veg_indv_measurement";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "veg_indv_measurement" (
  "veg_indv_measurement_id" int(11) NOT NULL,
  "veg_survey_id" int(11) DEFAULT NULL,
  "veg_indv_id" int(11) DEFAULT NULL,
  "dbh1" float DEFAULT NULL,
  "pom1" float DEFAULT NULL,
  "dbh2" float DEFAULT NULL,
  "pom2" float DEFAULT NULL,
  "bole_form" varchar(20) DEFAULT NULL,
  "height" float DEFAULT NULL,
  "crown_n" float DEFAULT NULL,
  "crown_s" float DEFAULT NULL,
  "crown_e" float DEFAULT NULL,
  "crown_w" float DEFAULT NULL,
  "crown_width" float DEFAULT NULL,
  "alive" tinyint(1) DEFAULT NULL,
  "status" varchar(20) DEFAULT NULL,
  "obs_plant" text,
  "obs_cond" text,
  "data_notes" text,
  UNIQUE KEY "veg_indv_measurement_id" ("veg_indv_measurement_id"),
  KEY "veg_survey_id" ("veg_survey_id"),
  KEY "veg_indv_id" ("veg_indv_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "veg_literature"
--

DROP TABLE IF EXISTS "veg_literature";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "veg_literature" (
  "veg_literature_id" int(11) NOT NULL,
  "literature_id" int(11) DEFAULT NULL,
  "tansect_unit_id" int(11) DEFAULT NULL,
  "veg_id" int(11) DEFAULT NULL,
  PRIMARY KEY ("veg_literature_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "veg_soil"
--

DROP TABLE IF EXISTS "veg_soil";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "veg_soil" (
  "veg_soil_id" int(11) NOT NULL,
  "veg_unit_id" int(11) DEFAULT NULL,
  "veg_subunit_id" int(11) DEFAULT NULL,
  "measurement" text,
  "pi" text,
  "lab" text,
  "date_collected" date DEFAULT NULL,
  "date_analysed" date DEFAULT NULL,
  "x" float DEFAULT NULL,
  "y" float DEFAULT NULL,
  "ph_h20" float DEFAULT NULL,
  "ph_kcl" float DEFAULT NULL,
  "sand" float DEFAULT NULL,
  "silt" float DEFAULT NULL,
  "clay" float DEFAULT NULL,
  "org_matter" float DEFAULT NULL,
  "loss_ign" float DEFAULT NULL,
  "n" float DEFAULT NULL,
  "p_bray" float DEFAULT NULL,
  "p_tot" float DEFAULT NULL,
  "k" float DEFAULT NULL,
  "ca" float DEFAULT NULL,
  "mg" float DEFAULT NULL,
  "na" float DEFAULT NULL,
  "b" float DEFAULT NULL,
  "cd" float DEFAULT NULL,
  "co" float DEFAULT NULL,
  "cu" float DEFAULT NULL,
  "fe" float DEFAULT NULL,
  "mn" float DEFAULT NULL,
  "mo" float DEFAULT NULL,
  "si" float DEFAULT NULL,
  "ti" float DEFAULT NULL,
  "zn" float DEFAULT NULL,
  "cic" float DEFAULT NULL,
  "cai2" float DEFAULT NULL,
  "mgi2" float DEFAULT NULL,
  "ki" float DEFAULT NULL,
  "nai" float DEFAULT NULL,
  "ali3hi" float DEFAULT NULL,
  "cat_tot" float DEFAULT NULL,
  "ecec" float DEFAULT NULL,
  "base_tot" float DEFAULT NULL,
  UNIQUE KEY "veg_soil_id" ("veg_soil_id"),
  KEY "veg_unit_id" ("veg_unit_id"),
  KEY "veg_subunit_id" ("veg_subunit_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "veg_subunit"
--

DROP TABLE IF EXISTS "veg_subunit";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "veg_subunit" (
  "veg_subunit_id" int(11) NOT NULL,
  "veg_unit_id" int(11) DEFAULT NULL,
  "veg_subunit_code" varchar(15) DEFAULT NULL,
  "latitude" float DEFAULT NULL,
  "longitude" float DEFAULT NULL,
  "bearing" float DEFAULT NULL,
  "x" float DEFAULT NULL,
  "y" float DEFAULT NULL,
  UNIQUE KEY "veg_subunit_id" ("veg_subunit_id"),
  KEY "veg_unit_id" ("veg_unit_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "veg_survey"
--

DROP TABLE IF EXISTS "veg_survey";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "veg_survey" (
  "veg_survey_id" int(11) NOT NULL,
  "min_dbh" float DEFAULT NULL,
  "method_notes" text,
  "institution_id" int(11) DEFAULT NULL,
  "project_id" int(11) DEFAULT NULL,
  "principal_investigator" text,
  "investigators" text,
  "date_begin" date DEFAULT NULL,
  "date_end" date DEFAULT NULL,
  "notes" text,
  "veg_unit_id" int(11) DEFAULT NULL,
  UNIQUE KEY "veg_survey_id" ("veg_survey_id"),
  KEY "institution_id" ("institution_id"),
  KEY "project_id" ("project_id"),
  KEY "veg_unit_id" ("veg_unit_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table "veg_unit"
--

DROP TABLE IF EXISTS "veg_unit";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "veg_unit" (
  "veg_unit_id" int(11) NOT NULL,
  "veg_unit_name" varchar(60) DEFAULT NULL,
  "veg_unit_code" varchar(10) DEFAULT NULL,
  "date_established" date DEFAULT NULL,
  "description" text,
  "location_notes" text,
  "research_site_id" int(11) DEFAULT NULL,
  "life_zone_id" int(11) DEFAULT NULL,
  "topography" text,
  "slope_aspect" float DEFAULT NULL,
  "slope_gradient" float DEFAULT NULL,
  "average_temp" float DEFAULT NULL,
  "average_precipitation" float DEFAULT NULL,
  "notes" text,
  "institution_id" int(11) DEFAULT NULL,
  "contact" text,
  "permanent" tinyint(1) DEFAULT NULL,
  "size" float DEFAULT NULL,
  "shape" varchar(60) DEFAULT NULL,
  "latitude" float DEFAULT NULL,
  "longitude" float DEFAULT NULL,
  "elevation" float DEFAULT NULL,
  "country_id" int(11) DEFAULT NULL,
  "region_id" int(11) DEFAULT NULL,
  "subregion_id" int(11) DEFAULT NULL,
  "protected_area" varchar(60) DEFAULT NULL,
  "soil_statement" text,
  "habitat_statement" text,
  "eco_id" int(11) DEFAULT NULL,
  "vegetation_type" varchar(60) DEFAULT NULL,
  "length" float DEFAULT NULL,
  "width" float DEFAULT NULL,
  "survey_type" varchar(60) DEFAULT NULL,
  "history_statement" varchar(60) DEFAULT NULL,
  "use_statement" text,
  "orientation" float DEFAULT NULL,
  "published" tinyint(1) DEFAULT NULL,
  "unit_managers" text,
  "public_downloads" tinyint(1) DEFAULT NULL,
  "gis_ids" text,
  UNIQUE KEY "veg_unit_id" ("veg_unit_id"),
  KEY "institution_id" ("institution_id"),
  KEY "country_id" ("country_id"),
  KEY "region_id" ("region_id"),
  KEY "subregion_id" ("subregion_id"),
  KEY "life_zone_id" ("life_zone_id"),
  KEY "research_site_id" ("research_site_id")
);
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2013-02-28 14:55:24
