-- MySQL dump 10.13  Distrib 5.5.28, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: bien_web
-- ------------------------------------------------------
-- Server version	5.5.28-0ubuntu0.12.04.2

/*!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 "observation"
--

DROP TABLE IF EXISTS "observation";
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE "observation" (
  "observationID" int(11) unsigned NOT NULL,
  "dataSourceID" int(11) unsigned DEFAULT NULL,
  "dataSourceName" varchar(100) DEFAULT NULL,
  "dataSourceNamePrimary" varchar(100) DEFAULT NULL,
  "plotID" int(11) unsigned DEFAULT NULL,
  "observationType" varchar(10) DEFAULT NULL COMMENT '=plot,specimen,trait)',
  "bien2_taxonomyID" int(11) unsigned DEFAULT NULL,
  "bien2_DBPlotID" int(11) unsigned DEFAULT NULL,
  "bien2_ObservationID" int(11) unsigned DEFAULT NULL,
  "bien2_OccurID" int(11) unsigned DEFAULT NULL,
  "bien2_TraitObservationID" int(11) unsigned DEFAULT NULL,
  "taxonAuthorityVerbatim" varchar(255) DEFAULT NULL,
  "higherPlantGroup" varchar(25) DEFAULT NULL,
  "family" varchar(100) DEFAULT NULL,
  "genus" varchar(100) DEFAULT NULL,
  "species" varchar(150) DEFAULT NULL,
  "taxon" varchar(200) DEFAULT NULL,
  "taxonAuthor" varchar(255) DEFAULT NULL,
  "taxonMorphospecies" varchar(255) DEFAULT NULL,
  "rank" varchar(50) DEFAULT NULL,
  "acceptance" varchar(2) DEFAULT NULL,
  "country" varchar(50) DEFAULT NULL,
  "stateProvince" varchar(100) DEFAULT NULL,
  "countyParish" varchar(100) DEFAULT NULL,
  "countryError" double DEFAULT NULL,
  "stateProvinceError" double DEFAULT NULL,
  "localityDescription" varchar(500) DEFAULT NULL,
  "collector" varchar(150) DEFAULT NULL,
  "collectionNumber" varchar(50) DEFAULT NULL,
  "identifiedBy" varchar(150) DEFAULT NULL,
  "observationDate" date DEFAULT NULL,
  "plotCode" varchar(100) DEFAULT NULL,
  "plotAreaHa" double DEFAULT NULL,
  "plotMinDbh" decimal(5,1) DEFAULT NULL,
  "plotMethod" varchar(100) DEFAULT NULL,
  "latitude" decimal(10,5) DEFAULT NULL,
  "longitude" decimal(10,5) DEFAULT NULL,
  "isValidLatLong" int(1) DEFAULT NULL,
  "isGeovalid" int(1) DEFAULT NULL,
  "isNewWorld" int(1) DEFAULT NULL,
  "elevation_m" decimal(6,1) DEFAULT NULL,
  "isCultivated" int(1) DEFAULT '0',
  "isCultivatedReason" varchar(255) DEFAULT NULL,
  "abund" int(11) DEFAULT NULL,
  "abund1" int(11) DEFAULT NULL,
  "abund2.5" int(11) DEFAULT NULL,
  "abund10" int(11) DEFAULT NULL,
  "pctCover" decimal(10,5) DEFAULT NULL,
  "traitName" varchar(200) DEFAULT NULL,
  "traitValue" varchar(100) DEFAULT NULL,
  "traitUnit" varchar(100) DEFAULT NULL,
  "traitMethod" varchar(255) DEFAULT NULL,
  PRIMARY KEY ("observationID"),
  KEY "observationID" ("observationID"),
  KEY "dataSourceID" ("dataSourceID"),
  KEY "dataSourceName" ("dataSourceName"),
  KEY "dataSourceNamePrimary" ("dataSourceNamePrimary"),
  KEY "plotID" ("plotID"),
  KEY "observationType" ("observationType"),
  KEY "bien2_taxonomyID" ("bien2_taxonomyID"),
  KEY "bien2_DBPlotID" ("bien2_DBPlotID"),
  KEY "bien2_ObservationID" ("bien2_ObservationID"),
  KEY "bien2_OccurID" ("bien2_OccurID"),
  KEY "taxonAuthorityVerbatim" ("taxonAuthorityVerbatim"),
  KEY "higherPlantGroup" ("higherPlantGroup"),
  KEY "family" ("family"),
  KEY "genus" ("genus"),
  KEY "species" ("species"),
  KEY "taxon" ("taxon"),
  KEY "taxonAuthor" ("taxonAuthor"),
  KEY "taxonMorphospecies" ("taxonMorphospecies"),
  KEY "rank" ("rank"),
  KEY "acceptance" ("acceptance"),
  KEY "country" ("country"),
  KEY "stateProvince" ("stateProvince"),
  KEY "collector" ("collector"),
  KEY "identifiedBy" ("identifiedBy"),
  KEY "plotCode" ("plotCode"),
  KEY "plotAreaHa" ("plotAreaHa"),
  KEY "plotMinDbh" ("plotMinDbh"),
  KEY "plotMethod" ("plotMethod"),
  KEY "isValidLatLong" ("isValidLatLong"),
  KEY "isGeovalid" ("isGeovalid"),
  KEY "isNewWorld" ("isNewWorld"),
  KEY "isCultivated" ("isCultivated"),
  KEY "isCultivatedReason" ("isCultivatedReason"),
  KEY "bien2_TraitObservationID" ("bien2_TraitObservationID"),
  KEY "traitName" ("traitName"),
  KEY "traitMethod" ("traitMethod"),
  KEY "traitUnit" ("traitUnit")
);
/*!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 2012-11-08 11:45:19
