1 |
6073
|
aaronmk
|
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,
|
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" 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 |
|
|
"observationID_index" boolean,
|
82 |
|
|
"dataSourceID_index" boolean,
|
83 |
|
|
"dataSourceName_index" boolean,
|
84 |
|
|
"dataSourceNamePrimary_index" boolean,
|
85 |
|
|
"plotID_index" boolean,
|
86 |
|
|
"observationType_index" boolean,
|
87 |
|
|
"bien2_taxonomyID_index" boolean,
|
88 |
|
|
"bien2_DBPlotID_index" boolean,
|
89 |
|
|
"bien2_ObservationID_index" boolean,
|
90 |
|
|
"bien2_OccurID_index" boolean,
|
91 |
|
|
"taxonAuthorityVerbatim_index" boolean,
|
92 |
|
|
"higherPlantGroup_index" boolean,
|
93 |
|
|
"family_index" boolean,
|
94 |
|
|
"genus_index" boolean,
|
95 |
|
|
"species_index" boolean,
|
96 |
|
|
"taxon_index" boolean,
|
97 |
|
|
"taxonAuthor_index" boolean,
|
98 |
|
|
"taxonMorphospecies_index" boolean,
|
99 |
|
|
"rank_index" boolean,
|
100 |
|
|
"acceptance_index" boolean,
|
101 |
|
|
"country_index" boolean,
|
102 |
|
|
"stateProvince_index" boolean,
|
103 |
|
|
"collector_index" boolean,
|
104 |
|
|
"identifiedBy_index" boolean,
|
105 |
|
|
"plotCode_index" boolean,
|
106 |
|
|
"plotAreaHa_index" boolean,
|
107 |
|
|
"plotMinDbh_index" boolean,
|
108 |
|
|
"plotMethod_index" boolean,
|
109 |
|
|
"isValidLatLong_index" boolean,
|
110 |
|
|
"isGeovalid_index" boolean,
|
111 |
|
|
"isNewWorld_index" boolean,
|
112 |
|
|
"isCultivated_index" boolean,
|
113 |
|
|
"isCultivatedReason_index" boolean,
|
114 |
|
|
"bien2_TraitObservationID_index" boolean,
|
115 |
|
|
"traitName_index" boolean,
|
116 |
|
|
"traitMethod_index" boolean,
|
117 |
|
|
"traitUnit_index" boolean
|
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
|