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" 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"),
  "observationID_index" boolean,
  "dataSourceID_index" boolean,
  "dataSourceName_index" boolean,
  "dataSourceNamePrimary_index" boolean,
  "plotID_index" boolean,
  "observationType_index" boolean,
  "bien2_taxonomyID_index" boolean,
  "bien2_DBPlotID_index" boolean,
  "bien2_ObservationID_index" boolean,
  "bien2_OccurID_index" boolean,
  "taxonAuthorityVerbatim_index" boolean,
  "higherPlantGroup_index" boolean,
  "family_index" boolean,
  "genus_index" boolean,
  "species_index" boolean,
  "taxon_index" boolean,
  "taxonAuthor_index" boolean,
  "taxonMorphospecies_index" boolean,
  "rank_index" boolean,
  "acceptance_index" boolean,
  "country_index" boolean,
  "stateProvince_index" boolean,
  "collector_index" boolean,
  "identifiedBy_index" boolean,
  "plotCode_index" boolean,
  "plotAreaHa_index" boolean,
  "plotMinDbh_index" boolean,
  "plotMethod_index" boolean,
  "isValidLatLong_index" boolean,
  "isGeovalid_index" boolean,
  "isNewWorld_index" boolean,
  "isCultivated_index" boolean,
  "isCultivatedReason_index" boolean,
  "bien2_TraitObservationID_index" boolean,
  "traitName_index" boolean,
  "traitMethod_index" boolean,
  "traitUnit_index" boolean
);
/*!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
