Project

General

Profile

1
SET standard_conforming_strings = off;
2
SET escape_string_warning = off;
3
-- MySQL dump 10.13  Distrib 5.5.29, for debian-linux-gnu (x86_64)
4
--
5
-- Host: localhost    Database: salvias_plots
6
-- ------------------------------------------------------
7
-- Server version	5.5.29-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 "PlotMetadata"
22
--
23

    
24
DROP TABLE IF EXISTS "PlotMetadata";
25
/*!40101 SET @saved_cs_client     = @@character_set_client */;
26
/*!40101 SET character_set_client = utf8 */;
27
CREATE TABLE "PlotMetadata" (
28
  "PlotID" integer NOT NULL,
29
  "orig_filename" text,
30
  "AccessCode" integer DEFAULT NULL,
31
  "project_id" integer DEFAULT NULL,
32
  "PrimOwnerID" varchar(30) DEFAULT NULL,
33
  "SiteCode" varchar(100) DEFAULT NULL,
34
  "SiteName" varchar(150) DEFAULT NULL,
35
  "new_world" char(3) DEFAULT NULL,
36
  "MajorGeo" varchar(255) DEFAULT NULL,
37
  "Country" varchar(80) DEFAULT NULL,
38
  "PolDiv1" varchar(50) DEFAULT NULL,
39
  "pol1_type" varchar(25) DEFAULT NULL,
40
  "pol2" varchar(50) DEFAULT NULL,
41
  "pol2_type" varchar(25) DEFAULT NULL,
42
  "lat_string" varchar(100) DEFAULT NULL,
43
  "long_string" varchar(100) DEFAULT NULL,
44
  "LatDec" float DEFAULT NULL,
45
  "LongDec" float DEFAULT NULL,
46
  "lat_long_accuracy" varchar(255) DEFAULT NULL,
47
  "Elev" float DEFAULT NULL,
48
  "elev_max_m" float DEFAULT NULL,
49
  "elev_min_m" float DEFAULT NULL,
50
  "Precip" float DEFAULT NULL,
51
  "ElevSource" float DEFAULT NULL,
52
  "Temp" float DEFAULT NULL,
53
  "PrecipSource" float DEFAULT NULL,
54
  "TempSource" varchar(255) DEFAULT NULL,
55
  "bearing" double precision DEFAULT NULL,
56
  "slope_aspect" varchar(10) DEFAULT NULL,
57
  "slope_gradient" integer DEFAULT NULL,
58
  "clay_percent" float DEFAULT NULL,
59
  "silt_percent" float DEFAULT NULL,
60
  "sand_percent" float DEFAULT NULL,
61
  "pH" float DEFAULT NULL,
62
  "soil_N" varchar(20) DEFAULT NULL,
63
  "soil_P" varchar(20) DEFAULT NULL,
64
  "soil_C" varchar(20) DEFAULT NULL,
65
  "soil_K" varchar(20) DEFAULT NULL,
66
  "soil_Mg" varchar(20) DEFAULT NULL,
67
  "soil_Ca" varchar(20) DEFAULT NULL,
68
  "soil_Na" varchar(20) DEFAULT NULL,
69
  "soil_acidity" varchar(20) DEFAULT NULL,
70
  "soil_base" varchar(20) DEFAULT NULL,
71
  "soil_cation_cap" varchar(20) DEFAULT NULL,
72
  "soil_conductivity" varchar(20) DEFAULT NULL,
73
  "organic_percent" float DEFAULT NULL,
74
  "soil_texture" varchar(20) DEFAULT NULL,
75
  "RevisionComments" varchar(255) DEFAULT NULL,
76
  "Locality_Description" varchar(250) DEFAULT NULL,
77
  "topography_desc" varchar(250) DEFAULT NULL,
78
  "vegetation_1" varchar(255) DEFAULT NULL,
79
  "vegetation_2" varchar(255) DEFAULT NULL,
80
  "Habitat" varchar(250) DEFAULT NULL,
81
  "life_zone_code" varchar(10) DEFAULT NULL,
82
  "life_zone" varchar(150) DEFAULT NULL,
83
  "PlotMethod" varchar(250) DEFAULT NULL,
84
  "MethodCode" integer DEFAULT NULL,
85
  "plot_area_ha" float DEFAULT NULL,
86
  "recensused" char(3) DEFAULT NULL,
87
  "date_start" varchar(20) DEFAULT NULL,
88
  "date_finish" varchar(20) DEFAULT NULL,
89
  "plot_administrator" varchar(30) DEFAULT NULL,
90
  "plot_notes" text,
91
  "tmp_del" char(3) DEFAULT NULL,
92
  PRIMARY KEY ("PlotID"),
93
  /*KEY "Country" ("Country")*/CHECK (true),
94
  /*KEY "PrimOwnerID" ("PrimOwnerID")*/CHECK (true),
95
  /*KEY "plot_administrator" ("plot_administrator")*/CHECK (true),
96
  /*KEY "project_id" ("project_id")*/CHECK (true),
97
  /*KEY "tmp_del" ("tmp_del")*/CHECK (true)
98
);
99
/*!40101 SET character_set_client = @saved_cs_client */;
100

    
101
--
102
-- Table structure for table "PlotObservations"
103
--
104

    
105
DROP TABLE IF EXISTS "PlotObservations";
106
/*!40101 SET @saved_cs_client     = @@character_set_client */;
107
/*!40101 SET character_set_client = utf8 */;
108
CREATE TABLE "PlotObservations" (
109
  "PlotObsID" integer NOT NULL,
110
  "PlotID" integer DEFAULT NULL,
111
  "PlotCode" varchar(50) DEFAULT NULL,
112
  "census_no" integer DEFAULT NULL,
113
  "census_date" varchar(20) DEFAULT NULL,
114
  "OrigRecordID" integer DEFAULT NULL,
115
  "Line" varchar(50) DEFAULT NULL,
116
  "Ind" integer DEFAULT NULL,
117
  "ind_id" varchar(11) DEFAULT NULL,
118
  "tag1" varchar(10) DEFAULT NULL,
119
  "tag2" varchar(10) DEFAULT NULL,
120
  "x_position" integer DEFAULT NULL,
121
  "y_position" integer DEFAULT NULL,
122
  "dist" double precision DEFAULT NULL,
123
  "perp_dist" varchar(5) DEFAULT NULL,
124
  "SourceVoucher" varchar(100) DEFAULT NULL,
125
  "coll_number" varchar(50) DEFAULT NULL,
126
  "collector_code" varchar(20) DEFAULT NULL,
127
  "coll_inits" varchar(8) DEFAULT NULL,
128
  "coll_lastname" varchar(50) DEFAULT NULL,
129
  "coll_firstname" varchar(50) DEFAULT NULL,
130
  "DetType" varchar(255) DEFAULT NULL,
131
  "det_by" varchar(250) DEFAULT NULL,
132
  "fam_status" integer DEFAULT NULL,
133
  "gen_status" integer DEFAULT NULL,
134
  "name_status" integer DEFAULT NULL,
135
  "SpAuthStatus" integer DEFAULT NULL,
136
  "Family" varchar(255) DEFAULT NULL,
137
  "Genus" varchar(255) DEFAULT NULL,
138
  "GenAuth" varchar(255) DEFAULT NULL,
139
  "Species" varchar(255) DEFAULT NULL,
140
  "auth" varchar(255) DEFAULT NULL,
141
  "infra_rank_1" varchar(6) DEFAULT NULL,
142
  "infra_ep_1" varchar(150) DEFAULT NULL,
143
  "infra_auth_1" varchar(150) DEFAULT NULL,
144
  "common_name" varchar(100) DEFAULT NULL,
145
  "morphoname" varchar(200) DEFAULT NULL,
146
  "species_code" varchar(50) DEFAULT NULL,
147
  "Habit" varchar(50) DEFAULT NULL,
148
  "height_class" varchar(20) DEFAULT NULL,
149
  "height_m" float DEFAULT NULL,
150
  "height_m_commercial" float DEFAULT NULL,
151
  "ht_first_branch_m" double precision DEFAULT NULL,
152
  "NoInd" integer DEFAULT NULL,
153
  "cover_percent" decimal(7,2) DEFAULT NULL,
154
  "intercept_cm" double precision DEFAULT NULL,
155
  "cfaff" varchar(10) DEFAULT NULL,
156
  "other_annotations" varchar(250) DEFAULT NULL,
157
  "morphocf" varchar(10) DEFAULT NULL,
158
  "IsMorpho" integer DEFAULT NULL,
159
  "OrigFamily" varchar(100) DEFAULT NULL,
160
  "OrigGenus" varchar(100) DEFAULT NULL,
161
  "OrigSpecies" varchar(255) DEFAULT NULL,
162
  "OrigAuth" varchar(250) DEFAULT NULL,
163
  "phenology" varchar(250) DEFAULT NULL,
164
  "canopy_position" varchar(50) DEFAULT NULL,
165
  "canopy_form" varchar(50) DEFAULT NULL,
166
  "liana_infestation" varchar(50) DEFAULT NULL,
167
  "Notes" text,
168
  "tmp_PlotObsID" integer DEFAULT NULL,
169
  "temp_dbh" double precision DEFAULT NULL,
170
  "temp_liandbh" double precision DEFAULT NULL,
171
  "tmp_del" char(3) DEFAULT NULL,
172
  PRIMARY KEY ("PlotObsID"),
173
  /*KEY "PlotID" ("PlotID")*/CHECK (true),
174
  /*KEY "tmp_del" ("tmp_del")*/CHECK (true),
175
  /*KEY "tmp_PlotObsID" ("tmp_PlotObsID")*/CHECK (true)
176
);
177
/*!40101 SET character_set_client = @saved_cs_client */;
178

    
179
--
180
-- Table structure for table "lookup_MethodCode"
181
--
182

    
183
DROP TABLE IF EXISTS "lookup_MethodCode";
184
/*!40101 SET @saved_cs_client     = @@character_set_client */;
185
/*!40101 SET character_set_client = utf8 */;
186
CREATE TABLE "lookup_MethodCode" (
187
  "MethodCode" integer NOT NULL DEFAULT '0',
188
  "Description" varchar(80) NOT NULL DEFAULT '',
189
  PRIMARY KEY ("MethodCode")
190
);
191
/*!40101 SET character_set_client = @saved_cs_client */;
192

    
193
--
194
-- Table structure for table "lookup_plot_security_levels"
195
--
196

    
197
DROP TABLE IF EXISTS "lookup_plot_security_levels";
198
/*!40101 SET @saved_cs_client     = @@character_set_client */;
199
/*!40101 SET character_set_client = utf8 */;
200
CREATE TABLE "lookup_plot_security_levels" (
201
  "level" integer NOT NULL DEFAULT '0',
202
  "description" varchar(30) NOT NULL DEFAULT '',
203
  PRIMARY KEY ("level")
204
);
205
/*!40101 SET character_set_client = @saved_cs_client */;
206

    
207
--
208
-- Table structure for table "projects"
209
--
210

    
211
DROP TABLE IF EXISTS "projects";
212
/*!40101 SET @saved_cs_client     = @@character_set_client */;
213
/*!40101 SET character_set_client = utf8 */;
214
CREATE TABLE "projects" (
215
  "project_id" integer NOT NULL,
216
  "project_name" varchar(255) NOT NULL DEFAULT '',
217
  "project_pi" varchar(30) NOT NULL DEFAULT '',
218
  "allow_download_all" integer NOT NULL DEFAULT '0',
219
  "ipr_specific" text,
220
  "ipr_specific_updated" date DEFAULT NULL,
221
  PRIMARY KEY ("project_id"),
222
  /*KEY "project_name" ("project_name")*/CHECK (true),
223
  /*KEY "on_project_list" ("allow_download_all")*/CHECK (true),
224
  /*KEY "project_distinct" ("project_id","project_name","project_pi")*/CHECK (true)
225
);
226
/*!40101 SET character_set_client = @saved_cs_client */;
227

    
228
--
229
-- Table structure for table "stems"
230
--
231

    
232
DROP TABLE IF EXISTS "stems";
233
/*!40101 SET @saved_cs_client     = @@character_set_client */;
234
/*!40101 SET character_set_client = utf8 */;
235
CREATE TABLE "stems" (
236
  "stem_id" integer NOT NULL,
237
  "origrecord_id_stems" integer DEFAULT NULL,
238
  "plotobs_id" integer DEFAULT NULL,
239
  "NoInd" integer DEFAULT '0',
240
  "basal_diam" double precision DEFAULT NULL,
241
  "stem_dbh" double precision DEFAULT NULL,
242
  "gentry_dbh" double precision DEFAULT NULL,
243
  "stem_notes" text,
244
  "stem_tag1" varchar(20) DEFAULT NULL,
245
  "stem_tag2" varchar(20) DEFAULT NULL,
246
  "stem_height_m" double precision DEFAULT NULL,
247
  "stem_height_first_branch_m" double precision DEFAULT NULL,
248
  "stem_canopy_form" varchar(50) DEFAULT NULL,
249
  "stem_canopy_position" varchar(50) DEFAULT NULL,
250
  "stem_liana_infestation" varchar(50) DEFAULT NULL,
251
  "tmp_del" char(3) DEFAULT NULL,
252
  PRIMARY KEY ("stem_id"),
253
  /*KEY "plotobs_id" ("plotobs_id")*/CHECK (true),
254
  /*KEY "tmp_del" ("tmp_del")*/CHECK (true)
255
);
256
/*!40101 SET character_set_client = @saved_cs_client */;
257
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
258

    
259
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
260
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
261
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
262
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
263
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
264
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
265
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
266

    
267
-- Dump completed on 2013-03-15  8:43:39
(4-4/8)