1 |
11678
|
aaronmk
|
-- Dump File
|
2 |
|
|
--
|
3 |
|
|
-- Database is ported from MS Access
|
4 |
|
|
----------------------------------------------------------
|
5 |
|
|
-- Program Version 3.0.148
|
6 |
|
|
|
7 |
|
|
CREATE DATABASE "cvs-eep-archive-2013-10-22-VegBIEN";
|
8 |
|
|
|
9 |
|
|
-- NOTICE: At this place you need to connect to the new database and run the rest of the statements.
|
10 |
|
|
|
11 |
|
|
--
|
12 |
|
|
-- Table structure for table 'accessionCodeCorrelation'
|
13 |
|
|
--
|
14 |
|
|
|
15 |
|
|
DROP TABLE IF EXISTS "accessionCodeCorrelation";
|
16 |
|
|
|
17 |
|
|
CREATE TABLE "accessionCodeCorrelation" (
|
18 |
|
|
"accessionCodeCorrelation_ID" SERIAL NOT NULL,
|
19 |
|
|
"oldAccessionCode" VARCHAR(255) NOT NULL,
|
20 |
|
|
"preferredAccessionCode" VARCHAR(255) NOT NULL,
|
21 |
|
|
"accessionCodeTable" VARCHAR(255),
|
22 |
|
|
"accessionCodeRelationship" VARCHAR(255) NOT NULL,
|
23 |
|
|
PRIMARY KEY ("accessionCodeCorrelation_ID")
|
24 |
|
|
);
|
25 |
|
|
|
26 |
|
|
--
|
27 |
|
|
-- Table structure for table 'address'
|
28 |
|
|
--
|
29 |
|
|
|
30 |
|
|
DROP TABLE IF EXISTS "address";
|
31 |
|
|
|
32 |
|
|
CREATE TABLE "address" (
|
33 |
|
|
"ADDRESS_ID" SERIAL NOT NULL,
|
34 |
|
|
"party_ID" INTEGER NOT NULL,
|
35 |
|
|
"organization_ID" INTEGER,
|
36 |
|
|
"orgPosition" VARCHAR(50),
|
37 |
|
|
"email" VARCHAR(100),
|
38 |
|
|
"deliveryPoint" VARCHAR(200),
|
39 |
|
|
"city" VARCHAR(50),
|
40 |
|
|
"administrativeArea" VARCHAR(50),
|
41 |
|
|
"postalCode" VARCHAR(10),
|
42 |
|
|
"country" VARCHAR(50),
|
43 |
|
|
"currentFlag" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
44 |
|
|
"addressStartDate" TIMESTAMP,
|
45 |
|
|
"dba_src_ID" INTEGER,
|
46 |
|
|
PRIMARY KEY ("ADDRESS_ID")
|
47 |
|
|
);
|
48 |
|
|
|
49 |
|
|
--
|
50 |
|
|
-- Table structure for table 'archiveLog'
|
51 |
|
|
--
|
52 |
|
|
|
53 |
|
|
DROP TABLE IF EXISTS "archiveLog";
|
54 |
|
|
|
55 |
|
|
CREATE TABLE "archiveLog" (
|
56 |
|
|
"archiveLog_ID" SERIAL NOT NULL,
|
57 |
|
|
"archiveLogUser" VARCHAR(50),
|
58 |
|
|
"archiveLogComment" TEXT,
|
59 |
|
|
"commentDate" TIMESTAMP DEFAULT E'=Now()',
|
60 |
|
|
PRIMARY KEY ("archiveLog_ID")
|
61 |
|
|
);
|
62 |
|
|
|
63 |
|
|
--
|
64 |
|
|
-- Table structure for table 'aux_Role'
|
65 |
|
|
--
|
66 |
|
|
|
67 |
|
|
DROP TABLE IF EXISTS "aux_Role";
|
68 |
|
|
|
69 |
|
|
CREATE TABLE "aux_Role" (
|
70 |
|
|
"ROLE_ID" SERIAL NOT NULL,
|
71 |
|
|
"roleCode" VARCHAR(30) NOT NULL,
|
72 |
|
|
"roleDescription" VARCHAR(200),
|
73 |
|
|
"accessionCode" VARCHAR(100),
|
74 |
|
|
"roleProject" INTEGER,
|
75 |
|
|
"roleObservation" INTEGER,
|
76 |
|
|
"roleTaxonInt" INTEGER,
|
77 |
|
|
"roleClassInt" INTEGER,
|
78 |
|
|
"dba_src_ID" INTEGER,
|
79 |
|
|
PRIMARY KEY ("ROLE_ID")
|
80 |
|
|
);
|
81 |
|
|
|
82 |
|
|
--
|
83 |
|
|
-- Table structure for table 'classContributor'
|
84 |
|
|
--
|
85 |
|
|
|
86 |
|
|
DROP TABLE IF EXISTS "classContributor";
|
87 |
|
|
|
88 |
|
|
CREATE TABLE "classContributor" (
|
89 |
|
|
"CLASSCONTRIBUTOR_ID" SERIAL NOT NULL,
|
90 |
|
|
"COMMCLASS_ID" INTEGER NOT NULL,
|
91 |
|
|
"PARTY_ID" INTEGER NOT NULL,
|
92 |
|
|
"ROLE_ID" INTEGER,
|
93 |
|
|
"dba_src_ID" INTEGER,
|
94 |
|
|
PRIMARY KEY ("CLASSCONTRIBUTOR_ID")
|
95 |
|
|
);
|
96 |
|
|
|
97 |
|
|
--
|
98 |
|
|
-- Table structure for table 'commClass'
|
99 |
|
|
--
|
100 |
|
|
|
101 |
|
|
DROP TABLE IF EXISTS "commClass";
|
102 |
|
|
|
103 |
|
|
CREATE TABLE "commClass" (
|
104 |
|
|
"COMMCLASS_ID" SERIAL NOT NULL,
|
105 |
|
|
"OBSERVATION_ID" INTEGER NOT NULL,
|
106 |
|
|
"classStartDate" TIMESTAMP,
|
107 |
|
|
"classStopDate" TIMESTAMP,
|
108 |
|
|
"inspection" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
109 |
|
|
"tableAnalysis" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
110 |
|
|
"multivariateAnalysis" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
111 |
|
|
"expertSystem" TEXT,
|
112 |
|
|
"classPublication_ID" INTEGER,
|
113 |
|
|
"classNotes" TEXT,
|
114 |
|
|
"commName" VARCHAR(200),
|
115 |
|
|
"commCode" VARCHAR(200),
|
116 |
|
|
"commFramework" VARCHAR(200),
|
117 |
|
|
"commLevel" VARCHAR(200),
|
118 |
|
|
"accessionCode" VARCHAR(100),
|
119 |
|
|
"dba_src_ID" INTEGER,
|
120 |
|
|
"dba_dataSource" VARCHAR(255),
|
121 |
|
|
"classStopReason" VARCHAR(255),
|
122 |
|
|
PRIMARY KEY ("COMMCLASS_ID")
|
123 |
|
|
);
|
124 |
|
|
|
125 |
|
|
--
|
126 |
|
|
-- Table structure for table 'commConcept'
|
127 |
|
|
--
|
128 |
|
|
|
129 |
|
|
DROP TABLE IF EXISTS "commConcept";
|
130 |
|
|
|
131 |
|
|
CREATE TABLE "commConcept" (
|
132 |
|
|
"COMMCONCEPT_ID" SERIAL NOT NULL,
|
133 |
|
|
"COMMNAME_ID" INTEGER NOT NULL,
|
134 |
|
|
"reference_ID" INTEGER,
|
135 |
|
|
"commDescription" TEXT,
|
136 |
|
|
"accessionCode" VARCHAR(100),
|
137 |
|
|
"dba_src_ID" INTEGER,
|
138 |
|
|
"commName" VARCHAR(255),
|
139 |
|
|
"referenceText" VARCHAR(255),
|
140 |
|
|
"scientific" VARCHAR(255),
|
141 |
|
|
"translated" VARCHAR(255),
|
142 |
|
|
"code" VARCHAR(255),
|
143 |
|
|
"originalAuthorCode" VARCHAR(255),
|
144 |
|
|
"common" VARCHAR(255),
|
145 |
|
|
"commLevel" VARCHAR(80),
|
146 |
|
|
"alliance" VARCHAR(255),
|
147 |
|
|
"includeInPicklistNow" /*BOOLEAN*/INTEGER DEFAULT E'-1',
|
148 |
|
|
"PhysGroup" VARCHAR(255),
|
149 |
|
|
"FormGroup" VARCHAR(255),
|
150 |
|
|
"EcolGroup" VARCHAR(255),
|
151 |
|
|
"4thApproxName" VARCHAR(255),
|
152 |
|
|
"NatureServeUID" VARCHAR(255),
|
153 |
|
|
"classificationSystem" VARCHAR(255),
|
154 |
|
|
PRIMARY KEY ("COMMCONCEPT_ID"),
|
155 |
|
|
UNIQUE ("classificationSystem", "code")
|
156 |
|
|
);
|
157 |
|
|
|
158 |
|
|
--
|
159 |
|
|
-- Table structure for table 'commConceptCVSHierarchy'
|
160 |
|
|
--
|
161 |
|
|
|
162 |
|
|
DROP TABLE IF EXISTS "commConceptCVSHierarchy";
|
163 |
|
|
|
164 |
|
|
CREATE TABLE "commConceptCVSHierarchy" (
|
165 |
|
|
"commConceptHierarchy_ID" SERIAL NOT NULL,
|
166 |
|
|
"COMMCONCEPT_ID" INTEGER,
|
167 |
|
|
"commCode" VARCHAR(255),
|
168 |
|
|
"commSci" TEXT,
|
169 |
|
|
"commTransl" TEXT,
|
170 |
|
|
"commCommonName" TEXT,
|
171 |
|
|
"4thApprox" TEXT,
|
172 |
|
|
"cvslink" TEXT,
|
173 |
|
|
"nsLink" TEXT,
|
174 |
|
|
"vegBankLink" TEXT,
|
175 |
|
|
"cvsprovince" VARCHAR(50),
|
176 |
|
|
"phys" VARCHAR(255),
|
177 |
|
|
"form" VARCHAR(255),
|
178 |
|
|
"ecol" VARCHAR(255),
|
179 |
|
|
"file" VARCHAR(50),
|
180 |
|
|
"dateUpdated" TIMESTAMP DEFAULT E'=Now()',
|
181 |
|
|
"hierarchySystem" VARCHAR(255),
|
182 |
|
|
"commOrder" DOUBLE PRECISION NULL,
|
183 |
|
|
"LevelCommDescription" TEXT,
|
184 |
|
|
"keyToChildren" TEXT,
|
185 |
|
|
"deleted" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
186 |
|
|
PRIMARY KEY ("commConceptHierarchy_ID")
|
187 |
|
|
);
|
188 |
|
|
|
189 |
|
|
--
|
190 |
|
|
-- Table structure for table 'commCorrelation'
|
191 |
|
|
--
|
192 |
|
|
|
193 |
|
|
DROP TABLE IF EXISTS "commCorrelation";
|
194 |
|
|
|
195 |
|
|
CREATE TABLE "commCorrelation" (
|
196 |
|
|
"COMMCORRELATION_ID" SERIAL NOT NULL,
|
197 |
|
|
"COMMSTATUS_ID" INTEGER NOT NULL,
|
198 |
|
|
"COMMCONCEPT_ID" INTEGER NOT NULL,
|
199 |
|
|
"commConvergence" VARCHAR(20) NOT NULL,
|
200 |
|
|
"correlationStart" TIMESTAMP NOT NULL,
|
201 |
|
|
"correlationStop" TIMESTAMP,
|
202 |
|
|
"dba_src_ID" INTEGER,
|
203 |
|
|
PRIMARY KEY ("COMMCORRELATION_ID")
|
204 |
|
|
);
|
205 |
|
|
|
206 |
|
|
--
|
207 |
|
|
-- Table structure for table 'commInterpretation'
|
208 |
|
|
--
|
209 |
|
|
|
210 |
|
|
DROP TABLE IF EXISTS "commInterpretation";
|
211 |
|
|
|
212 |
|
|
CREATE TABLE "commInterpretation" (
|
213 |
|
|
"COMMINTERPRETATION_ID" SERIAL NOT NULL,
|
214 |
|
|
"COMMCLASS_ID" INTEGER NOT NULL,
|
215 |
|
|
"COMMCONCEPT_ID" INTEGER,
|
216 |
|
|
"commcode" VARCHAR(34),
|
217 |
|
|
"commname" VARCHAR(200),
|
218 |
|
|
"classFit" VARCHAR(50),
|
219 |
|
|
"classConfidence" VARCHAR(15),
|
220 |
|
|
"commAuthority_ID" INTEGER,
|
221 |
|
|
"notes" TEXT,
|
222 |
|
|
"type" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
223 |
|
|
"nomenclaturalType" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
224 |
|
|
"dba_src_ID" INTEGER,
|
225 |
|
|
"framework_id" INTEGER,
|
226 |
|
|
"primaryDetermination" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
227 |
|
|
"primaryDeterminationStatus" INTEGER DEFAULT 0,
|
228 |
|
|
"primaryComments" TEXT,
|
229 |
|
|
"primaryStartDate" TIMESTAMP,
|
230 |
|
|
"primarySTOPDate" TIMESTAMP,
|
231 |
|
|
"dba_interpretationStatus" VARCHAR(255),
|
232 |
|
|
"previousFit" VARCHAR(50),
|
233 |
|
|
"orderDeterminationForEvent" INTEGER,
|
234 |
|
|
"duplicateDetermination" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
235 |
|
|
PRIMARY KEY ("COMMINTERPRETATION_ID")
|
236 |
|
|
);
|
237 |
|
|
|
238 |
|
|
--
|
239 |
|
|
-- Table structure for table 'commLineage'
|
240 |
|
|
--
|
241 |
|
|
|
242 |
|
|
DROP TABLE IF EXISTS "commLineage";
|
243 |
|
|
|
244 |
|
|
CREATE TABLE "commLineage" (
|
245 |
|
|
"COMMLINEAGE_ID" SERIAL NOT NULL,
|
246 |
|
|
"parentCommStatus_ID" INTEGER NOT NULL,
|
247 |
|
|
"childCommStatus_ID" INTEGER NOT NULL,
|
248 |
|
|
"dba_src_ID" INTEGER,
|
249 |
|
|
PRIMARY KEY ("COMMLINEAGE_ID")
|
250 |
|
|
);
|
251 |
|
|
|
252 |
|
|
--
|
253 |
|
|
-- Table structure for table 'commName'
|
254 |
|
|
--
|
255 |
|
|
|
256 |
|
|
DROP TABLE IF EXISTS "commName";
|
257 |
|
|
|
258 |
|
|
CREATE TABLE "commName" (
|
259 |
|
|
"COMMNAME_ID" SERIAL NOT NULL,
|
260 |
|
|
"commName" TEXT NOT NULL,
|
261 |
|
|
"reference_ID" INTEGER,
|
262 |
|
|
"dateEntered" TIMESTAMP,
|
263 |
|
|
"dba_src_ID" INTEGER,
|
264 |
|
|
PRIMARY KEY ("COMMNAME_ID")
|
265 |
|
|
);
|
266 |
|
|
|
267 |
|
|
--
|
268 |
|
|
-- Table structure for table 'commStatus'
|
269 |
|
|
--
|
270 |
|
|
|
271 |
|
|
DROP TABLE IF EXISTS "commStatus";
|
272 |
|
|
|
273 |
|
|
CREATE TABLE "commStatus" (
|
274 |
|
|
"COMMSTATUS_ID" SERIAL NOT NULL,
|
275 |
|
|
"COMMCONCEPT_ID" INTEGER NOT NULL,
|
276 |
|
|
"reference_ID" INTEGER,
|
277 |
|
|
"commConceptStatus" VARCHAR(20) NOT NULL,
|
278 |
|
|
"commParent_ID" INTEGER,
|
279 |
|
|
"commLevel" VARCHAR(80),
|
280 |
|
|
"startDate" TIMESTAMP NOT NULL,
|
281 |
|
|
"stopDate" TIMESTAMP,
|
282 |
|
|
"commPartyComments" TEXT,
|
283 |
|
|
"PARTY_ID" INTEGER NOT NULL,
|
284 |
|
|
"dba_src_ID" INTEGER,
|
285 |
|
|
"accessionCode" VARCHAR(100),
|
286 |
|
|
PRIMARY KEY ("COMMSTATUS_ID")
|
287 |
|
|
);
|
288 |
|
|
|
289 |
|
|
--
|
290 |
|
|
-- Table structure for table 'commUsage'
|
291 |
|
|
--
|
292 |
|
|
|
293 |
|
|
DROP TABLE IF EXISTS "commUsage";
|
294 |
|
|
|
295 |
|
|
CREATE TABLE "commUsage" (
|
296 |
|
|
"COMMUSAGE_ID" SERIAL NOT NULL,
|
297 |
|
|
"COMMNAME_ID" INTEGER NOT NULL,
|
298 |
|
|
"commName" TEXT,
|
299 |
|
|
"COMMCONCEPT_ID" INTEGER,
|
300 |
|
|
"usageStart" TIMESTAMP,
|
301 |
|
|
"usageStop" TIMESTAMP,
|
302 |
|
|
"commNameStatus" VARCHAR(20),
|
303 |
|
|
"classSystem" VARCHAR(50),
|
304 |
|
|
"PARTY_ID" INTEGER,
|
305 |
|
|
"COMMSTATUS_ID" INTEGER,
|
306 |
|
|
"dba_src_ID" INTEGER,
|
307 |
|
|
PRIMARY KEY ("COMMUSAGE_ID")
|
308 |
|
|
);
|
309 |
|
|
|
310 |
|
|
--
|
311 |
|
|
-- Table structure for table 'coverIndex'
|
312 |
|
|
--
|
313 |
|
|
|
314 |
|
|
DROP TABLE IF EXISTS "coverIndex";
|
315 |
|
|
|
316 |
|
|
CREATE TABLE "coverIndex" (
|
317 |
|
|
"COVERINDEX_ID" SERIAL NOT NULL,
|
318 |
|
|
"COVERMETHOD_ID" INTEGER NOT NULL,
|
319 |
|
|
"coverCode" VARCHAR(10) NOT NULL,
|
320 |
|
|
"upperLimit" DOUBLE PRECISION NULL,
|
321 |
|
|
"lowerLimit" DOUBLE PRECISION NULL,
|
322 |
|
|
"coverPercent" DOUBLE PRECISION /*NULL*/ NOT NULL,
|
323 |
|
|
"indexDescription" TEXT,
|
324 |
|
|
"dba_src_ID" INTEGER,
|
325 |
|
|
PRIMARY KEY ("COVERINDEX_ID")
|
326 |
|
|
);
|
327 |
|
|
|
328 |
|
|
--
|
329 |
|
|
-- Table structure for table 'coverMethod'
|
330 |
|
|
--
|
331 |
|
|
|
332 |
|
|
DROP TABLE IF EXISTS "coverMethod";
|
333 |
|
|
|
334 |
|
|
CREATE TABLE "coverMethod" (
|
335 |
|
|
"COVERMETHOD_ID" SERIAL NOT NULL,
|
336 |
|
|
"reference_ID" INTEGER,
|
337 |
|
|
"coverType" VARCHAR(30) NOT NULL,
|
338 |
|
|
"coverEstimationMethod" VARCHAR(80),
|
339 |
|
|
"accessionCode" VARCHAR(100),
|
340 |
|
|
"dba_src_ID" INTEGER,
|
341 |
|
|
PRIMARY KEY ("COVERMETHOD_ID")
|
342 |
|
|
);
|
343 |
|
|
|
344 |
|
|
--
|
345 |
|
|
-- Table structure for table 'cust_cvs_SoilDepth'
|
346 |
|
|
--
|
347 |
|
|
|
348 |
|
|
DROP TABLE IF EXISTS "cust_cvs_SoilDepth";
|
349 |
|
|
|
350 |
|
|
CREATE TABLE "cust_cvs_SoilDepth" (
|
351 |
|
|
"DepthID" SERIAL NOT NULL,
|
352 |
|
|
"observation_ID" INTEGER,
|
353 |
|
|
"module" VARCHAR(4),
|
354 |
|
|
"corner" VARCHAR(4),
|
355 |
|
|
"depth" DOUBLE PRECISION NULL,
|
356 |
|
|
PRIMARY KEY ("DepthID")
|
357 |
|
|
);
|
358 |
|
|
|
359 |
|
|
--
|
360 |
|
|
-- Table structure for table 'cvs_taxonAlt_translate'
|
361 |
|
|
--
|
362 |
|
|
|
363 |
|
|
DROP TABLE IF EXISTS "cvs_taxonAlt_translate";
|
364 |
|
|
|
365 |
|
|
CREATE TABLE "cvs_taxonAlt_translate" (
|
366 |
|
|
"CVS_taxonAlt_ID" SERIAL NOT NULL,
|
367 |
|
|
"SppID" INTEGER,
|
368 |
|
|
"sciNAmeComplex" VARCHAR(200),
|
369 |
|
|
"sciNAme" VARCHAR(200),
|
370 |
|
|
"plantAccessionCode" VARCHAR(80),
|
371 |
|
|
PRIMARY KEY ("CVS_taxonAlt_ID")
|
372 |
|
|
);
|
373 |
|
|
|
374 |
|
|
--
|
375 |
|
|
-- Table structure for table 'definedValue'
|
376 |
|
|
--
|
377 |
|
|
|
378 |
|
|
DROP TABLE IF EXISTS "definedValue";
|
379 |
|
|
|
380 |
|
|
CREATE TABLE "definedValue" (
|
381 |
|
|
"DEFINEDVALUE_ID" SERIAL NOT NULL,
|
382 |
|
|
"USERDEFINED_ID" INTEGER NOT NULL,
|
383 |
|
|
"tableRecord_ID" INTEGER NOT NULL,
|
384 |
|
|
"definedValue" TEXT NOT NULL,
|
385 |
|
|
"dba_src_ID" INTEGER,
|
386 |
|
|
PRIMARY KEY ("DEFINEDVALUE_ID")
|
387 |
|
|
);
|
388 |
|
|
|
389 |
|
|
--
|
390 |
|
|
-- Table structure for table 'disturbanceObs'
|
391 |
|
|
--
|
392 |
|
|
|
393 |
|
|
DROP TABLE IF EXISTS "disturbanceObs";
|
394 |
|
|
|
395 |
|
|
CREATE TABLE "disturbanceObs" (
|
396 |
|
|
"disturbanceObs_ID" SERIAL NOT NULL,
|
397 |
|
|
"OBSERVATION_ID" INTEGER NOT NULL,
|
398 |
|
|
"disturbanceType" VARCHAR(30) NOT NULL,
|
399 |
|
|
"disturbanceIntensity" VARCHAR(30),
|
400 |
|
|
"disturbanceAge" DOUBLE PRECISION NULL,
|
401 |
|
|
"disturbanceExtent" DOUBLE PRECISION NULL,
|
402 |
|
|
"disturbanceComment" TEXT,
|
403 |
|
|
"dba_src_ID" INTEGER,
|
404 |
|
|
PRIMARY KEY ("disturbanceObs_ID")
|
405 |
|
|
);
|
406 |
|
|
|
407 |
|
|
--
|
408 |
|
|
-- Table structure for table 'embargo'
|
409 |
|
|
--
|
410 |
|
|
|
411 |
|
|
DROP TABLE IF EXISTS "embargo";
|
412 |
|
|
|
413 |
|
|
CREATE TABLE "embargo" (
|
414 |
|
|
"embargo_ID" SERIAL NOT NULL,
|
415 |
|
|
"plot_ID" INTEGER NOT NULL,
|
416 |
|
|
"embargoReason" TEXT NOT NULL,
|
417 |
|
|
"embargoStart" TIMESTAMP NOT NULL,
|
418 |
|
|
"embargoStop" TIMESTAMP NOT NULL,
|
419 |
|
|
"defaultStatus" INTEGER NOT NULL,
|
420 |
|
|
"dba_src_ID" INTEGER,
|
421 |
|
|
PRIMARY KEY ("embargo_ID")
|
422 |
|
|
);
|
423 |
|
|
|
424 |
|
|
--
|
425 |
|
|
-- Table structure for table 'entry_CarSpList'
|
426 |
|
|
--
|
427 |
|
|
|
428 |
|
|
DROP TABLE IF EXISTS "entry_CarSpList";
|
429 |
|
|
|
430 |
|
|
CREATE TABLE "entry_CarSpList" (
|
431 |
|
|
"sppID" SERIAL NOT NULL,
|
432 |
|
|
"FAMILY" VARCHAR(255),
|
433 |
|
|
"GENUS" VARCHAR(255),
|
434 |
|
|
"X" VARCHAR(5),
|
435 |
|
|
"SPECIES" VARCHAR(255),
|
436 |
|
|
"TRI" VARCHAR(8),
|
437 |
|
|
"TRI_NAME" VARCHAR(255),
|
438 |
|
|
"QUAD" VARCHAR(8),
|
439 |
|
|
"QUAD_NAME" VARCHAR(255),
|
440 |
|
|
"AUTHOR" VARCHAR(255),
|
441 |
|
|
"SCIENTIFIC_NAME_WITH_AUTHORS" VARCHAR(255),
|
442 |
|
|
"SCIENTIFIC_NAME" VARCHAR(255),
|
443 |
|
|
"NC_Std" DOUBLE PRECISION NULL,
|
444 |
|
|
"NC_CODE" VARCHAR(9),
|
445 |
|
|
"SynCode" VARCHAR(12),
|
446 |
|
|
"SynID" INTEGER,
|
447 |
|
|
"reference_ID" INTEGER,
|
448 |
|
|
"SOURCE" VARCHAR(255),
|
449 |
|
|
"party_ID" INTEGER,
|
450 |
|
|
"perspectiveDate" TIMESTAMP,
|
451 |
|
|
"DUKE_CODE" VARCHAR(5),
|
452 |
|
|
"USDA_CODE" VARCHAR(10),
|
453 |
|
|
"US_Synonym" VARCHAR(255),
|
454 |
|
|
"US_COMMON_NAME" VARCHAR(255),
|
455 |
|
|
"bln_newRec" /*BOOLEAN*/INTEGER DEFAULT E'-1',
|
456 |
|
|
"plantConcept_ID" INTEGER,
|
457 |
|
|
"plantAccessionCode" VARCHAR(255),
|
458 |
|
|
"plantGroupAccessionCodes" TEXT,
|
459 |
|
|
"includeInPicklistNow" /*BOOLEAN*/INTEGER DEFAULT E'-1',
|
460 |
|
|
"USDA_Woody" VARCHAR(2),
|
461 |
|
|
"Woody" VARCHAR(1),
|
462 |
|
|
"Duration" VARCHAR(255),
|
463 |
|
|
"US_Nativity" VARCHAR(255),
|
464 |
|
|
"GrowthForm_extended" VARCHAR(255),
|
465 |
|
|
"GrowthForm_short" VARCHAR(255),
|
466 |
|
|
PRIMARY KEY ("sppID")
|
467 |
|
|
);
|
468 |
|
|
|
469 |
|
|
--
|
470 |
|
|
-- Table structure for table 'entry_cover'
|
471 |
|
|
--
|
472 |
|
|
|
473 |
|
|
DROP TABLE IF EXISTS "entry_cover";
|
474 |
|
|
|
475 |
|
|
CREATE TABLE "entry_cover" (
|
476 |
|
|
"HerbLineID" SERIAL NOT NULL,
|
477 |
|
|
"AlternateOrder" DOUBLE PRECISION NULL,
|
478 |
|
|
"plotID" INTEGER NOT NULL,
|
479 |
|
|
"NC_Code" INTEGER,
|
480 |
|
|
"altReference_ID" INTEGER,
|
481 |
|
|
"unknownSp" VARCHAR(50),
|
482 |
|
|
"CBS_1" VARCHAR(1),
|
483 |
|
|
"CBS_2" VARCHAR(1),
|
484 |
|
|
"CBS_3" VARCHAR(1),
|
485 |
|
|
"CBS_4" VARCHAR(1),
|
486 |
|
|
"CBS_5" VARCHAR(1),
|
487 |
|
|
"CBS_6" VARCHAR(1),
|
488 |
|
|
"CBS_7" VARCHAR(1),
|
489 |
|
|
"CBS_8" VARCHAR(1),
|
490 |
|
|
"CBS_9" VARCHAR(1),
|
491 |
|
|
"CBS_10" VARCHAR(1),
|
492 |
|
|
"CBS_11" VARCHAR(1),
|
493 |
|
|
"CBS_12" VARCHAR(1),
|
494 |
|
|
"col1" VARCHAR(1),
|
495 |
|
|
"col2" VARCHAR(1),
|
496 |
|
|
"col3" VARCHAR(1),
|
497 |
|
|
"col4" VARCHAR(1),
|
498 |
|
|
"col5" VARCHAR(1),
|
499 |
|
|
"col6" VARCHAR(1),
|
500 |
|
|
"col7" VARCHAR(1),
|
501 |
|
|
"col8" VARCHAR(1),
|
502 |
|
|
"col9" VARCHAR(1),
|
503 |
|
|
"col10" VARCHAR(1),
|
504 |
|
|
"col11" VARCHAR(1),
|
505 |
|
|
"col12" VARCHAR(1),
|
506 |
|
|
"col13" VARCHAR(1),
|
507 |
|
|
"col14" VARCHAR(1),
|
508 |
|
|
"col15" VARCHAR(1),
|
509 |
|
|
"col16" VARCHAR(1),
|
510 |
|
|
"col17" VARCHAR(1),
|
511 |
|
|
"col18" VARCHAR(1),
|
512 |
|
|
"col19" VARCHAR(1),
|
513 |
|
|
"col20" VARCHAR(1),
|
514 |
|
|
"avcov" VARCHAR(1),
|
515 |
|
|
"notes" VARCHAR(255),
|
516 |
|
|
"errors" TEXT,
|
517 |
|
|
"NC_Code_History" TEXT,
|
518 |
|
|
"duplicate" INTEGER DEFAULT 0,
|
519 |
|
|
"TreeFillin" VARCHAR(50),
|
520 |
|
|
"userDefined1" VARCHAR(255),
|
521 |
|
|
"userDefined2" VARCHAR(255),
|
522 |
|
|
"userDefined3" VARCHAR(255),
|
523 |
|
|
"userDefined4" VARCHAR(255),
|
524 |
|
|
"userDefined5" VARCHAR(255),
|
525 |
|
|
"userDefined6" VARCHAR(255),
|
526 |
|
|
"userDefined7" VARCHAR(255),
|
527 |
|
|
"userDefined8" VARCHAR(255),
|
528 |
|
|
"userDefined9" VARCHAR(255),
|
529 |
|
|
"userDefined10" VARCHAR(255),
|
530 |
|
|
"userDefined11" VARCHAR(255),
|
531 |
|
|
"userDefined12" VARCHAR(255),
|
532 |
|
|
"userDefined13" VARCHAR(255),
|
533 |
|
|
"userDefined14" VARCHAR(255),
|
534 |
|
|
"userDefined15" VARCHAR(255),
|
535 |
|
|
"userDefined16" VARCHAR(255),
|
536 |
|
|
"log_createDate" TIMESTAMP DEFAULT E'Now()',
|
537 |
|
|
"log_createUser" VARCHAR(50),
|
538 |
|
|
"log_modifiedDate" TIMESTAMP DEFAULT E'Now()',
|
539 |
|
|
"log_modifiedUser" VARCHAR(50),
|
540 |
|
|
"collectionFlag" VARCHAR(1),
|
541 |
|
|
PRIMARY KEY ("HerbLineID")
|
542 |
|
|
);
|
543 |
|
|
|
544 |
|
|
--
|
545 |
|
|
-- Table structure for table 'entry_plots_cover'
|
546 |
|
|
--
|
547 |
|
|
|
548 |
|
|
DROP TABLE IF EXISTS "entry_plots_cover";
|
549 |
|
|
|
550 |
|
|
CREATE TABLE "entry_plots_cover" (
|
551 |
|
|
"plotID" SERIAL NOT NULL,
|
552 |
|
|
"project" INTEGER,
|
553 |
|
|
"team" VARCHAR(6),
|
554 |
|
|
"plot" VARCHAR(12),
|
555 |
|
|
"cvs_level" INTEGER,
|
556 |
|
|
"date" TIMESTAMP,
|
557 |
|
|
"depth" INTEGER,
|
558 |
|
|
"Ares_H" DOUBLE PRECISION NULL,
|
559 |
|
|
"notesPlot" VARCHAR(255),
|
560 |
|
|
"str1" VARCHAR(10) DEFAULT E'H',
|
561 |
|
|
"str2" VARCHAR(10) DEFAULT E'S',
|
562 |
|
|
"str3" VARCHAR(10) DEFAULT E'U',
|
563 |
|
|
"str4" VARCHAR(10) DEFAULT E'C',
|
564 |
|
|
"str5" VARCHAR(10) DEFAULT E'E',
|
565 |
|
|
"str6" VARCHAR(10),
|
566 |
|
|
"str7" VARCHAR(10),
|
567 |
|
|
"str8" VARCHAR(10),
|
568 |
|
|
"str9" VARCHAR(10),
|
569 |
|
|
"str10" VARCHAR(10),
|
570 |
|
|
"str11" VARCHAR(10),
|
571 |
|
|
"str12" VARCHAR(10),
|
572 |
|
|
"head1" VARCHAR(1),
|
573 |
|
|
"head2" VARCHAR(1),
|
574 |
|
|
"head3" VARCHAR(1),
|
575 |
|
|
"head4" VARCHAR(1),
|
576 |
|
|
"head5" VARCHAR(1),
|
577 |
|
|
"head6" VARCHAR(1),
|
578 |
|
|
"head7" VARCHAR(1),
|
579 |
|
|
"head8" VARCHAR(1),
|
580 |
|
|
"head9" VARCHAR(1),
|
581 |
|
|
"head10" VARCHAR(1),
|
582 |
|
|
"head11" VARCHAR(1),
|
583 |
|
|
"head12" VARCHAR(1),
|
584 |
|
|
"head13" VARCHAR(1),
|
585 |
|
|
"head14" VARCHAR(1),
|
586 |
|
|
"head15" VARCHAR(1),
|
587 |
|
|
"head16" VARCHAR(1),
|
588 |
|
|
"head17" VARCHAR(1),
|
589 |
|
|
"head18" VARCHAR(1),
|
590 |
|
|
"head19" VARCHAR(1),
|
591 |
|
|
"head20" VARCHAR(1),
|
592 |
|
|
"headerrors" TEXT,
|
593 |
|
|
"plotSrc" VARCHAR(50),
|
594 |
|
|
"log_pcreateDate" TIMESTAMP DEFAULT E'Now()',
|
595 |
|
|
"log_pcreateUser" VARCHAR(50),
|
596 |
|
|
"log_pmodifiedDate" TIMESTAMP DEFAULT E'Now()',
|
597 |
|
|
"log_pmodifiedUser" VARCHAR(50),
|
598 |
|
|
"vmd_year" INTEGER DEFAULT 0,
|
599 |
|
|
"cp_entry_plotDone" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
600 |
|
|
"cp_yearNum" INTEGER,
|
601 |
|
|
"cp_authorObsCode" VARCHAR(255),
|
602 |
|
|
PRIMARY KEY ("plotID")
|
603 |
|
|
);
|
604 |
|
|
|
605 |
|
|
--
|
606 |
|
|
-- Table structure for table 'entry_plots_stems'
|
607 |
|
|
--
|
608 |
|
|
|
609 |
|
|
DROP TABLE IF EXISTS "entry_plots_stems";
|
610 |
|
|
|
611 |
|
|
CREATE TABLE "entry_plots_stems" (
|
612 |
|
|
"plotID" SERIAL NOT NULL,
|
613 |
|
|
"project" INTEGER,
|
614 |
|
|
"team" VARCHAR(6),
|
615 |
|
|
"plot" VARCHAR(12),
|
616 |
|
|
"cvs_level" INTEGER,
|
617 |
|
|
"date" TIMESTAMP,
|
618 |
|
|
"Ares" DOUBLE PRECISION NULL,
|
619 |
|
|
"PlotSubSeedling" INTEGER,
|
620 |
|
|
"PlotSubSapling" INTEGER,
|
621 |
|
|
"PlotSubTree" INTEGER,
|
622 |
|
|
"SubSamplingNarrative" TEXT,
|
623 |
|
|
"notesPlot" VARCHAR(255),
|
624 |
|
|
"notesPlot_indiv" VARCHAR(255),
|
625 |
|
|
"headerrors" TEXT,
|
626 |
|
|
"minimumDBH" DOUBLE PRECISION NULL,
|
627 |
|
|
"minimumdgh" DOUBLE PRECISION NULL,
|
628 |
|
|
"minimumHt" DOUBLE PRECISION NULL,
|
629 |
|
|
"AllStemsPlanted" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
630 |
|
|
"log_pcreateDate" TIMESTAMP DEFAULT E'Now()',
|
631 |
|
|
"log_pcreateUser" VARCHAR(50),
|
632 |
|
|
"log_pmodifiedDate" TIMESTAMP DEFAULT E'Now()',
|
633 |
|
|
"log_pmodifiedUser" VARCHAR(50),
|
634 |
|
|
"vmd_year" INTEGER DEFAULT 0,
|
635 |
|
|
"cp_entry_plotDone" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
636 |
|
|
"cp_yearNum" INTEGER,
|
637 |
|
|
"cp_authorObsCode" VARCHAR(255),
|
638 |
|
|
"plotXYReversedOrientation" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
639 |
|
|
PRIMARY KEY ("plotID")
|
640 |
|
|
);
|
641 |
|
|
|
642 |
|
|
--
|
643 |
|
|
-- Table structure for table 'entry_stems'
|
644 |
|
|
--
|
645 |
|
|
|
646 |
|
|
DROP TABLE IF EXISTS "entry_stems";
|
647 |
|
|
|
648 |
|
|
CREATE TABLE "entry_stems" (
|
649 |
|
|
"TreeLineID" SERIAL NOT NULL,
|
650 |
|
|
"AlternateOrder" DOUBLE PRECISION NULL,
|
651 |
|
|
"plotID" INTEGER NOT NULL,
|
652 |
|
|
"NC_Code" INTEGER,
|
653 |
|
|
"altReference_ID" INTEGER,
|
654 |
|
|
"unknownSp" VARCHAR(50),
|
655 |
|
|
"Module" VARCHAR(2),
|
656 |
|
|
"isPlanted" VARCHAR(2),
|
657 |
|
|
"Subseedling" INTEGER,
|
658 |
|
|
"CHt_0_50" INTEGER DEFAULT 0,
|
659 |
|
|
"CHt_50_100" INTEGER DEFAULT 0,
|
660 |
|
|
"CHt_100_137" INTEGER DEFAULT 0,
|
661 |
|
|
"SubSapling" INTEGER,
|
662 |
|
|
"C0_1" INTEGER NOT NULL DEFAULT 0,
|
663 |
|
|
"C1_2" INTEGER NOT NULL DEFAULT 0,
|
664 |
|
|
"SubTree" INTEGER,
|
665 |
|
|
"C2Plus" INTEGER NOT NULL DEFAULT 0,
|
666 |
|
|
"C5Plus" INTEGER NOT NULL DEFAULT 0,
|
667 |
|
|
"C10Plus" INTEGER NOT NULL DEFAULT 0,
|
668 |
|
|
"C15Plus" INTEGER NOT NULL DEFAULT 0,
|
669 |
|
|
"C20Plus" INTEGER NOT NULL DEFAULT 0,
|
670 |
|
|
"C25Plus" INTEGER NOT NULL DEFAULT 0,
|
671 |
|
|
"C30Plus" INTEGER NOT NULL DEFAULT 0,
|
672 |
|
|
"C35Plus" INTEGER NOT NULL DEFAULT 0,
|
673 |
|
|
"BigStem1" INTEGER,
|
674 |
|
|
"BigStem2" INTEGER,
|
675 |
|
|
"BigStem3" INTEGER,
|
676 |
|
|
"BigStem4" INTEGER,
|
677 |
|
|
"BigStem5" INTEGER,
|
678 |
|
|
"BigStem6" INTEGER,
|
679 |
|
|
"BigStem7" INTEGER,
|
680 |
|
|
"BigStem8" INTEGER,
|
681 |
|
|
"BigStem9" INTEGER,
|
682 |
|
|
"BigStem10" INTEGER,
|
683 |
|
|
"BigStem11" INTEGER,
|
684 |
|
|
"BigStem12" INTEGER,
|
685 |
|
|
"Notes" VARCHAR(255),
|
686 |
|
|
"errors" TEXT,
|
687 |
|
|
"NC_Code_History" TEXT,
|
688 |
|
|
"duplicate" INTEGER DEFAULT 0,
|
689 |
|
|
"TreeSummarySamplingCase" DOUBLE PRECISION NULL,
|
690 |
|
|
"IsIndividualRecord" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
691 |
|
|
"stemIDCode" VARCHAR(20),
|
692 |
|
|
"stemSource" VARCHAR(10),
|
693 |
|
|
"stemHealth" VARCHAR(50),
|
694 |
|
|
"stemComment" VARCHAR(200),
|
695 |
|
|
"stemX" DOUBLE PRECISION NULL,
|
696 |
|
|
"stemY" DOUBLE PRECISION NULL,
|
697 |
|
|
"dgh" DOUBLE PRECISION NULL,
|
698 |
|
|
"Height" DOUBLE PRECISION NULL,
|
699 |
|
|
"DBH" DOUBLE PRECISION NULL,
|
700 |
|
|
"resprout" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
701 |
|
|
"userDefined1" VARCHAR(255),
|
702 |
|
|
"userDefined2" VARCHAR(255),
|
703 |
|
|
"userDefined3" VARCHAR(255),
|
704 |
|
|
"userDefined4" VARCHAR(255),
|
705 |
|
|
"userDefined5" VARCHAR(255),
|
706 |
|
|
"userDefined6" VARCHAR(255),
|
707 |
|
|
"userDefined7" VARCHAR(255),
|
708 |
|
|
"userDefined8" VARCHAR(255),
|
709 |
|
|
"userDefined9" VARCHAR(255),
|
710 |
|
|
"userDefined10" VARCHAR(255),
|
711 |
|
|
"userDefined11" VARCHAR(255),
|
712 |
|
|
"userDefined12" VARCHAR(255),
|
713 |
|
|
"userDefined13" VARCHAR(255),
|
714 |
|
|
"userDefined14" VARCHAR(255),
|
715 |
|
|
"userDefined15" VARCHAR(255),
|
716 |
|
|
"userDefined16" VARCHAR(255),
|
717 |
|
|
"record_src" VARCHAR(50),
|
718 |
|
|
"log_createDate" TIMESTAMP DEFAULT E'Now()',
|
719 |
|
|
"log_createUser" VARCHAR(50),
|
720 |
|
|
"log_modifiedDate" TIMESTAMP DEFAULT E'Now()',
|
721 |
|
|
"log_modifiedUser" VARCHAR(50),
|
722 |
|
|
"vmdMapSequence" INTEGER,
|
723 |
|
|
"vmd_recoverySortOrder" TIMESTAMP,
|
724 |
|
|
PRIMARY KEY ("TreeLineID")
|
725 |
|
|
);
|
726 |
|
|
|
727 |
|
|
--
|
728 |
|
|
-- Table structure for table 'entryToolQueue'
|
729 |
|
|
--
|
730 |
|
|
|
731 |
|
|
DROP TABLE IF EXISTS "entryToolQueue";
|
732 |
|
|
|
733 |
|
|
CREATE TABLE "entryToolQueue" (
|
734 |
|
|
"entryToolQueue_ID" SERIAL NOT NULL,
|
735 |
|
|
"EntrytoolFileName" VARCHAR(255),
|
736 |
|
|
"etStatus_ID" INTEGER,
|
737 |
|
|
"originalETName" VARCHAR(255),
|
738 |
|
|
"Emailer" VARCHAR(255),
|
739 |
|
|
"EmailAddress" VARCHAR(255),
|
740 |
|
|
"batch" VARCHAR(255),
|
741 |
|
|
"ProjectNames" VARCHAR(255),
|
742 |
|
|
"countProjects" INTEGER,
|
743 |
|
|
"projectCodes" VARCHAR(255),
|
744 |
|
|
"plots" DOUBLE PRECISION NULL,
|
745 |
|
|
"calendarYears" VARCHAR(255),
|
746 |
|
|
"newplots" INTEGER,
|
747 |
|
|
"chkProjectNumber" VARCHAR(255),
|
748 |
|
|
"ReceivedDate" TIMESTAMP,
|
749 |
|
|
"AcknEmailSentDate" TIMESTAMP,
|
750 |
|
|
"ImportedToNewETDate" TIMESTAMP,
|
751 |
|
|
"ErrorDetails" TEXT,
|
752 |
|
|
"ErrorCount" DOUBLE PRECISION NULL,
|
753 |
|
|
"ErrorsIgnoredCount" INTEGER,
|
754 |
|
|
"userMustResubmitDB" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
755 |
|
|
"UpdLatLong" TIMESTAMP,
|
756 |
|
|
"MapURL" TEXT,
|
757 |
|
|
"SomeErrorsFixed" TIMESTAMP,
|
758 |
|
|
"UserEmailed" TIMESTAMP,
|
759 |
|
|
"UserFixedErrs" TIMESTAMP,
|
760 |
|
|
"usersFixesApplied" TIMESTAMP,
|
761 |
|
|
"UnfoldDate" TIMESTAMP,
|
762 |
|
|
"migrateToArchiveDBDate" TIMESTAMP,
|
763 |
|
|
"FilesArchived" TIMESTAMP,
|
764 |
|
|
"NOTES" VARCHAR(255),
|
765 |
|
|
"NotesToSender2" VARCHAR(255),
|
766 |
|
|
"etInitPath" VARCHAR(255),
|
767 |
|
|
"etImportedPath" VARCHAR(255),
|
768 |
|
|
"migrationGUID" VARCHAR(255),
|
769 |
|
|
PRIMARY KEY ("entryToolQueue_ID")
|
770 |
|
|
);
|
771 |
|
|
|
772 |
|
|
--
|
773 |
|
|
-- Table structure for table 'entrytoolQueueProject'
|
774 |
|
|
--
|
775 |
|
|
|
776 |
|
|
DROP TABLE IF EXISTS "entrytoolQueueProject";
|
777 |
|
|
|
778 |
|
|
CREATE TABLE "entrytoolQueueProject" (
|
779 |
|
|
"entryToolQueueProject_ID" SERIAL NOT NULL,
|
780 |
|
|
"entryToolQueue_ID" INTEGER,
|
781 |
|
|
"projectCode" VARCHAR(255),
|
782 |
|
|
"projectName" VARCHAR(255),
|
783 |
|
|
"projectAccessionCode" VARCHAR(255),
|
784 |
|
|
"yearAfterProjectEstablishment" INTEGER,
|
785 |
|
|
"projectInArchive" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
786 |
|
|
"plotsInArchiveProject" INTEGER,
|
787 |
|
|
"newPlotsNotInArchive" INTEGER,
|
788 |
|
|
"sampledStart" TIMESTAMP,
|
789 |
|
|
"sampledEnd" TIMESTAMP,
|
790 |
|
|
"obsCount" INTEGER,
|
791 |
|
|
"obsAlreadyInArchive" DOUBLE PRECISION NULL,
|
792 |
|
|
"newObs" INTEGER,
|
793 |
|
|
"newPeople" INTEGER,
|
794 |
|
|
"newTaxa" INTEGER,
|
795 |
|
|
"projectYrErrCount" INTEGER,
|
796 |
|
|
"projectYrErrsIgnored" INTEGER,
|
797 |
|
|
PRIMARY KEY ("entryToolQueueProject_ID")
|
798 |
|
|
);
|
799 |
|
|
|
800 |
|
|
--
|
801 |
|
|
-- Table structure for table 'fieldList'
|
802 |
|
|
--
|
803 |
|
|
|
804 |
|
|
DROP TABLE IF EXISTS "fieldList";
|
805 |
|
|
|
806 |
|
|
CREATE TABLE "fieldList" (
|
807 |
|
|
"fieldList_ID" SERIAL NOT NULL,
|
808 |
|
|
"tableName" VARCHAR(50),
|
809 |
|
|
"fieldName" VARCHAR(50),
|
810 |
|
|
"listValue" VARCHAR(255),
|
811 |
|
|
"valueDesc" TEXT,
|
812 |
|
|
"sortOrd" DOUBLE PRECISION NULL,
|
813 |
|
|
"entry_displayValue" VARCHAR(255),
|
814 |
|
|
"entry_description" TEXT,
|
815 |
|
|
"entry_hideValue" INTEGER,
|
816 |
|
|
"entry_sortingOrder" DOUBLE PRECISION NULL,
|
817 |
|
|
"entry_newRecord" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
818 |
|
|
"entry_obsoleteValue" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
819 |
|
|
"entry_obsoleteUseInstead" VARCHAR(255),
|
820 |
|
|
PRIMARY KEY ("fieldList_ID")
|
821 |
|
|
);
|
822 |
|
|
|
823 |
|
|
--
|
824 |
|
|
-- Table structure for table 'graphic'
|
825 |
|
|
--
|
826 |
|
|
|
827 |
|
|
DROP TABLE IF EXISTS "graphic";
|
828 |
|
|
|
829 |
|
|
CREATE TABLE "graphic" (
|
830 |
|
|
"GRAPHIC_ID" SERIAL NOT NULL,
|
831 |
|
|
"OBSERVATION_ID" INTEGER NOT NULL,
|
832 |
|
|
"graphicName" VARCHAR(30),
|
833 |
|
|
"graphicLocation" TEXT,
|
834 |
|
|
"graphicDescription" TEXT,
|
835 |
|
|
"graphicType" VARCHAR(20),
|
836 |
|
|
"graphicDate" TIMESTAMP,
|
837 |
|
|
"graphicData" TEXT,
|
838 |
|
|
"dba_src_ID" INTEGER,
|
839 |
|
|
"accessionCode" VARCHAR(100),
|
840 |
|
|
PRIMARY KEY ("GRAPHIC_ID")
|
841 |
|
|
);
|
842 |
|
|
|
843 |
|
|
--
|
844 |
|
|
-- Table structure for table 'migrationEntity'
|
845 |
|
|
--
|
846 |
|
|
|
847 |
|
|
DROP TABLE IF EXISTS "migrationEntity";
|
848 |
|
|
|
849 |
|
|
CREATE TABLE "migrationEntity" (
|
850 |
|
|
"migrationEntity_ID" SERIAL NOT NULL,
|
851 |
|
|
"migrationPkg_ID" INTEGER,
|
852 |
|
|
"tableName" VARCHAR(100),
|
853 |
|
|
"record_ID" INTEGER,
|
854 |
|
|
"sourceRecord_ID" INTEGER,
|
855 |
|
|
"entryDBPath" TEXT,
|
856 |
|
|
"migrationDBPath" TEXT,
|
857 |
|
|
PRIMARY KEY ("migrationEntity_ID")
|
858 |
|
|
);
|
859 |
|
|
|
860 |
|
|
--
|
861 |
|
|
-- Table structure for table 'migrationPackage'
|
862 |
|
|
--
|
863 |
|
|
|
864 |
|
|
DROP TABLE IF EXISTS "migrationPackage";
|
865 |
|
|
|
866 |
|
|
CREATE TABLE "migrationPackage" (
|
867 |
|
|
"migrationPkg_ID" SERIAL NOT NULL,
|
868 |
|
|
"migrationGUID" VARCHAR(38),
|
869 |
|
|
"migrationName" VARCHAR(100),
|
870 |
|
|
"migrationDescription" TEXT,
|
871 |
|
|
"userName" VARCHAR(50),
|
872 |
|
|
"archiveFullPath" TEXT,
|
873 |
|
|
"entryFullPath" TEXT,
|
874 |
|
|
"migrationDBFullPath" TEXT,
|
875 |
|
|
"migrationDateStart" TIMESTAMP,
|
876 |
|
|
"migrationDateEnd" VARCHAR(50),
|
877 |
|
|
"totalRecordsAdded" INTEGER,
|
878 |
|
|
"plotsAdded" INTEGER,
|
879 |
|
|
"observationsAdded" INTEGER,
|
880 |
|
|
PRIMARY KEY ("migrationPkg_ID")
|
881 |
|
|
);
|
882 |
|
|
|
883 |
|
|
--
|
884 |
|
|
-- Table structure for table 'namedPlace'
|
885 |
|
|
--
|
886 |
|
|
|
887 |
|
|
DROP TABLE IF EXISTS "namedPlace";
|
888 |
|
|
|
889 |
|
|
CREATE TABLE "namedPlace" (
|
890 |
|
|
"NAMEDPLACE_ID" SERIAL NOT NULL,
|
891 |
|
|
"placeSystem" VARCHAR(50),
|
892 |
|
|
"placeName" VARCHAR(100) NOT NULL,
|
893 |
|
|
"placeDescription" TEXT,
|
894 |
|
|
"placeCode" VARCHAR(15),
|
895 |
|
|
"owner" VARCHAR(100),
|
896 |
|
|
"reference_ID" INTEGER,
|
897 |
|
|
"accessionCode" VARCHAR(100),
|
898 |
|
|
"dba_src_ID" INTEGER,
|
899 |
|
|
PRIMARY KEY ("NAMEDPLACE_ID")
|
900 |
|
|
);
|
901 |
|
|
|
902 |
|
|
--
|
903 |
|
|
-- Table structure for table 'namedPlaceCorrelation'
|
904 |
|
|
--
|
905 |
|
|
|
906 |
|
|
DROP TABLE IF EXISTS "namedPlaceCorrelation";
|
907 |
|
|
|
908 |
|
|
CREATE TABLE "namedPlaceCorrelation" (
|
909 |
|
|
"NAMEDPLACECORRELATION_ID" SERIAL NOT NULL,
|
910 |
|
|
"PARENTPLACE_ID" INTEGER NOT NULL,
|
911 |
|
|
"CHILDPLACE_ID" INTEGER NOT NULL,
|
912 |
|
|
"placeConvergence" VARCHAR(20) NOT NULL,
|
913 |
|
|
PRIMARY KEY ("NAMEDPLACECORRELATION_ID")
|
914 |
|
|
);
|
915 |
|
|
|
916 |
|
|
--
|
917 |
|
|
-- Table structure for table 'note'
|
918 |
|
|
--
|
919 |
|
|
|
920 |
|
|
DROP TABLE IF EXISTS "note";
|
921 |
|
|
|
922 |
|
|
CREATE TABLE "note" (
|
923 |
|
|
"NOTE_ID" SERIAL NOT NULL,
|
924 |
|
|
"NOTELINK_ID" INTEGER NOT NULL,
|
925 |
|
|
"PARTY_ID" INTEGER,
|
926 |
|
|
"ROLE_ID" INTEGER,
|
927 |
|
|
"noteDate" TIMESTAMP,
|
928 |
|
|
"noteType" VARCHAR(20) NOT NULL,
|
929 |
|
|
"noteText" TEXT NOT NULL,
|
930 |
|
|
"dba_src_ID" INTEGER,
|
931 |
|
|
"accessionCode" VARCHAR(100),
|
932 |
|
|
PRIMARY KEY ("NOTE_ID")
|
933 |
|
|
);
|
934 |
|
|
|
935 |
|
|
--
|
936 |
|
|
-- Table structure for table 'noteLink'
|
937 |
|
|
--
|
938 |
|
|
|
939 |
|
|
DROP TABLE IF EXISTS "noteLink";
|
940 |
|
|
|
941 |
|
|
CREATE TABLE "noteLink" (
|
942 |
|
|
"NOTELINK_ID" SERIAL NOT NULL,
|
943 |
|
|
"tableName" VARCHAR(50) NOT NULL,
|
944 |
|
|
"attributeName" VARCHAR(50),
|
945 |
|
|
"tableRecord" INTEGER NOT NULL,
|
946 |
|
|
"dba_src_ID" INTEGER,
|
947 |
|
|
PRIMARY KEY ("NOTELINK_ID")
|
948 |
|
|
);
|
949 |
|
|
|
950 |
|
|
--
|
951 |
|
|
-- Table structure for table 'observation'
|
952 |
|
|
--
|
953 |
|
|
|
954 |
|
|
DROP TABLE IF EXISTS "observation";
|
955 |
|
|
|
956 |
|
|
CREATE TABLE "observation" (
|
957 |
|
|
"OBSERVATION_ID" SERIAL NOT NULL,
|
958 |
|
|
"PREVIOUSOBS_ID" INTEGER,
|
959 |
|
|
"PLOT_ID" INTEGER NOT NULL,
|
960 |
|
|
"PROJECT_ID" INTEGER,
|
961 |
|
|
"authorObsCode" VARCHAR(255),
|
962 |
|
|
"obsStartDate" TIMESTAMP,
|
963 |
|
|
"obsEndDate" TIMESTAMP,
|
964 |
|
|
"dateAccuracy" VARCHAR(30),
|
965 |
|
|
"dateEntered" TIMESTAMP DEFAULT E'=Now()',
|
966 |
|
|
"COVERMETHOD_ID" INTEGER,
|
967 |
|
|
"coverDispersion" VARCHAR(30),
|
968 |
|
|
"autoTaxonCover" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
969 |
|
|
"STRATUMMETHOD_ID" INTEGER,
|
970 |
|
|
"methodNarrative" TEXT,
|
971 |
|
|
"taxonObservationArea" DOUBLE PRECISION NULL,
|
972 |
|
|
"stemSizeLimit" DOUBLE PRECISION NULL,
|
973 |
|
|
"stemObservationArea" DOUBLE PRECISION NULL,
|
974 |
|
|
"stemSampleMethod" VARCHAR(30),
|
975 |
|
|
"originalData" TEXT,
|
976 |
|
|
"effortLevel" VARCHAR(30),
|
977 |
|
|
"plotValidationLevel" INTEGER,
|
978 |
|
|
"floristicQuality" VARCHAR(30),
|
979 |
|
|
"bryophyteQuality" VARCHAR(30),
|
980 |
|
|
"lichenQuality" VARCHAR(30),
|
981 |
|
|
"observationNarrative" TEXT,
|
982 |
|
|
"landscapeNarrative" TEXT,
|
983 |
|
|
"homogeneity" VARCHAR(255),
|
984 |
|
|
"phenologicAspect" VARCHAR(255),
|
985 |
|
|
"representativeness" VARCHAR(255),
|
986 |
|
|
"standMaturity" VARCHAR(255),
|
987 |
|
|
"successionalStatus" TEXT,
|
988 |
|
|
"basalArea" DOUBLE PRECISION NULL,
|
989 |
|
|
"hydrologicRegime" VARCHAR(255),
|
990 |
|
|
"soilMoistureRegime" VARCHAR(255),
|
991 |
|
|
"soilDrainage" VARCHAR(255),
|
992 |
|
|
"waterSalinity" VARCHAR(255),
|
993 |
|
|
"waterDepth" DOUBLE PRECISION NULL,
|
994 |
|
|
"shoreDistance" DOUBLE PRECISION NULL,
|
995 |
|
|
"soilDepth" DOUBLE PRECISION NULL,
|
996 |
|
|
"organicDepth" DOUBLE PRECISION NULL,
|
997 |
|
|
"SOILTAXON_ID" INTEGER,
|
998 |
|
|
"soilTaxonSrc" VARCHAR(200),
|
999 |
|
|
"soilTaxonComplex" VARCHAR(255),
|
1000 |
|
|
"soilMapUnit" VARCHAR(255),
|
1001 |
|
|
"percentBedRock" DOUBLE PRECISION NULL,
|
1002 |
|
|
"percentRockGravel" DOUBLE PRECISION NULL,
|
1003 |
|
|
"percentWood" DOUBLE PRECISION NULL,
|
1004 |
|
|
"percentLitter" DOUBLE PRECISION NULL,
|
1005 |
|
|
"percentBareSoil" DOUBLE PRECISION NULL,
|
1006 |
|
|
"percentWater" DOUBLE PRECISION NULL,
|
1007 |
|
|
"percentOther" DOUBLE PRECISION NULL,
|
1008 |
|
|
"nameOther" VARCHAR(30),
|
1009 |
|
|
"treeHt" DOUBLE PRECISION NULL,
|
1010 |
|
|
"shrubHt" DOUBLE PRECISION NULL,
|
1011 |
|
|
"fieldHt" DOUBLE PRECISION NULL,
|
1012 |
|
|
"nonvascularHt" DOUBLE PRECISION NULL,
|
1013 |
|
|
"submergedHt" DOUBLE PRECISION NULL,
|
1014 |
|
|
"treeCover" DOUBLE PRECISION NULL,
|
1015 |
|
|
"shrubCover" DOUBLE PRECISION NULL,
|
1016 |
|
|
"fieldCover" DOUBLE PRECISION NULL,
|
1017 |
|
|
"nonvascularCover" DOUBLE PRECISION NULL,
|
1018 |
|
|
"floatingCover" DOUBLE PRECISION NULL,
|
1019 |
|
|
"submergedCover" DOUBLE PRECISION NULL,
|
1020 |
|
|
"dominantStratum" VARCHAR(40),
|
1021 |
|
|
"growthform1Type" VARCHAR(40),
|
1022 |
|
|
"growthform2Type" VARCHAR(40),
|
1023 |
|
|
"growthform3Type" VARCHAR(40),
|
1024 |
|
|
"growthform1Cover" DOUBLE PRECISION NULL,
|
1025 |
|
|
"growthform2Cover" DOUBLE PRECISION NULL,
|
1026 |
|
|
"growthform3Cover" DOUBLE PRECISION NULL,
|
1027 |
|
|
"totalCover" DOUBLE PRECISION NULL,
|
1028 |
|
|
"accessionCode" VARCHAR(100),
|
1029 |
|
|
"notesPublic" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1030 |
|
|
"notesMgt" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1031 |
|
|
"revisions" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1032 |
|
|
"cust_cvs_CowardinSystem" VARCHAR(100),
|
1033 |
|
|
"cust_cvs_mcnab_LFI_asp" DOUBLE PRECISION NULL,
|
1034 |
|
|
"cust_cvs_mcnab_LFI_45" DOUBLE PRECISION NULL,
|
1035 |
|
|
"cust_cvs_mcnab_LFI_90" DOUBLE PRECISION NULL,
|
1036 |
|
|
"cust_cvs_mcnab_LFI_135" DOUBLE PRECISION NULL,
|
1037 |
|
|
"cust_cvs_mcnab_LFI_180" DOUBLE PRECISION NULL,
|
1038 |
|
|
"cust_cvs_mcnab_LFI_225" DOUBLE PRECISION NULL,
|
1039 |
|
|
"cust_cvs_mcnab_LFI_270" DOUBLE PRECISION NULL,
|
1040 |
|
|
"cust_cvs_mcnab_LFI_315" DOUBLE PRECISION NULL,
|
1041 |
|
|
"cust_cvs_mcnab_TSI_asp" DOUBLE PRECISION NULL,
|
1042 |
|
|
"cust_cvs_mcnab_TSI_45" DOUBLE PRECISION NULL,
|
1043 |
|
|
"cust_cvs_mcnab_TSI_90" DOUBLE PRECISION NULL,
|
1044 |
|
|
"cust_cvs_mcnab_TSI_135" DOUBLE PRECISION NULL,
|
1045 |
|
|
"cust_cvs_mcnab_TSI_180" DOUBLE PRECISION NULL,
|
1046 |
|
|
"cust_cvs_mcnab_TSI_225" DOUBLE PRECISION NULL,
|
1047 |
|
|
"cust_cvs_mcnab_TSI_270" DOUBLE PRECISION NULL,
|
1048 |
|
|
"cust_cvs_mcnab_TSI_315" DOUBLE PRECISION NULL,
|
1049 |
|
|
"cust_cvs_mcnab_LFI" DOUBLE PRECISION NULL,
|
1050 |
|
|
"cust_cvs_mcnab_TSI" DOUBLE PRECISION NULL,
|
1051 |
|
|
"cust_cvs_LeafType" VARCHAR(100),
|
1052 |
|
|
"cust_cvs_LeafPhenology" VARCHAR(100),
|
1053 |
|
|
"cust_cvs_CanopyHeight" DOUBLE PRECISION NULL,
|
1054 |
|
|
"cust_cvs_compassType" VARCHAR(10),
|
1055 |
|
|
"cust_cvs_LocationSource" VARCHAR(50),
|
1056 |
|
|
"cust_cvs_GPSLocationX" DOUBLE PRECISION NULL,
|
1057 |
|
|
"cust_cvs_GPSLocationY" DOUBLE PRECISION NULL,
|
1058 |
|
|
"cust_cvs_Ownership" VARCHAR(100),
|
1059 |
|
|
"cust_cvs_taxaRichness" INTEGER,
|
1060 |
|
|
"cust_cvs_lengthSoilProbe" DOUBLE PRECISION NULL,
|
1061 |
|
|
"cust_cvs_percentHistosol" DOUBLE PRECISION NULL,
|
1062 |
|
|
"cust_cvs_percentBedrock" DOUBLE PRECISION NULL,
|
1063 |
|
|
"cust_cvs_percentBoulder" DOUBLE PRECISION NULL,
|
1064 |
|
|
"cust_cvs_percentGravelCobble" DOUBLE PRECISION NULL,
|
1065 |
|
|
"cust_cvs_percentMineralSoil" DOUBLE PRECISION NULL,
|
1066 |
|
|
"cust_cvs_percentCWD" DOUBLE PRECISION NULL,
|
1067 |
|
|
"cust_cvs_percentFWD" DOUBLE PRECISION NULL,
|
1068 |
|
|
"cust_cvs_percentDuff" DOUBLE PRECISION NULL,
|
1069 |
|
|
"cust_cvs_percentLitter" DOUBLE PRECISION NULL,
|
1070 |
|
|
"cust_cvs_percentNonVasc" DOUBLE PRECISION NULL,
|
1071 |
|
|
"cust_cvs_percentWater" DOUBLE PRECISION NULL,
|
1072 |
|
|
"cust_cvs_percentOther" DOUBLE PRECISION NULL,
|
1073 |
|
|
"cust_cvs_percentOtherName" VARCHAR(80),
|
1074 |
|
|
"cust_cvs_samplingLevel" INTEGER,
|
1075 |
|
|
"cust_cvs_postDsgPoly" VARCHAR(255),
|
1076 |
|
|
"cust_cvs_stemsSampled" INTEGER,
|
1077 |
|
|
"cust_cvs_stemSamplingNarrative" TEXT,
|
1078 |
|
|
"cust_eep_plotLastPlantedDate" TIMESTAMP,
|
1079 |
|
|
"cust_eep_plotNotSampled" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1080 |
|
|
"cust_eep_plotNotSampledReason" TEXT,
|
1081 |
|
|
"entry_ares_herbs" DOUBLE PRECISION NULL,
|
1082 |
|
|
"entry_ares_trees" DOUBLE PRECISION NULL,
|
1083 |
|
|
"entry_currentLandUse" TEXT,
|
1084 |
|
|
"entry_depth" INTEGER,
|
1085 |
|
|
"entry_elevationUnits" INTEGER,
|
1086 |
|
|
"entry_formerLandUse" TEXT,
|
1087 |
|
|
"entry_identificationNarrative" TEXT,
|
1088 |
|
|
"entry_IntensiveModuleList" VARCHAR(10),
|
1089 |
|
|
"entry_moduleSize_Overall" DOUBLE PRECISION NULL,
|
1090 |
|
|
"entry_moduleSizeX" DOUBLE PRECISION NULL,
|
1091 |
|
|
"entry_moduleSizeY" DOUBLE PRECISION NULL,
|
1092 |
|
|
"entry_photosTaken" VARCHAR(255),
|
1093 |
|
|
"entry_physClass" VARCHAR(100),
|
1094 |
|
|
"entry_plot_X" INTEGER,
|
1095 |
|
|
"entry_plot_Y" INTEGER,
|
1096 |
|
|
"entry_soilModulesSampled" VARCHAR(100),
|
1097 |
|
|
"entry_subsequentObsNum" INTEGER,
|
1098 |
|
|
"entry_taxonomicAuthority_ID" INTEGER,
|
1099 |
|
|
"entry_taxonomicAuthorityDate" TIMESTAMP,
|
1100 |
|
|
"entry_team" VARCHAR(6),
|
1101 |
|
|
"entry_plot" VARCHAR(12),
|
1102 |
|
|
"entry_numberOfModules" INTEGER,
|
1103 |
|
|
"errors" TEXT,
|
1104 |
|
|
"dba_src_ID" INTEGER,
|
1105 |
|
|
"dba_notes" TEXT,
|
1106 |
|
|
"numberOfTaxa" INTEGER,
|
1107 |
|
|
UNIQUE ("authorObsCode"),
|
1108 |
|
|
PRIMARY KEY ("OBSERVATION_ID")
|
1109 |
|
|
);
|
1110 |
|
|
|
1111 |
|
|
--
|
1112 |
|
|
-- Table structure for table 'observationContributor'
|
1113 |
|
|
--
|
1114 |
|
|
|
1115 |
|
|
DROP TABLE IF EXISTS "observationContributor";
|
1116 |
|
|
|
1117 |
|
|
CREATE TABLE "observationContributor" (
|
1118 |
|
|
"OBSERVATIONCONTRIBUTOR_ID" SERIAL NOT NULL,
|
1119 |
|
|
"OBSERVATION_ID" INTEGER NOT NULL,
|
1120 |
|
|
"PARTY_ID" INTEGER NOT NULL,
|
1121 |
|
|
"ROLE_ID" INTEGER NOT NULL,
|
1122 |
|
|
"contributionDate" TIMESTAMP,
|
1123 |
|
|
"dba_src_ID" INTEGER,
|
1124 |
|
|
"unsure" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1125 |
|
|
PRIMARY KEY ("OBSERVATIONCONTRIBUTOR_ID")
|
1126 |
|
|
);
|
1127 |
|
|
|
1128 |
|
|
--
|
1129 |
|
|
-- Table structure for table 'observationSynonym'
|
1130 |
|
|
--
|
1131 |
|
|
|
1132 |
|
|
DROP TABLE IF EXISTS "observationSynonym";
|
1133 |
|
|
|
1134 |
|
|
CREATE TABLE "observationSynonym" (
|
1135 |
|
|
"OBSERVATIONSYNONYM_ID" SERIAL NOT NULL,
|
1136 |
|
|
"synonymObservation_ID" INTEGER NOT NULL,
|
1137 |
|
|
"primaryObservation_ID" INTEGER NOT NULL,
|
1138 |
|
|
"PARTY_ID" INTEGER NOT NULL,
|
1139 |
|
|
"ROLE_ID" INTEGER NOT NULL,
|
1140 |
|
|
"classStartDate" TIMESTAMP NOT NULL,
|
1141 |
|
|
"classStopDate" TIMESTAMP,
|
1142 |
|
|
"synonymComment" TEXT,
|
1143 |
|
|
"dba_src_ID" INTEGER,
|
1144 |
|
|
"accessionCode" VARCHAR(100),
|
1145 |
|
|
PRIMARY KEY ("OBSERVATIONSYNONYM_ID")
|
1146 |
|
|
);
|
1147 |
|
|
|
1148 |
|
|
--
|
1149 |
|
|
-- Table structure for table 'old__entry_summaryCommConcept'
|
1150 |
|
|
--
|
1151 |
|
|
|
1152 |
|
|
DROP TABLE IF EXISTS "old__entry_summaryCommConcept";
|
1153 |
|
|
|
1154 |
|
|
CREATE TABLE "old__entry_summaryCommConcept" (
|
1155 |
|
|
"commConcept_ID" SERIAL NOT NULL,
|
1156 |
|
|
"commName" VARCHAR(255),
|
1157 |
|
|
"referenceText" VARCHAR(255),
|
1158 |
|
|
"scientific" VARCHAR(255),
|
1159 |
|
|
"translated" VARCHAR(255),
|
1160 |
|
|
"code" VARCHAR(255),
|
1161 |
|
|
"common" VARCHAR(255),
|
1162 |
|
|
"commLevel" VARCHAR(80),
|
1163 |
|
|
"alliance" VARCHAR(255),
|
1164 |
|
|
"reference_ID" INTEGER,
|
1165 |
|
|
"party_ID" INTEGER,
|
1166 |
|
|
"perspectiveDate" TIMESTAMP,
|
1167 |
|
|
"bln_newRec" /*BOOLEAN*/INTEGER DEFAULT E'-1',
|
1168 |
|
|
"accessionCode" VARCHAR(100),
|
1169 |
|
|
"includeInPicklistNow" /*BOOLEAN*/INTEGER DEFAULT E'-1',
|
1170 |
|
|
"PhysGroup" VARCHAR(255),
|
1171 |
|
|
"FormGroup" VARCHAR(255),
|
1172 |
|
|
"EcolGroup" VARCHAR(255),
|
1173 |
|
|
"4thApproxName" VARCHAR(255),
|
1174 |
|
|
"NatureServeUID" VARCHAR(255),
|
1175 |
|
|
PRIMARY KEY ("commConcept_ID")
|
1176 |
|
|
);
|
1177 |
|
|
|
1178 |
|
|
--
|
1179 |
|
|
-- Table structure for table 'party'
|
1180 |
|
|
--
|
1181 |
|
|
|
1182 |
|
|
DROP TABLE IF EXISTS "party";
|
1183 |
|
|
|
1184 |
|
|
CREATE TABLE "party" (
|
1185 |
|
|
"PARTY_ID" SERIAL NOT NULL,
|
1186 |
|
|
"salutation" VARCHAR(20),
|
1187 |
|
|
"givenName" VARCHAR(50),
|
1188 |
|
|
"middleName" VARCHAR(50),
|
1189 |
|
|
"surName" VARCHAR(50),
|
1190 |
|
|
"suffix" VARCHAR(50),
|
1191 |
|
|
"entry_userInitials" VARCHAR(50),
|
1192 |
|
|
"organizationName" VARCHAR(100),
|
1193 |
|
|
"currentName_ID" INTEGER,
|
1194 |
|
|
"contactInstructions" TEXT,
|
1195 |
|
|
"email" VARCHAR(120),
|
1196 |
|
|
"accessionCode" VARCHAR(100),
|
1197 |
|
|
"partyType" VARCHAR(40),
|
1198 |
|
|
"dba_src_ID" INTEGER,
|
1199 |
|
|
"dba_unsure" VARCHAR(255),
|
1200 |
|
|
PRIMARY KEY ("PARTY_ID")
|
1201 |
|
|
);
|
1202 |
|
|
|
1203 |
|
|
--
|
1204 |
|
|
-- Table structure for table 'partyMember'
|
1205 |
|
|
--
|
1206 |
|
|
|
1207 |
|
|
DROP TABLE IF EXISTS "partyMember";
|
1208 |
|
|
|
1209 |
|
|
CREATE TABLE "partyMember" (
|
1210 |
|
|
"partyMember_ID" SERIAL NOT NULL,
|
1211 |
|
|
"parentParty_ID" INTEGER NOT NULL,
|
1212 |
|
|
"childParty_ID" INTEGER NOT NULL,
|
1213 |
|
|
"role_ID" INTEGER,
|
1214 |
|
|
"memberStart" TIMESTAMP NOT NULL,
|
1215 |
|
|
"memberStop" TIMESTAMP,
|
1216 |
|
|
"dba_src_ID" INTEGER,
|
1217 |
|
|
PRIMARY KEY ("partyMember_ID")
|
1218 |
|
|
);
|
1219 |
|
|
|
1220 |
|
|
--
|
1221 |
|
|
-- Table structure for table 'place'
|
1222 |
|
|
--
|
1223 |
|
|
|
1224 |
|
|
DROP TABLE IF EXISTS "place";
|
1225 |
|
|
|
1226 |
|
|
CREATE TABLE "place" (
|
1227 |
|
|
"PLOTPLACE_ID" SERIAL NOT NULL,
|
1228 |
|
|
"PLOT_ID" INTEGER NOT NULL,
|
1229 |
|
|
"calculated" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1230 |
|
|
"NAMEDPLACE_ID" INTEGER NOT NULL,
|
1231 |
|
|
"dba_src_ID" INTEGER,
|
1232 |
|
|
PRIMARY KEY ("PLOTPLACE_ID")
|
1233 |
|
|
);
|
1234 |
|
|
|
1235 |
|
|
--
|
1236 |
|
|
-- Table structure for table 'plantConcept'
|
1237 |
|
|
--
|
1238 |
|
|
|
1239 |
|
|
DROP TABLE IF EXISTS "plantConcept";
|
1240 |
|
|
|
1241 |
|
|
CREATE TABLE "plantConcept" (
|
1242 |
|
|
"PLANTCONCEPT_ID" SERIAL NOT NULL,
|
1243 |
|
|
"PLANTNAME_ID" INTEGER NOT NULL,
|
1244 |
|
|
"reference_ID" INTEGER NOT NULL,
|
1245 |
|
|
"plantname" VARCHAR(255),
|
1246 |
|
|
"plantNameWithAuthority" VARCHAR(255),
|
1247 |
|
|
"plantCode" VARCHAR(23),
|
1248 |
|
|
"plantDescription" TEXT,
|
1249 |
|
|
"accessionCode" VARCHAR(255),
|
1250 |
|
|
"dba_src_ID" INTEGER,
|
1251 |
|
|
"entry_sppID" INTEGER,
|
1252 |
|
|
"USDAPlantsCode" VARCHAR(255),
|
1253 |
|
|
"VascularPlant" VARCHAR(255),
|
1254 |
|
|
"denorm_kingdom" VARCHAR(255),
|
1255 |
|
|
"denorm_division" VARCHAR(255),
|
1256 |
|
|
"denorm_category" VARCHAR(255),
|
1257 |
|
|
"denorm_family" VARCHAR(255),
|
1258 |
|
|
"denorm_genus" VARCHAR(255),
|
1259 |
|
|
"denorm_species" VARCHAR(255),
|
1260 |
|
|
"denorm_triAbbr" VARCHAR(50),
|
1261 |
|
|
"denorm_triName" VARCHAR(255),
|
1262 |
|
|
"denorm_quadAbbr" VARCHAR(50),
|
1263 |
|
|
"denorm_quadName" VARCHAR(255),
|
1264 |
|
|
"denorm_hybridX" VARCHAR(50),
|
1265 |
|
|
"taxonLevel" VARCHAR(255),
|
1266 |
|
|
"taxonRank" DOUBLE PRECISION NULL,
|
1267 |
|
|
"lowestParentName" VARCHAR(255),
|
1268 |
|
|
"lowestParentConcept_ID" INTEGER,
|
1269 |
|
|
"lowestChildRank" DOUBLE PRECISION NULL,
|
1270 |
|
|
"commonName" VARCHAR(255),
|
1271 |
|
|
"growthForm_short" VARCHAR(255),
|
1272 |
|
|
"woody" VARCHAR(255),
|
1273 |
|
|
"exotic" VARCHAR(255),
|
1274 |
|
|
"usda_code" VARCHAR(255),
|
1275 |
|
|
"usda_growthForm" VARCHAR(255),
|
1276 |
|
|
"sensitiveSpeciesFuzzPlot" INTEGER,
|
1277 |
|
|
PRIMARY KEY ("PLANTCONCEPT_ID")
|
1278 |
|
|
);
|
1279 |
|
|
|
1280 |
|
|
--
|
1281 |
|
|
-- Table structure for table 'plantCorrelation'
|
1282 |
|
|
--
|
1283 |
|
|
|
1284 |
|
|
DROP TABLE IF EXISTS "plantCorrelation";
|
1285 |
|
|
|
1286 |
|
|
CREATE TABLE "plantCorrelation" (
|
1287 |
|
|
"PLANTCORRELATION_ID" SERIAL NOT NULL,
|
1288 |
|
|
"PLANTSTATUS_ID" INTEGER NOT NULL,
|
1289 |
|
|
"PLANTCONCEPT_ID" INTEGER NOT NULL,
|
1290 |
|
|
"plantConvergence" VARCHAR(20) NOT NULL,
|
1291 |
|
|
"correlationStart" TIMESTAMP NOT NULL,
|
1292 |
|
|
"correlationStop" TIMESTAMP,
|
1293 |
|
|
"dba_src_ID" INTEGER,
|
1294 |
|
|
PRIMARY KEY ("PLANTCORRELATION_ID")
|
1295 |
|
|
);
|
1296 |
|
|
|
1297 |
|
|
--
|
1298 |
|
|
-- Table structure for table 'plantLineage'
|
1299 |
|
|
--
|
1300 |
|
|
|
1301 |
|
|
DROP TABLE IF EXISTS "plantLineage";
|
1302 |
|
|
|
1303 |
|
|
CREATE TABLE "plantLineage" (
|
1304 |
|
|
"PLANTLINEAGE_ID" SERIAL NOT NULL,
|
1305 |
|
|
"childPlantStatus_ID" INTEGER NOT NULL,
|
1306 |
|
|
"parentPlantStatus_ID" INTEGER NOT NULL,
|
1307 |
|
|
"dba_src_ID" INTEGER,
|
1308 |
|
|
PRIMARY KEY ("PLANTLINEAGE_ID")
|
1309 |
|
|
);
|
1310 |
|
|
|
1311 |
|
|
--
|
1312 |
|
|
-- Table structure for table 'plantName'
|
1313 |
|
|
--
|
1314 |
|
|
|
1315 |
|
|
DROP TABLE IF EXISTS "plantName";
|
1316 |
|
|
|
1317 |
|
|
CREATE TABLE "plantName" (
|
1318 |
|
|
"PLANTNAME_ID" SERIAL NOT NULL,
|
1319 |
|
|
"plantName" VARCHAR(255) NOT NULL,
|
1320 |
|
|
"reference_ID" INTEGER,
|
1321 |
|
|
"dateEntered" TIMESTAMP DEFAULT E'=Now()',
|
1322 |
|
|
"dba_src_ID" INTEGER,
|
1323 |
|
|
PRIMARY KEY ("PLANTNAME_ID")
|
1324 |
|
|
);
|
1325 |
|
|
|
1326 |
|
|
--
|
1327 |
|
|
-- Table structure for table 'plantStatus'
|
1328 |
|
|
--
|
1329 |
|
|
|
1330 |
|
|
DROP TABLE IF EXISTS "plantStatus";
|
1331 |
|
|
|
1332 |
|
|
CREATE TABLE "plantStatus" (
|
1333 |
|
|
"PLANTSTATUS_ID" SERIAL NOT NULL,
|
1334 |
|
|
"PLANTCONCEPT_ID" INTEGER NOT NULL,
|
1335 |
|
|
"reference_ID" INTEGER,
|
1336 |
|
|
"plantConceptStatus" VARCHAR(20) NOT NULL,
|
1337 |
|
|
"startDate" TIMESTAMP NOT NULL,
|
1338 |
|
|
"stopDate" TIMESTAMP,
|
1339 |
|
|
"plantPartyComments" TEXT,
|
1340 |
|
|
"plantParentName" VARCHAR(200),
|
1341 |
|
|
"plantParentConcept_id" INTEGER,
|
1342 |
|
|
"plantParent_ID" INTEGER,
|
1343 |
|
|
"plantLevel" VARCHAR(80),
|
1344 |
|
|
"PARTY_ID" INTEGER NOT NULL,
|
1345 |
|
|
"dba_src_ID" INTEGER,
|
1346 |
|
|
"denorm_FamilyName" VARCHAR(80),
|
1347 |
|
|
"accessionCode" VARCHAR(100),
|
1348 |
|
|
PRIMARY KEY ("PLANTSTATUS_ID")
|
1349 |
|
|
);
|
1350 |
|
|
|
1351 |
|
|
--
|
1352 |
|
|
-- Table structure for table 'plantUsage'
|
1353 |
|
|
--
|
1354 |
|
|
|
1355 |
|
|
DROP TABLE IF EXISTS "plantUsage";
|
1356 |
|
|
|
1357 |
|
|
CREATE TABLE "plantUsage" (
|
1358 |
|
|
"PLANTUSAGE_ID" SERIAL NOT NULL,
|
1359 |
|
|
"PLANTNAME_ID" INTEGER NOT NULL,
|
1360 |
|
|
"PLANTCONCEPT_ID" INTEGER NOT NULL,
|
1361 |
|
|
"usageStart" TIMESTAMP,
|
1362 |
|
|
"usageStop" TIMESTAMP,
|
1363 |
|
|
"plantNameStatus" VARCHAR(20),
|
1364 |
|
|
"plantName" VARCHAR(220),
|
1365 |
|
|
"classSystem" VARCHAR(50),
|
1366 |
|
|
"acceptedSynonym" VARCHAR(220),
|
1367 |
|
|
"PARTY_ID" INTEGER NOT NULL,
|
1368 |
|
|
"PLANTSTATUS_ID" INTEGER,
|
1369 |
|
|
"dba_src_ID" INTEGER,
|
1370 |
|
|
PRIMARY KEY ("PLANTUSAGE_ID")
|
1371 |
|
|
);
|
1372 |
|
|
|
1373 |
|
|
--
|
1374 |
|
|
-- Table structure for table 'plot'
|
1375 |
|
|
--
|
1376 |
|
|
|
1377 |
|
|
DROP TABLE IF EXISTS "plot";
|
1378 |
|
|
|
1379 |
|
|
CREATE TABLE "plot" (
|
1380 |
|
|
"PLOT_ID" SERIAL NOT NULL,
|
1381 |
|
|
"authorPlotCode" VARCHAR(255) NOT NULL,
|
1382 |
|
|
"reference_ID" INTEGER,
|
1383 |
|
|
"PARENT_ID" INTEGER,
|
1384 |
|
|
"plotObsolete" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1385 |
|
|
"REPLACEMENTPLOT_ID" INTEGER,
|
1386 |
|
|
"realLatitude" DOUBLE PRECISION NULL,
|
1387 |
|
|
"realLongitude" DOUBLE PRECISION NULL,
|
1388 |
|
|
"locationAccuracy" DOUBLE PRECISION NULL,
|
1389 |
|
|
"confidentialityStatus" INTEGER,
|
1390 |
|
|
"confidentialityFieldsBlocked" INTEGER,
|
1391 |
|
|
"confidentialityReason" VARCHAR(200),
|
1392 |
|
|
"latitude" DOUBLE PRECISION NULL,
|
1393 |
|
|
"longitude" DOUBLE PRECISION NULL,
|
1394 |
|
|
"authorCoordinateType" VARCHAR(100),
|
1395 |
|
|
"authorCoordinateUnits" VARCHAR(100),
|
1396 |
|
|
"authorE" VARCHAR(20),
|
1397 |
|
|
"authorN" VARCHAR(20),
|
1398 |
|
|
"authorZone" VARCHAR(20),
|
1399 |
|
|
"authorDatum" VARCHAR(20),
|
1400 |
|
|
"authorLocation" VARCHAR(200),
|
1401 |
|
|
"locationNarrative" TEXT,
|
1402 |
|
|
"plotRationaleNarrative" TEXT,
|
1403 |
|
|
"azimuth" DOUBLE PRECISION NULL,
|
1404 |
|
|
"dsgpoly" TEXT,
|
1405 |
|
|
"shape" VARCHAR(50),
|
1406 |
|
|
"area" DOUBLE PRECISION NULL,
|
1407 |
|
|
"standSize" VARCHAR(50),
|
1408 |
|
|
"placementMethod" VARCHAR(50),
|
1409 |
|
|
"permanence" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1410 |
|
|
"layoutNarrative" TEXT,
|
1411 |
|
|
"elevation" DOUBLE PRECISION NULL,
|
1412 |
|
|
"elevationAccuracy" DOUBLE PRECISION NULL,
|
1413 |
|
|
"elevationRange" DOUBLE PRECISION NULL,
|
1414 |
|
|
"slopeAspect" DOUBLE PRECISION NULL,
|
1415 |
|
|
"minSlopeAspect" DOUBLE PRECISION NULL,
|
1416 |
|
|
"maxSlopeAspect" DOUBLE PRECISION NULL,
|
1417 |
|
|
"slopeGradient" DOUBLE PRECISION NULL,
|
1418 |
|
|
"minSlopeGradient" DOUBLE PRECISION NULL,
|
1419 |
|
|
"maxSlopeGradient" DOUBLE PRECISION NULL,
|
1420 |
|
|
"topoPosition" VARCHAR(255),
|
1421 |
|
|
"landform" VARCHAR(255),
|
1422 |
|
|
"surficialDeposits" VARCHAR(255),
|
1423 |
|
|
"rockType" VARCHAR(255),
|
1424 |
|
|
"county" VARCHAR(255),
|
1425 |
|
|
"cust_cvs_province" VARCHAR(255),
|
1426 |
|
|
"stateProvince" VARCHAR(55),
|
1427 |
|
|
"COUNTRY" VARCHAR(100),
|
1428 |
|
|
"dateentered" TIMESTAMP,
|
1429 |
|
|
"submitter_surname" VARCHAR(100),
|
1430 |
|
|
"submitter_givenname" VARCHAR(100),
|
1431 |
|
|
"submitter_email" VARCHAR(100),
|
1432 |
|
|
"accessionCode" VARCHAR(100),
|
1433 |
|
|
"notesPublic" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1434 |
|
|
"notesMgt" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1435 |
|
|
"revisions" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1436 |
|
|
"cust_eep_reach" VARCHAR(255),
|
1437 |
|
|
"dba_src_ID" INTEGER,
|
1438 |
|
|
UNIQUE ("authorPlotCode"),
|
1439 |
|
|
PRIMARY KEY ("PLOT_ID")
|
1440 |
|
|
);
|
1441 |
|
|
|
1442 |
|
|
--
|
1443 |
|
|
-- Table structure for table 'project'
|
1444 |
|
|
--
|
1445 |
|
|
|
1446 |
|
|
DROP TABLE IF EXISTS "project";
|
1447 |
|
|
|
1448 |
|
|
CREATE TABLE "project" (
|
1449 |
|
|
"PROJECT_ID" SERIAL NOT NULL,
|
1450 |
|
|
"projectName" VARCHAR(150) NOT NULL,
|
1451 |
|
|
"projectDescription" TEXT,
|
1452 |
|
|
"startDate" TIMESTAMP,
|
1453 |
|
|
"stopDate" TIMESTAMP,
|
1454 |
|
|
"accessionCode" VARCHAR(100),
|
1455 |
|
|
"dba_src_ID" INTEGER,
|
1456 |
|
|
"entry_projectCode" VARCHAR(10),
|
1457 |
|
|
"entry_projectCodeSource" VARCHAR(50),
|
1458 |
|
|
"entry_contactDetails" TEXT,
|
1459 |
|
|
"entry_eep_length" DOUBLE PRECISION NULL,
|
1460 |
|
|
"entry_eep_width" DOUBLE PRECISION NULL,
|
1461 |
|
|
"entry_eep_area" DOUBLE PRECISION NULL,
|
1462 |
|
|
"entry_eep_requiredPlots" INTEGER,
|
1463 |
|
|
"entry_eep_projectType" INTEGER DEFAULT 1,
|
1464 |
|
|
"entry_riverBasin_np_ID" INTEGER,
|
1465 |
|
|
UNIQUE ("accessionCode"),
|
1466 |
|
|
PRIMARY KEY ("PROJECT_ID"),
|
1467 |
|
|
UNIQUE ("entry_projectCodeSource", "entry_projectCode")
|
1468 |
|
|
);
|
1469 |
|
|
|
1470 |
|
|
--
|
1471 |
|
|
-- Table structure for table 'projectContributor'
|
1472 |
|
|
--
|
1473 |
|
|
|
1474 |
|
|
DROP TABLE IF EXISTS "projectContributor";
|
1475 |
|
|
|
1476 |
|
|
CREATE TABLE "projectContributor" (
|
1477 |
|
|
"PROJECTCONTRIBUTOR_ID" SERIAL NOT NULL,
|
1478 |
|
|
"PROJECT_ID" INTEGER NOT NULL,
|
1479 |
|
|
"PARTY_ID" INTEGER NOT NULL,
|
1480 |
|
|
"ROLE_ID" INTEGER,
|
1481 |
|
|
"surname" VARCHAR(50),
|
1482 |
|
|
"cheatRole" VARCHAR(50),
|
1483 |
|
|
"dba_src_ID" INTEGER,
|
1484 |
|
|
PRIMARY KEY ("PROJECTCONTRIBUTOR_ID")
|
1485 |
|
|
);
|
1486 |
|
|
|
1487 |
|
|
--
|
1488 |
|
|
-- Table structure for table 'reference'
|
1489 |
|
|
--
|
1490 |
|
|
|
1491 |
|
|
DROP TABLE IF EXISTS "reference";
|
1492 |
|
|
|
1493 |
|
|
CREATE TABLE "reference" (
|
1494 |
|
|
"reference_ID" SERIAL NOT NULL,
|
1495 |
|
|
"shortName" VARCHAR(250),
|
1496 |
|
|
"fulltext" TEXT,
|
1497 |
|
|
"referenceType" VARCHAR(250),
|
1498 |
|
|
"title" VARCHAR(250),
|
1499 |
|
|
"titleSuperior" VARCHAR(250),
|
1500 |
|
|
"pubDate" TIMESTAMP,
|
1501 |
|
|
"pubYear" INTEGER,
|
1502 |
|
|
"pubMonth" INTEGER,
|
1503 |
|
|
"pubDay" INTEGER,
|
1504 |
|
|
"accessDate" TIMESTAMP,
|
1505 |
|
|
"conferenceDate" TIMESTAMP,
|
1506 |
|
|
"referenceJournal_ID" INTEGER,
|
1507 |
|
|
"volume" VARCHAR(250),
|
1508 |
|
|
"issue" VARCHAR(250),
|
1509 |
|
|
"pageRange" VARCHAR(250),
|
1510 |
|
|
"totalPages" INTEGER,
|
1511 |
|
|
"publisher" VARCHAR(250),
|
1512 |
|
|
"publicationPlace" VARCHAR(250),
|
1513 |
|
|
"isbn" VARCHAR(250),
|
1514 |
|
|
"edition" VARCHAR(250),
|
1515 |
|
|
"numberOfVolumes" INTEGER,
|
1516 |
|
|
"chapterNumber" INTEGER,
|
1517 |
|
|
"reportNumber" INTEGER,
|
1518 |
|
|
"communicationType" VARCHAR(250),
|
1519 |
|
|
"degree" VARCHAR(250),
|
1520 |
|
|
"url" TEXT,
|
1521 |
|
|
"doi" TEXT,
|
1522 |
|
|
"additionalInfo" TEXT,
|
1523 |
|
|
"accessionCode" VARCHAR(100),
|
1524 |
|
|
"dba_src_ID" INTEGER,
|
1525 |
|
|
"cust_cvs_IsTaxonomicManual" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1526 |
|
|
"cust_cvs_unparsedAuthors" TEXT,
|
1527 |
|
|
"cust_cvs_referenceJournalName" VARCHAR(200),
|
1528 |
|
|
PRIMARY KEY ("reference_ID")
|
1529 |
|
|
);
|
1530 |
|
|
|
1531 |
|
|
--
|
1532 |
|
|
-- Table structure for table 'referenceAltIdent'
|
1533 |
|
|
--
|
1534 |
|
|
|
1535 |
|
|
DROP TABLE IF EXISTS "referenceAltIdent";
|
1536 |
|
|
|
1537 |
|
|
CREATE TABLE "referenceAltIdent" (
|
1538 |
|
|
"referenceAltIdent_ID" SERIAL NOT NULL,
|
1539 |
|
|
"reference_ID" INTEGER NOT NULL,
|
1540 |
|
|
"system" VARCHAR(250),
|
1541 |
|
|
"identifier" VARCHAR(250) NOT NULL,
|
1542 |
|
|
"dba_src_ID" INTEGER,
|
1543 |
|
|
PRIMARY KEY ("referenceAltIdent_ID")
|
1544 |
|
|
);
|
1545 |
|
|
|
1546 |
|
|
--
|
1547 |
|
|
-- Table structure for table 'referenceContributor'
|
1548 |
|
|
--
|
1549 |
|
|
|
1550 |
|
|
DROP TABLE IF EXISTS "referenceContributor";
|
1551 |
|
|
|
1552 |
|
|
CREATE TABLE "referenceContributor" (
|
1553 |
|
|
"referenceContributor_ID" SERIAL NOT NULL,
|
1554 |
|
|
"reference_ID" INTEGER NOT NULL,
|
1555 |
|
|
"referenceParty_ID" INTEGER NOT NULL,
|
1556 |
|
|
"roleType" VARCHAR(250),
|
1557 |
|
|
"position" INTEGER,
|
1558 |
|
|
"dba_src_ID" INTEGER,
|
1559 |
|
|
PRIMARY KEY ("referenceContributor_ID")
|
1560 |
|
|
);
|
1561 |
|
|
|
1562 |
|
|
--
|
1563 |
|
|
-- Table structure for table 'referenceJournal'
|
1564 |
|
|
--
|
1565 |
|
|
|
1566 |
|
|
DROP TABLE IF EXISTS "referenceJournal";
|
1567 |
|
|
|
1568 |
|
|
CREATE TABLE "referenceJournal" (
|
1569 |
|
|
"referenceJournal_ID" SERIAL NOT NULL,
|
1570 |
|
|
"journal" VARCHAR(250) NOT NULL,
|
1571 |
|
|
"issn" VARCHAR(250),
|
1572 |
|
|
"abbreviation" VARCHAR(250),
|
1573 |
|
|
"accessionCode" VARCHAR(100),
|
1574 |
|
|
"dba_src_ID" INTEGER,
|
1575 |
|
|
PRIMARY KEY ("referenceJournal_ID")
|
1576 |
|
|
);
|
1577 |
|
|
|
1578 |
|
|
--
|
1579 |
|
|
-- Table structure for table 'referenceParty'
|
1580 |
|
|
--
|
1581 |
|
|
|
1582 |
|
|
DROP TABLE IF EXISTS "referenceParty";
|
1583 |
|
|
|
1584 |
|
|
CREATE TABLE "referenceParty" (
|
1585 |
|
|
"referenceParty_ID" SERIAL NOT NULL,
|
1586 |
|
|
"type" VARCHAR(250),
|
1587 |
|
|
"positionName" VARCHAR(250),
|
1588 |
|
|
"salutation" VARCHAR(250),
|
1589 |
|
|
"givenName" VARCHAR(250),
|
1590 |
|
|
"surname" VARCHAR(250),
|
1591 |
|
|
"suffix" VARCHAR(250),
|
1592 |
|
|
"organizationName" VARCHAR(250),
|
1593 |
|
|
"currentParty_ID" INTEGER,
|
1594 |
|
|
"accessionCode" VARCHAR(100),
|
1595 |
|
|
"dba_src_ID" INTEGER,
|
1596 |
|
|
PRIMARY KEY ("referenceParty_ID")
|
1597 |
|
|
);
|
1598 |
|
|
|
1599 |
|
|
--
|
1600 |
|
|
-- Table structure for table 'soilObs'
|
1601 |
|
|
--
|
1602 |
|
|
|
1603 |
|
|
DROP TABLE IF EXISTS "soilObs";
|
1604 |
|
|
|
1605 |
|
|
CREATE TABLE "soilObs" (
|
1606 |
|
|
"SOILOBS_ID" SERIAL NOT NULL,
|
1607 |
|
|
"OBSERVATION_ID" INTEGER NOT NULL,
|
1608 |
|
|
"soilHorizon" VARCHAR(15) NOT NULL,
|
1609 |
|
|
"soilDepthTop" DOUBLE PRECISION NULL,
|
1610 |
|
|
"soilDepthBottom" DOUBLE PRECISION NULL,
|
1611 |
|
|
"soilColor" VARCHAR(30),
|
1612 |
|
|
"soilOrganic" DOUBLE PRECISION NULL,
|
1613 |
|
|
"soilTexture" VARCHAR(50),
|
1614 |
|
|
"soilSand" DOUBLE PRECISION NULL,
|
1615 |
|
|
"soilSilt" DOUBLE PRECISION NULL,
|
1616 |
|
|
"soilClay" DOUBLE PRECISION NULL,
|
1617 |
|
|
"soilCoarse" DOUBLE PRECISION NULL,
|
1618 |
|
|
"soilPH" DOUBLE PRECISION NULL,
|
1619 |
|
|
"exchangeCapacity" DOUBLE PRECISION NULL,
|
1620 |
|
|
"baseSaturation" DOUBLE PRECISION NULL,
|
1621 |
|
|
"soilDescription" TEXT,
|
1622 |
|
|
"cust_cvs_collectionName" VARCHAR(50),
|
1623 |
|
|
"cust_cvs_Lab" VARCHAR(10),
|
1624 |
|
|
"cust_cvs_N" DOUBLE PRECISION NULL,
|
1625 |
|
|
"cust_cvs_S" DOUBLE PRECISION NULL,
|
1626 |
|
|
"cust_cvs_P" DOUBLE PRECISION NULL,
|
1627 |
|
|
"cust_cvs_Ca_ppm" DOUBLE PRECISION NULL,
|
1628 |
|
|
"cust_cvs_Mg_ppm" DOUBLE PRECISION NULL,
|
1629 |
|
|
"cust_cvs_K_ppm" DOUBLE PRECISION NULL,
|
1630 |
|
|
"cust_cvs_Na_ppm" DOUBLE PRECISION NULL,
|
1631 |
|
|
"cust_cvs_percent_Ca" DOUBLE PRECISION NULL,
|
1632 |
|
|
"cust_cvs_percent_Mg" DOUBLE PRECISION NULL,
|
1633 |
|
|
"cust_cvs_percent_K" DOUBLE PRECISION NULL,
|
1634 |
|
|
"cust_cvs_percent_Na" DOUBLE PRECISION NULL,
|
1635 |
|
|
"cust_cvs_percent_Othr" DOUBLE PRECISION NULL,
|
1636 |
|
|
"cust_cvs_percent_H" DOUBLE PRECISION NULL,
|
1637 |
|
|
"cust_cvs_B_ppm" DOUBLE PRECISION NULL,
|
1638 |
|
|
"cust_cvs_Fe_ppm" DOUBLE PRECISION NULL,
|
1639 |
|
|
"cust_cvs_Mn_ppm" DOUBLE PRECISION NULL,
|
1640 |
|
|
"cust_cvs_Cu_ppm" DOUBLE PRECISION NULL,
|
1641 |
|
|
"cust_cvs_Zn_ppm" DOUBLE PRECISION NULL,
|
1642 |
|
|
"cust_cvs_Al_ppm" DOUBLE PRECISION NULL,
|
1643 |
|
|
"cust_cvs_Density" DOUBLE PRECISION NULL,
|
1644 |
|
|
"cust_cvs_Ca_over_Mg_ppm" DOUBLE PRECISION NULL,
|
1645 |
|
|
"dba_src_ID" INTEGER,
|
1646 |
|
|
PRIMARY KEY ("SOILOBS_ID")
|
1647 |
|
|
);
|
1648 |
|
|
|
1649 |
|
|
--
|
1650 |
|
|
-- Table structure for table 'soilTaxon'
|
1651 |
|
|
--
|
1652 |
|
|
|
1653 |
|
|
DROP TABLE IF EXISTS "soilTaxon";
|
1654 |
|
|
|
1655 |
|
|
CREATE TABLE "soilTaxon" (
|
1656 |
|
|
"SOILTAXON_ID" SERIAL NOT NULL,
|
1657 |
|
|
"soilCode" VARCHAR(15),
|
1658 |
|
|
"soilName" VARCHAR(100),
|
1659 |
|
|
"soilLevel" INTEGER,
|
1660 |
|
|
"SOILPARENT_ID" INTEGER,
|
1661 |
|
|
"soilFramework" VARCHAR(33),
|
1662 |
|
|
"accessionCode" VARCHAR(100),
|
1663 |
|
|
"dba_src_ID" INTEGER,
|
1664 |
|
|
PRIMARY KEY ("SOILTAXON_ID")
|
1665 |
|
|
);
|
1666 |
|
|
|
1667 |
|
|
--
|
1668 |
|
|
-- Table structure for table 'stemCount'
|
1669 |
|
|
--
|
1670 |
|
|
|
1671 |
|
|
DROP TABLE IF EXISTS "stemCount";
|
1672 |
|
|
|
1673 |
|
|
CREATE TABLE "stemCount" (
|
1674 |
|
|
"STEMCOUNT_ID" SERIAL NOT NULL,
|
1675 |
|
|
"TAXONIMPORTANCE_ID" INTEGER NOT NULL,
|
1676 |
|
|
"stemDiameter" DOUBLE PRECISION NULL,
|
1677 |
|
|
"stemDiameterAccuracy" DOUBLE PRECISION NULL,
|
1678 |
|
|
"stemHeight" DOUBLE PRECISION NULL,
|
1679 |
|
|
"stemHeightAccuracy" DOUBLE PRECISION NULL,
|
1680 |
|
|
"stemCount" INTEGER NOT NULL,
|
1681 |
|
|
"stemTaxonArea" DOUBLE PRECISION NULL,
|
1682 |
|
|
"dba_src_ID" INTEGER,
|
1683 |
|
|
"cust_cvs_ddh" DOUBLE PRECISION NULL,
|
1684 |
|
|
"cust_cvs_ddhAccuracy" DOUBLE PRECISION NULL,
|
1685 |
|
|
"cust_cvs_isPlanted" VARCHAR(2),
|
1686 |
|
|
"cust_cvs_subsamplingFactor" DOUBLE PRECISION NULL,
|
1687 |
|
|
"entry_herbLineID" INTEGER,
|
1688 |
|
|
"entry_treeLineID" INTEGER,
|
1689 |
|
|
"entry_recordCount" INTEGER,
|
1690 |
|
|
"entry_sortOrder" DOUBLE PRECISION NULL,
|
1691 |
|
|
PRIMARY KEY ("STEMCOUNT_ID")
|
1692 |
|
|
);
|
1693 |
|
|
|
1694 |
|
|
--
|
1695 |
|
|
-- Table structure for table 'stemLocation'
|
1696 |
|
|
--
|
1697 |
|
|
|
1698 |
|
|
DROP TABLE IF EXISTS "stemLocation";
|
1699 |
|
|
|
1700 |
|
|
CREATE TABLE "stemLocation" (
|
1701 |
|
|
"STEMLOCATION_ID" SERIAL NOT NULL,
|
1702 |
|
|
"STEMCOUNT_ID" INTEGER NOT NULL,
|
1703 |
|
|
"stemCode" VARCHAR(20),
|
1704 |
|
|
"stemXPosition" DOUBLE PRECISION NULL,
|
1705 |
|
|
"stemYPosition" DOUBLE PRECISION NULL,
|
1706 |
|
|
"stemHealth" VARCHAR(50),
|
1707 |
|
|
"dba_src_ID" INTEGER,
|
1708 |
|
|
"cust_cvs_stemSource" VARCHAR(50),
|
1709 |
|
|
"cust_cvs_stemComment" TEXT,
|
1710 |
|
|
"cust_cvs_resprout" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1711 |
|
|
"entry_sortOrder" DOUBLE PRECISION NULL,
|
1712 |
|
|
PRIMARY KEY ("STEMLOCATION_ID")
|
1713 |
|
|
);
|
1714 |
|
|
|
1715 |
|
|
--
|
1716 |
|
|
-- Table structure for table 'stratum'
|
1717 |
|
|
--
|
1718 |
|
|
|
1719 |
|
|
DROP TABLE IF EXISTS "stratum";
|
1720 |
|
|
|
1721 |
|
|
CREATE TABLE "stratum" (
|
1722 |
|
|
"STRATUM_ID" SERIAL NOT NULL,
|
1723 |
|
|
"OBSERVATION_ID" INTEGER NOT NULL,
|
1724 |
|
|
"STRATUMTYPE_ID" INTEGER NOT NULL,
|
1725 |
|
|
"STRATUMMETHOD_ID" INTEGER,
|
1726 |
|
|
"stratumName" VARCHAR(30),
|
1727 |
|
|
"stratumHeight" DOUBLE PRECISION NULL,
|
1728 |
|
|
"stratumBase" DOUBLE PRECISION NULL,
|
1729 |
|
|
"stratumCover" DOUBLE PRECISION NULL,
|
1730 |
|
|
"stratumDescription" VARCHAR(200),
|
1731 |
|
|
"dba_src_ID" INTEGER,
|
1732 |
|
|
"stratumArea" DOUBLE PRECISION NULL,
|
1733 |
|
|
"stratumLabel" VARCHAR(50),
|
1734 |
|
|
PRIMARY KEY ("STRATUM_ID")
|
1735 |
|
|
);
|
1736 |
|
|
|
1737 |
|
|
--
|
1738 |
|
|
-- Table structure for table 'stratumMethod'
|
1739 |
|
|
--
|
1740 |
|
|
|
1741 |
|
|
DROP TABLE IF EXISTS "stratumMethod";
|
1742 |
|
|
|
1743 |
|
|
CREATE TABLE "stratumMethod" (
|
1744 |
|
|
"STRATUMMETHOD_ID" SERIAL NOT NULL,
|
1745 |
|
|
"reference_ID" INTEGER,
|
1746 |
|
|
"stratumMethodName" VARCHAR(30) NOT NULL,
|
1747 |
|
|
"stratumMethodDescription" TEXT,
|
1748 |
|
|
"stratumAssignment" VARCHAR(50),
|
1749 |
|
|
"accessionCode" VARCHAR(100),
|
1750 |
|
|
"dba_src_ID" INTEGER,
|
1751 |
|
|
PRIMARY KEY ("STRATUMMETHOD_ID")
|
1752 |
|
|
);
|
1753 |
|
|
|
1754 |
|
|
--
|
1755 |
|
|
-- Table structure for table 'stratumType'
|
1756 |
|
|
--
|
1757 |
|
|
|
1758 |
|
|
DROP TABLE IF EXISTS "stratumType";
|
1759 |
|
|
|
1760 |
|
|
CREATE TABLE "stratumType" (
|
1761 |
|
|
"STRATUMTYPE_ID" SERIAL NOT NULL,
|
1762 |
|
|
"STRATUMMETHOD_ID" INTEGER NOT NULL,
|
1763 |
|
|
"stratumIndex" VARCHAR(10),
|
1764 |
|
|
"stratumName" VARCHAR(30),
|
1765 |
|
|
"stratumDescription" TEXT,
|
1766 |
|
|
"dba_src_ID" INTEGER,
|
1767 |
|
|
"stratumOrder" DOUBLE PRECISION NULL,
|
1768 |
|
|
PRIMARY KEY ("STRATUMTYPE_ID")
|
1769 |
|
|
);
|
1770 |
|
|
|
1771 |
|
|
--
|
1772 |
|
|
-- Table structure for table 'taxonAlt'
|
1773 |
|
|
--
|
1774 |
|
|
|
1775 |
|
|
DROP TABLE IF EXISTS "taxonAlt";
|
1776 |
|
|
|
1777 |
|
|
CREATE TABLE "taxonAlt" (
|
1778 |
|
|
"taxonAlt_ID" SERIAL NOT NULL,
|
1779 |
|
|
"taxonInterpretation_ID" INTEGER NOT NULL,
|
1780 |
|
|
"plantConcept_ID" INTEGER NOT NULL,
|
1781 |
|
|
"taxonAltFit" VARCHAR(50),
|
1782 |
|
|
"taxonAltConfidence" VARCHAR(50),
|
1783 |
|
|
"taxonAltNotes" TEXT,
|
1784 |
|
|
"dba_src_ID" INTEGER,
|
1785 |
|
|
PRIMARY KEY ("taxonAlt_ID")
|
1786 |
|
|
);
|
1787 |
|
|
|
1788 |
|
|
--
|
1789 |
|
|
-- Table structure for table 'taxonImportance'
|
1790 |
|
|
--
|
1791 |
|
|
|
1792 |
|
|
DROP TABLE IF EXISTS "taxonImportance";
|
1793 |
|
|
|
1794 |
|
|
CREATE TABLE "taxonImportance" (
|
1795 |
|
|
"taxonImportance_ID" SERIAL NOT NULL,
|
1796 |
|
|
"taxonObservation_ID" INTEGER NOT NULL,
|
1797 |
|
|
"stratum_ID" INTEGER,
|
1798 |
|
|
"cover" DOUBLE PRECISION NULL,
|
1799 |
|
|
"basalArea" DOUBLE PRECISION NULL,
|
1800 |
|
|
"biomass" DOUBLE PRECISION NULL,
|
1801 |
|
|
"inferenceArea" DOUBLE PRECISION NULL,
|
1802 |
|
|
"cust_cvs_StemFrequency" INTEGER,
|
1803 |
|
|
"dba_src_ID" INTEGER,
|
1804 |
|
|
"entry_herbLineID" INTEGER,
|
1805 |
|
|
"entry_treeLineID" INTEGER,
|
1806 |
|
|
"cust_cvs_corner1Presence" INTEGER,
|
1807 |
|
|
"cust_cvs_corner2Presence" INTEGER,
|
1808 |
|
|
"cust_cvs_corner3Presence" INTEGER,
|
1809 |
|
|
"cust_cvs_corner4Presence" INTEGER,
|
1810 |
|
|
"cust_cvs_corner5Presence" INTEGER,
|
1811 |
|
|
"cust_cvs_originalCoverCode" VARCHAR(10),
|
1812 |
|
|
PRIMARY KEY ("taxonImportance_ID")
|
1813 |
|
|
);
|
1814 |
|
|
|
1815 |
|
|
--
|
1816 |
|
|
-- Table structure for table 'taxonInterpretation'
|
1817 |
|
|
--
|
1818 |
|
|
|
1819 |
|
|
DROP TABLE IF EXISTS "taxonInterpretation";
|
1820 |
|
|
|
1821 |
|
|
CREATE TABLE "taxonInterpretation" (
|
1822 |
|
|
"TAXONINTERPRETATION_ID" SERIAL NOT NULL,
|
1823 |
|
|
"TAXONOBSERVATION_ID" INTEGER NOT NULL,
|
1824 |
|
|
"stemLocation_ID" INTEGER,
|
1825 |
|
|
"PLANTCONCEPT_ID" INTEGER NOT NULL,
|
1826 |
|
|
"interpretationDate" TIMESTAMP NOT NULL,
|
1827 |
|
|
"PLANTNAME_ID" INTEGER,
|
1828 |
|
|
"PARTY_ID" INTEGER,
|
1829 |
|
|
"ROLE_ID" INTEGER,
|
1830 |
|
|
"interpretationType" VARCHAR(30),
|
1831 |
|
|
"reference_ID" INTEGER,
|
1832 |
|
|
"originalInterpretation" /*BOOLEAN*/INTEGER NOT NULL DEFAULT E'0',
|
1833 |
|
|
"currentInterpretation" /*BOOLEAN*/INTEGER NOT NULL DEFAULT E'0',
|
1834 |
|
|
"taxonFit" VARCHAR(50),
|
1835 |
|
|
"taxonConfidence" VARCHAR(50),
|
1836 |
|
|
"collector_ID" INTEGER,
|
1837 |
|
|
"collectionNumber" VARCHAR(100),
|
1838 |
|
|
"collectionDate" TIMESTAMP,
|
1839 |
|
|
"museum_ID" INTEGER,
|
1840 |
|
|
"museumAccessionNumber" VARCHAR(100),
|
1841 |
|
|
"groupType" VARCHAR(20),
|
1842 |
|
|
"notes" TEXT,
|
1843 |
|
|
"notesPublic" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1844 |
|
|
"notesMgt" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1845 |
|
|
"revisions" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1846 |
|
|
"dba_src_ID" INTEGER,
|
1847 |
|
|
"accessionCode" VARCHAR(100),
|
1848 |
|
|
PRIMARY KEY ("TAXONINTERPRETATION_ID")
|
1849 |
|
|
);
|
1850 |
|
|
|
1851 |
|
|
--
|
1852 |
|
|
-- Table structure for table 'taxonObservation'
|
1853 |
|
|
--
|
1854 |
|
|
|
1855 |
|
|
DROP TABLE IF EXISTS "taxonObservation";
|
1856 |
|
|
|
1857 |
|
|
CREATE TABLE "taxonObservation" (
|
1858 |
|
|
"TAXONOBSERVATION_ID" SERIAL NOT NULL,
|
1859 |
|
|
"OBSERVATION_ID" INTEGER NOT NULL,
|
1860 |
|
|
"authorPlantName" VARCHAR(255),
|
1861 |
|
|
"reference_ID" INTEGER,
|
1862 |
|
|
"currentTaxonInterpPlantConcept_ID" INTEGER,
|
1863 |
|
|
"taxonInferenceArea" DOUBLE PRECISION NULL,
|
1864 |
|
|
"accessionCode" VARCHAR(100),
|
1865 |
|
|
"dba_src_ID" INTEGER,
|
1866 |
|
|
"cust_cvs_corner1Presence" INTEGER,
|
1867 |
|
|
"cust_cvs_corner2Presence" INTEGER,
|
1868 |
|
|
"cust_cvs_corner3Presence" INTEGER,
|
1869 |
|
|
"cust_cvs_corner4Presence" INTEGER,
|
1870 |
|
|
"cust_cvs_corner5Presence" INTEGER,
|
1871 |
|
|
"entry_herbLineID" INTEGER,
|
1872 |
|
|
"entry_treeLineID" INTEGER,
|
1873 |
|
|
"entry_sppID" INTEGER,
|
1874 |
|
|
"entry_unknownSp" VARCHAR(50),
|
1875 |
|
|
"entry_sortOrder" DOUBLE PRECISION NULL,
|
1876 |
|
|
"cust_cvs_collectionFlag" VARCHAR(50),
|
1877 |
|
|
"taxonObservationNotes" TEXT,
|
1878 |
|
|
"temp_taxonUpToDate" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
1879 |
|
|
PRIMARY KEY ("TAXONOBSERVATION_ID")
|
1880 |
|
|
);
|
1881 |
|
|
|
1882 |
|
|
--
|
1883 |
|
|
-- Table structure for table 'telephone'
|
1884 |
|
|
--
|
1885 |
|
|
|
1886 |
|
|
DROP TABLE IF EXISTS "telephone";
|
1887 |
|
|
|
1888 |
|
|
CREATE TABLE "telephone" (
|
1889 |
|
|
"TELEPHONE_ID" SERIAL NOT NULL,
|
1890 |
|
|
"PARTY_ID" INTEGER NOT NULL,
|
1891 |
|
|
"phoneNumber" VARCHAR(30) NOT NULL,
|
1892 |
|
|
"phoneType" VARCHAR(20) NOT NULL,
|
1893 |
|
|
"dba_src_ID" INTEGER,
|
1894 |
|
|
PRIMARY KEY ("TELEPHONE_ID")
|
1895 |
|
|
);
|
1896 |
|
|
|
1897 |
|
|
--
|
1898 |
|
|
-- Table structure for table 'temp_add_cvs_counties'
|
1899 |
|
|
--
|
1900 |
|
|
|
1901 |
|
|
DROP TABLE IF EXISTS "temp_add_cvs_counties";
|
1902 |
|
|
|
1903 |
|
|
CREATE TABLE "temp_add_cvs_counties" (
|
1904 |
|
|
"ID" SERIAL NOT NULL,
|
1905 |
|
|
"authorPlotCode" VARCHAR(255),
|
1906 |
|
|
"NAMEDPLACE_ID" DOUBLE PRECISION NULL,
|
1907 |
|
|
"placeSystem" VARCHAR(255),
|
1908 |
|
|
"PLOT_ID" DOUBLE PRECISION NULL,
|
1909 |
|
|
PRIMARY KEY ("ID")
|
1910 |
|
|
);
|
1911 |
|
|
|
1912 |
|
|
--
|
1913 |
|
|
-- Table structure for table 'temp_class_excel_v9_normalized'
|
1914 |
|
|
--
|
1915 |
|
|
|
1916 |
|
|
DROP TABLE IF EXISTS "temp_class_excel_v9_normalized";
|
1917 |
|
|
|
1918 |
|
|
CREATE TABLE "temp_class_excel_v9_normalized" (
|
1919 |
|
|
"old/new" VARCHAR(255),
|
1920 |
|
|
"orig_order" DOUBLE PRECISION NULL,
|
1921 |
|
|
"plotOcc" DOUBLE PRECISION NULL,
|
1922 |
|
|
"Project-Team-Plot" VARCHAR(255),
|
1923 |
|
|
"Province" VARCHAR(255),
|
1924 |
|
|
"Form G" VARCHAR(255),
|
1925 |
|
|
"Phyg G" VARCHAR(255),
|
1926 |
|
|
"CEGL" VARCHAR(255),
|
1927 |
|
|
"Ecol G" VARCHAR(255),
|
1928 |
|
|
"Confidence" VARCHAR(255),
|
1929 |
|
|
"Fit" VARCHAR(255),
|
1930 |
|
|
"Notes" VARCHAR(255),
|
1931 |
|
|
"Ulrey Group" VARCHAR(255),
|
1932 |
|
|
"VegetationCarolinas" VARCHAR(255),
|
1933 |
|
|
"Study 1" DOUBLE PRECISION NULL,
|
1934 |
|
|
"Ulrey Subgrp" VARCHAR(255),
|
1935 |
|
|
"Study 2" VARCHAR(255),
|
1936 |
|
|
"Author" VARCHAR(255),
|
1937 |
|
|
"Study 3" VARCHAR(255),
|
1938 |
|
|
"CommCOde" VARCHAR(255),
|
1939 |
|
|
"Newell Class" VARCHAR(255),
|
1940 |
|
|
"Newell Code" VARCHAR(255),
|
1941 |
|
|
"Newell Phase/Form" VARCHAR(255),
|
1942 |
|
|
"Newell Type" VARCHAR(255),
|
1943 |
|
|
"Newell- NVC assignment" VARCHAR(255),
|
1944 |
|
|
"ID" SERIAL NOT NULL,
|
1945 |
|
|
"WISER-type" VARCHAR(255),
|
1946 |
|
|
PRIMARY KEY ("ID")
|
1947 |
|
|
);
|
1948 |
|
|
|
1949 |
|
|
--
|
1950 |
|
|
-- Table structure for table 'temp_convertOldTableNamesOnRevQ'
|
1951 |
|
|
--
|
1952 |
|
|
|
1953 |
|
|
DROP TABLE IF EXISTS "temp_convertOldTableNamesOnRevQ";
|
1954 |
|
|
|
1955 |
|
|
CREATE TABLE "temp_convertOldTableNamesOnRevQ" (
|
1956 |
|
|
"ID" SERIAL NOT NULL,
|
1957 |
|
|
"oldDBtable" VARCHAR(255),
|
1958 |
|
|
"oldDBfield" VARCHAR(255),
|
1959 |
|
|
"tblName" VARCHAR(255),
|
1960 |
|
|
"fldName" VARCHAR(255),
|
1961 |
|
|
PRIMARY KEY ("ID"),
|
1962 |
|
|
UNIQUE ("oldDBtable", "oldDBfield")
|
1963 |
|
|
);
|
1964 |
|
|
|
1965 |
|
|
--
|
1966 |
|
|
-- Table structure for table 'temp_cvs_taxonAlt_translate1'
|
1967 |
|
|
--
|
1968 |
|
|
|
1969 |
|
|
DROP TABLE IF EXISTS "temp_cvs_taxonAlt_translate1";
|
1970 |
|
|
|
1971 |
|
|
CREATE TABLE "temp_cvs_taxonAlt_translate1" (
|
1972 |
|
|
"CVS_taxonAlt_ID" SERIAL NOT NULL,
|
1973 |
|
|
"SppID" INTEGER,
|
1974 |
|
|
"sciNAmeComplex" VARCHAR(200),
|
1975 |
|
|
"sciNAme" VARCHAR(200),
|
1976 |
|
|
"plantAccessionCode" VARCHAR(80),
|
1977 |
|
|
PRIMARY KEY ("CVS_taxonAlt_ID")
|
1978 |
|
|
);
|
1979 |
|
|
|
1980 |
|
|
--
|
1981 |
|
|
-- Table structure for table 'temp_entry_CarSpList_XXXNoAutoNumberSppID'
|
1982 |
|
|
--
|
1983 |
|
|
|
1984 |
|
|
DROP TABLE IF EXISTS "temp_entry_CarSpList_XXXNoAutoNumberSppID";
|
1985 |
|
|
|
1986 |
|
|
CREATE TABLE "temp_entry_CarSpList_XXXNoAutoNumberSppID" (
|
1987 |
|
|
"SppID" INTEGER NOT NULL,
|
1988 |
|
|
"FAMILY" VARCHAR(255),
|
1989 |
|
|
"GENUS" VARCHAR(255),
|
1990 |
|
|
"X" VARCHAR(5),
|
1991 |
|
|
"SPECIES" VARCHAR(255),
|
1992 |
|
|
"TRI" VARCHAR(8),
|
1993 |
|
|
"TRI_NAME" VARCHAR(255),
|
1994 |
|
|
"QUAD" VARCHAR(8),
|
1995 |
|
|
"QUAD_NAME" VARCHAR(255),
|
1996 |
|
|
"AUTHOR" VARCHAR(255),
|
1997 |
|
|
"SCIENTIFIC_NAME_WITH_AUTHORS" VARCHAR(255),
|
1998 |
|
|
"SCIENTIFIC_NAME" VARCHAR(255),
|
1999 |
|
|
"NC_Std" DOUBLE PRECISION NULL,
|
2000 |
|
|
"NC_CODE" VARCHAR(9),
|
2001 |
|
|
"SynCode" VARCHAR(12),
|
2002 |
|
|
"SynID" INTEGER,
|
2003 |
|
|
"reference_ID" INTEGER DEFAULT 0,
|
2004 |
|
|
"SOURCE" VARCHAR(255),
|
2005 |
|
|
"party_ID" INTEGER DEFAULT 0,
|
2006 |
|
|
"perspectiveDate" TIMESTAMP,
|
2007 |
|
|
"DUKE_CODE" VARCHAR(5),
|
2008 |
|
|
"USDA_CODE" VARCHAR(10),
|
2009 |
|
|
"US_Synonym" VARCHAR(255),
|
2010 |
|
|
"US_COMMON_NAME" VARCHAR(255),
|
2011 |
|
|
"bln_newRec" /*BOOLEAN*/INTEGER DEFAULT E'-1',
|
2012 |
|
|
"plantConcept_ID" INTEGER,
|
2013 |
|
|
"plantAccessionCode" VARCHAR(255),
|
2014 |
|
|
"plantGroupAccessionCodes" TEXT,
|
2015 |
|
|
"includeInPicklistNow" /*BOOLEAN*/INTEGER DEFAULT E'-1',
|
2016 |
|
|
"USDA_Woody" VARCHAR(2),
|
2017 |
|
|
"Woody" VARCHAR(1),
|
2018 |
|
|
"Duration" VARCHAR(255),
|
2019 |
|
|
"US_Nativity" VARCHAR(255),
|
2020 |
|
|
"GrowthForm_extended" VARCHAR(255),
|
2021 |
|
|
"GrowthForm_short" VARCHAR(255),
|
2022 |
|
|
PRIMARY KEY ("SppID"),
|
2023 |
|
|
UNIQUE ("SppID")
|
2024 |
|
|
);
|
2025 |
|
|
|
2026 |
|
|
--
|
2027 |
|
|
-- Table structure for table 'temp_landformTranslation'
|
2028 |
|
|
--
|
2029 |
|
|
|
2030 |
|
|
DROP TABLE IF EXISTS "temp_landformTranslation";
|
2031 |
|
|
|
2032 |
|
|
CREATE TABLE "temp_landformTranslation" (
|
2033 |
|
|
"landform_oldCVS" VARCHAR(255) NOT NULL,
|
2034 |
|
|
"landform_new" VARCHAR(255),
|
2035 |
|
|
"countPlots" INTEGER,
|
2036 |
|
|
PRIMARY KEY ("landform_oldCVS")
|
2037 |
|
|
);
|
2038 |
|
|
|
2039 |
|
|
--
|
2040 |
|
|
-- Table structure for table 'temp_mtl_flagPlotsCheckStratumHerbIDs'
|
2041 |
|
|
--
|
2042 |
|
|
|
2043 |
|
|
DROP TABLE IF EXISTS "temp_mtl_flagPlotsCheckStratumHerbIDs";
|
2044 |
|
|
|
2045 |
|
|
CREATE TABLE "temp_mtl_flagPlotsCheckStratumHerbIDs" (
|
2046 |
|
|
"ID" SERIAL NOT NULL,
|
2047 |
|
|
"flagplotID" VARCHAR(50),
|
2048 |
|
|
UNIQUE ("flagplotID"),
|
2049 |
|
|
PRIMARY KEY ("ID")
|
2050 |
|
|
);
|
2051 |
|
|
|
2052 |
|
|
--
|
2053 |
|
|
-- Table structure for table 'temp_mtl_strataToTheRescue'
|
2054 |
|
|
--
|
2055 |
|
|
|
2056 |
|
|
DROP TABLE IF EXISTS "temp_mtl_strataToTheRescue";
|
2057 |
|
|
|
2058 |
|
|
CREATE TABLE "temp_mtl_strataToTheRescue" (
|
2059 |
|
|
"ID" SERIAL NOT NULL,
|
2060 |
|
|
"PTP" VARCHAR(50),
|
2061 |
|
|
"project" DOUBLE PRECISION NULL,
|
2062 |
|
|
"team" DOUBLE PRECISION NULL,
|
2063 |
|
|
"plot" DOUBLE PRECISION NULL,
|
2064 |
|
|
"str1" VARCHAR(255) DEFAULT E'H',
|
2065 |
|
|
"str2" VARCHAR(255) DEFAULT E'S',
|
2066 |
|
|
"str3" VARCHAR(255) DEFAULT E'U',
|
2067 |
|
|
"str4" VARCHAR(255) DEFAULT E'C',
|
2068 |
|
|
"str5" VARCHAR(255) DEFAULT E'E',
|
2069 |
|
|
"str6" VARCHAR(255),
|
2070 |
|
|
"str7" VARCHAR(255),
|
2071 |
|
|
"str8" VARCHAR(255),
|
2072 |
|
|
PRIMARY KEY ("ID"),
|
2073 |
|
|
UNIQUE ("PTP")
|
2074 |
|
|
);
|
2075 |
|
|
|
2076 |
|
|
--
|
2077 |
|
|
-- Table structure for table 'temp_nov08_qa_treeDataSml'
|
2078 |
|
|
--
|
2079 |
|
|
|
2080 |
|
|
DROP TABLE IF EXISTS "temp_nov08_qa_treeDataSml";
|
2081 |
|
|
|
2082 |
|
|
CREATE TABLE "temp_nov08_qa_treeDataSml" (
|
2083 |
|
|
"treeLineID" SERIAL NOT NULL,
|
2084 |
|
|
"plotID" VARCHAR(11),
|
2085 |
|
|
"SppID" INTEGER,
|
2086 |
|
|
"module" VARCHAR(2),
|
2087 |
|
|
"ares" DOUBLE PRECISION NULL,
|
2088 |
|
|
"NewSubS" DOUBLE PRECISION NULL,
|
2089 |
|
|
"d0" DOUBLE PRECISION NULL,
|
2090 |
|
|
"d1" DOUBLE PRECISION NULL,
|
2091 |
|
|
"NewSubT" DOUBLE PRECISION NULL,
|
2092 |
|
|
"d2" DOUBLE PRECISION NULL,
|
2093 |
|
|
"d5" DOUBLE PRECISION NULL,
|
2094 |
|
|
"d10" DOUBLE PRECISION NULL,
|
2095 |
|
|
"d15" DOUBLE PRECISION NULL,
|
2096 |
|
|
"d20" DOUBLE PRECISION NULL,
|
2097 |
|
|
"d25" DOUBLE PRECISION NULL,
|
2098 |
|
|
"d30" DOUBLE PRECISION NULL,
|
2099 |
|
|
"d35" DOUBLE PRECISION NULL,
|
2100 |
|
|
PRIMARY KEY ("treeLineID")
|
2101 |
|
|
);
|
2102 |
|
|
|
2103 |
|
|
--
|
2104 |
|
|
-- Table structure for table 'temp_OLD_tu_oldArc_updSpp'
|
2105 |
|
|
--
|
2106 |
|
|
|
2107 |
|
|
DROP TABLE IF EXISTS "temp_OLD_tu_oldArc_updSpp";
|
2108 |
|
|
|
2109 |
|
|
CREATE TABLE "temp_OLD_tu_oldArc_updSpp" (
|
2110 |
|
|
"ID" SERIAL NOT NULL,
|
2111 |
|
|
"OLDCVSNAME" VARCHAR(255),
|
2112 |
|
|
"Project" VARCHAR(255),
|
2113 |
|
|
"PTP" VARCHAR(255),
|
2114 |
|
|
"ProposedNewNameFeb08" TEXT,
|
2115 |
|
|
"TypeFeb08" DOUBLE PRECISION NULL,
|
2116 |
|
|
"ProposedNewNameOct08" TEXT,
|
2117 |
|
|
"TypeOct08" DOUBLE PRECISION NULL,
|
2118 |
|
|
"Cover Class" DOUBLE PRECISION NULL,
|
2119 |
|
|
"CBS_TYPE" DOUBLE PRECISION NULL,
|
2120 |
|
|
"cbs1" DOUBLE PRECISION NULL,
|
2121 |
|
|
"cbs2" DOUBLE PRECISION NULL,
|
2122 |
|
|
"cbs3" DOUBLE PRECISION NULL,
|
2123 |
|
|
"cbs4" DOUBLE PRECISION NULL,
|
2124 |
|
|
"cbs5" DOUBLE PRECISION NULL,
|
2125 |
|
|
"cbs6" VARCHAR(255),
|
2126 |
|
|
"cbs7" VARCHAR(255),
|
2127 |
|
|
"cbs8" VARCHAR(255),
|
2128 |
|
|
"LAT_WGS84" DOUBLE PRECISION NULL,
|
2129 |
|
|
"Plot Size (m2)" DOUBLE PRECISION NULL,
|
2130 |
|
|
"State-County" VARCHAR(255),
|
2131 |
|
|
"LONG_WGS84" DOUBLE PRECISION NULL,
|
2132 |
|
|
"Location Accuracy (m)" DOUBLE PRECISION NULL,
|
2133 |
|
|
PRIMARY KEY ("ID")
|
2134 |
|
|
);
|
2135 |
|
|
|
2136 |
|
|
--
|
2137 |
|
|
-- Table structure for table 'temp_Plots_withCountyState'
|
2138 |
|
|
--
|
2139 |
|
|
|
2140 |
|
|
DROP TABLE IF EXISTS "temp_Plots_withCountyState";
|
2141 |
|
|
|
2142 |
|
|
CREATE TABLE "temp_Plots_withCountyState" (
|
2143 |
|
|
"FID_1" INTEGER,
|
2144 |
|
|
"ObjectID" INTEGER,
|
2145 |
|
|
"authorObsC" VARCHAR(255) NOT NULL,
|
2146 |
|
|
"state" VARCHAR(255),
|
2147 |
|
|
"county" VARCHAR(255),
|
2148 |
|
|
"authorLoca" VARCHAR(255),
|
2149 |
|
|
"realLatitu" DOUBLE PRECISION NULL,
|
2150 |
|
|
"realLongit" DOUBLE PRECISION NULL,
|
2151 |
|
|
"locationAc" INTEGER,
|
2152 |
|
|
"taxonObser" INTEGER,
|
2153 |
|
|
"primaryDet" INTEGER,
|
2154 |
|
|
"comm_code" VARCHAR(255),
|
2155 |
|
|
"classFit" INTEGER,
|
2156 |
|
|
"classConfi" VARCHAR(255),
|
2157 |
|
|
"cust_cvs_p" VARCHAR(255),
|
2158 |
|
|
"phys" VARCHAR(255),
|
2159 |
|
|
"form" VARCHAR(255),
|
2160 |
|
|
"ecol" VARCHAR(255),
|
2161 |
|
|
"FID_2" INTEGER,
|
2162 |
|
|
"NAME" VARCHAR(255),
|
2163 |
|
|
"STATE_NAME" VARCHAR(255),
|
2164 |
|
|
"STATE_FIPS" INTEGER,
|
2165 |
|
|
"CNTY_FIPS" INTEGER,
|
2166 |
|
|
"FIPS" INTEGER,
|
2167 |
|
|
"AREA" DOUBLE PRECISION NULL,
|
2168 |
|
|
"POP2000" INTEGER,
|
2169 |
|
|
"POP2001" INTEGER,
|
2170 |
|
|
"POP00_SQMI" DOUBLE PRECISION NULL,
|
2171 |
|
|
"WHITE" INTEGER,
|
2172 |
|
|
"BLACK" INTEGER,
|
2173 |
|
|
"AMERI_ES" INTEGER,
|
2174 |
|
|
"ASIAN" INTEGER,
|
2175 |
|
|
"HAWN_PI" INTEGER,
|
2176 |
|
|
"OTHER" INTEGER,
|
2177 |
|
|
"MULT_RACE" INTEGER,
|
2178 |
|
|
"HISPANIC" INTEGER,
|
2179 |
|
|
"MALES" INTEGER,
|
2180 |
|
|
"FEMALES" INTEGER,
|
2181 |
|
|
"AGE_UNDER5" INTEGER,
|
2182 |
|
|
"AGE_5_17" INTEGER,
|
2183 |
|
|
"AGE_18_21" INTEGER,
|
2184 |
|
|
"AGE_22_29" INTEGER,
|
2185 |
|
|
"AGE_30_39" INTEGER,
|
2186 |
|
|
"AGE_40_49" INTEGER,
|
2187 |
|
|
"AGE_50_64" INTEGER,
|
2188 |
|
|
"AGE_65_UP" INTEGER,
|
2189 |
|
|
"MED_AGE" DOUBLE PRECISION NULL,
|
2190 |
|
|
"MED_AGE_M" DOUBLE PRECISION NULL,
|
2191 |
|
|
"MED_AGE_F" DOUBLE PRECISION NULL,
|
2192 |
|
|
"HOUSEHOLDS" INTEGER,
|
2193 |
|
|
"AVE_HH_SZ" DOUBLE PRECISION NULL,
|
2194 |
|
|
"HSEHLD_1_M" INTEGER,
|
2195 |
|
|
"HSEHLD_1_F" INTEGER,
|
2196 |
|
|
"MARHH_CHD" INTEGER,
|
2197 |
|
|
"MARHH_NO_C" INTEGER,
|
2198 |
|
|
"MHH_CHILD" INTEGER,
|
2199 |
|
|
"FHH_CHILD" INTEGER,
|
2200 |
|
|
"FAMILIES" INTEGER,
|
2201 |
|
|
"AVE_FAM_SZ" DOUBLE PRECISION NULL,
|
2202 |
|
|
"HSE_UNITS" INTEGER,
|
2203 |
|
|
"VACANT" INTEGER,
|
2204 |
|
|
"OWNER_OCC" INTEGER,
|
2205 |
|
|
"RENTER_OCC" INTEGER,
|
2206 |
|
|
"NO_FARMS97" INTEGER,
|
2207 |
|
|
"AVG_SIZE97" INTEGER,
|
2208 |
|
|
"CROP_ACR97" INTEGER,
|
2209 |
|
|
"AVG_SALE97" DOUBLE PRECISION NULL,
|
2210 |
|
|
"Distance" DOUBLE PRECISION NULL,
|
2211 |
|
|
PRIMARY KEY ("authorObsC")
|
2212 |
|
|
);
|
2213 |
|
|
|
2214 |
|
|
--
|
2215 |
|
|
-- Table structure for table 'temp_proj38_dates'
|
2216 |
|
|
--
|
2217 |
|
|
|
2218 |
|
|
DROP TABLE IF EXISTS "temp_proj38_dates";
|
2219 |
|
|
|
2220 |
|
|
CREATE TABLE "temp_proj38_dates" (
|
2221 |
|
|
"ID" SERIAL NOT NULL,
|
2222 |
|
|
"PTP" VARCHAR(255),
|
2223 |
|
|
"Day/Month/Year" TIMESTAMP,
|
2224 |
|
|
PRIMARY KEY ("ID")
|
2225 |
|
|
);
|
2226 |
|
|
|
2227 |
|
|
--
|
2228 |
|
|
-- Table structure for table 'temp_qa_eep_getDominantSppNames_pre'
|
2229 |
|
|
--
|
2230 |
|
|
|
2231 |
|
|
DROP TABLE IF EXISTS "temp_qa_eep_getDominantSppNames_pre";
|
2232 |
|
|
|
2233 |
|
|
CREATE TABLE "temp_qa_eep_getDominantSppNames_pre" (
|
2234 |
|
|
"project_ID" INTEGER NOT NULL DEFAULT 0,
|
2235 |
|
|
"firstSppID" INTEGER DEFAULT 0,
|
2236 |
|
|
"lastSppId" INTEGER DEFAULT 0,
|
2237 |
|
|
"DomSppCount" INTEGER DEFAULT 0,
|
2238 |
|
|
PRIMARY KEY ("project_ID")
|
2239 |
|
|
);
|
2240 |
|
|
|
2241 |
|
|
--
|
2242 |
|
|
-- Table structure for table 'temp_topoPos_translation2'
|
2243 |
|
|
--
|
2244 |
|
|
|
2245 |
|
|
DROP TABLE IF EXISTS "temp_topoPos_translation2";
|
2246 |
|
|
|
2247 |
|
|
CREATE TABLE "temp_topoPos_translation2" (
|
2248 |
|
|
"ID" SERIAL NOT NULL,
|
2249 |
|
|
"OLD_CVS_VALUE" VARCHAR(255),
|
2250 |
|
|
"New_CVS_Value" VARCHAR(255),
|
2251 |
|
|
"Field3" VARCHAR(255),
|
2252 |
|
|
PRIMARY KEY ("ID")
|
2253 |
|
|
);
|
2254 |
|
|
|
2255 |
|
|
--
|
2256 |
|
|
-- Table structure for table 'temp_topoTranslation'
|
2257 |
|
|
--
|
2258 |
|
|
|
2259 |
|
|
DROP TABLE IF EXISTS "temp_topoTranslation";
|
2260 |
|
|
|
2261 |
|
|
CREATE TABLE "temp_topoTranslation" (
|
2262 |
|
|
"topoPosition" VARCHAR(90) NOT NULL,
|
2263 |
|
|
"countPlots" INTEGER,
|
2264 |
|
|
"newTopoValue" VARCHAR(255),
|
2265 |
|
|
PRIMARY KEY ("topoPosition")
|
2266 |
|
|
);
|
2267 |
|
|
|
2268 |
|
|
--
|
2269 |
|
|
-- Table structure for table 'temp_Usda_classification'
|
2270 |
|
|
--
|
2271 |
|
|
|
2272 |
|
|
DROP TABLE IF EXISTS "temp_Usda_classification";
|
2273 |
|
|
|
2274 |
|
|
CREATE TABLE "temp_Usda_classification" (
|
2275 |
|
|
"Accepted Symbol" VARCHAR(255),
|
2276 |
|
|
"Scientific Name" VARCHAR(255),
|
2277 |
|
|
"Synonym Symbol" VARCHAR(255),
|
2278 |
|
|
"Category" VARCHAR(255),
|
2279 |
|
|
"Family" VARCHAR(255),
|
2280 |
|
|
"Family Symbol" VARCHAR(255),
|
2281 |
|
|
"Order" VARCHAR(255),
|
2282 |
|
|
"Class" VARCHAR(255),
|
2283 |
|
|
"SubClass" VARCHAR(255),
|
2284 |
|
|
"Division" VARCHAR(255),
|
2285 |
|
|
"ID" SERIAL NOT NULL,
|
2286 |
|
|
"Kingdom" VARCHAR(255),
|
2287 |
|
|
PRIMARY KEY ("ID")
|
2288 |
|
|
);
|
2289 |
|
|
|
2290 |
|
|
--
|
2291 |
|
|
-- Table structure for table 'temp_usda_famClassification'
|
2292 |
|
|
--
|
2293 |
|
|
|
2294 |
|
|
DROP TABLE IF EXISTS "temp_usda_famClassification";
|
2295 |
|
|
|
2296 |
|
|
CREATE TABLE "temp_usda_famClassification" (
|
2297 |
|
|
"Expr1" INTEGER,
|
2298 |
|
|
"Category" VARCHAR(255),
|
2299 |
|
|
"Family" VARCHAR(255) NOT NULL,
|
2300 |
|
|
"lookupFam" VARCHAR(255),
|
2301 |
|
|
"Family Symbol" VARCHAR(255),
|
2302 |
|
|
"Order" VARCHAR(255),
|
2303 |
|
|
"Class" VARCHAR(255),
|
2304 |
|
|
"SubClass" VARCHAR(255),
|
2305 |
|
|
"Division" VARCHAR(255),
|
2306 |
|
|
"Kingdom" VARCHAR(255),
|
2307 |
|
|
PRIMARY KEY ("Family")
|
2308 |
|
|
);
|
2309 |
|
|
|
2310 |
|
|
--
|
2311 |
|
|
-- Table structure for table 'translateValues'
|
2312 |
|
|
--
|
2313 |
|
|
|
2314 |
|
|
DROP TABLE IF EXISTS "translateValues";
|
2315 |
|
|
|
2316 |
|
|
CREATE TABLE "translateValues" (
|
2317 |
|
|
"translateID" SERIAL NOT NULL,
|
2318 |
|
|
"table" VARCHAR(255) DEFAULT E'observation',
|
2319 |
|
|
"field" VARCHAR(255),
|
2320 |
|
|
"oldFieldVAlue" VARCHAR(255) NOT NULL,
|
2321 |
|
|
"newFieldVAlue" VARCHAR(255),
|
2322 |
|
|
PRIMARY KEY ("translateID"),
|
2323 |
|
|
UNIQUE ("table", "field", "oldFieldVAlue")
|
2324 |
|
|
);
|
2325 |
|
|
|
2326 |
|
|
--
|
2327 |
|
|
-- Table structure for table 'userDataset'
|
2328 |
|
|
--
|
2329 |
|
|
|
2330 |
|
|
DROP TABLE IF EXISTS "userDataset";
|
2331 |
|
|
|
2332 |
|
|
CREATE TABLE "userDataset" (
|
2333 |
|
|
"userDataset_ID" SERIAL NOT NULL,
|
2334 |
|
|
"usr_ID" INTEGER NOT NULL,
|
2335 |
|
|
"datasetStart" TIMESTAMP,
|
2336 |
|
|
"datasetStop" TIMESTAMP,
|
2337 |
|
|
"accessionCode" VARCHAR(100),
|
2338 |
|
|
"datasetName" VARCHAR(100) NOT NULL,
|
2339 |
|
|
"datasetDescription" TEXT,
|
2340 |
|
|
"datasetType" VARCHAR(50),
|
2341 |
|
|
"datasetSharing" VARCHAR(30),
|
2342 |
|
|
"datasetPassword" VARCHAR(50),
|
2343 |
|
|
PRIMARY KEY ("userDataset_ID")
|
2344 |
|
|
);
|
2345 |
|
|
|
2346 |
|
|
--
|
2347 |
|
|
-- Table structure for table 'userDatasetItem'
|
2348 |
|
|
--
|
2349 |
|
|
|
2350 |
|
|
DROP TABLE IF EXISTS "userDatasetItem";
|
2351 |
|
|
|
2352 |
|
|
CREATE TABLE "userDatasetItem" (
|
2353 |
|
|
"userDatasetItem_ID" SERIAL NOT NULL,
|
2354 |
|
|
"userDataset_ID" INTEGER NOT NULL,
|
2355 |
|
|
"itemAccessionCode" VARCHAR(100) NOT NULL,
|
2356 |
|
|
"itemType" VARCHAR(50),
|
2357 |
|
|
"itemStart" TIMESTAMP NOT NULL,
|
2358 |
|
|
"itemStop" TIMESTAMP,
|
2359 |
|
|
"notes" TEXT,
|
2360 |
|
|
PRIMARY KEY ("userDatasetItem_ID")
|
2361 |
|
|
);
|
2362 |
|
|
|
2363 |
|
|
--
|
2364 |
|
|
-- Table structure for table 'userDefined'
|
2365 |
|
|
--
|
2366 |
|
|
|
2367 |
|
|
DROP TABLE IF EXISTS "userDefined";
|
2368 |
|
|
|
2369 |
|
|
CREATE TABLE "userDefined" (
|
2370 |
|
|
"USERDEFINED_ID" SERIAL NOT NULL,
|
2371 |
|
|
"userDefinedName" VARCHAR(50),
|
2372 |
|
|
"userDefinedMetadata" TEXT,
|
2373 |
|
|
"userDefinedCategory" VARCHAR(30),
|
2374 |
|
|
"userDefinedType" VARCHAR(20) NOT NULL,
|
2375 |
|
|
"tableName" VARCHAR(50) NOT NULL,
|
2376 |
|
|
"accessionCode" VARCHAR(100),
|
2377 |
|
|
"dba_src_ID" INTEGER,
|
2378 |
|
|
PRIMARY KEY ("USERDEFINED_ID")
|
2379 |
|
|
);
|
2380 |
|
|
|
2381 |
|
|
--
|
2382 |
|
|
-- Table structure for table 'usr'
|
2383 |
|
|
--
|
2384 |
|
|
|
2385 |
|
|
DROP TABLE IF EXISTS "usr";
|
2386 |
|
|
|
2387 |
|
|
CREATE TABLE "usr" (
|
2388 |
|
|
"usr_ID" SERIAL NOT NULL,
|
2389 |
|
|
"party_ID" INTEGER NOT NULL,
|
2390 |
|
|
"password" VARCHAR(50) NOT NULL,
|
2391 |
|
|
"permission_type" INTEGER NOT NULL,
|
2392 |
|
|
"begin_time" TIMESTAMP,
|
2393 |
|
|
"last_connect" TIMESTAMP,
|
2394 |
|
|
"ticket_count" INTEGER,
|
2395 |
|
|
"email_address" VARCHAR(100) NOT NULL,
|
2396 |
|
|
"preferred_name" VARCHAR(100),
|
2397 |
|
|
"remote_address" VARCHAR(100),
|
2398 |
|
|
PRIMARY KEY ("usr_ID")
|
2399 |
|
|
);
|
2400 |
|
|
|
2401 |
|
|
--
|
2402 |
|
|
-- Table structure for table 'versionLog'
|
2403 |
|
|
--
|
2404 |
|
|
|
2405 |
|
|
DROP TABLE IF EXISTS "versionLog";
|
2406 |
|
|
|
2407 |
|
|
CREATE TABLE "versionLog" (
|
2408 |
|
|
"versionLog_ID" SERIAL NOT NULL,
|
2409 |
|
|
"versionNumber" VARCHAR(100) NOT NULL,
|
2410 |
|
|
"versionDate" TIMESTAMP,
|
2411 |
|
|
"versionDescription" TEXT,
|
2412 |
|
|
"databaseType" VARCHAR(100),
|
2413 |
|
|
"databaseDomain" VARCHAR(255),
|
2414 |
|
|
"recordCreated" TIMESTAMP DEFAULT E'=Now()',
|
2415 |
|
|
PRIMARY KEY ("versionLog_ID")
|
2416 |
|
|
);
|
2417 |
|
|
|
2418 |
|
|
--
|
2419 |
|
|
-- Table structure for table 'Z_backend_TableDescription'
|
2420 |
|
|
--
|
2421 |
|
|
|
2422 |
|
|
DROP TABLE IF EXISTS "Z_backend_TableDescription";
|
2423 |
|
|
|
2424 |
|
|
CREATE TABLE "Z_backend_TableDescription" (
|
2425 |
|
|
"Z_backend_tbl_descID" SERIAL,
|
2426 |
|
|
"tableName" VARCHAR(50),
|
2427 |
|
|
"tableModule" VARCHAR(50),
|
2428 |
|
|
"actualTableName" VARCHAR(50) NOT NULL,
|
2429 |
|
|
"entryTableName" VARCHAR(50),
|
2430 |
|
|
"importOrder" DOUBLE PRECISION NULL,
|
2431 |
|
|
"Client" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
2432 |
|
|
"Backend" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
2433 |
|
|
"Temp" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
2434 |
|
|
"Archive" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
2435 |
|
|
"countRecords" INTEGER,
|
2436 |
|
|
"countNewRecords" INTEGER,
|
2437 |
|
|
PRIMARY KEY ("actualTableName"),
|
2438 |
|
|
UNIQUE ("Z_backend_tbl_descID")
|
2439 |
|
|
);
|
2440 |
|
|
|
2441 |
|
|
--
|
2442 |
|
|
-- Table structure for table 'Z_FieldDescription'
|
2443 |
|
|
--
|
2444 |
|
|
|
2445 |
|
|
DROP TABLE IF EXISTS "Z_FieldDescription";
|
2446 |
|
|
|
2447 |
|
|
CREATE TABLE "Z_FieldDescription" (
|
2448 |
|
|
"Z_field_ID" SERIAL NOT NULL,
|
2449 |
|
|
"TableName" VARCHAR(80) DEFAULT E'observation',
|
2450 |
|
|
"FieldName" VARCHAR(80),
|
2451 |
|
|
"FieldLabel" VARCHAR(255),
|
2452 |
|
|
"key" VARCHAR(50),
|
2453 |
|
|
"references" VARCHAR(100),
|
2454 |
|
|
"FieldDefinition" TEXT,
|
2455 |
|
|
"altHelpDefinition" TEXT,
|
2456 |
|
|
"nonNullRecs" INTEGER,
|
2457 |
|
|
"dataEntryImpl" VARCHAR(50),
|
2458 |
|
|
"fieldType" VARCHAR(50),
|
2459 |
|
|
"fieldLength" INTEGER,
|
2460 |
|
|
"fieldModule" VARCHAR(50),
|
2461 |
|
|
"archiveField" /*BOOLEAN*/INTEGER DEFAULT E'0',
|
2462 |
|
|
"countNonNulls" INTEGER,
|
2463 |
|
|
PRIMARY KEY ("Z_field_ID"),
|
2464 |
|
|
UNIQUE ("TableName", "FieldName")
|
2465 |
|
|
);
|
2466 |
|
|
|
2467 |
|
|
--
|
2468 |
|
|
-- Table structure for table 'zvegbank_version'
|
2469 |
|
|
--
|
2470 |
|
|
|
2471 |
|
|
DROP TABLE IF EXISTS "zvegbank_version";
|
2472 |
|
|
|
2473 |
|
|
CREATE TABLE "zvegbank_version" (
|
2474 |
|
|
"verID" SERIAL NOT NULL,
|
2475 |
|
|
"versionNumber" VARCHAR(100),
|
2476 |
|
|
"versionDate" TIMESTAMP,
|
2477 |
|
|
"versionDescription" TEXT,
|
2478 |
|
|
"databaseType" VARCHAR(100),
|
2479 |
|
|
"databaseDomain" VARCHAR(255),
|
2480 |
|
|
PRIMARY KEY ("verID")
|
2481 |
|
|
);
|