SET standard_conforming_strings = off; SET escape_string_warning = off; SET standard_conforming_strings = off; SET escape_string_warning = off; -- 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 */; 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" integer 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" integer DEFAULT NULL, "year_death" integer DEFAULT NULL, "notes" text, "added_date" timestamp DEFAULT NULL, "added_by_signon" varchar(30) DEFAULT NULL, "updated_date" timestamp DEFAULT NULL, "updated_by_signon" varchar(30) DEFAULT NULL, PRIMARY KEY ("agent_id"), /*KEY "collector_abbrev_name" ("collector_abbrev_name")*/CHECK (true) ); /*!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" integer 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" integer 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" integer DEFAULT NULL, "Infraspecific_Taxon_ID" integer DEFAULT NULL, "taxon_id" integer 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" integer 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")*/CHECK (true), /*KEY "Infraspecific_Taxon_ID" ("Infraspecific_Taxon_ID")*/CHECK (true), /*KEY "taxon_id" ("taxon_id")*/CHECK (true) ); /*!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" integer NOT NULL, "Authority_Abbrev_Name" varchar(120) NOT NULL DEFAULT '', "Authority_Full_Name" varchar(200) DEFAULT NULL, "Authority_Statement" text, PRIMARY KEY ("Authority_ID"), /*CONSTRAINT "XPKAuthority" */UNIQUE ("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" integer NOT NULL, "LSID_Object_ID" varchar(15) DEFAULT NULL, "LSID_Replaces_Object_ID" varchar(15) DEFAULT NULL, "LSID_Authority_ID" integer DEFAULT NULL, "LSID_Namespace_ID" integer DEFAULT NULL, "LSID_Name" varchar(150) DEFAULT NULL, "Collection_Version" integer DEFAULT NULL, "Published_Collection" integer DEFAULT NULL, "agent_id" integer DEFAULT NULL, "Collection_Number" varchar(20) DEFAULT NULL, "Collection_Team" varchar(255) DEFAULT NULL, "Annotation_History_ID" integer 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" integer DEFAULT NULL, "Region_ID" integer DEFAULT NULL, "Country_ID" integer DEFAULT NULL, "Continent_ID" integer 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" integer DEFAULT NULL, "Project_ID" integer 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")*/CHECK (true), /*KEY "Continent_ID" ("Continent_ID")*/CHECK (true), /*KEY "Country_ID" ("Country_ID")*/CHECK (true), /*KEY "Collector_ID" ("agent_id")*/CHECK (true), /*KEY "Subregion_ID" ("Subregion_ID")*/CHECK (true), /*KEY "Research_Site_ID" ("Research_Site_ID")*/CHECK (true), /*KEY "Project_ID" ("Project_ID")*/CHECK (true), /*KEY "Annotation_History_ID" ("Annotation_History_ID")*/CHECK (true), /*KEY "Closeest_Town" ("Closest_Town")*/CHECK (true), /*KEY "date_of_collection" ("Date_of_Collection")*/CHECK (true), /*KEY "added_date" ("Added_Date")*/CHECK (true), /*KEY "collection_team" ("Collection_Team")*/CHECK (true), /*KEY "locality_summary" ("Locality_Summary")*/CHECK (true), /*KEY "latitude" ("Latitude")*/CHECK (true), /*KEY "longitude" ("Longitude")*/CHECK (true), /*KEY "elevation_min" ("Elevation_Min")*/CHECK (true), /*KEY "coordinate_uncertainity" ("Coordinate_Uncertainity")*/CHECK (true), /*KEY "local_name" ("Local_Name")*/CHECK (true), /*KEY "elevation_max" ("Elevation_Max")*/CHECK (true), /*KEY "Collection_Number" ("Collection_Number")*/CHECK (true) ); /*!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" integer DEFAULT NULL, "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL, /*KEY "Habit_ID" ("Habit_ID")*/CHECK (true), /*KEY "Collection_LSID_num" ("Collection_LSID_Object_ID")*/CHECK (true) ); /*!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" integer DEFAULT NULL, "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL, /*KEY "Habitat_ID" ("Habitat_ID")*/CHECK (true), /*KEY "Collection_LSID_num" ("Collection_LSID_Object_ID")*/CHECK (true) ); /*!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" integer 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" integer DEFAULT NULL, "Country_ID" integer 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" integer DEFAULT NULL, "Updated_Date" varchar(60) DEFAULT NULL, "Updated_By_Signon" varchar(60) DEFAULT NULL, PRIMARY KEY ("Contact_ID"), /*CONSTRAINT "XPKContact_Persons" */UNIQUE ("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" integer 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" integer NOT NULL, "Country_Name" varchar(60) NOT NULL DEFAULT '', "Continent_ID" integer NOT NULL DEFAULT '0', PRIMARY KEY ("Country_ID"), /*KEY "Continent_ID" ("Continent_ID")*/CHECK (true) ); /*!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" integer DEFAULT NULL, "target_id" integer DEFAULT NULL, "target_type" varchar(30) DEFAULT NULL, /*KEY "structure_id" ("structure_id")*/CHECK (true), /*KEY "target_id" ("target_id")*/CHECK (true) ); /*!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" integer NOT NULL, "structure_id" integer DEFAULT NULL, "target_id" integer DEFAULT NULL, "data_id" integer DEFAULT NULL, PRIMARY KEY ("id"), /*KEY "structure_id" ("structure_id")*/CHECK (true), /*KEY "target_id" ("target_id")*/CHECK (true), /*KEY "data_id" ("data_id")*/CHECK (true) ); /*!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" integer 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" timestamp DEFAULT NULL, "updated_by_signon" varchar(30) DEFAULT NULL, "updated_by_date" timestamp 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" integer NOT NULL, "group_name" varchar(60) DEFAULT NULL, "group_weight" integer DEFAULT NULL, "description" text, "added_by_signon" varchar(30) DEFAULT NULL, "added_by_date" timestamp DEFAULT NULL, "updated_by_signon" varchar(30) DEFAULT NULL, "updated_by_date" timestamp 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" integer NOT NULL, "taxon_id" integer DEFAULT NULL, "taxon_rank_id" integer DEFAULT NULL, "definition_id" integer DEFAULT NULL, "group_id" integer DEFAULT NULL, "field_weight" integer DEFAULT NULL, "hidden_flag" integer DEFAULT NULL, "key_flag" integer DEFAULT NULL, "filter_flag" integer DEFAULT NULL, "added_by_signon" varchar(30) DEFAULT NULL, "added_by_date" timestamp DEFAULT NULL, "updated_by_signon" varchar(30) DEFAULT NULL, "updated_by_date" timestamp 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" integer NOT NULL, "value" timestamp 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" integer 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" integer NOT NULL, "value" integer 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" integer 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" integer NOT NULL, "value" text, 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" integer 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" timestamp 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" integer NOT NULL, "Eco_ID" integer DEFAULT NULL, "Realm" varchar(20) DEFAULT NULL, "Bio" varchar(60) DEFAULT NULL, "Eco_Num" integer 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" integer DEFAULT NULL, /*CONSTRAINT "XPKEcoregion" */UNIQUE ("Ecoregion_ID"), /*KEY "Eco_ID" ("Eco_ID")*/CHECK (true) ); /*!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, /*CONSTRAINT "XPKGlossary" */UNIQUE ("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" integer 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" integer 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" integer NOT NULL DEFAULT '0', "Function" varchar(60) DEFAULT NULL, "Contact_ID" integer DEFAULT NULL, "Notes" text, /*CONSTRAINT "XPKHerbarium_Contact" */UNIQUE ("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" integer NOT NULL, "Image_Category" varchar(60) DEFAULT NULL, "Image_Category_Description" text, PRIMARY KEY ("Image_Category_ID"), /*CONSTRAINT "XPKImage_Category" */UNIQUE ("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" integer NOT NULL DEFAULT '0', "imt_notes" text, "imt_hidden_flag" integer 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" integer 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" integer DEFAULT NULL, "Original_Height" integer DEFAULT NULL, "Original_Scale" float DEFAULT NULL, "Image_Category_ID" integer DEFAULT NULL, "collection_lsid_object_id" varchar(15) DEFAULT NULL, "specimen_lsid_object_id" varchar(15) DEFAULT NULL, "veg_survey_id" integer DEFAULT NULL, "taxon_id" integer DEFAULT NULL, "added_by_signon" varchar(30) DEFAULT NULL, "added_date" timestamp DEFAULT NULL, "updated_by_signon" varchar(30) DEFAULT NULL, "updated_date" timestamp DEFAULT NULL, PRIMARY KEY ("Image_ID"), /*CONSTRAINT "XPKImages" */UNIQUE ("Image_ID"), /*KEY "Collection_LSID" ("collection_lsid_object_id")*/CHECK (true), /*KEY "Image_Category_ID" ("Image_Category_ID")*/CHECK (true), /*KEY "Specimen_LSID" ("specimen_lsid_object_id")*/CHECK (true) ); /*!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" integer 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" integer DEFAULT NULL, "State_Province" varchar(60) DEFAULT NULL, "Country_ID" integer DEFAULT NULL, "Continent_ID" integer 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")*/CHECK (true) ); /*!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" integer 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" integer NOT NULL, "Life_Zone_Name" varchar(60) DEFAULT NULL, "Life_Zone_Code" varchar(10) DEFAULT NULL, /*CONSTRAINT "XPKLife_Zone" */UNIQUE ("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" integer NOT NULL, "Type" integer DEFAULT NULL, "Author" text, "Editor" text, "Year" integer 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" integer 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" integer DEFAULT NULL, PRIMARY KEY ("Literature_ID"), /*CONSTRAINT "XPKLiterature" */UNIQUE ("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" integer NOT NULL DEFAULT '0', "Literature_ID" integer NOT NULL DEFAULT '0', /*CONSTRAINT "XPKLiteratur_Contact" */UNIQUE ("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" integer NOT NULL DEFAULT '0', "Literature_ID" integer NOT NULL DEFAULT '0', /*CONSTRAINT "XPKLiterature_Family" */UNIQUE ("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" integer NOT NULL, "Local_Name" varchar(60) DEFAULT NULL, "Language" varchar(60) DEFAULT NULL, "Country_ID" integer DEFAULT NULL, "Species_ID" integer DEFAULT NULL, "Specimen_ID" integer DEFAULT NULL, PRIMARY KEY ("Local_Name_ID"), /*CONSTRAINT "XPKLocal_Names" */UNIQUE ("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" integer 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" integer 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" integer 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" integer 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" timestamp DEFAULT NULL, "SpatRepTypeCd" varchar(20) DEFAULT NULL, "ContentType" integer DEFAULT NULL, "ImageType" varchar(20) DEFAULT NULL, "ImagePath" integer DEFAULT NULL, "ImageRow" integer DEFAULT NULL, "FormatName" varchar(20) DEFAULT NULL, "MetXML" text, "FileName" varchar(255) DEFAULT NULL, "FileSize" integer DEFAULT NULL, "FileSizeZip" integer 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" integer DEFAULT NULL, PRIMARY KEY ("DatasetID"), /*KEY "Plot_ID" ("plot_id")*/CHECK (true) ); /*!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 NOT NULL, "Station_ID" integer NOT NULL DEFAULT '0', "Reading_Datetime" timestamp NOT NULL DEFAULT '-infinity', "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"), /*CONSTRAINT "XPKMeteo_Data" */UNIQUE ("Meteo_Data_ID","Station_ID"), /*KEY "Station_ID" ("Station_ID")*/CHECK (true) ); /*!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" integer NOT NULL, "station_id" integer NOT NULL DEFAULT '0', "image_path" text, "image_description" text, PRIMARY KEY ("image_id"), /*KEY "station_id" ("station_id")*/CHECK (true) ); /*!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" integer DEFAULT NULL, "station_id" integer 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" integer DEFAULT NULL, /*KEY "station_id" ("station_id")*/CHECK (true) ); /*!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" integer 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" integer DEFAULT NULL, "Region_ID" integer 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" integer DEFAULT NULL, "Operator" varchar(30) DEFAULT NULL, "Image_Main_ID" integer DEFAULT NULL, "Image_Additional_ID" integer DEFAULT NULL, "Notes" text, "Last_Calibration_Date" varchar(60) DEFAULT NULL, "Measure_Interval" varchar(120) DEFAULT NULL, "Contact_Info" text, "Temperature" integer DEFAULT NULL, "Precipitation" integer DEFAULT NULL, "Humidity" integer DEFAULT NULL, "Wind" integer DEFAULT NULL, "Atmospheric_Pressure" integer DEFAULT NULL, "Solar_Radiation" integer DEFAULT NULL, "PAR" integer DEFAULT NULL, "Evapotranspiration" integer DEFAULT NULL, "Soil_Moisture" integer DEFAULT NULL, "Soil_Temperature" integer DEFAULT NULL, "Water_Level" integer 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"), /*CONSTRAINT "XPKMeteo_Station" */UNIQUE ("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" integer NOT NULL, "section" varchar(30) DEFAULT NULL, "top_level_name" varchar(90) DEFAULT NULL, "top_level_action" varchar(90) DEFAULT NULL, "top_level_rank" integer DEFAULT NULL, "second_level_name" varchar(90) DEFAULT NULL, "second_level_action" varchar(90) DEFAULT NULL, "second_level_rank" integer 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" integer NOT NULL, "Function_Org" varchar(120) DEFAULT NULL, "Notes" text, "Contact_ID" integer NOT NULL DEFAULT '0', PRIMARY KEY ("Organization_ID"), /*CONSTRAINT "XPKOrganization_Members" */UNIQUE ("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" integer 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" integer NOT NULL, "Title" varchar(100) DEFAULT NULL, "Description" text, "biblio_id" integer DEFAULT NULL, "Scheme" varchar(30) DEFAULT NULL, "URL" text, "Taxon_Type" varchar(30) DEFAULT NULL, "taxon_id" integer DEFAULT NULL, "old_Taxon_ID" integer 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")*/CHECK (true), /*KEY "biblio_id" ("biblio_id")*/CHECK (true) ); /*!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" integer NOT NULL, "Region_Name" varchar(60) NOT NULL DEFAULT '', "Continent_ID" integer DEFAULT NULL, "Country_ID" integer 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" integer 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" integer NOT NULL, "LSID_Object_ID" varchar(15) DEFAULT NULL, "LSID_Authority_ID" integer DEFAULT NULL, "LSID_Namespace_ID" integer DEFAULT NULL, "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL, "Specimen_Number" integer DEFAULT NULL, "Specimen_Version" integer DEFAULT NULL, "Published_Specimen" integer DEFAULT NULL, "Accession_Location_ID" integer 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" integer DEFAULT '1', "Institution_ID" integer DEFAULT NULL, "Added_By_Signon" varchar(30) DEFAULT NULL, "Added_Date" varchar(60) DEFAULT NULL, PRIMARY KEY ("Specimen_ID"), /*KEY "XPKSpecimen" ("Specimen_ID")*/CHECK (true), /*KEY "Collection_LSID" ("Collection_LSID_Object_ID")*/CHECK (true) ); /*!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" integer NOT NULL DEFAULT '0', "Institution_Code" varchar(4) NOT NULL DEFAULT '', "Global_Unique_Identifier" bytea 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" integer DEFAULT NULL, "Month_Collected" integer DEFAULT NULL, "Day_Collected" integer DEFAULT NULL, "Catalog_Number" varchar(81) DEFAULT NULL, "Scientific_Name" varchar(255) DEFAULT NULL, "Kingdom_Name" varchar(60) DEFAULT NULL, "Division_Name" varchar(60) DEFAULT NULL, "Class_Name" varchar(60) DEFAULT NULL, "Subclass_Name" varchar(60) DEFAULT NULL, "Order_Name" varchar(60) DEFAULT NULL, "Family_Name" varchar(60) DEFAULT NULL, "Genus_Name" varchar(60) DEFAULT NULL, "Specific_Epithet" varchar(60) 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 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 NOT NULL DEFAULT '', "Collection_Method" varchar(5) NOT NULL DEFAULT '', "Dubpliate_Herbarium" char NOT NULL DEFAULT '', "Duplicates" bigint DEFAULT NULL, "Type_Specimen" char 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" integer DEFAULT NULL, "Month_Identified" integer DEFAULT NULL, "Day_Identified" integer 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" integer NOT NULL DEFAULT '0', "Subregion_ID" integer 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" integer NOT NULL, "source" varchar(100) DEFAULT NULL, "table_name" varchar(50) DEFAULT NULL, "sync_lsid_full" varchar(150) DEFAULT NULL, "sync_lsid_version" integer DEFAULT NULL, "previous_lsid_full" varchar(150) DEFAULT NULL, "previous_lsid_version" integer DEFAULT NULL, "resolved_lsid_full" varchar(150) DEFAULT NULL, "resolved_lsid_version" integer DEFAULT NULL, "conflicted" integer DEFAULT NULL, "resolved" integer DEFAULT NULL, "conflict_manager_id" integer 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" integer NOT NULL, "taxon_name" varchar(60) DEFAULT NULL, "taxon_rank_id" integer DEFAULT NULL, "taxon_path" varchar(112) DEFAULT NULL, "taxon_original_id" integer DEFAULT NULL, "parent_id" integer DEFAULT NULL, "kingdom_id" integer DEFAULT NULL, "status" integer DEFAULT NULL, "unaccept_reason_id" integer DEFAULT NULL, "credibility_rating" varchar(40) DEFAULT NULL, "taxon_authority" varchar(50) DEFAULT NULL, "taxon_lsid" varchar(50) DEFAULT NULL, "verified_date" timestamp DEFAULT NULL, "added_date" timestamp DEFAULT NULL, "added_by_signon" varchar(30) DEFAULT NULL, "updated_date" timestamp DEFAULT NULL, "updated_by_signon" varchar(30) DEFAULT NULL, "author" varchar(255) DEFAULT NULL, "old_id" integer DEFAULT NULL, PRIMARY KEY ("taxon_id"), /*CONSTRAINT "taxon_original_id" */UNIQUE ("taxon_original_id"), /*KEY "taxon_rank_id" ("taxon_rank_id")*/CHECK (true), /*KEY "taxon_path" ("taxon_path")*/CHECK (true), /*KEY "taxon_name" ("taxon_name")*/CHECK (true), /*KEY "parent_id" ("parent_id")*/CHECK (true), /*KEY "kingdom_id" ("kingdom_id")*/CHECK (true) ); /*!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" integer NOT NULL, "taxon_id" integer DEFAULT NULL, "language_id" integer DEFAULT NULL, "common_name" varchar(100) DEFAULT NULL, "notes" text, "added_date" timestamp DEFAULT NULL, "added_by_signon" varchar(60) DEFAULT NULL, "updated_date" timestamp DEFAULT NULL, "updated_by_signon" varchar(60) DEFAULT NULL, PRIMARY KEY ("taxon_common_name_id"), /*CONSTRAINT "XPKLocal_Names" */UNIQUE ("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" integer DEFAULT NULL, "country_id" integer 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" integer NOT NULL DEFAULT '0', "taxon_rank_id" integer DEFAULT NULL, "Kingdom_name" varchar(60) DEFAULT NULL, "Kingdom_id" bigint DEFAULT NULL, "Subkingdom_name" varchar(60) DEFAULT NULL, "Subkingdom_id" bigint DEFAULT NULL, "Division_name" varchar(60) DEFAULT NULL, "Division_id" bigint DEFAULT NULL, "Subdivision_name" varchar(60) DEFAULT NULL, "Subdivision_id" bigint DEFAULT NULL, "Class_name" varchar(60) DEFAULT NULL, "Class_id" bigint DEFAULT NULL, "Subclass_name" varchar(60) DEFAULT NULL, "Subclass_id" bigint DEFAULT NULL, "Order_name" varchar(60) DEFAULT NULL, "Order_id" bigint DEFAULT NULL, "Suborder_name" varchar(60) DEFAULT NULL, "Suborder_id" bigint DEFAULT NULL, "Family_name" varchar(60) DEFAULT NULL, "Family_id" bigint DEFAULT NULL, "Subfamily_name" varchar(60) DEFAULT NULL, "Subfamily_id" bigint DEFAULT NULL, "Tribe_name" varchar(60) DEFAULT NULL, "Tribe_id" bigint DEFAULT NULL, "Subtribe_name" varchar(60) DEFAULT NULL, "Subtribe_id" bigint DEFAULT NULL, "Genus_name" varchar(60) DEFAULT NULL, "Genus_id" bigint DEFAULT NULL, "Subgenus_name" varchar(60) DEFAULT NULL, "Subgenus_id" bigint DEFAULT NULL, "Section_name" varchar(60) DEFAULT NULL, "Section_id" bigint DEFAULT NULL, "Subsection_name" varchar(60) DEFAULT NULL, "Subsection_id" bigint DEFAULT NULL, "Species_name" varchar(60) DEFAULT NULL, "Species_id" bigint DEFAULT NULL, "Subspecies_name" varchar(60) DEFAULT NULL, "Subspecies_id" bigint DEFAULT NULL, "Variety_name" varchar(60) DEFAULT NULL, "Variety_id" bigint DEFAULT NULL, "Subvariety_name" varchar(60) DEFAULT NULL, "Subvariety_id" bigint DEFAULT NULL, "Form_name" varchar(60) DEFAULT NULL, "Form_id" bigint DEFAULT NULL, "Subform_name" varchar(60) DEFAULT NULL, "Subform_id" bigint DEFAULT NULL, /*KEY "taxon_id" ("taxon_id")*/CHECK (true), /*KEY "taxon_rank_id" ("taxon_rank_id")*/CHECK (true) ); /*!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" integer NOT NULL, "kingdom_name" varchar(60) DEFAULT NULL, PRIMARY KEY ("taxon_kingdom_id"), /*CONSTRAINT "XPKKingdom" */UNIQUE ("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" integer DEFAULT NULL, "literature_id" integer 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" integer NOT NULL, "rank" varchar(60) DEFAULT NULL, "kingdom_id" integer DEFAULT NULL, "direct_parent_rank_id" integer DEFAULT NULL, "required_parent_rank_id" integer DEFAULT NULL, "standard_rank" integer DEFAULT NULL, "itis_rank_id" integer DEFAULT NULL, PRIMARY KEY ("taxon_rank_id"), /*KEY "type" ("rank")*/CHECK (true) ); /*!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" integer DEFAULT NULL, "image_id" integer 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" integer DEFAULT NULL, "accepted_taxon_id" integer DEFAULT NULL, "added_date" timestamp DEFAULT NULL, "added_by_signon" varchar(30) DEFAULT NULL, "updated_date" timestamp 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" integer NOT NULL, "unaccept_reason" varchar(50) DEFAULT NULL, "kingdom_id" integer 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" integer DEFAULT NULL, "status" varchar(50) DEFAULT NULL, "start_time" timestamp DEFAULT NULL, "last_update_time" timestamp DEFAULT NULL, "complete_time" timestamp 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" integer NOT NULL, "veg_subunit_id" integer DEFAULT NULL, "Rep_Collection_LSID_Object_ID" varchar(15) DEFAULT NULL, "Collection_LSID_Object_ID" varchar(15) DEFAULT NULL, "tag_nbr" varchar(10) DEFAULT NULL, "x" float DEFAULT NULL, "y" float DEFAULT NULL, "distance" float DEFAULT NULL, /*CONSTRAINT "veg_indv_id" */UNIQUE ("veg_indv_id"), /*KEY "veg_subunit_id" ("veg_subunit_id")*/CHECK (true), /*KEY "collection_lsid" ("Collection_LSID_Object_ID")*/CHECK (true), /*KEY "rep_collection_lsid_num" ("Rep_Collection_LSID_Object_ID")*/CHECK (true) ); /*!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" integer NOT NULL, "veg_survey_id" integer DEFAULT NULL, "veg_indv_id" integer 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" integer DEFAULT NULL, "status" varchar(20) DEFAULT NULL, "obs_plant" text, "obs_cond" text, "data_notes" text, /*CONSTRAINT "veg_indv_measurement_id" */UNIQUE ("veg_indv_measurement_id"), /*KEY "veg_survey_id" ("veg_survey_id")*/CHECK (true), /*KEY "veg_indv_id" ("veg_indv_id")*/CHECK (true) ); /*!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" integer NOT NULL, "literature_id" integer DEFAULT NULL, "tansect_unit_id" integer DEFAULT NULL, "veg_id" integer 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" integer NOT NULL, "veg_unit_id" integer DEFAULT NULL, "veg_subunit_id" integer 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, /*CONSTRAINT "veg_soil_id" */UNIQUE ("veg_soil_id"), /*KEY "veg_unit_id" ("veg_unit_id")*/CHECK (true), /*KEY "veg_subunit_id" ("veg_subunit_id")*/CHECK (true) ); /*!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" integer NOT NULL, "veg_unit_id" integer 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, /*CONSTRAINT "veg_subunit_id" */UNIQUE ("veg_subunit_id"), /*KEY "veg_unit_id" ("veg_unit_id")*/CHECK (true) ); /*!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" integer NOT NULL, "min_dbh" float DEFAULT NULL, "method_notes" text, "institution_id" integer DEFAULT NULL, "project_id" integer DEFAULT NULL, "principal_investigator" text, "investigators" text, "date_begin" date DEFAULT NULL, "date_end" date DEFAULT NULL, "notes" text, "veg_unit_id" integer DEFAULT NULL, /*CONSTRAINT "veg_survey_id" */UNIQUE ("veg_survey_id"), /*KEY "institution_id" ("institution_id")*/CHECK (true), /*KEY "project_id" ("project_id")*/CHECK (true), /*KEY "veg_unit_id" ("veg_unit_id")*/CHECK (true) ); /*!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" integer 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" integer DEFAULT NULL, "life_zone_id" integer 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" integer DEFAULT NULL, "contact" text, "permanent" integer 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" integer DEFAULT NULL, "region_id" integer DEFAULT NULL, "subregion_id" integer DEFAULT NULL, "protected_area" varchar(60) DEFAULT NULL, "soil_statement" text, "habitat_statement" text, "eco_id" integer 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" integer DEFAULT NULL, "unit_managers" text, "public_downloads" integer DEFAULT NULL, "gis_ids" text, /*CONSTRAINT "veg_unit_id" */UNIQUE ("veg_unit_id"), /*KEY "institution_id" ("institution_id")*/CHECK (true), /*KEY "country_id" ("country_id")*/CHECK (true), /*KEY "region_id" ("region_id")*/CHECK (true), /*KEY "subregion_id" ("subregion_id")*/CHECK (true), /*KEY "life_zone_id" ("life_zone_id")*/CHECK (true), /*KEY "research_site_id" ("research_site_id")*/CHECK (true) ); /*!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