SET standard_conforming_strings = off;
SET escape_string_warning = off;
-- 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 */;
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" integer NOT NULL,
  "dataSourceID" integer DEFAULT NULL,
  "dataSourceName" varchar(100) DEFAULT NULL,
  "dataSourceNamePrimary" varchar(100) DEFAULT NULL,
  "plotID" integer DEFAULT NULL,
  "observationType" varchar(10) DEFAULT NULL,
  "bien2_taxonomyID" integer DEFAULT NULL,
  "bien2_DBPlotID" integer DEFAULT NULL,
  "bien2_ObservationID" integer DEFAULT NULL,
  "bien2_OccurID" integer DEFAULT NULL,
  "bien2_TraitObservationID" integer 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 precision DEFAULT NULL,
  "stateProvinceError" double precision DEFAULT NULL,
  "localityDescription" varchar(500) DEFAULT NULL,
  "collector" varchar(150) DEFAULT NULL,
  "collectionNumber" varchar(50) DEFAULT NULL,
  "identifiedBy" varchar(150) DEFAULT NULL,
  "observationDate" text/*date*/ DEFAULT NULL,
  "plotCode" varchar(100) DEFAULT NULL,
  "plotAreaHa" double precision 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" integer DEFAULT NULL,
  "isGeovalid" integer DEFAULT NULL,
  "isNewWorld" integer DEFAULT NULL,
  "elevation_m" decimal(6,1) DEFAULT NULL,
  "isCultivated" integer DEFAULT '0',
  "isCultivatedReason" varchar(255) DEFAULT NULL,
  "abund" integer DEFAULT NULL,
  "abund1" integer DEFAULT NULL,
  "abund2.5" integer DEFAULT NULL,
  "abund10" integer 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")*/CHECK (true),
  /*KEY "dataSourceID" ("dataSourceID")*/CHECK (true),
  /*KEY "dataSourceName" ("dataSourceName")*/CHECK (true),
  /*KEY "dataSourceNamePrimary" ("dataSourceNamePrimary")*/CHECK (true),
  /*KEY "plotID" ("plotID")*/CHECK (true),
  /*KEY "observationType" ("observationType")*/CHECK (true),
  /*KEY "bien2_taxonomyID" ("bien2_taxonomyID")*/CHECK (true),
  /*KEY "bien2_DBPlotID" ("bien2_DBPlotID")*/CHECK (true),
  /*KEY "bien2_ObservationID" ("bien2_ObservationID")*/CHECK (true),
  /*KEY "bien2_OccurID" ("bien2_OccurID")*/CHECK (true),
  /*KEY "taxonAuthorityVerbatim" ("taxonAuthorityVerbatim")*/CHECK (true),
  /*KEY "higherPlantGroup" ("higherPlantGroup")*/CHECK (true),
  /*KEY "family" ("family")*/CHECK (true),
  /*KEY "genus" ("genus")*/CHECK (true),
  /*KEY "species" ("species")*/CHECK (true),
  /*KEY "taxon" ("taxon")*/CHECK (true),
  /*KEY "taxonAuthor" ("taxonAuthor")*/CHECK (true),
  /*KEY "taxonMorphospecies" ("taxonMorphospecies")*/CHECK (true),
  /*KEY "rank" ("rank")*/CHECK (true),
  /*KEY "acceptance" ("acceptance")*/CHECK (true),
  /*KEY "country" ("country")*/CHECK (true),
  /*KEY "stateProvince" ("stateProvince")*/CHECK (true),
  /*KEY "collector" ("collector")*/CHECK (true),
  /*KEY "identifiedBy" ("identifiedBy")*/CHECK (true),
  /*KEY "plotCode" ("plotCode")*/CHECK (true),
  /*KEY "plotAreaHa" ("plotAreaHa")*/CHECK (true),
  /*KEY "plotMinDbh" ("plotMinDbh")*/CHECK (true),
  /*KEY "plotMethod" ("plotMethod")*/CHECK (true),
  /*KEY "isValidLatLong" ("isValidLatLong")*/CHECK (true),
  /*KEY "isGeovalid" ("isGeovalid")*/CHECK (true),
  /*KEY "isNewWorld" ("isNewWorld")*/CHECK (true),
  /*KEY "isCultivated" ("isCultivated")*/CHECK (true),
  /*KEY "isCultivatedReason" ("isCultivatedReason")*/CHECK (true),
  /*KEY "bien2_TraitObservationID" ("bien2_TraitObservationID")*/CHECK (true),
  /*KEY "traitName" ("traitName")*/CHECK (true),
  /*KEY "traitMethod" ("traitMethod")*/CHECK (true),
  /*KEY "traitUnit" ("traitUnit")*/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 2012-11-08 11:45:19
