Revision 841
Added by Aaron Marcuse-Kubitza about 13 years ago
vegbien.sql | ||
---|---|---|
70 | 70 |
address_id integer NOT NULL, |
71 | 71 |
party_id integer NOT NULL, |
72 | 72 |
organization_id integer, |
73 |
orgposition character varying(50),
|
|
74 |
email character varying(100),
|
|
75 |
deliverypoint character varying(200),
|
|
76 |
city character varying(50),
|
|
77 |
administrativearea character varying(50),
|
|
78 |
postalcode character varying(10),
|
|
79 |
country character varying(50),
|
|
73 |
orgposition text,
|
|
74 |
email text,
|
|
75 |
deliverypoint text,
|
|
76 |
city text,
|
|
77 |
administrativearea text,
|
|
78 |
postalcode text,
|
|
79 |
country text,
|
|
80 | 80 |
currentflag boolean, |
81 | 81 |
addressstartdate timestamp with time zone |
82 | 82 |
); |
... | ... | |
115 | 115 |
stratumbase double precision, |
116 | 116 |
stratumheight double precision, |
117 | 117 |
emb_aggregateoccurrence integer, |
118 |
covercode character varying(10),
|
|
118 |
covercode text,
|
|
119 | 119 |
count integer, |
120 |
accessioncode character varying(255),
|
|
121 |
sourceaccessioncode character varying(100),
|
|
120 |
accessioncode text,
|
|
121 |
sourceaccessioncode text,
|
|
122 | 122 |
plantobservation_id integer, |
123 | 123 |
stratum_id integer, |
124 | 124 |
sizeclass_id integer, |
... | ... | |
205 | 205 |
multivariateanalysis boolean, |
206 | 206 |
classpublication_id integer, |
207 | 207 |
classnotes text, |
208 |
commname character varying(200),
|
|
209 |
commcode character varying(200),
|
|
210 |
commframework character varying(200),
|
|
211 |
commlevel character varying(200),
|
|
208 |
commname text,
|
|
209 |
commcode text,
|
|
210 |
commframework text,
|
|
211 |
commlevel text,
|
|
212 | 212 |
classstartdate timestamp with time zone, |
213 | 213 |
classstopdate timestamp with time zone, |
214 | 214 |
emb_commclass integer, |
215 | 215 |
expertsystem text, |
216 |
accessioncode character varying(255)
|
|
216 |
accessioncode text
|
|
217 | 217 |
); |
218 | 218 |
|
219 | 219 |
|
... | ... | |
248 | 248 |
d_obscount integer, |
249 | 249 |
commname text, |
250 | 250 |
d_currentaccepted boolean, |
251 |
accessioncode character varying(255)
|
|
251 |
accessioncode text
|
|
252 | 252 |
); |
253 | 253 |
|
254 | 254 |
|
... | ... | |
279 | 279 |
commcorrelation_id integer NOT NULL, |
280 | 280 |
commstatus_id integer NOT NULL, |
281 | 281 |
commconcept_id integer NOT NULL, |
282 |
commconvergence character varying(20) NOT NULL,
|
|
282 |
commconvergence text NOT NULL,
|
|
283 | 283 |
correlationstart timestamp with time zone NOT NULL, |
284 | 284 |
correlationstop timestamp with time zone |
285 | 285 |
); |
... | ... | |
312 | 312 |
commdetermination_id integer NOT NULL, |
313 | 313 |
commclass_id integer NOT NULL, |
314 | 314 |
commconcept_id integer, |
315 |
commcode character varying(34),
|
|
316 |
commname character varying(200),
|
|
317 |
classfit character varying(50),
|
|
318 |
classconfidence character varying(15),
|
|
315 |
commcode text,
|
|
316 |
commname text,
|
|
317 |
classfit text,
|
|
318 |
classconfidence text,
|
|
319 | 319 |
commauthority_id integer, |
320 | 320 |
notes text, |
321 | 321 |
type boolean, |
... | ... | |
412 | 412 |
commstatus_id integer NOT NULL, |
413 | 413 |
commconcept_id integer NOT NULL, |
414 | 414 |
reference_id integer, |
415 |
commconceptstatus character varying(20) NOT NULL,
|
|
415 |
commconceptstatus text NOT NULL,
|
|
416 | 416 |
commparent_id integer, |
417 |
commlevel character varying(80),
|
|
417 |
commlevel text,
|
|
418 | 418 |
commpartycomments text, |
419 | 419 |
party_id integer NOT NULL, |
420 | 420 |
startdate timestamp with time zone NOT NULL, |
421 | 421 |
stopdate timestamp with time zone, |
422 |
accessioncode character varying(255)
|
|
422 |
accessioncode text
|
|
423 | 423 |
); |
424 | 424 |
|
425 | 425 |
|
... | ... | |
451 | 451 |
commname_id integer NOT NULL, |
452 | 452 |
commname text, |
453 | 453 |
commconcept_id integer, |
454 |
commnamestatus character varying(20),
|
|
455 |
classsystem character varying(50),
|
|
454 |
commnamestatus text,
|
|
455 |
classsystem text,
|
|
456 | 456 |
party_id integer, |
457 | 457 |
commstatus_id integer, |
458 | 458 |
usagestart timestamp with time zone, |
... | ... | |
486 | 486 |
CREATE TABLE coverindex ( |
487 | 487 |
coverindex_id integer NOT NULL, |
488 | 488 |
covermethod_id integer NOT NULL, |
489 |
covercode character varying(10) NOT NULL,
|
|
489 |
covercode text NOT NULL,
|
|
490 | 490 |
upperlimit double precision, |
491 | 491 |
lowerlimit double precision, |
492 | 492 |
coverpercent double precision NOT NULL, |
... | ... | |
520 | 520 |
CREATE TABLE covermethod ( |
521 | 521 |
covermethod_id integer NOT NULL, |
522 | 522 |
reference_id integer, |
523 |
covertype character varying(30) NOT NULL,
|
|
524 |
coverestimationmethod character varying(80),
|
|
525 |
accessioncode character varying(255)
|
|
523 |
covertype text NOT NULL,
|
|
524 |
coverestimationmethod text,
|
|
525 |
accessioncode text
|
|
526 | 526 |
); |
527 | 527 |
|
528 | 528 |
|
... | ... | |
551 | 551 |
|
552 | 552 |
CREATE TABLE dba_confidentialitystatus ( |
553 | 553 |
confidentialitystatus integer NOT NULL, |
554 |
confidentialitytext character varying(100),
|
|
555 |
confidentialityshorttext character varying(100)
|
|
554 |
confidentialitytext text,
|
|
555 |
confidentialityshorttext text
|
|
556 | 556 |
); |
557 | 557 |
|
558 | 558 |
|
... | ... | |
562 | 562 |
|
563 | 563 |
CREATE TABLE dba_cookie ( |
564 | 564 |
cookie_id integer NOT NULL, |
565 |
cookiename character varying(75) NOT NULL,
|
|
566 |
defaultvalue character varying(75) NOT NULL,
|
|
567 |
viewname character varying(25) NOT NULL,
|
|
565 |
cookiename text NOT NULL,
|
|
566 |
defaultvalue text NOT NULL,
|
|
567 |
viewname text NOT NULL,
|
|
568 | 568 |
description text, |
569 | 569 |
examplepk integer NOT NULL, |
570 | 570 |
sortorder integer, |
... | ... | |
599 | 599 |
|
600 | 600 |
CREATE TABLE dba_cookielabels ( |
601 | 601 |
cookielabel_id integer NOT NULL, |
602 |
vieworcookie character varying(50) NOT NULL,
|
|
602 |
vieworcookie text NOT NULL,
|
|
603 | 603 |
description text |
604 | 604 |
); |
605 | 605 |
|
... | ... | |
631 | 631 |
|
632 | 632 |
CREATE TABLE dba_datacache ( |
633 | 633 |
dba_datacache_id integer NOT NULL, |
634 |
cache_key character varying(200) NOT NULL,
|
|
635 |
cache_label character varying(200),
|
|
634 |
cache_key text NOT NULL,
|
|
635 |
cache_label text,
|
|
636 | 636 |
cache_order double precision, |
637 |
data1 character varying(255),
|
|
638 |
data2 character varying(255),
|
|
639 |
data3 character varying(255),
|
|
640 |
data4 character varying(255),
|
|
641 |
data5 character varying(255),
|
|
642 |
data6 character varying(255),
|
|
643 |
data7 character varying(255),
|
|
644 |
data8 character varying(255),
|
|
645 |
data9 character varying(255),
|
|
646 |
data10 character varying(255)
|
|
637 |
data1 text,
|
|
638 |
data2 text,
|
|
639 |
data3 text,
|
|
640 |
data4 text,
|
|
641 |
data5 text,
|
|
642 |
data6 text,
|
|
643 |
data7 text,
|
|
644 |
data8 text,
|
|
645 |
data9 text,
|
|
646 |
data10 text
|
|
647 | 647 |
); |
648 | 648 |
|
649 | 649 |
|
... | ... | |
672 | 672 |
|
673 | 673 |
CREATE TABLE dba_datamodelversion ( |
674 | 674 |
dba_datamodelversion_id integer NOT NULL, |
675 |
versiontext character varying(20) NOT NULL,
|
|
675 |
versiontext text NOT NULL,
|
|
676 | 676 |
versionimplemented timestamp with time zone DEFAULT now() |
677 | 677 |
); |
678 | 678 |
|
... | ... | |
707 | 707 |
statdate timestamp with time zone, |
708 | 708 |
statpkg integer, |
709 | 709 |
statname text, |
710 |
stattable character varying(100),
|
|
710 |
stattable text,
|
|
711 | 711 |
minpk integer, |
712 | 712 |
maxpk integer, |
713 | 713 |
countrecs integer |
... | ... | |
741 | 741 |
|
742 | 742 |
CREATE TABLE dba_fielddescription ( |
743 | 743 |
dba_fielddescription_id integer NOT NULL, |
744 |
tablename character varying(75),
|
|
745 |
fieldname character varying(75),
|
|
746 |
fieldlabel character varying(200),
|
|
747 |
fieldmodel character varying(50),
|
|
748 |
fieldnulls character varying(10),
|
|
749 |
fieldtype character varying(30),
|
|
750 |
fieldkey character varying(10),
|
|
751 |
fieldreferences character varying(200),
|
|
752 |
fieldlist character varying(50),
|
|
744 |
tablename text,
|
|
745 |
fieldname text,
|
|
746 |
fieldlabel text,
|
|
747 |
fieldmodel text,
|
|
748 |
fieldnulls text,
|
|
749 |
fieldtype text,
|
|
750 |
fieldkey text,
|
|
751 |
fieldreferences text,
|
|
752 |
fieldlist text,
|
|
753 | 753 |
fieldnotes text, |
754 | 754 |
fielddefinition text, |
755 | 755 |
fieldkeywords text |
... | ... | |
781 | 781 |
|
782 | 782 |
CREATE TABLE dba_fieldlist ( |
783 | 783 |
dba_fieldlist_id integer NOT NULL, |
784 |
tablename character varying(75),
|
|
785 |
fieldname character varying(75),
|
|
786 |
listvalue character varying(255),
|
|
784 |
tablename text,
|
|
785 |
fieldname text,
|
|
786 |
listvalue text,
|
|
787 | 787 |
listvaluedescription text, |
788 | 788 |
listvaluesortorder double precision |
789 | 789 |
); |
... | ... | |
843 | 843 |
CREATE TABLE dba_preassignacccode ( |
844 | 844 |
dba_preassignacccode_id integer NOT NULL, |
845 | 845 |
dba_requestnumber integer NOT NULL, |
846 |
databasekey character varying(20) NOT NULL,
|
|
847 |
tableabbrev character varying(10) NOT NULL,
|
|
848 |
confirmcode character varying(70) DEFAULT ((replace(replace(replace(replace((now())::text, ' '::text, 'T'::text), '-'::text, ''::text), ':'::text, ''::text), '.'::text, 'd'::text) || 'R'::text) || (floor((random() * (1000000)::double precision)))::text) NOT NULL,
|
|
846 |
databasekey text NOT NULL,
|
|
847 |
tableabbrev text NOT NULL,
|
|
848 |
confirmcode text DEFAULT ((replace(replace(replace(replace((now())::text, ' '::text, 'T'::text), '-'::text, ''::text), ':'::text, ''::text), '.'::text, 'd'::text) || 'R'::text) || (floor((random() * (1000000)::double precision)))::text) NOT NULL,
|
|
849 | 849 |
codeisused boolean, |
850 |
accessioncode character varying(255)
|
|
850 |
accessioncode text
|
|
851 | 851 |
); |
852 | 852 |
|
853 | 853 |
|
... | ... | |
888 | 888 |
|
889 | 889 |
CREATE TABLE dba_tabledescription ( |
890 | 890 |
dba_tabledescription_id integer NOT NULL, |
891 |
tablename character varying(75),
|
|
892 |
tablelabel character varying(200),
|
|
891 |
tablename text,
|
|
892 |
tablelabel text,
|
|
893 | 893 |
tablenotes text, |
894 | 894 |
tabledescription text, |
895 | 895 |
tablekeywords text |
... | ... | |
921 | 921 |
|
922 | 922 |
CREATE TABLE dba_xmlcache ( |
923 | 923 |
xml bytea, |
924 |
accessioncode character varying(255)
|
|
924 |
accessioncode text
|
|
925 | 925 |
); |
926 | 926 |
|
927 | 927 |
|
... | ... | |
965 | 965 |
CREATE TABLE disturbanceobs ( |
966 | 966 |
disturbanceobs_id integer NOT NULL, |
967 | 967 |
locationevent_id integer NOT NULL, |
968 |
disturbancetype character varying(30) NOT NULL,
|
|
969 |
disturbanceintensity character varying(30),
|
|
968 |
disturbancetype text NOT NULL,
|
|
969 |
disturbanceintensity text,
|
|
970 | 970 |
disturbanceage double precision, |
971 | 971 |
disturbanceextent double precision, |
972 | 972 |
disturbancecomment text, |
... | ... | |
1033 | 1033 |
CREATE TABLE graphic ( |
1034 | 1034 |
graphic_id integer NOT NULL, |
1035 | 1035 |
locationevent_id integer NOT NULL, |
1036 |
graphicname character varying(30),
|
|
1036 |
graphicname text,
|
|
1037 | 1037 |
graphiclocation text, |
1038 | 1038 |
graphicdescription text, |
1039 |
graphictype character varying(20),
|
|
1039 |
graphictype text,
|
|
1040 | 1040 |
graphicdata oid, |
1041 | 1041 |
graphicdate timestamp with time zone, |
1042 |
accessioncode character varying(255)
|
|
1042 |
accessioncode text
|
|
1043 | 1043 |
); |
1044 | 1044 |
|
1045 | 1045 |
|
... | ... | |
1090 | 1090 |
|
1091 | 1091 |
CREATE TABLE location ( |
1092 | 1092 |
location_id integer NOT NULL, |
1093 |
authorlocationcode character varying(30),
|
|
1093 |
authorlocationcode text,
|
|
1094 | 1094 |
reference_id integer, |
1095 | 1095 |
parent_id integer, |
1096 | 1096 |
reallatitude double precision, |
1097 | 1097 |
reallongitude double precision, |
1098 | 1098 |
locationaccuracy double precision, |
1099 | 1099 |
confidentialitystatus integer DEFAULT 0 NOT NULL, |
1100 |
confidentialityreason character varying(200),
|
|
1100 |
confidentialityreason text,
|
|
1101 | 1101 |
publiclatitude double precision, |
1102 | 1102 |
publiclongitude double precision, |
1103 |
accessioncode character varying(255),
|
|
1103 |
accessioncode text,
|
|
1104 | 1104 |
sublocationxposition double precision, |
1105 | 1105 |
sublocationyposition double precision, |
1106 |
authore character varying(20),
|
|
1107 |
authorn character varying(20),
|
|
1108 |
authorzone character varying(20),
|
|
1109 |
authordatum character varying(20),
|
|
1110 |
authorlocation character varying(200),
|
|
1106 |
authore text,
|
|
1107 |
authorn text,
|
|
1108 |
authorzone text,
|
|
1109 |
authordatum text,
|
|
1110 |
authorlocation text,
|
|
1111 | 1111 |
locationnarrative text, |
1112 | 1112 |
azimuth double precision, |
1113 | 1113 |
dsgpoly text, |
1114 |
shape character varying(50),
|
|
1114 |
shape text,
|
|
1115 | 1115 |
area double precision, |
1116 |
standsize character varying(50),
|
|
1117 |
placementmethod character varying(50),
|
|
1116 |
standsize text,
|
|
1117 |
placementmethod text,
|
|
1118 | 1118 |
permanence boolean, |
1119 | 1119 |
layoutnarrative text, |
1120 | 1120 |
elevation double precision, |
... | ... | |
1126 | 1126 |
slopegradient double precision, |
1127 | 1127 |
minslopegradient double precision, |
1128 | 1128 |
maxslopegradient double precision, |
1129 |
topoposition character varying(90),
|
|
1130 |
landform character varying(50),
|
|
1131 |
surficialdeposits character varying(90),
|
|
1132 |
rocktype character varying(90),
|
|
1133 |
stateprovince character varying(55),
|
|
1134 |
country character varying(100),
|
|
1135 |
submitter_surname character varying(100),
|
|
1136 |
submitter_givenname character varying(100),
|
|
1137 |
submitter_email character varying(100),
|
|
1129 |
topoposition text,
|
|
1130 |
landform text,
|
|
1131 |
surficialdeposits text,
|
|
1132 |
rocktype text,
|
|
1133 |
stateprovince text,
|
|
1134 |
country text,
|
|
1135 |
submitter_surname text,
|
|
1136 |
submitter_givenname text,
|
|
1137 |
submitter_email text,
|
|
1138 | 1138 |
notespublic boolean, |
1139 | 1139 |
notesmgt boolean, |
1140 | 1140 |
revisions boolean, |
... | ... | |
1172 | 1172 |
previous_id integer, |
1173 | 1173 |
location_id integer, |
1174 | 1174 |
project_id integer, |
1175 |
authoreventcode character varying(30),
|
|
1176 |
accessioncode character varying(255),
|
|
1177 |
sourceaccessioncode character varying(100),
|
|
1178 |
dateaccuracy character varying(30),
|
|
1175 |
authoreventcode text,
|
|
1176 |
accessioncode text,
|
|
1177 |
sourceaccessioncode text,
|
|
1178 |
dateaccuracy text,
|
|
1179 | 1179 |
covermethod_id integer, |
1180 |
coverdispersion character varying(30),
|
|
1180 |
coverdispersion text,
|
|
1181 | 1181 |
autotaxoncover boolean, |
1182 | 1182 |
methodnarrative text, |
1183 | 1183 |
taxonoccurrencearea double precision, |
1184 | 1184 |
stemsizelimit double precision, |
1185 | 1185 |
stemarea double precision, |
1186 |
stemsamplemethod character varying(30),
|
|
1186 |
stemsamplemethod text,
|
|
1187 | 1187 |
originaldata text, |
1188 |
effortlevel character varying(30),
|
|
1188 |
effortlevel text,
|
|
1189 | 1189 |
locationvalidationlevel integer, |
1190 |
floristicquality character varying(30),
|
|
1191 |
bryophytequality character varying(30),
|
|
1192 |
lichenquality character varying(30),
|
|
1190 |
floristicquality text,
|
|
1191 |
bryophytequality text,
|
|
1192 |
lichenquality text,
|
|
1193 | 1193 |
locationeventnarrative text, |
1194 | 1194 |
landscapenarrative text, |
1195 |
homogeneity character varying(50),
|
|
1196 |
phenologicaspect character varying(30),
|
|
1197 |
representativeness character varying(255),
|
|
1198 |
standmaturity character varying(50),
|
|
1195 |
homogeneity text,
|
|
1196 |
phenologicaspect text,
|
|
1197 |
representativeness text,
|
|
1198 |
standmaturity text,
|
|
1199 | 1199 |
successionalstatus text, |
1200 | 1200 |
basalarea double precision, |
1201 |
hydrologicregime character varying(30),
|
|
1202 |
soilmoistureregime character varying(30),
|
|
1203 |
soildrainage character varying(30),
|
|
1204 |
watersalinity character varying(30),
|
|
1201 |
hydrologicregime text,
|
|
1202 |
soilmoistureregime text,
|
|
1203 |
soildrainage text,
|
|
1204 |
watersalinity text,
|
|
1205 | 1205 |
waterdepth double precision, |
1206 | 1206 |
shoredistance double precision, |
1207 | 1207 |
soildepth double precision, |
1208 | 1208 |
organicdepth double precision, |
1209 | 1209 |
soiltaxon_id integer, |
1210 |
soiltaxonsrc character varying(200),
|
|
1210 |
soiltaxonsrc text,
|
|
1211 | 1211 |
percentbedrock double precision, |
1212 | 1212 |
percentrockgravel double precision, |
1213 | 1213 |
percentwood double precision, |
... | ... | |
1215 | 1215 |
percentbaresoil double precision, |
1216 | 1216 |
percentwater double precision, |
1217 | 1217 |
percentother double precision, |
1218 |
nameother character varying(30),
|
|
1218 |
nameother text,
|
|
1219 | 1219 |
treeht double precision, |
1220 | 1220 |
shrubht double precision, |
1221 | 1221 |
fieldht double precision, |
... | ... | |
1227 | 1227 |
nonvascularcover double precision, |
1228 | 1228 |
floatingcover double precision, |
1229 | 1229 |
submergedcover double precision, |
1230 |
dominantstratum character varying(40),
|
|
1231 |
growthform1type character varying(40),
|
|
1232 |
growthform2type character varying(40),
|
|
1233 |
growthform3type character varying(40),
|
|
1230 |
dominantstratum text,
|
|
1231 |
growthform1type text,
|
|
1232 |
growthform2type text,
|
|
1233 |
growthform3type text,
|
|
1234 | 1234 |
growthform1cover double precision, |
1235 | 1235 |
growthform2cover double precision, |
1236 | 1236 |
growthform3cover double precision, |
... | ... | |
1260 | 1260 |
interp_bestfit_code text, |
1261 | 1261 |
interp_bestfit_party_id integer, |
1262 | 1262 |
interp_bestfit_partyname text, |
1263 |
toptaxon1name character varying(255),
|
|
1264 |
toptaxon2name character varying(255),
|
|
1265 |
toptaxon3name character varying(255),
|
|
1266 |
toptaxon4name character varying(255),
|
|
1267 |
toptaxon5name character varying(255),
|
|
1263 |
toptaxon1name text,
|
|
1264 |
toptaxon2name text,
|
|
1265 |
toptaxon3name text,
|
|
1266 |
toptaxon4name text,
|
|
1267 |
toptaxon5name text,
|
|
1268 | 1268 |
numberoftaxa integer |
1269 | 1269 |
); |
1270 | 1270 |
|
... | ... | |
1340 | 1340 |
synonymcomment text, |
1341 | 1341 |
classstartdate timestamp with time zone DEFAULT now() NOT NULL, |
1342 | 1342 |
classstopdate timestamp with time zone, |
1343 |
accessioncode character varying(255)
|
|
1343 |
accessioncode text
|
|
1344 | 1344 |
); |
1345 | 1345 |
|
1346 | 1346 |
|
... | ... | |
1400 | 1400 |
|
1401 | 1401 |
CREATE TABLE namedplace ( |
1402 | 1402 |
namedplace_id integer NOT NULL, |
1403 |
placesystem character varying(50),
|
|
1404 |
placename character varying(100) NOT NULL,
|
|
1403 |
placesystem text,
|
|
1404 |
placename text NOT NULL,
|
|
1405 | 1405 |
placedescription text, |
1406 |
placecode character varying(15),
|
|
1407 |
owner character varying(100),
|
|
1406 |
placecode text,
|
|
1407 |
owner text,
|
|
1408 | 1408 |
reference_id integer, |
1409 | 1409 |
d_obscount integer, |
1410 |
accessioncode character varying(255)
|
|
1410 |
accessioncode text
|
|
1411 | 1411 |
); |
1412 | 1412 |
|
1413 | 1413 |
|
... | ... | |
1438 | 1438 |
namedplacecorrelation_id integer NOT NULL, |
1439 | 1439 |
parentplace_id integer NOT NULL, |
1440 | 1440 |
childplace_id integer NOT NULL, |
1441 |
placeconvergence character varying(20) NOT NULL
|
|
1441 |
placeconvergence text NOT NULL
|
|
1442 | 1442 |
); |
1443 | 1443 |
|
1444 | 1444 |
|
... | ... | |
1470 | 1470 |
notelink_id integer NOT NULL, |
1471 | 1471 |
party_id integer NOT NULL, |
1472 | 1472 |
role_id integer NOT NULL, |
1473 |
notetype character varying(20) NOT NULL,
|
|
1473 |
notetype text NOT NULL,
|
|
1474 | 1474 |
notetext text NOT NULL, |
1475 | 1475 |
notedate timestamp with time zone, |
1476 |
accessioncode character varying(255)
|
|
1476 |
accessioncode text
|
|
1477 | 1477 |
); |
1478 | 1478 |
|
1479 | 1479 |
|
... | ... | |
1502 | 1502 |
|
1503 | 1503 |
CREATE TABLE notelink ( |
1504 | 1504 |
notelink_id integer NOT NULL, |
1505 |
tablename character varying(50) NOT NULL,
|
|
1506 |
attributename character varying(50),
|
|
1505 |
tablename text NOT NULL,
|
|
1506 |
attributename text,
|
|
1507 | 1507 |
tablerecord integer NOT NULL |
1508 | 1508 |
); |
1509 | 1509 |
|
... | ... | |
1533 | 1533 |
|
1534 | 1534 |
CREATE TABLE party ( |
1535 | 1535 |
party_id integer NOT NULL, |
1536 |
salutation character varying(20),
|
|
1537 |
givenname character varying(50),
|
|
1538 |
middlename character varying(50),
|
|
1539 |
surname character varying(50),
|
|
1540 |
organizationname character varying(100),
|
|
1536 |
salutation text,
|
|
1537 |
givenname text,
|
|
1538 |
middlename text,
|
|
1539 |
surname text,
|
|
1540 |
organizationname text,
|
|
1541 | 1541 |
currentname_id integer, |
1542 | 1542 |
contactinstructions text, |
1543 |
email character varying(120),
|
|
1544 |
partytype character varying(40),
|
|
1543 |
email text,
|
|
1544 |
partytype text,
|
|
1545 | 1545 |
partypublic boolean DEFAULT true, |
1546 | 1546 |
d_obscount integer, |
1547 |
accessioncode character varying(255)
|
|
1547 |
accessioncode text
|
|
1548 | 1548 |
); |
1549 | 1549 |
|
1550 | 1550 |
|
... | ... | |
1647 | 1647 |
plantconcept_id integer NOT NULL, |
1648 | 1648 |
plantname_id integer NOT NULL, |
1649 | 1649 |
reference_id integer, |
1650 |
plantcode character varying(23),
|
|
1650 |
plantcode text,
|
|
1651 | 1651 |
plantdescription text, |
1652 | 1652 |
d_obscount integer, |
1653 | 1653 |
d_currentaccepted boolean, |
1654 |
accessioncode character varying(255)
|
|
1654 |
accessioncode text
|
|
1655 | 1655 |
); |
1656 | 1656 |
|
1657 | 1657 |
|
... | ... | |
1682 | 1682 |
plantcorrelation_id integer NOT NULL, |
1683 | 1683 |
plantstatus_id integer NOT NULL, |
1684 | 1684 |
plantconcept_id integer NOT NULL, |
1685 |
plantconvergence character varying(20) NOT NULL,
|
|
1685 |
plantconvergence text NOT NULL,
|
|
1686 | 1686 |
correlationstart timestamp with time zone NOT NULL, |
1687 | 1687 |
correlationstop timestamp with time zone |
1688 | 1688 |
); |
... | ... | |
1743 | 1743 |
|
1744 | 1744 |
CREATE TABLE plantname ( |
1745 | 1745 |
plantname_id integer NOT NULL, |
1746 |
plantname character varying(255) NOT NULL,
|
|
1746 |
plantname text NOT NULL,
|
|
1747 | 1747 |
reference_id integer, |
1748 | 1748 |
dateentered timestamp with time zone DEFAULT now() |
1749 | 1749 |
); |
... | ... | |
1777 | 1777 |
overallheight double precision, |
1778 | 1778 |
overallheightaccuracy double precision, |
1779 | 1779 |
emb_plantobservation integer, |
1780 |
authorplantcode character varying(20),
|
|
1781 |
accessioncode character varying(255),
|
|
1780 |
authorplantcode text,
|
|
1781 |
accessioncode text,
|
|
1782 | 1782 |
stemcount integer, |
1783 |
sourceaccessioncode character varying(100),
|
|
1783 |
sourceaccessioncode text,
|
|
1784 | 1784 |
plant_id integer |
1785 | 1785 |
); |
1786 | 1786 |
|
... | ... | |
1819 | 1819 |
plantstatus_id integer NOT NULL, |
1820 | 1820 |
plantconcept_id integer NOT NULL, |
1821 | 1821 |
reference_id integer, |
1822 |
plantconceptstatus character varying(20) DEFAULT 'undetermined'::character varying NOT NULL,
|
|
1822 |
plantconceptstatus text DEFAULT 'undetermined'::text NOT NULL,
|
|
1823 | 1823 |
plantpartycomments text, |
1824 |
plantparentname character varying(200),
|
|
1824 |
plantparentname text,
|
|
1825 | 1825 |
plantparentconcept_id integer, |
1826 | 1826 |
plantparent_id integer, |
1827 |
plantlevel character varying(80),
|
|
1827 |
plantlevel text,
|
|
1828 | 1828 |
party_id integer, |
1829 | 1829 |
startdate timestamp with time zone, |
1830 | 1830 |
stopdate timestamp with time zone, |
1831 |
accessioncode character varying(255)
|
|
1831 |
accessioncode text
|
|
1832 | 1832 |
); |
1833 | 1833 |
|
1834 | 1834 |
|
... | ... | |
1860 | 1860 |
CREATE TABLE planttag ( |
1861 | 1861 |
planttag_id integer NOT NULL, |
1862 | 1862 |
plantobservation_id integer NOT NULL, |
1863 |
tag character varying(255) NOT NULL,
|
|
1863 |
tag text NOT NULL,
|
|
1864 | 1864 |
iscurrent boolean DEFAULT true NOT NULL |
1865 | 1865 |
); |
1866 | 1866 |
|
... | ... | |
1894 | 1894 |
plantusage_id integer NOT NULL, |
1895 | 1895 |
plantname_id integer NOT NULL, |
1896 | 1896 |
plantconcept_id integer, |
1897 |
plantnamestatus character varying(20),
|
|
1898 |
plantname character varying(220),
|
|
1899 |
classsystem character varying(50),
|
|
1900 |
acceptedsynonym character varying(220),
|
|
1897 |
plantnamestatus text,
|
|
1898 |
plantname text,
|
|
1899 |
classsystem text,
|
|
1900 |
acceptedsynonym text,
|
|
1901 | 1901 |
party_id integer, |
1902 | 1902 |
plantstatus_id integer, |
1903 | 1903 |
usagestart timestamp with time zone, |
... | ... | |
1930 | 1930 |
|
1931 | 1931 |
CREATE TABLE project ( |
1932 | 1932 |
project_id integer NOT NULL, |
1933 |
projectname character varying(150) NOT NULL,
|
|
1933 |
projectname text NOT NULL,
|
|
1934 | 1934 |
projectdescription text, |
1935 | 1935 |
startdate timestamp with time zone, |
1936 | 1936 |
stopdate timestamp with time zone, |
1937 | 1937 |
d_obscount integer, |
1938 | 1938 |
d_lastlocationaddeddate timestamp with time zone, |
1939 |
accessioncode character varying(255),
|
|
1939 |
accessioncode text,
|
|
1940 | 1940 |
reference_id integer |
1941 | 1941 |
); |
1942 | 1942 |
|
... | ... | |
1969 | 1969 |
project_id integer NOT NULL, |
1970 | 1970 |
party_id integer NOT NULL, |
1971 | 1971 |
role_id integer, |
1972 |
surname character varying(50),
|
|
1973 |
cheatrole character varying(50)
|
|
1972 |
surname text,
|
|
1973 |
cheatrole text
|
|
1974 | 1974 |
); |
1975 | 1975 |
|
1976 | 1976 |
|
... | ... | |
1999 | 1999 |
|
2000 | 2000 |
CREATE TABLE reference ( |
2001 | 2001 |
reference_id integer NOT NULL, |
2002 |
shortname character varying(250),
|
|
2002 |
shortname text,
|
|
2003 | 2003 |
fulltext text, |
2004 |
referencetype character varying(250),
|
|
2005 |
title character varying(250),
|
|
2006 |
titlesuperior character varying(250),
|
|
2004 |
referencetype text,
|
|
2005 |
title text,
|
|
2006 |
titlesuperior text,
|
|
2007 | 2007 |
referencejournal_id integer, |
2008 |
volume character varying(250),
|
|
2009 |
issue character varying(250),
|
|
2010 |
pagerange character varying(250),
|
|
2008 |
volume text,
|
|
2009 |
issue text,
|
|
2010 |
pagerange text,
|
|
2011 | 2011 |
totalpages integer, |
2012 |
publisher character varying(250),
|
|
2013 |
publicationplace character varying(250),
|
|
2014 |
isbn character varying(250),
|
|
2015 |
edition character varying(250),
|
|
2012 |
publisher text,
|
|
2013 |
publicationplace text,
|
|
2014 |
isbn text,
|
|
2015 |
edition text,
|
|
2016 | 2016 |
numberofvolumes integer, |
2017 | 2017 |
chapternumber integer, |
2018 | 2018 |
reportnumber integer, |
2019 |
communicationtype character varying(250),
|
|
2020 |
degree character varying(250),
|
|
2019 |
communicationtype text,
|
|
2020 |
degree text,
|
|
2021 | 2021 |
url text, |
2022 | 2022 |
doi text, |
2023 | 2023 |
additionalinfo text, |
2024 | 2024 |
pubdate timestamp with time zone, |
2025 | 2025 |
accessdate timestamp with time zone, |
2026 | 2026 |
conferencedate timestamp with time zone, |
2027 |
accessioncode character varying(255)
|
|
2027 |
accessioncode text
|
|
2028 | 2028 |
); |
2029 | 2029 |
|
2030 | 2030 |
|
... | ... | |
2054 | 2054 |
CREATE TABLE referencealtident ( |
2055 | 2055 |
referencealtident_id integer NOT NULL, |
2056 | 2056 |
reference_id integer NOT NULL, |
2057 |
system character varying(250),
|
|
2058 |
identifier character varying(250) NOT NULL
|
|
2057 |
system text,
|
|
2058 |
identifier text NOT NULL
|
|
2059 | 2059 |
); |
2060 | 2060 |
|
2061 | 2061 |
|
... | ... | |
2086 | 2086 |
referencecontributor_id integer NOT NULL, |
2087 | 2087 |
reference_id integer NOT NULL, |
2088 | 2088 |
referenceparty_id integer NOT NULL, |
2089 |
roletype character varying(250),
|
|
2089 |
roletype text,
|
|
2090 | 2090 |
"position" integer |
2091 | 2091 |
); |
2092 | 2092 |
|
... | ... | |
2116 | 2116 |
|
2117 | 2117 |
CREATE TABLE referencejournal ( |
2118 | 2118 |
referencejournal_id integer NOT NULL, |
2119 |
journal character varying(250) NOT NULL,
|
|
2120 |
issn character varying(250),
|
|
2121 |
abbreviation character varying(250),
|
|
2122 |
accessioncode character varying(255)
|
|
2119 |
journal text NOT NULL,
|
|
2120 |
issn text,
|
|
2121 |
abbreviation text,
|
|
2122 |
accessioncode text
|
|
2123 | 2123 |
); |
2124 | 2124 |
|
2125 | 2125 |
|
... | ... | |
2148 | 2148 |
|
2149 | 2149 |
CREATE TABLE referenceparty ( |
2150 | 2150 |
referenceparty_id integer NOT NULL, |
2151 |
type character varying(250),
|
|
2152 |
positionname character varying(250),
|
|
2153 |
salutation character varying(250),
|
|
2154 |
givenname character varying(250),
|
|
2155 |
surname character varying(250),
|
|
2156 |
suffix character varying(250),
|
|
2157 |
organizationname character varying(250),
|
|
2151 |
type text,
|
|
2152 |
positionname text,
|
|
2153 |
salutation text,
|
|
2154 |
givenname text,
|
|
2155 |
surname text,
|
|
2156 |
suffix text,
|
|
2157 |
organizationname text,
|
|
2158 | 2158 |
currentparty_id integer, |
2159 |
accessioncode character varying(255)
|
|
2159 |
accessioncode text
|
|
2160 | 2160 |
); |
2161 | 2161 |
|
2162 | 2162 |
|
... | ... | |
2185 | 2185 |
|
2186 | 2186 |
CREATE TABLE revision ( |
2187 | 2187 |
revision_id integer NOT NULL, |
2188 |
tablename character varying(50) NOT NULL,
|
|
2189 |
tableattribute character varying(50) NOT NULL,
|
|
2188 |
tablename text NOT NULL,
|
|
2189 |
tableattribute text NOT NULL,
|
|
2190 | 2190 |
tablerecord integer NOT NULL, |
2191 | 2191 |
previousvaluetext text NOT NULL, |
2192 |
previousvaluetype character varying(20) NOT NULL,
|
|
2192 |
previousvaluetype text NOT NULL,
|
|
2193 | 2193 |
previousrevision_id integer, |
2194 | 2194 |
revisiondate timestamp with time zone NOT NULL |
2195 | 2195 |
); |
... | ... | |
2220 | 2220 |
|
2221 | 2221 |
CREATE TABLE role ( |
2222 | 2222 |
role_id integer NOT NULL, |
2223 |
rolecode character varying(30) NOT NULL,
|
|
2224 |
roledescription character varying(200),
|
|
2223 |
rolecode text NOT NULL,
|
|
2224 |
roledescription text,
|
|
2225 | 2225 |
roleproject integer, |
2226 | 2226 |
roleobservation integer, |
2227 | 2227 |
roletaxonint integer, |
2228 | 2228 |
roleclassint integer, |
2229 |
accessioncode character varying(255)
|
|
2229 |
accessioncode text
|
|
2230 | 2230 |
); |
2231 | 2231 |
|
2232 | 2232 |
|
... | ... | |
2261 | 2261 |
minheight double precision, |
2262 | 2262 |
maxdiameter double precision, |
2263 | 2263 |
maxheight double precision, |
2264 |
accessioncode character varying(255)
|
|
2264 |
accessioncode text
|
|
2265 | 2265 |
); |
2266 | 2266 |
|
2267 | 2267 |
|
... | ... | |
2300 | 2300 |
CREATE TABLE soilobs ( |
2301 | 2301 |
soilobs_id integer NOT NULL, |
2302 | 2302 |
locationevent_id integer NOT NULL, |
2303 |
soilhorizon character varying(15) NOT NULL,
|
|
2303 |
soilhorizon text NOT NULL,
|
|
2304 | 2304 |
soildepthtop double precision, |
2305 | 2305 |
soildepthbottom double precision, |
2306 |
soilcolor character varying(30),
|
|
2306 |
soilcolor text,
|
|
2307 | 2307 |
soilorganic double precision, |
2308 |
soiltexture character varying(50),
|
|
2308 |
soiltexture text,
|
|
2309 | 2309 |
soilsand double precision, |
2310 | 2310 |
soilsilt double precision, |
2311 | 2311 |
soilclay double precision, |
... | ... | |
2343 | 2343 |
|
2344 | 2344 |
CREATE TABLE soiltaxon ( |
2345 | 2345 |
soiltaxon_id integer NOT NULL, |
2346 |
soilcode character varying(15),
|
|
2347 |
soilname character varying(100),
|
|
2346 |
soilcode text,
|
|
2347 |
soilname text,
|
|
2348 | 2348 |
soillevel integer, |
2349 | 2349 |
soilparent_id integer, |
2350 |
soilframework character varying(33),
|
|
2351 |
accessioncode character varying(255)
|
|
2350 |
soilframework text,
|
|
2351 |
accessioncode text
|
|
2352 | 2352 |
); |
2353 | 2353 |
|
2354 | 2354 |
|
... | ... | |
2415 | 2415 |
CREATE TABLE specimenreplicate ( |
2416 | 2416 |
specimenreplicate_id integer NOT NULL, |
2417 | 2417 |
reference_id integer NOT NULL, |
2418 |
collectioncode_dwc character varying(255),
|
|
2419 |
catalognumber_dwc character varying(255),
|
|
2418 |
collectioncode_dwc text,
|
|
2419 |
catalognumber_dwc text,
|
|
2420 | 2420 |
collectiondate timestamp with time zone, |
2421 | 2421 |
museum_id integer, |
2422 |
sourceaccessioncode character varying(100),
|
|
2423 |
accessioncode character varying(255),
|
|
2422 |
sourceaccessioncode text,
|
|
2423 |
accessioncode text,
|
|
2424 | 2424 |
taxonoccurrence_id integer NOT NULL, |
2425 |
verbatimcollectorname character varying(255),
|
|
2426 |
collectionnumber character varying(255),
|
|
2425 |
verbatimcollectorname text,
|
|
2426 |
collectionnumber text,
|
|
2427 | 2427 |
specimen_id integer |
2428 | 2428 |
); |
2429 | 2429 |
|
... | ... | |
2477 | 2477 |
CREATE TABLE stemobservation ( |
2478 | 2478 |
stemobservation_id integer NOT NULL, |
2479 | 2479 |
plantobservation_id integer NOT NULL, |
2480 |
authorstemcode character varying(20),
|
|
2480 |
authorstemcode text,
|
|
2481 | 2481 |
xposition double precision, |
2482 | 2482 |
yposition double precision, |
2483 |
health character varying(50),
|
|
2483 |
health text,
|
|
2484 | 2484 |
emb_stemobservation integer, |
2485 | 2485 |
diameter double precision, |
2486 | 2486 |
height double precision, |
2487 | 2487 |
heightaccuracy double precision, |
2488 | 2488 |
age double precision, |
2489 |
accessioncode character varying(255),
|
|
2489 |
accessioncode text,
|
|
2490 | 2490 |
diameteraccuracy double precision, |
2491 |
sourceaccessioncode character varying(100)
|
|
2491 |
sourceaccessioncode text
|
|
2492 | 2492 |
); |
2493 | 2493 |
|
2494 | 2494 |
|
... | ... | |
2559 | 2559 |
CREATE TABLE stratummethod ( |
2560 | 2560 |
stratummethod_id integer NOT NULL, |
2561 | 2561 |
reference_id integer, |
2562 |
stratummethodname character varying(30) NOT NULL,
|
|
2562 |
stratummethodname text NOT NULL,
|
|
2563 | 2563 |
stratummethoddescription text, |
2564 |
stratumassignment character varying(50),
|
|
2565 |
accessioncode character varying(255)
|
|
2564 |
stratumassignment text,
|
|
2565 |
accessioncode text
|
|
2566 | 2566 |
); |
2567 | 2567 |
|
2568 | 2568 |
|
... | ... | |
2592 | 2592 |
CREATE TABLE stratumtype ( |
2593 | 2593 |
stratumtype_id integer NOT NULL, |
2594 | 2594 |
stratummethod_id integer NOT NULL, |
2595 |
stratumindex character varying(10),
|
|
2596 |
stratumname character varying(30),
|
|
2595 |
stratumindex text,
|
|
2596 |
stratumname text,
|
|
2597 | 2597 |
stratumdescription text |
2598 | 2598 |
); |
2599 | 2599 |
|
... | ... | |
2625 | 2625 |
taxonalt_id integer NOT NULL, |
2626 | 2626 |
taxondetermination_id integer NOT NULL, |
2627 | 2627 |
plantconcept_id integer NOT NULL, |
2628 |
taxonaltfit character varying(50),
|
|
2629 |
taxonaltconfidence character varying(50),
|
|
2628 |
taxonaltfit text,
|
|
2629 |
taxonaltconfidence text,
|
|
2630 | 2630 |
taxonaltnotes text, |
2631 | 2631 |
emb_taxonalt integer |
2632 | 2632 |
); |
... | ... | |
2661 | 2661 |
plantconcept_id integer NOT NULL, |
2662 | 2662 |
party_id integer, |
2663 | 2663 |
role_id integer NOT NULL, |
2664 |
determinationtype character varying(30),
|
|
2664 |
determinationtype text,
|
|
2665 | 2665 |
reference_id integer, |
2666 | 2666 |
isoriginal boolean DEFAULT false NOT NULL, |
2667 | 2667 |
iscurrent boolean DEFAULT false NOT NULL, |
2668 |
taxonfit character varying(50),
|
|
2669 |
taxonconfidence character varying(50),
|
|
2670 |
grouptype character varying(20),
|
|
2668 |
taxonfit text,
|
|
2669 |
taxonconfidence text,
|
|
2670 |
grouptype text,
|
|
2671 | 2671 |
notes text, |
2672 | 2672 |
notespublic boolean, |
2673 | 2673 |
notesmgt boolean, |
2674 | 2674 |
revisions boolean, |
2675 | 2675 |
determinationdate timestamp with time zone, |
2676 | 2676 |
emb_taxondetermination integer, |
2677 |
accessioncode character varying(255)
|
|
2677 |
accessioncode text
|
|
2678 | 2678 |
); |
2679 | 2679 |
|
2680 | 2680 |
|
... | ... | |
2711 | 2711 |
CREATE TABLE taxonoccurrence ( |
2712 | 2712 |
taxonoccurrence_id integer NOT NULL, |
2713 | 2713 |
locationevent_id integer, |
2714 |
authorplantname character varying(255),
|
|
2714 |
authorplantname text,
|
|
2715 | 2715 |
reference_id integer, |
2716 | 2716 |
emb_taxonoccurrence integer, |
2717 |
accessioncode character varying(255)
|
|
2717 |
accessioncode text
|
|
2718 | 2718 |
); |
2719 | 2719 |
|
2720 | 2720 |
|
... | ... | |
2751 | 2751 |
CREATE TABLE telephone ( |
2752 | 2752 |
telephone_id integer NOT NULL, |
2753 | 2753 |
party_id integer NOT NULL, |
2754 |
phonenumber character varying(30) NOT NULL,
|
|
2755 |
phonetype character varying(20) NOT NULL
|
|
2754 |
phonenumber text NOT NULL,
|
|
2755 |
phonetype text NOT NULL
|
|
2756 | 2756 |
); |
2757 | 2757 |
|
2758 | 2758 |
|
... | ... | |
2781 | 2781 |
|
2782 | 2782 |
CREATE TABLE temptbl_std_commnames ( |
2783 | 2783 |
commconcept_id integer NOT NULL, |
2784 |
sciname character varying(255),
|
|
2785 |
translated character varying(255),
|
|
2786 |
code character varying(255),
|
|
2787 |
common character varying(255)
|
|
2784 |
sciname text,
|
|
2785 |
translated text,
|
|
2786 |
code text,
|
|
2787 |
common text
|
|
2788 | 2788 |
); |
2789 | 2789 |
|
2790 | 2790 |
|
... | ... | |
2813 | 2813 |
|
2814 | 2814 |
CREATE TABLE temptbl_std_plantnames ( |
2815 | 2815 |
plantconcept_id integer NOT NULL, |
2816 |
plantname character varying(255),
|
|
2817 |
sciname character varying(255),
|
|
2818 |
scinamenoauth character varying(255),
|
|
2819 |
code character varying(255),
|
|
2820 |
common character varying(255)
|
|
2816 |
plantname text,
|
|
2817 |
sciname text,
|
|
2818 |
scinamenoauth text,
|
|
2819 |
code text,
|
|
2820 |
common text
|
|
2821 | 2821 |
); |
2822 | 2822 |
|
2823 | 2823 |
|
... | ... | |
2849 | 2849 |
CREATE TABLE trait ( |
2850 | 2850 |
trait_id integer NOT NULL, |
2851 | 2851 |
stemobservation_id integer NOT NULL, |
2852 |
type character varying(255) NOT NULL,
|
|
2853 |
value character varying(255)
|
|
2852 |
type text NOT NULL,
|
|
2853 |
value text
|
|
2854 | 2854 |
); |
2855 | 2855 |
|
2856 | 2856 |
|
... | ... | |
2884 | 2884 |
usr_id integer NOT NULL, |
2885 | 2885 |
current_cert_level integer NOT NULL, |
2886 | 2886 |
requested_cert_level integer NOT NULL, |
2887 |
highest_degree character varying(50),
|
|
2888 |
degree_year character varying(50),
|
|
2889 |
degree_institution character varying(50),
|
|
2890 |
current_org character varying(50),
|
|
2891 |
current_pos character varying(200),
|
|
2887 |
highest_degree text,
|
|
2888 |
degree_year text,
|
|
2889 |
degree_institution text,
|
|
2890 |
current_org text,
|
|
2891 |
current_pos text,
|
|
2892 | 2892 |
esa_member boolean, |
2893 | 2893 |
prof_exp text, |
2894 | 2894 |
relevant_pubs text, |
... | ... | |
2898 | 2898 |
vb_exp text, |
2899 | 2899 |
vb_intention text, |
2900 | 2900 |
tools_exp text, |
2901 |
esa_sponsor_name_a character varying(120),
|
|
2902 |
esa_sponsor_email_a character varying(120),
|
|
2903 |
esa_sponsor_name_b character varying(120),
|
|
2904 |
esa_sponsor_email_b character varying(120),
|
|
2901 |
esa_sponsor_name_a text,
|
|
2902 |
esa_sponsor_email_a text,
|
|
2903 |
esa_sponsor_name_b text,
|
|
2904 |
esa_sponsor_email_b text,
|
|
2905 | 2905 |
peer_review boolean, |
2906 | 2906 |
addl_stmt text, |
2907 |
certificationstatus character varying(30),
|
|
2907 |
certificationstatus text,
|
|
2908 | 2908 |
certificationstatuscomments text, |
2909 | 2909 |
exp_region_a text, |
2910 | 2910 |
exp_region_b text, |
... | ... | |
2947 | 2947 |
CREATE TABLE userdataset ( |
2948 | 2948 |
userdataset_id integer NOT NULL, |
2949 | 2949 |
usr_id integer, |
2950 |
datasetname character varying(100) NOT NULL,
|
|
2950 |
datasetname text NOT NULL,
|
|
2951 | 2951 |
datasetdescription text, |
2952 |
datasettype character varying(50),
|
|
2953 |
datasetsharing character varying(30),
|
|
2954 |
datasetpassword character varying(50),
|
|
2952 |
datasettype text,
|
|
2953 |
datasetsharing text,
|
|
2954 |
datasetpassword text,
|
|
2955 | 2955 |
datasetstop timestamp with time zone, |
2956 | 2956 |
datasetstart timestamp with time zone DEFAULT now(), |
2957 |
accessioncode character varying(255)
|
|
2957 |
accessioncode text
|
|
2958 | 2958 |
); |
2959 | 2959 |
|
2960 | 2960 |
|
... | ... | |
2984 | 2984 |
CREATE TABLE userdatasetitem ( |
2985 | 2985 |
userdatasetitem_id integer NOT NULL, |
2986 | 2986 |
userdataset_id integer NOT NULL, |
2987 |
itemaccessioncode character varying(100) NOT NULL,
|
|
2988 |
itemtype character varying(50),
|
|
2987 |
itemaccessioncode text NOT NULL,
|
|
2988 |
itemtype text,
|
|
2989 | 2989 |
notes text, |
2990 | 2990 |
itemstart timestamp with time zone DEFAULT now() NOT NULL, |
2991 | 2991 |
itemstop timestamp with time zone, |
2992 |
externalaccessioncode character varying(100),
|
|
2993 |
itemdatabase character varying(50) NOT NULL,
|
|
2994 |
itemtable character varying(50) NOT NULL,
|
|
2992 |
externalaccessioncode text,
|
|
2993 |
itemdatabase text NOT NULL,
|
|
2994 |
itemtable text NOT NULL,
|
|
2995 | 2995 |
itemrecord integer NOT NULL |
2996 | 2996 |
); |
2997 | 2997 |
|
... | ... | |
3021 | 3021 |
|
3022 | 3022 |
CREATE TABLE userdefined ( |
3023 | 3023 |
userdefined_id integer NOT NULL, |
3024 |
userdefinedname character varying(50),
|
|
3024 |
userdefinedname text,
|
|
3025 | 3025 |
userdefinedmetadata text, |
3026 |
userdefinedcategory character varying(30),
|
|
3027 |
userdefinedtype character varying(20) DEFAULT 'text'::character varying NOT NULL,
|
|
3028 |
tablename character varying(50) NOT NULL,
|
|
3029 |
accessioncode character varying(255)
|
|
3026 |
userdefinedcategory text,
|
|
3027 |
userdefinedtype text DEFAULT 'text'::text NOT NULL,
|
|
3028 |
tablename text NOT NULL,
|
|
3029 |
accessioncode text
|
|
3030 | 3030 |
); |
3031 | 3031 |
|
3032 | 3032 |
|
... | ... | |
3056 | 3056 |
CREATE TABLE usernotify ( |
3057 | 3057 |
usernotify_id integer NOT NULL, |
3058 | 3058 |
usr_id integer NOT NULL, |
3059 |
notifyname character varying(100),
|
|
3059 |
notifyname text,
|
|
3060 | 3060 |
notifydescription text, |
3061 | 3061 |
notifysql text, |
3062 | 3062 |
notifystart timestamp with time zone DEFAULT now(), |
... | ... | |
3125 | 3125 |
CREATE TABLE userpreference ( |
3126 | 3126 |
userpreference_id integer NOT NULL, |
3127 | 3127 |
usr_id integer NOT NULL, |
3128 |
preferencename character varying(100),
|
|
3128 |
preferencename text,
|
|
3129 | 3129 |
preferencevalue text, |
3130 | 3130 |
preferencepriority double precision, |
3131 | 3131 |
preferencestop timestamp with time zone, |
... | ... | |
3159 | 3159 |
CREATE TABLE userquery ( |
3160 | 3160 |
userquery_id integer NOT NULL, |
3161 | 3161 |
usr_id integer NOT NULL, |
3162 |
queryname character varying(100),
|
|
3162 |
queryname text,
|
|
3163 | 3163 |
querydescription text, |
3164 | 3164 |
querysql text, |
3165 |
querytype character varying(50),
|
|
3166 |
querysharing character varying(30),
|
|
3167 |
querypassword character varying(50),
|
|
3165 |
querytype text,
|
|
3166 |
querysharing text,
|
|
3167 |
querypassword text,
|
|
3168 | 3168 |
querystop timestamp with time zone, |
3169 | 3169 |
querystart timestamp with time zone DEFAULT now(), |
3170 |
accessioncode character varying(255)
|
|
3170 |
accessioncode text
|
|
3171 | 3171 |
); |
3172 | 3172 |
|
3173 | 3173 |
|
... | ... | |
3197 | 3197 |
CREATE TABLE userrecordowner ( |
3198 | 3198 |
userrecordowner_id integer NOT NULL, |
3199 | 3199 |
usr_id integer NOT NULL, |
3200 |
tablename character varying(50) NOT NULL,
|
|
3200 |
tablename text NOT NULL,
|
|
3201 | 3201 |
tablerecord integer NOT NULL, |
3202 |
ownertype character varying(30) NOT NULL,
|
|
3202 |
ownertype text NOT NULL,
|
|
3203 | 3203 |
recordcreationdate timestamp with time zone NOT NULL, |
3204 | 3204 |
ownerstop timestamp with time zone, |
3205 | 3205 |
ownerstart timestamp with time zone DEFAULT now() NOT NULL |
... | ... | |
3232 | 3232 |
CREATE TABLE userregionalexp ( |
3233 | 3233 |
userregionalexp_id integer NOT NULL, |
3234 | 3234 |
usercertification_id integer NOT NULL, |
3235 |
region character varying(50) NOT NULL,
|
|
3236 |
vegetation character varying(50),
|
|
3237 |
floristics character varying(50),
|
|
3238 |
nvc_ivc character varying(50)
|
|
3235 |
region text NOT NULL,
|
|
3236 |
vegetation text,
|
|
3237 |
floristics text,
|
|
3238 |
nvc_ivc text
|
|
3239 | 3239 |
); |
3240 | 3240 |
|
3241 | 3241 |
|
... | ... | |
3267 | 3267 |
party_id integer NOT NULL, |
3268 | 3268 |
permission_type integer NOT NULL, |
3269 | 3269 |
ticket_count integer, |
3270 |
email_address character varying(100) NOT NULL,
|
|
3271 |
preferred_name character varying(100),
|
|
3272 |
remote_address character varying(100),
|
|
3270 |
email_address text NOT NULL,
|
|
3271 |
preferred_name text,
|
|
3272 |
remote_address text,
|
|
3273 | 3273 |
last_connect timestamp with time zone, |
3274 | 3274 |
begin_time timestamp with time zone, |
3275 |
password character varying(512)
|
|
3275 |
password text
|
|
3276 | 3276 |
); |
3277 | 3277 |
|
3278 | 3278 |
|
... | ... | |
3305 | 3305 |
voucher_id integer NOT NULL, |
3306 | 3306 |
taxonoccurrence_id integer NOT NULL, |
3307 | 3307 |
specimenreplicate_id integer NOT NULL, |
3308 |
accessioncode character varying(255)
|
|
3308 |
accessioncode text
|
|
3309 | 3309 |
); |
3310 | 3310 |
|
3311 | 3311 |
|
Also available in: Unified diff
vegbien.sql: Replaced all "character varying" types with text, removing the length limits. Note that in PostgreSQL, text and "character varying" are stored the same way internally, so this does not affect performance or indexes.