Project

General

Profile

1
SET standard_conforming_strings = off;
2
SET escape_string_warning = off;
3
-- MySQL dump 10.13  Distrib 5.5.28, for debian-linux-gnu (x86_64)
4
--
5
-- Host: localhost    Database: bien_web
6
-- ------------------------------------------------------
7
-- Server version	5.5.28-0ubuntu0.12.04.2
8

    
9
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
10
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
11
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
12
SET NAMES 'latin1';
13
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
14
/*!40103 SET TIME_ZONE='+00:00' */;
15
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
16
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
17
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,POSTGRESQL' */;
18
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
19

    
20
--
21
-- Table structure for table "observation"
22
--
23

    
24
DROP TABLE IF EXISTS "observation";
25
/*!40101 SET @saved_cs_client     = @@character_set_client */;
26
/*!40101 SET character_set_client = utf8 */;
27
CREATE TABLE "observation" (
28
  "observationID" integer NOT NULL,
29
  "dataSourceID" integer DEFAULT NULL,
30
  "dataSourceName" varchar(100) DEFAULT NULL,
31
  "dataSourceNamePrimary" varchar(100) DEFAULT NULL,
32
  "plotID" integer DEFAULT NULL,
33
  "observationType" varchar(10) DEFAULT NULL /*COMMENT '=plot,specimen,trait)'*/,
34
  "bien2_taxonomyID" integer DEFAULT NULL,
35
  "bien2_DBPlotID" integer DEFAULT NULL,
36
  "bien2_ObservationID" integer DEFAULT NULL,
37
  "bien2_OccurID" integer DEFAULT NULL,
38
  "bien2_TraitObservationID" integer DEFAULT NULL,
39
  "taxonAuthorityVerbatim" varchar(255) DEFAULT NULL,
40
  "higherPlantGroup" varchar(25) DEFAULT NULL,
41
  "family" varchar(100) DEFAULT NULL,
42
  "genus" varchar(100) DEFAULT NULL,
43
  "species" varchar(150) DEFAULT NULL,
44
  "taxon" varchar(200) DEFAULT NULL,
45
  "taxonAuthor" varchar(255) DEFAULT NULL,
46
  "taxonMorphospecies" varchar(255) DEFAULT NULL,
47
  "rank" varchar(50) DEFAULT NULL,
48
  "acceptance" varchar(2) DEFAULT NULL,
49
  "country" varchar(50) DEFAULT NULL,
50
  "stateProvince" varchar(100) DEFAULT NULL,
51
  "countyParish" varchar(100) DEFAULT NULL,
52
  "countryError" double precision DEFAULT NULL,
53
  "stateProvinceError" double precision DEFAULT NULL,
54
  "localityDescription" varchar(500) DEFAULT NULL,
55
  "collector" varchar(150) DEFAULT NULL,
56
  "collectionNumber" varchar(50) DEFAULT NULL,
57
  "identifiedBy" varchar(150) DEFAULT NULL,
58
  "observationDate" text/*date*/ DEFAULT NULL,
59
  "plotCode" varchar(100) DEFAULT NULL,
60
  "plotAreaHa" double precision DEFAULT NULL,
61
  "plotMinDbh" decimal(5,1) DEFAULT NULL,
62
  "plotMethod" varchar(100) DEFAULT NULL,
63
  "latitude" decimal(10,5) DEFAULT NULL,
64
  "longitude" decimal(10,5) DEFAULT NULL,
65
  "isValidLatLong" integer DEFAULT NULL,
66
  "isGeovalid" integer DEFAULT NULL,
67
  "isNewWorld" integer DEFAULT NULL,
68
  "elevation_m" decimal(6,1) DEFAULT NULL,
69
  "isCultivated" integer DEFAULT '0',
70
  "isCultivatedReason" varchar(255) DEFAULT NULL,
71
  "abund" integer DEFAULT NULL,
72
  "abund1" integer DEFAULT NULL,
73
  "abund2.5" integer DEFAULT NULL,
74
  "abund10" integer DEFAULT NULL,
75
  "pctCover" decimal(10,5) DEFAULT NULL,
76
  "traitName" varchar(200) DEFAULT NULL,
77
  "traitValue" varchar(100) DEFAULT NULL,
78
  "traitUnit" varchar(100) DEFAULT NULL,
79
  "traitMethod" varchar(255) DEFAULT NULL,
80
  PRIMARY KEY ("observationID"),
81
  /*KEY "observationID" ("observationID")*/CHECK (true),
82
  /*KEY "dataSourceID" ("dataSourceID")*/CHECK (true),
83
  /*KEY "dataSourceName" ("dataSourceName")*/CHECK (true),
84
  /*KEY "dataSourceNamePrimary" ("dataSourceNamePrimary")*/CHECK (true),
85
  /*KEY "plotID" ("plotID")*/CHECK (true),
86
  /*KEY "observationType" ("observationType")*/CHECK (true),
87
  /*KEY "bien2_taxonomyID" ("bien2_taxonomyID")*/CHECK (true),
88
  /*KEY "bien2_DBPlotID" ("bien2_DBPlotID")*/CHECK (true),
89
  /*KEY "bien2_ObservationID" ("bien2_ObservationID")*/CHECK (true),
90
  /*KEY "bien2_OccurID" ("bien2_OccurID")*/CHECK (true),
91
  /*KEY "taxonAuthorityVerbatim" ("taxonAuthorityVerbatim")*/CHECK (true),
92
  /*KEY "higherPlantGroup" ("higherPlantGroup")*/CHECK (true),
93
  /*KEY "family" ("family")*/CHECK (true),
94
  /*KEY "genus" ("genus")*/CHECK (true),
95
  /*KEY "species" ("species")*/CHECK (true),
96
  /*KEY "taxon" ("taxon")*/CHECK (true),
97
  /*KEY "taxonAuthor" ("taxonAuthor")*/CHECK (true),
98
  /*KEY "taxonMorphospecies" ("taxonMorphospecies")*/CHECK (true),
99
  /*KEY "rank" ("rank")*/CHECK (true),
100
  /*KEY "acceptance" ("acceptance")*/CHECK (true),
101
  /*KEY "country" ("country")*/CHECK (true),
102
  /*KEY "stateProvince" ("stateProvince")*/CHECK (true),
103
  /*KEY "collector" ("collector")*/CHECK (true),
104
  /*KEY "identifiedBy" ("identifiedBy")*/CHECK (true),
105
  /*KEY "plotCode" ("plotCode")*/CHECK (true),
106
  /*KEY "plotAreaHa" ("plotAreaHa")*/CHECK (true),
107
  /*KEY "plotMinDbh" ("plotMinDbh")*/CHECK (true),
108
  /*KEY "plotMethod" ("plotMethod")*/CHECK (true),
109
  /*KEY "isValidLatLong" ("isValidLatLong")*/CHECK (true),
110
  /*KEY "isGeovalid" ("isGeovalid")*/CHECK (true),
111
  /*KEY "isNewWorld" ("isNewWorld")*/CHECK (true),
112
  /*KEY "isCultivated" ("isCultivated")*/CHECK (true),
113
  /*KEY "isCultivatedReason" ("isCultivatedReason")*/CHECK (true),
114
  /*KEY "bien2_TraitObservationID" ("bien2_TraitObservationID")*/CHECK (true),
115
  /*KEY "traitName" ("traitName")*/CHECK (true),
116
  /*KEY "traitMethod" ("traitMethod")*/CHECK (true),
117
  /*KEY "traitUnit" ("traitUnit")*/CHECK (true)
118
);
119
/*!40101 SET character_set_client = @saved_cs_client */;
120
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
121

    
122
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
123
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
124
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
125
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
126
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
127
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
128
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
129

    
130
-- Dump completed on 2012-11-08 11:45:19
(2-2/4)