1
|
-- MySQL dump 10.13 Distrib 5.5.34, for debian-linux-gnu (x86_64)
|
2
|
--
|
3
|
-- Host: localhost Database: salvias_plots
|
4
|
-- ------------------------------------------------------
|
5
|
-- Server version 5.5.34-0ubuntu0.12.04.1
|
6
|
|
7
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
8
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
9
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
10
|
/*!40101 SET NAMES latin1 */;
|
11
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
12
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
13
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
14
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
15
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,POSTGRESQL' */;
|
16
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
17
|
|
18
|
--
|
19
|
-- Table structure for table "PlotMetadata"
|
20
|
--
|
21
|
|
22
|
DROP TABLE IF EXISTS "PlotMetadata";
|
23
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
24
|
/*!40101 SET character_set_client = utf8 */;
|
25
|
CREATE TABLE "PlotMetadata" (
|
26
|
"PlotID" int(11) NOT NULL,
|
27
|
"orig_filename" longtext,
|
28
|
"AccessCode" smallint(6) DEFAULT NULL,
|
29
|
"project_id" int(11) DEFAULT NULL,
|
30
|
"PrimOwnerID" varchar(30) DEFAULT NULL,
|
31
|
"SiteCode" varchar(100) DEFAULT NULL,
|
32
|
"SiteName" varchar(150) DEFAULT NULL,
|
33
|
"new_world" char(3) DEFAULT NULL,
|
34
|
"MajorGeo" varchar(255) DEFAULT NULL,
|
35
|
"Country" varchar(80) DEFAULT NULL,
|
36
|
"PolDiv1" varchar(50) DEFAULT NULL,
|
37
|
"pol1_type" varchar(25) DEFAULT NULL,
|
38
|
"pol2" varchar(50) DEFAULT NULL,
|
39
|
"pol2_type" varchar(25) DEFAULT NULL,
|
40
|
"lat_string" varchar(100) DEFAULT NULL,
|
41
|
"long_string" varchar(100) DEFAULT NULL,
|
42
|
"LatDec" float DEFAULT NULL,
|
43
|
"LongDec" float DEFAULT NULL,
|
44
|
"lat_long_accuracy" varchar(255) DEFAULT NULL,
|
45
|
"Elev" float DEFAULT NULL,
|
46
|
"elev_max_m" float DEFAULT NULL,
|
47
|
"elev_min_m" float DEFAULT NULL,
|
48
|
"Precip" float DEFAULT NULL,
|
49
|
"ElevSource" float DEFAULT NULL,
|
50
|
"Temp" float DEFAULT NULL,
|
51
|
"PrecipSource" float DEFAULT NULL,
|
52
|
"TempSource" varchar(255) DEFAULT NULL,
|
53
|
"bearing" double unsigned DEFAULT NULL,
|
54
|
"slope_aspect" varchar(10) DEFAULT NULL,
|
55
|
"slope_gradient" smallint(6) DEFAULT NULL,
|
56
|
"clay_percent" float unsigned DEFAULT NULL,
|
57
|
"silt_percent" float unsigned DEFAULT NULL,
|
58
|
"sand_percent" float unsigned DEFAULT NULL,
|
59
|
"pH" float unsigned DEFAULT NULL,
|
60
|
"soil_N" varchar(20) DEFAULT NULL,
|
61
|
"soil_P" varchar(20) DEFAULT NULL,
|
62
|
"soil_C" varchar(20) DEFAULT NULL,
|
63
|
"soil_K" varchar(20) DEFAULT NULL,
|
64
|
"soil_Mg" varchar(20) DEFAULT NULL,
|
65
|
"soil_Ca" varchar(20) DEFAULT NULL,
|
66
|
"soil_Na" varchar(20) DEFAULT NULL,
|
67
|
"soil_acidity" varchar(20) DEFAULT NULL,
|
68
|
"soil_base" varchar(20) DEFAULT NULL,
|
69
|
"soil_cation_cap" varchar(20) DEFAULT NULL,
|
70
|
"soil_conductivity" varchar(20) DEFAULT NULL,
|
71
|
"organic_percent" float unsigned DEFAULT NULL,
|
72
|
"soil_texture" varchar(20) DEFAULT NULL,
|
73
|
"RevisionComments" varchar(255) DEFAULT NULL,
|
74
|
"Locality_Description" varchar(250) DEFAULT NULL,
|
75
|
"topography_desc" varchar(250) DEFAULT NULL,
|
76
|
"vegetation_1" varchar(255) DEFAULT NULL,
|
77
|
"vegetation_2" varchar(255) DEFAULT NULL,
|
78
|
"Habitat" varchar(250) DEFAULT NULL,
|
79
|
"life_zone_code" varchar(10) DEFAULT NULL,
|
80
|
"life_zone" varchar(150) DEFAULT NULL,
|
81
|
"PlotMethod" varchar(250) DEFAULT NULL,
|
82
|
"MethodCode" smallint(6) DEFAULT NULL,
|
83
|
"plot_area_ha" float DEFAULT NULL,
|
84
|
"recensused" char(3) DEFAULT NULL,
|
85
|
"date_start" varchar(20) DEFAULT NULL,
|
86
|
"date_finish" varchar(20) DEFAULT NULL,
|
87
|
"plot_administrator" varchar(30) DEFAULT NULL,
|
88
|
"plot_notes" longtext,
|
89
|
"tmp_del" char(3) DEFAULT NULL,
|
90
|
PRIMARY KEY ("PlotID"),
|
91
|
KEY "Country" ("Country"),
|
92
|
KEY "PrimOwnerID" ("PrimOwnerID"),
|
93
|
KEY "plot_administrator" ("plot_administrator"),
|
94
|
KEY "project_id" ("project_id"),
|
95
|
KEY "tmp_del" ("tmp_del")
|
96
|
);
|
97
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
98
|
|
99
|
--
|
100
|
-- Table structure for table "PlotObservations"
|
101
|
--
|
102
|
|
103
|
DROP TABLE IF EXISTS "PlotObservations";
|
104
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
105
|
/*!40101 SET character_set_client = utf8 */;
|
106
|
CREATE TABLE "PlotObservations" (
|
107
|
"PlotObsID" int(11) NOT NULL,
|
108
|
"PlotID" int(11) DEFAULT NULL,
|
109
|
"PlotCode" varchar(50) DEFAULT NULL,
|
110
|
"census_no" int(10) unsigned DEFAULT NULL,
|
111
|
"census_date" varchar(20) DEFAULT NULL,
|
112
|
"OrigRecordID" int(11) DEFAULT NULL,
|
113
|
"Line" varchar(50) DEFAULT NULL,
|
114
|
"Ind" int(11) DEFAULT NULL,
|
115
|
"ind_id" varchar(11) DEFAULT NULL,
|
116
|
"tag1" varchar(10) DEFAULT NULL,
|
117
|
"tag2" varchar(10) DEFAULT NULL,
|
118
|
"x_position" int(11) DEFAULT NULL,
|
119
|
"y_position" int(11) DEFAULT NULL,
|
120
|
"dist" double(10,3) DEFAULT NULL,
|
121
|
"perp_dist" varchar(5) DEFAULT NULL,
|
122
|
"SourceVoucher" varchar(100) DEFAULT NULL,
|
123
|
"coll_number" varchar(50) DEFAULT NULL,
|
124
|
"collector_code" varchar(20) DEFAULT NULL,
|
125
|
"coll_inits" varchar(8) DEFAULT NULL,
|
126
|
"coll_lastname" varchar(50) DEFAULT NULL,
|
127
|
"coll_firstname" varchar(50) DEFAULT NULL,
|
128
|
"DetType" varchar(255) DEFAULT NULL,
|
129
|
"det_by" varchar(250) DEFAULT NULL,
|
130
|
"fam_status" tinyint(4) DEFAULT NULL,
|
131
|
"gen_status" tinyint(4) DEFAULT NULL,
|
132
|
"name_status" tinyint(4) DEFAULT NULL,
|
133
|
"SpAuthStatus" tinyint(4) DEFAULT NULL,
|
134
|
"Family" varchar(255) DEFAULT NULL,
|
135
|
"Genus" varchar(255) DEFAULT NULL,
|
136
|
"GenAuth" varchar(255) DEFAULT NULL,
|
137
|
"Species" varchar(255) DEFAULT NULL,
|
138
|
"auth" varchar(255) DEFAULT NULL,
|
139
|
"infra_rank_1" varchar(6) DEFAULT NULL,
|
140
|
"infra_ep_1" varchar(150) DEFAULT NULL,
|
141
|
"infra_auth_1" varchar(150) DEFAULT NULL,
|
142
|
"common_name" varchar(100) DEFAULT NULL,
|
143
|
"morphoname" varchar(200) DEFAULT NULL,
|
144
|
"species_code" varchar(50) DEFAULT NULL,
|
145
|
"Habit" varchar(50) DEFAULT NULL,
|
146
|
"height_class" varchar(20) DEFAULT NULL,
|
147
|
"height_m" float(2,1) DEFAULT NULL,
|
148
|
"height_m_commercial" float(2,1) unsigned DEFAULT NULL,
|
149
|
"ht_first_branch_m" double DEFAULT NULL,
|
150
|
"NoInd" int(11) DEFAULT NULL,
|
151
|
"cover_percent" decimal(7,2) DEFAULT NULL,
|
152
|
"intercept_cm" double DEFAULT NULL,
|
153
|
"cfaff" varchar(10) DEFAULT NULL,
|
154
|
"other_annotations" varchar(250) DEFAULT NULL,
|
155
|
"morphocf" varchar(10) DEFAULT NULL,
|
156
|
"IsMorpho" tinyint(1) DEFAULT NULL,
|
157
|
"OrigFamily" varchar(100) DEFAULT NULL,
|
158
|
"OrigGenus" varchar(100) DEFAULT NULL,
|
159
|
"OrigSpecies" varchar(255) DEFAULT NULL,
|
160
|
"OrigAuth" varchar(250) DEFAULT NULL,
|
161
|
"phenology" varchar(250) DEFAULT NULL,
|
162
|
"canopy_position" varchar(50) DEFAULT NULL,
|
163
|
"canopy_form" varchar(50) DEFAULT NULL,
|
164
|
"liana_infestation" varchar(50) DEFAULT NULL,
|
165
|
"Notes" text,
|
166
|
"tmp_PlotObsID" int(11) unsigned DEFAULT NULL,
|
167
|
"temp_dbh" double(10,3) DEFAULT NULL,
|
168
|
"temp_liandbh" double(10,3) DEFAULT NULL,
|
169
|
"tmp_del" char(3) DEFAULT NULL,
|
170
|
PRIMARY KEY ("PlotObsID"),
|
171
|
KEY "PlotID" ("PlotID"),
|
172
|
KEY "tmp_del" ("tmp_del"),
|
173
|
KEY "tmp_PlotObsID" ("tmp_PlotObsID")
|
174
|
);
|
175
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
176
|
|
177
|
--
|
178
|
-- Table structure for table "lookup_MethodCode"
|
179
|
--
|
180
|
|
181
|
DROP TABLE IF EXISTS "lookup_MethodCode";
|
182
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
183
|
/*!40101 SET character_set_client = utf8 */;
|
184
|
CREATE TABLE "lookup_MethodCode" (
|
185
|
"MethodCode" int(11) NOT NULL DEFAULT '0',
|
186
|
"Description" varchar(80) NOT NULL DEFAULT '',
|
187
|
PRIMARY KEY ("MethodCode")
|
188
|
);
|
189
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
190
|
|
191
|
--
|
192
|
-- Table structure for table "lookup_plot_security_levels"
|
193
|
--
|
194
|
|
195
|
DROP TABLE IF EXISTS "lookup_plot_security_levels";
|
196
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
197
|
/*!40101 SET character_set_client = utf8 */;
|
198
|
CREATE TABLE "lookup_plot_security_levels" (
|
199
|
"level" smallint(6) NOT NULL DEFAULT '0',
|
200
|
"description" varchar(30) NOT NULL DEFAULT '',
|
201
|
PRIMARY KEY ("level")
|
202
|
);
|
203
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
204
|
|
205
|
--
|
206
|
-- Table structure for table "party"
|
207
|
--
|
208
|
|
209
|
DROP TABLE IF EXISTS "party";
|
210
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
211
|
/*!40101 SET character_set_client = utf8 */;
|
212
|
CREATE TABLE "party" (
|
213
|
"party_id" int(11) NOT NULL,
|
214
|
"fullname" varchar(255) NOT NULL,
|
215
|
"party_type" varchar(255) NOT NULL,
|
216
|
"firstname" varchar(255) NOT NULL,
|
217
|
"middle_inits" varchar(255) NOT NULL,
|
218
|
"lastname" varchar(255) NOT NULL,
|
219
|
"email" varchar(255) NOT NULL,
|
220
|
"Institution" varchar(255) NOT NULL,
|
221
|
"state_province" varchar(255) NOT NULL,
|
222
|
"country" varchar(255) NOT NULL
|
223
|
);
|
224
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
225
|
|
226
|
--
|
227
|
-- Table structure for table "party_code_party"
|
228
|
--
|
229
|
|
230
|
DROP TABLE IF EXISTS "party_code_party";
|
231
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
232
|
/*!40101 SET character_set_client = utf8 */;
|
233
|
CREATE TABLE "party_code_party" (
|
234
|
"party_code" varchar(255) NOT NULL,
|
235
|
"party_id" int(11) NOT NULL
|
236
|
);
|
237
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
238
|
|
239
|
--
|
240
|
-- Table structure for table "projects"
|
241
|
--
|
242
|
|
243
|
DROP TABLE IF EXISTS "projects";
|
244
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
245
|
/*!40101 SET character_set_client = utf8 */;
|
246
|
CREATE TABLE "projects" (
|
247
|
"project_id" int(11) NOT NULL,
|
248
|
"project_name" varchar(255) NOT NULL DEFAULT '',
|
249
|
"project_pi" varchar(30) NOT NULL DEFAULT '',
|
250
|
"allow_download_all" tinyint(1) NOT NULL DEFAULT '0',
|
251
|
"ipr_specific" longtext,
|
252
|
"ipr_specific_updated" date DEFAULT NULL,
|
253
|
PRIMARY KEY ("project_id"),
|
254
|
KEY "project_name" ("project_name"),
|
255
|
KEY "on_project_list" ("allow_download_all"),
|
256
|
KEY "project_distinct" ("project_id","project_name","project_pi")
|
257
|
);
|
258
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
259
|
|
260
|
--
|
261
|
-- Table structure for table "stems"
|
262
|
--
|
263
|
|
264
|
DROP TABLE IF EXISTS "stems";
|
265
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
266
|
/*!40101 SET character_set_client = utf8 */;
|
267
|
CREATE TABLE "stems" (
|
268
|
"stem_id" int(11) unsigned NOT NULL,
|
269
|
"origrecord_id_stems" int(11) unsigned DEFAULT NULL,
|
270
|
"plotobs_id" int(11) DEFAULT NULL,
|
271
|
"NoInd" int(11) DEFAULT '0',
|
272
|
"basal_diam" double DEFAULT NULL,
|
273
|
"stem_dbh" double DEFAULT NULL,
|
274
|
"gentry_dbh" double DEFAULT NULL,
|
275
|
"stem_notes" longtext,
|
276
|
"stem_tag1" varchar(20) DEFAULT NULL,
|
277
|
"stem_tag2" varchar(20) DEFAULT NULL,
|
278
|
"stem_height_m" double DEFAULT NULL,
|
279
|
"stem_height_first_branch_m" double DEFAULT NULL,
|
280
|
"stem_canopy_form" varchar(50) DEFAULT NULL,
|
281
|
"stem_canopy_position" varchar(50) DEFAULT NULL,
|
282
|
"stem_liana_infestation" varchar(50) DEFAULT NULL,
|
283
|
"tmp_del" char(3) DEFAULT NULL,
|
284
|
PRIMARY KEY ("stem_id"),
|
285
|
KEY "plotobs_id" ("plotobs_id"),
|
286
|
KEY "tmp_del" ("tmp_del")
|
287
|
);
|
288
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
289
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
290
|
|
291
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
292
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
293
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
294
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
295
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
296
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
297
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
298
|
|
299
|
-- Dump completed on 2014-01-20 20:03:09
|