Project

General

Profile

1 689 aaronmk
--
2
-- PostgreSQL database dump
3
--
4
5
6
7
8
9
10
11
12
13
--
14 6182 aaronmk
-- Name: accesslevel; Type: TYPE; Schema: public; Owner: -
15
--
16
17
18
19
20
--
21 1431 aaronmk
-- Name: establishmentmeans_dwc; Type: TYPE; Schema: public; Owner: -
22
--
23
24
25
26
27
--
28
-- Name: TYPE establishmentmeans_dwc; Type: COMMENT; Schema: public; Owner: -
29
--
30
31
32
33
34
--
35
-- Name: growthform; Type: TYPE; Schema: public; Owner: -
36
--
37
38
39
40
41
--
42 6021 aaronmk
-- Name: higher_plant_group; Type: TYPE; Schema: public; Owner: -
43
--
44
45
46
47
48
--
49 712 aaronmk
-- Name: occurrencestatus_dwc; Type: TYPE; Schema: public; Owner: -
50
--
51
52
53
54 713 aaronmk
55 712 aaronmk
--
56 1313 aaronmk
-- Name: placerank; Type: TYPE; Schema: public; Owner: -
57
--
58
59
60
61
62
--
63
-- Name: TYPE placerank; Type: COMMENT; Schema: public; Owner: -
64
--
65
66
67
68
69
--
70 4954 aaronmk
-- Name: rankedplacename; Type: TYPE; Schema: public; Owner: -
71
--
72
73
74
75
76
--
77 4933 aaronmk
-- Name: taxonrank; Type: TYPE; Schema: public; Owner: -
78 1337 aaronmk
--
79
80
81
82
83
--
84 4933 aaronmk
-- Name: TYPE taxonrank; Type: COMMENT; Schema: public; Owner: -
85 1174 aaronmk
--
86
87
88
89
90
--
91 4933 aaronmk
-- Name: rankedtaxonname; Type: TYPE; Schema: public; Owner: -
92 1431 aaronmk
--
93
94
95
96
97
--
98 6179 aaronmk
-- Name: relationship; Type: TYPE; Schema: public; Owner: -
99 6150 aaronmk
--
100
101
102
103
104
--
105 6179 aaronmk
-- Name: role; Type: TYPE; Schema: public; Owner: -
106 6152 aaronmk
--
107
108
109
110
111
--
112 6283 aaronmk
-- Name: TYPE role; Type: COMMENT; Schema: public; Owner: -
113
--
114
115
116
117
118
--
119 6179 aaronmk
-- Name: sourcetype; Type: TYPE; Schema: public; Owner: -
120 5622 aaronmk
--
121
122
123
124
125
--
126 6179 aaronmk
-- Name: TYPE sourcetype; Type: COMMENT; Schema: public; Owner: -
127 1111 aaronmk
--
128
129
130
131
132
--
133 4933 aaronmk
-- Name: taxonclass; Type: TYPE; Schema: public; Owner: -
134 4532 aaronmk
--
135
136
137
138
139
--
140 4933 aaronmk
-- Name: TYPE taxonclass; Type: COMMENT; Schema: public; Owner: -
141
--
142
143
144
145
146
--
147 5617 aaronmk
-- Name: taxonomic_status; Type: TYPE; Schema: public; Owner: -
148
--
149
150
151
152
153
--
154 5623 aaronmk
-- Name: TYPE taxonomic_status; Type: COMMENT; Schema: public; Owner: -
155
--
156
157
158
159
160
--
161 5839 aaronmk
-- Name: _cm_to_m(double precision); Type: FUNCTION; Schema: public; Owner: -
162
--
163
164
165
166
167
--
168 5475 aaronmk
-- Name: _fraction_to_percent(double precision); Type: FUNCTION; Schema: public; Owner: -
169
--
170
171
172
173
174
--
175 5844 aaronmk
-- Name: _ft_to_m(double precision); Type: FUNCTION; Schema: public; Owner: -
176
--
177
178
179
180
181
--
182
-- Name: _ha_to_m2(double precision); Type: FUNCTION; Schema: public; Owner: -
183
--
184
185
186
187
188
--
189 5729 aaronmk
-- Name: _has_taxonomic_name(taxonrank); Type: FUNCTION; Schema: public; Owner: -
190
--
191
192
193
194
195
--
196 5844 aaronmk
-- Name: _in_to_m(double precision); Type: FUNCTION; Schema: public; Owner: -
197
--
198
199
200
201
202
--
203 5934 aaronmk
-- Name: _km_to_m(double precision); Type: FUNCTION; Schema: public; Owner: -
204
--
205
206
207
208
209
--
210 6430 aaronmk
-- Name: _locationnarrative_is_cultivated(varchar(255)); Type: FUNCTION; Schema: public; Owner: -
211
--
212
213
214
215
216
--
217 5842 aaronmk
-- Name: _m2_to_ha(double precision); Type: FUNCTION; Schema: public; Owner: -
218
--
219
220
221
222
223
--
224 5840 aaronmk
-- Name: _m_to_cm(double precision); Type: FUNCTION; Schema: public; Owner: -
225
--
226
227
228
229
230
--
231 6007 aaronmk
-- Name: _m_to_km(double precision); Type: FUNCTION; Schema: public; Owner: -
232
--
233
234
235
236
237
--
238 6436 aaronmk
-- Name: _or(int(1), int(1), int(1), int(1), int(1)); Type: FUNCTION; Schema: public; Owner: -
239
--
240
241
242
243
244
--
245 5844 aaronmk
-- Name: _percent_to_fraction(double precision); Type: FUNCTION; Schema: public; Owner: -
246
--
247
248
249
250
251
--
252 6429 aaronmk
-- Name: _taxon_family_require_std(varchar(255)); Type: FUNCTION; Schema: public; Owner: -
253 5789 aaronmk
--
254
255
256
257
258
--
259 5608 aaronmk
-- Name: _taxonlabel_set_matched_label_id(int(11), int(11), double precision); Type: FUNCTION; Schema: public; Owner: -
260 4391 aaronmk
--
261
262
263
264
265
--
266 5608 aaronmk
-- Name: _taxonlabel_set_parent_id(int(11), int(11)); Type: FUNCTION; Schema: public; Owner: -
267 5510 aaronmk
--
268
269
270
271
272
--
273 5732 aaronmk
-- Name: _taxonomic_name_is_epithet(taxonrank); Type: FUNCTION; Schema: public; Owner: -
274
--
275
276
277
278
279
--
280 6036 aaronmk
-- Name: make_family_higher_plant_group(); Type: FUNCTION; Schema: public; Owner: -
281
--
282
283
284
285
286
--
287 6179 aaronmk
-- Name: party_source_id_self_ref(); Type: FUNCTION; Schema: public; Owner: -
288 5234 aaronmk
--
289
290
291
292
293
--
294 5855 aaronmk
-- Name: place_matched_place_id_self_ref(); Type: FUNCTION; Schema: public; Owner: -
295 5032 aaronmk
--
296
297
298
299
300 5984 aaronmk
301
302
303
304 5032 aaronmk
--
305 5984 aaronmk
-- Name: place; Type: TABLE; Schema: public; Owner: -; Tablespace:
306
--
307
308
CREATE TABLE place (
309
    place_id int(11) NOT NULL,
310 6179 aaronmk
    source_id int(11) NOT NULL,
311 5984 aaronmk
    canon_place_id int(11),
312
    matched_place_id int(11),
313
    coordinates_id int(11),
314
    placename_id int(11),
315 6429 aaronmk
    continent varchar(255),
316
    country varchar(255),
317
    stateprovince varchar(255),
318
    county varchar(255),
319
    description varchar(255),
320 6185 aaronmk
    geovalid int(1),
321 5984 aaronmk
    distance_to_country_m double precision,
322 6268 aaronmk
    distance_to_state_m double precision,
323
    distance_to_county_m double precision
324 5984 aaronmk
);
325
326
327
--
328
-- Name: TABLE place; Type: COMMENT; Schema: public; Owner: -
329
--
330
331
332
333
334
--
335
-- Name: COLUMN place.matched_place_id; Type: COMMENT; Schema: public; Owner: -
336
--
337
338
339
340
341
--
342
-- Name: place_set_canon_place_id(place, int(11), int(1)); Type: FUNCTION; Schema: public; Owner: -
343
--
344
345
346
347
348
--
349
-- Name: place_set_canon_place_id_on_insert(); Type: FUNCTION; Schema: public; Owner: -
350
--
351
352
353
354
355
--
356
-- Name: place_set_canon_place_id_on_update(); Type: FUNCTION; Schema: public; Owner: -
357
--
358
359
360
361
362
--
363 5855 aaronmk
-- Name: placename_update_ancestors(); Type: FUNCTION; Schema: public; Owner: -
364 1555 aaronmk
--
365
366
367
368
369
--
370 5189 aaronmk
-- Name: plantobservation_aggregateoccurrence_count_1(); Type: FUNCTION; Schema: public; Owner: -
371 5188 aaronmk
--
372
373
374
375
376
--
377 6429 aaronmk
-- Name: source_by_shortname(varchar(255)); Type: FUNCTION; Schema: public; Owner: -
378 6086 aaronmk
--
379
380
381
382
383
--
384 5866 aaronmk
-- Name: sync_analytical_aggregate_to_view(); Type: FUNCTION; Schema: public; Owner: -
385 5849 aaronmk
--
386
387
388
389
390
--
391 5865 aaronmk
-- Name: sync_analytical_stem_to_view(); Type: FUNCTION; Schema: public; Owner: -
392 5847 aaronmk
--
393
394
395
396
397
--
398 5991 aaronmk
-- Name: sync_geoscrub_input_to_view(); Type: FUNCTION; Schema: public; Owner: -
399
--
400
401
402
403
404
--
405 6421 aaronmk
-- Name: taxondetermination_set_iscurrent(); Type: FUNCTION; Schema: public; Owner: -
406
--
407
408
409
410
411
--
412 5608 aaronmk
-- Name: taxonlabel_0_matched_label_id_self_ref(); Type: FUNCTION; Schema: public; Owner: -
413 5032 aaronmk
--
414
415
416
417
418
--
419 5608 aaronmk
-- Name: taxonlabel_1_matched_label_min_fit(); Type: FUNCTION; Schema: public; Owner: -
420 5412 aaronmk
--
421
422
423
424
425
--
426 5705 aaronmk
-- Name: taxonlabel_2_set_canon_label_id_on_insert(); Type: FUNCTION; Schema: public; Owner: -
427 5473 aaronmk
--
428
429
430
431
432
--
433 5705 aaronmk
-- Name: taxonlabel_2_set_canon_label_id_on_update(); Type: FUNCTION; Schema: public; Owner: -
434
--
435
436
437
438
439
--
440 5608 aaronmk
-- Name: taxonlabel_3_parent_id_avoid_self_ref(); Type: FUNCTION; Schema: public; Owner: -
441 5547 aaronmk
--
442
443
444
445
446
--
447 5608 aaronmk
-- Name: taxonlabel; Type: TABLE; Schema: public; Owner: -; Tablespace:
448 5274 aaronmk
--
449
450 5608 aaronmk
CREATE TABLE taxonlabel (
451
    taxonlabel_id int(11) NOT NULL,
452 6179 aaronmk
    source_id int(11) NOT NULL,
453 6429 aaronmk
    sourceaccessioncode varchar(255),
454 5548 aaronmk
    creationdate date,
455 6429 aaronmk
    taxonstatus varchar(255),
456 5626 aaronmk
    canon_label_id int(11),
457 5608 aaronmk
    matched_label_id int(11),
458
    matched_label_fit_fraction double precision,
459 5548 aaronmk
    parent_id int(11),
460 6429 aaronmk
    taxonepithet varchar(255),
461
    rank varchar(255),
462
    taxonomicname varchar(255),
463
    accessioncode varchar(255)
464 5548 aaronmk
);
465 5274 aaronmk
466
467 5548 aaronmk
--
468 5608 aaronmk
-- Name: TABLE taxonlabel; Type: COMMENT; Schema: public; Owner: -
469 5548 aaronmk
--
470 5274 aaronmk
471 5548 aaronmk
472
473
474 5274 aaronmk
--
475 6179 aaronmk
-- Name: COLUMN taxonlabel.source_id; Type: COMMENT; Schema: public; Owner: -
476 689 aaronmk
--
477
478
479
480
481 5548 aaronmk
--
482 5608 aaronmk
-- Name: COLUMN taxonlabel.sourceaccessioncode; Type: COMMENT; Schema: public; Owner: -
483 5548 aaronmk
--
484 689 aaronmk
485
486
487
488
--
489 5608 aaronmk
-- Name: COLUMN taxonlabel.creationdate; Type: COMMENT; Schema: public; Owner: -
490 5548 aaronmk
--
491
492
493
494
495
--
496 5626 aaronmk
-- Name: COLUMN taxonlabel.canon_label_id; Type: COMMENT; Schema: public; Owner: -
497 5548 aaronmk
--
498
499
500
501
502
--
503 5608 aaronmk
-- Name: COLUMN taxonlabel.matched_label_id; Type: COMMENT; Schema: public; Owner: -
504 5548 aaronmk
--
505
506
507
508
509
--
510 5608 aaronmk
-- Name: COLUMN taxonlabel.matched_label_fit_fraction; Type: COMMENT; Schema: public; Owner: -
511 5548 aaronmk
--
512
513
514
515
516
--
517 5608 aaronmk
-- Name: COLUMN taxonlabel.parent_id; Type: COMMENT; Schema: public; Owner: -
518 5548 aaronmk
--
519
520
521
522
523
--
524 5608 aaronmk
-- Name: COLUMN taxonlabel.taxonepithet; Type: COMMENT; Schema: public; Owner: -
525 5548 aaronmk
--
526
527
528
529
530
--
531 5608 aaronmk
-- Name: COLUMN taxonlabel.rank; Type: COMMENT; Schema: public; Owner: -
532 5548 aaronmk
--
533
534
535
536
537
--
538 5656 aaronmk
-- Name: COLUMN taxonlabel.taxonomicname; Type: COMMENT; Schema: public; Owner: -
539 5548 aaronmk
--
540
541
542
543
544
--
545 5831 aaronmk
-- Name: taxonlabel_set_canon_label_id(taxonlabel, int(11), int(1)); Type: FUNCTION; Schema: public; Owner: -
546
--
547
548
549
550
551
--
552 5828 aaronmk
-- Name: taxonlabel_update_ancestors(taxonlabel, int(11), int(11)); Type: FUNCTION; Schema: public; Owner: -
553 5548 aaronmk
--
554
555
556
557
558
--
559 5608 aaronmk
-- Name: taxonlabel_update_ancestors_on_insert(); Type: FUNCTION; Schema: public; Owner: -
560 5548 aaronmk
--
561
562
563
564
565
--
566 5608 aaronmk
-- Name: taxonlabel_update_ancestors_on_update(); Type: FUNCTION; Schema: public; Owner: -
567 5548 aaronmk
--
568
569
570
571
572
--
573 6429 aaronmk
-- Name: concat(varchar(255)); Type: AGGREGATE; Schema: public; Owner: -
574 5548 aaronmk
--
575
576
577
578
579
--
580 689 aaronmk
-- Name: address; Type: TABLE; Schema: public; Owner: -; Tablespace:
581
--
582
583
CREATE TABLE address (
584
    address_id int(11) NOT NULL,
585
    party_id int(11) NOT NULL,
586
    organization_id int(11),
587 6429 aaronmk
    orgposition varchar(255),
588
    email varchar(255),
589
    street varchar(255),
590
    street2 varchar(255),
591
    city varchar(255),
592
    stateprovince varchar(255),
593
    postalcode varchar(255),
594
    country varchar(255),
595 689 aaronmk
    currentflag int(1),
596 5499 aaronmk
    addressstartdate date
597 689 aaronmk
);
598
599
600
--
601
-- Name: address_address_id_seq; Type: SEQUENCE; Schema: public; Owner: -
602
--
603
604
605
606
607
--
608
-- Name: address_address_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
609
--
610
611
612
613
614
--
615 6029 aaronmk
-- Name: address_address_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
616
--
617
618
619
620
--
621 5866 aaronmk
-- Name: aggregateoccurrence; Type: TABLE; Schema: public; Owner: -; Tablespace:
622 5849 aaronmk
--
623
624 5866 aaronmk
CREATE TABLE aggregateoccurrence (
625
    aggregateoccurrence_id int(11) NOT NULL,
626 6179 aaronmk
    source_id int(11) NOT NULL,
627 6429 aaronmk
    sourceaccessioncode varchar(255),
628 5866 aaronmk
    taxonoccurrence_id int(11),
629
    collectiondate date,
630
    cover_fraction double precision,
631
    linecover_m double precision,
632
    basalarea_m2 double precision,
633
    biomass_kg_m2 double precision,
634
    inferencearea_m2 double precision,
635
    count int(11),
636
    stratum_id int(11),
637
    coverindex_id int(11),
638 6429 aaronmk
    occurrencestatus_dwc varchar(255) DEFAULT 'present' NOT NULL,
639 5866 aaronmk
    method_id int(11),
640 6429 aaronmk
    notes varchar(255),
641
    accessioncode varchar(255)
642 5866 aaronmk
);
643
644
645
--
646
-- Name: TABLE aggregateoccurrence; Type: COMMENT; Schema: public; Owner: -
647
--
648
649
650
651
652
--
653
-- Name: COLUMN aggregateoccurrence.linecover_m; Type: COMMENT; Schema: public; Owner: -
654
--
655
656
657
658
659
--
660
-- Name: COLUMN aggregateoccurrence.occurrencestatus_dwc; Type: COMMENT; Schema: public; Owner: -
661
--
662
663
664
665
666
--
667
-- Name: aggregateoccurrence_aggregateoccurrence_id_seq; Type: SEQUENCE; Schema: public; Owner: -
668
--
669
670
671
672
673
--
674
-- Name: aggregateoccurrence_aggregateoccurrence_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
675
--
676
677
678
679
680
--
681 6029 aaronmk
-- Name: aggregateoccurrence_aggregateoccurrence_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
682
--
683
684
685
686
--
687 5866 aaronmk
-- Name: analytical_aggregate; Type: TABLE; Schema: public; Owner: -; Tablespace:
688
--
689
690
CREATE TABLE analytical_aggregate (
691 6429 aaronmk
    `institutionCode` varchar(255) NOT NULL,
692
    country varchar(255),
693
    `stateProvince` varchar(255),
694
    county varchar(255),
695 5849 aaronmk
    `decimalLatitude` double precision,
696
    `decimalLongitude` double precision,
697 6261 aaronmk
    `coordinateUncertaintyInMeters` double precision,
698 6353 aaronmk
    geovalid int(1),
699 6019 aaronmk
    `isNewWorld` int(1),
700 6008 aaronmk
    `distanceToCountry_km` double precision,
701
    `distanceToStateProvince_km` double precision,
702 6429 aaronmk
    `plotName` varchar(255) NOT NULL,
703 5849 aaronmk
    `elevationInMeters` double precision,
704
    `plotArea_ha` double precision,
705 6429 aaronmk
    `samplingProtocol` varchar(255),
706 6425 aaronmk
    `dateCollected` date NOT NULL,
707 6429 aaronmk
    `higherPlantGroup` varchar(255),
708
    family varchar(255),
709
    genus varchar(255),
710
    `speciesBinomial` varchar(255),
711
    `scientificName` varchar(255),
712
    `scientificNameAuthorship` varchar(255),
713
    `scientificNameWithMorphospecies` varchar(255) NOT NULL,
714 6092 aaronmk
    threatened int(1),
715 6429 aaronmk
    `identifiedBy` varchar(255),
716
    `growthForm` varchar(255),
717 5945 aaronmk
    cultivated int(1),
718 6429 aaronmk
    `cultivatedBasis` varchar(255),
719 5869 aaronmk
    `coverPercent` double precision,
720 6429 aaronmk
    `individualCount` varchar(255),
721
    `individualCount_1cm_or_more` varchar(255),
722
    `individualCount_2_5cm_or_more` varchar(255),
723
    `individualCount_10cm_or_more` varchar(255)
724 5849 aaronmk
);
725
726
727
--
728 5865 aaronmk
-- Name: analytical_stem; Type: TABLE; Schema: public; Owner: -; Tablespace:
729 5849 aaronmk
--
730
731 5865 aaronmk
CREATE TABLE analytical_stem (
732 6429 aaronmk
    `institutionCode` varchar(255) NOT NULL,
733
    country varchar(255),
734
    `stateProvince` varchar(255),
735
    county varchar(255),
736 5849 aaronmk
    `decimalLatitude` double precision,
737
    `decimalLongitude` double precision,
738 6261 aaronmk
    `coordinateUncertaintyInMeters` double precision,
739 6353 aaronmk
    geovalid int(1),
740 6019 aaronmk
    `isNewWorld` int(1),
741 6008 aaronmk
    `distanceToCountry_km` double precision,
742
    `distanceToStateProvince_km` double precision,
743 6429 aaronmk
    `plotName` varchar(255) NOT NULL,
744 5849 aaronmk
    `elevationInMeters` double precision,
745
    `plotArea_ha` double precision,
746 6429 aaronmk
    `samplingProtocol` varchar(255),
747 6425 aaronmk
    `dateCollected` date NOT NULL,
748 6429 aaronmk
    `higherPlantGroup` varchar(255),
749
    family varchar(255),
750
    genus varchar(255),
751
    `speciesBinomial` varchar(255),
752
    `scientificName` varchar(255),
753
    `scientificNameAuthorship` varchar(255),
754
    `scientificNameWithMorphospecies` varchar(255) NOT NULL,
755 6092 aaronmk
    threatened int(1),
756 6429 aaronmk
    `identifiedBy` varchar(255),
757
    `growthForm` varchar(255),
758 5849 aaronmk
    cultivated int(1),
759 6429 aaronmk
    `cultivatedBasis` varchar(255),
760 5849 aaronmk
    `coverPercent` double precision,
761
    `diameterBreastHeight_cm` double precision,
762
    height_m double precision,
763 6429 aaronmk
    tag varchar(255),
764 5849 aaronmk
    `organismX_m` double precision,
765
    `organismY_m` double precision,
766 6429 aaronmk
    `recordedBy` varchar(255),
767
    `recordNumber` varchar(255) NOT NULL
768 5849 aaronmk
);
769
770
771
--
772 5866 aaronmk
-- Name: analytical_aggregate_view; Type: VIEW; Schema: public; Owner: -
773 5849 aaronmk
--
774
775
776
777
778
--
779 5862 aaronmk
-- Name: coordinates; Type: TABLE; Schema: public; Owner: -; Tablespace:
780
--
781
782
CREATE TABLE coordinates (
783
    coordinates_id int(11) NOT NULL,
784 6179 aaronmk
    source_id int(11) NOT NULL,
785 5862 aaronmk
    latitude_deg double precision NOT NULL,
786
    longitude_deg double precision NOT NULL,
787 6429 aaronmk
    verbatimlatitude varchar(255),
788
    verbatimlongitude varchar(255),
789
    verbatimcoordinates varchar(255),
790
    footprintgeometry_dwc varchar(255),
791 6250 aaronmk
    coordsaccuracy_m double precision
792 5862 aaronmk
);
793
794
795
--
796
-- Name: COLUMN coordinates.footprintgeometry_dwc; Type: COMMENT; Schema: public; Owner: -
797
--
798
799
800
801
802
--
803 6250 aaronmk
-- Name: COLUMN coordinates.coordsaccuracy_m; Type: COMMENT; Schema: public; Owner: -
804 5862 aaronmk
--
805
806
807
808
809
--
810 6435 aaronmk
-- Name: cultivated_family_locations; Type: TABLE; Schema: public; Owner: -; Tablespace:
811
--
812
813
CREATE TABLE cultivated_family_locations (
814
    family varchar(255) NOT NULL,
815
    country varchar(255) NOT NULL
816
);
817
818
819
--
820 6039 aaronmk
-- Name: family_higher_plant_group; Type: TABLE; Schema: public; Owner: -; Tablespace:
821
--
822
823
CREATE TABLE family_higher_plant_group (
824 6429 aaronmk
    family varchar(255) NOT NULL,
825
    higher_plant_group varchar(255)
826 6039 aaronmk
);
827
828
829
--
830 4391 aaronmk
-- Name: location; Type: TABLE; Schema: public; Owner: -; Tablespace:
831 689 aaronmk
--
832
833 4391 aaronmk
CREATE TABLE location (
834
    location_id int(11) NOT NULL,
835 6179 aaronmk
    source_id int(11) NOT NULL,
836 6429 aaronmk
    sourceaccessioncode varchar(255),
837 4391 aaronmk
    parent_id int(11),
838 6429 aaronmk
    authorlocationcode varchar(255),
839
    accesslevel varchar(255),
840
    accessconditions varchar(255),
841 4753 aaronmk
    sublocationxposition_m double precision,
842
    sublocationyposition_m double precision,
843 6312 aaronmk
    iscultivated int(1),
844 6429 aaronmk
    authorzone varchar(255),
845
    authordatum varchar(255),
846
    authorlocation varchar(255),
847
    locationnarrative varchar(255),
848 4391 aaronmk
    azimuth double precision,
849 6429 aaronmk
    shape varchar(255),
850 4753 aaronmk
    area_m2 double precision,
851 6429 aaronmk
    standsize varchar(255),
852
    placementmethod varchar(255),
853 4391 aaronmk
    permanence int(1),
854 6429 aaronmk
    layoutnarrative varchar(255),
855 4753 aaronmk
    elevation_m double precision,
856
    elevationaccuracy_m double precision,
857
    elevationrange_m double precision,
858 6429 aaronmk
    verbatimelevation varchar(255),
859 4753 aaronmk
    slopeaspect_deg double precision,
860
    minslopeaspect_deg double precision,
861
    maxslopeaspect_deg double precision,
862 4787 aaronmk
    slopegradient_fraction double precision,
863
    minslopegradient_fraction double precision,
864
    maxslopegradient_fraction double precision,
865 6429 aaronmk
    topoposition varchar(255),
866
    landform varchar(255),
867
    surficialdeposits varchar(255),
868
    rocktype varchar(255),
869
    submitter_surname varchar(255),
870
    submitter_givenname varchar(255),
871
    submitter_email varchar(255),
872 4391 aaronmk
    notespublic int(1),
873
    notesmgt int(1),
874
    revisions int(1),
875 5499 aaronmk
    dateentered date ,
876 6429 aaronmk
    locationrationalenarrative varchar(255),
877
    accessioncode varchar(255)
878 689 aaronmk
);
879
880
881
--
882 4391 aaronmk
-- Name: TABLE location; Type: COMMENT; Schema: public; Owner: -
883 689 aaronmk
--
884
885
886
887
888
--
889 4391 aaronmk
-- Name: locationevent; Type: TABLE; Schema: public; Owner: -; Tablespace:
890 689 aaronmk
--
891
892 4391 aaronmk
CREATE TABLE locationevent (
893
    locationevent_id int(11) NOT NULL,
894 6179 aaronmk
    source_id int(11) NOT NULL,
895 6429 aaronmk
    sourceaccessioncode varchar(255),
896
    accesslevel varchar(255),
897 4391 aaronmk
    parent_id int(11),
898 4462 aaronmk
    location_id int(11),
899 4391 aaronmk
    project_id int(11),
900 6429 aaronmk
    authoreventcode varchar(255),
901 4391 aaronmk
    previous_id int(11),
902 5506 aaronmk
    obsstartdate date,
903
    obsenddate date,
904 6429 aaronmk
    dateaccuracy varchar(255),
905 4391 aaronmk
    method_id int(11),
906 4753 aaronmk
    temperature_c double precision,
907
    precipitation_m double precision,
908 4391 aaronmk
    autotaxoncover int(1),
909 6429 aaronmk
    originaldata varchar(255),
910
    effortlevel varchar(255),
911
    floristicquality varchar(255),
912
    bryophytequality varchar(255),
913
    lichenquality varchar(255),
914
    locationeventnarrative varchar(255),
915
    landscapenarrative varchar(255),
916
    homogeneity varchar(255),
917
    phenologicaspect varchar(255),
918
    representativeness varchar(255),
919
    standmaturity varchar(255),
920
    successionalstatus varchar(255),
921 4391 aaronmk
    basalarea double precision,
922 6429 aaronmk
    hydrologicregime varchar(255),
923
    soilmoistureregime varchar(255),
924
    soildrainage varchar(255),
925
    watersalinity varchar(255),
926 4753 aaronmk
    waterdepth_m double precision,
927 4391 aaronmk
    shoredistance double precision,
928
    soildepth double precision,
929
    organicdepth double precision,
930
    soiltaxon_id int(11),
931 6429 aaronmk
    soiltaxonsrc varchar(255),
932 4391 aaronmk
    percentbedrock double precision,
933
    percentrockgravel double precision,
934
    percentwood double precision,
935
    percentlitter double precision,
936
    percentbaresoil double precision,
937
    percentwater double precision,
938
    percentother double precision,
939 6429 aaronmk
    nameother varchar(255),
940 4391 aaronmk
    treeht double precision,
941
    shrubht double precision,
942
    fieldht double precision,
943
    nonvascularht double precision,
944
    submergedht double precision,
945
    treecover double precision,
946
    shrubcover double precision,
947
    fieldcover double precision,
948
    nonvascularcover double precision,
949
    floatingcover double precision,
950
    submergedcover double precision,
951 6429 aaronmk
    dominantstratum varchar(255),
952
    growthform1type varchar(255),
953
    growthform2type varchar(255),
954
    growthform3type varchar(255),
955 4391 aaronmk
    growthform1cover double precision,
956
    growthform2cover double precision,
957
    growthform3cover double precision,
958
    totalcover double precision,
959
    notespublic int(1),
960
    notesmgt int(1),
961
    revisions int(1),
962 5499 aaronmk
    dateentered date ,
963 6429 aaronmk
    toptaxon1name varchar(255),
964
    toptaxon2name varchar(255),
965
    toptaxon3name varchar(255),
966
    toptaxon4name varchar(255),
967
    toptaxon5name varchar(255),
968 4391 aaronmk
    numberoftaxa int(11),
969 6429 aaronmk
    accessioncode varchar(255)
970 4391 aaronmk
);
971 689 aaronmk
972
973 4391 aaronmk
--
974
-- Name: TABLE locationevent; Type: COMMENT; Schema: public; Owner: -
975
--
976 689 aaronmk
977 4391 aaronmk
978
979
980 689 aaronmk
--
981 4726 aaronmk
-- Name: locationplace; Type: TABLE; Schema: public; Owner: -; Tablespace:
982
--
983
984
CREATE TABLE locationplace (
985
    locationplace_id int(11) NOT NULL,
986
    location_id int(11) NOT NULL,
987 5855 aaronmk
    place_id int(11) NOT NULL,
988 4734 aaronmk
    identifier_id int(11)
989 4726 aaronmk
);
990
991
992
--
993
-- Name: TABLE locationplace; Type: COMMENT; Schema: public; Owner: -
994
--
995
996
997
998
999
--
1000 4391 aaronmk
-- Name: method; Type: TABLE; Schema: public; Owner: -; Tablespace:
1001 689 aaronmk
--
1002
1003 4391 aaronmk
CREATE TABLE method (
1004
    method_id int(11) NOT NULL,
1005 6179 aaronmk
    source_id int(11) NOT NULL,
1006 6429 aaronmk
    name varchar(255),
1007
    description varchar(255),
1008 4754 aaronmk
    diameterheight_m double precision,
1009
    mindiameter_m double precision,
1010
    maxdiameter_m double precision,
1011
    minheight_m double precision,
1012
    maxheight_m double precision,
1013 6429 aaronmk
    observationtype varchar(255),
1014
    observationmeasure varchar(255),
1015 4391 aaronmk
    covermethod_id int(11),
1016
    samplingfactor double precision DEFAULT 1 NOT NULL,
1017 6429 aaronmk
    coverbasis varchar(255),
1018
    stemsamplemethod varchar(255),
1019
    shape varchar(255),
1020 4754 aaronmk
    length_m double precision,
1021
    width_m double precision,
1022
    radius_m double precision,
1023
    area_m2 double precision,
1024
    samplearea_m2 double precision,
1025
    subplotspacing_m double precision,
1026 4391 aaronmk
    subplotmethod_id int(11),
1027
    pointsperline int(11),
1028 6429 aaronmk
    accessioncode varchar(255)
1029 689 aaronmk
);
1030
1031
1032
--
1033 4391 aaronmk
-- Name: TABLE method; Type: COMMENT; Schema: public; Owner: -
1034 689 aaronmk
--
1035
1036
1037
1038
1039
--
1040 6179 aaronmk
-- Name: COLUMN method.source_id; Type: COMMENT; Schema: public; Owner: -
1041 689 aaronmk
--
1042
1043
1044
1045
1046
--
1047 4391 aaronmk
-- Name: COLUMN method.name; Type: COMMENT; Schema: public; Owner: -
1048 689 aaronmk
--
1049
1050
1051
1052 4391 aaronmk
1053 689 aaronmk
--
1054 4391 aaronmk
-- Name: COLUMN method.description; Type: COMMENT; Schema: public; Owner: -
1055 689 aaronmk
--
1056
1057
1058
1059
1060
--
1061 4754 aaronmk
-- Name: COLUMN method.diameterheight_m; Type: COMMENT; Schema: public; Owner: -
1062 689 aaronmk
--
1063
1064
1065
1066
1067
--
1068 4754 aaronmk
-- Name: COLUMN method.mindiameter_m; Type: COMMENT; Schema: public; Owner: -
1069 689 aaronmk
--
1070
1071
1072
1073 4391 aaronmk
1074 689 aaronmk
--
1075 4754 aaronmk
-- Name: COLUMN method.maxdiameter_m; Type: COMMENT; Schema: public; Owner: -
1076 689 aaronmk
--
1077
1078
1079
1080
1081
--
1082 4754 aaronmk
-- Name: COLUMN method.minheight_m; Type: COMMENT; Schema: public; Owner: -
1083 689 aaronmk
--
1084
1085
1086
1087
1088
--
1089 4754 aaronmk
-- Name: COLUMN method.maxheight_m; Type: COMMENT; Schema: public; Owner: -
1090 689 aaronmk
--
1091
1092
1093
1094 4391 aaronmk
1095 689 aaronmk
--
1096 4391 aaronmk
-- Name: COLUMN method.observationtype; Type: COMMENT; Schema: public; Owner: -
1097 689 aaronmk
--
1098
1099
1100
1101
1102
--
1103 4391 aaronmk
-- Name: COLUMN method.observationmeasure; Type: COMMENT; Schema: public; Owner: -
1104 689 aaronmk
--
1105
1106
1107
1108
1109
--
1110 4391 aaronmk
-- Name: COLUMN method.samplingfactor; Type: COMMENT; Schema: public; Owner: -
1111 689 aaronmk
--
1112
1113
1114
1115 4391 aaronmk
1116 689 aaronmk
--
1117 4391 aaronmk
-- Name: COLUMN method.coverbasis; Type: COMMENT; Schema: public; Owner: -
1118 689 aaronmk
--
1119
1120
1121
1122
1123
--
1124 4391 aaronmk
-- Name: COLUMN method.stemsamplemethod; Type: COMMENT; Schema: public; Owner: -
1125 689 aaronmk
--
1126
1127
1128
1129
1130
--
1131 4391 aaronmk
-- Name: COLUMN method.shape; Type: COMMENT; Schema: public; Owner: -
1132 689 aaronmk
--
1133
1134 4391 aaronmk
1135
1136
1137
--
1138 4754 aaronmk
-- Name: COLUMN method.samplearea_m2; Type: COMMENT; Schema: public; Owner: -
1139 4391 aaronmk
--
1140
1141
1142
1143
1144
--
1145 4754 aaronmk
-- Name: COLUMN method.subplotspacing_m; Type: COMMENT; Schema: public; Owner: -
1146 4391 aaronmk
--
1147
1148
1149
1150
1151
--
1152
-- Name: COLUMN method.subplotmethod_id; Type: COMMENT; Schema: public; Owner: -
1153
--
1154
1155
1156
1157
1158
--
1159
-- Name: COLUMN method.pointsperline; Type: COMMENT; Schema: public; Owner: -
1160
--
1161
1162
1163
1164
1165
--
1166 4730 aaronmk
-- Name: party; Type: TABLE; Schema: public; Owner: -; Tablespace:
1167 4391 aaronmk
--
1168
1169 4730 aaronmk
CREATE TABLE party (
1170
    party_id int(11) NOT NULL,
1171 6179 aaronmk
    source_id int(11) NOT NULL,
1172 6429 aaronmk
    fullname varchar(255),
1173
    salutation varchar(255),
1174
    givenname varchar(255),
1175
    middlename varchar(255),
1176
    surname varchar(255),
1177
    suffix varchar(255),
1178
    department varchar(255),
1179
    organizationname varchar(255),
1180 4730 aaronmk
    currentname_id int(11),
1181 6429 aaronmk
    contactinstructions varchar(255),
1182
    email varchar(255),
1183
    partytype varchar(255),
1184 4730 aaronmk
    partypublic int(1) DEFAULT true,
1185 6429 aaronmk
    accessioncode varchar(255)
1186 4730 aaronmk
);
1187
1188
1189
--
1190 4391 aaronmk
-- Name: plantobservation; Type: TABLE; Schema: public; Owner: -; Tablespace:
1191 689 aaronmk
--
1192
1193 4391 aaronmk
CREATE TABLE plantobservation (
1194
    plantobservation_id int(11) NOT NULL,
1195 6179 aaronmk
    source_id int(11) NOT NULL,
1196 6429 aaronmk
    sourceaccessioncode varchar(255),
1197 5770 aaronmk
    aggregateoccurrence_id int(11),
1198 4753 aaronmk
    overallheight_m double precision,
1199
    overallheightaccuracy_m double precision,
1200 6429 aaronmk
    collectionnumber varchar(255),
1201 4391 aaronmk
    stemcount int(11),
1202
    plant_id int(11),
1203 6429 aaronmk
    accessioncode varchar(255)
1204 4391 aaronmk
);
1205 689 aaronmk
1206
1207 4391 aaronmk
--
1208
-- Name: TABLE plantobservation; Type: COMMENT; Schema: public; Owner: -
1209
--
1210 689 aaronmk
1211 4391 aaronmk
1212
1213
1214 689 aaronmk
--
1215 4391 aaronmk
-- Name: COLUMN plantobservation.collectionnumber; Type: COMMENT; Schema: public; Owner: -
1216 689 aaronmk
--
1217
1218
1219
1220
1221
--
1222 6179 aaronmk
-- Name: source; Type: TABLE; Schema: public; Owner: -; Tablespace:
1223 5961 aaronmk
--
1224
1225 6179 aaronmk
CREATE TABLE source (
1226
    source_id int(11) NOT NULL,
1227 6302 aaronmk
    matched_source_id int(11),
1228 6296 aaronmk
    parent_id int(11),
1229 6429 aaronmk
    shortname varchar(255) NOT NULL,
1230
    citation varchar(255),
1231
    sourcetype varchar(255),
1232
    accesslevel varchar(255),
1233
    accessconditions varchar(255),
1234
    title varchar(255),
1235
    titlesuperior varchar(255),
1236
    volume varchar(255),
1237
    issue varchar(255),
1238
    pagerange varchar(255),
1239 5961 aaronmk
    totalpages int(11),
1240 6429 aaronmk
    publisher varchar(255),
1241
    publicationplace varchar(255),
1242
    isbn varchar(255),
1243
    edition varchar(255),
1244 5961 aaronmk
    numberofvolumes int(11),
1245
    chapternumber int(11),
1246
    reportnumber int(11),
1247 6429 aaronmk
    communicationtype varchar(255),
1248
    degree varchar(255),
1249
    url varchar(255),
1250
    doi varchar(255),
1251
    additionalinfo varchar(255),
1252 5961 aaronmk
    pubdate date,
1253
    accessdate date,
1254
    conferencedate date,
1255 6429 aaronmk
    accessioncode varchar(255)
1256 5961 aaronmk
);
1257
1258
1259
--
1260 5748 aaronmk
-- Name: stemobservation; Type: TABLE; Schema: public; Owner: -; Tablespace:
1261
--
1262
1263
CREATE TABLE stemobservation (
1264
    stemobservation_id int(11) NOT NULL,
1265 6179 aaronmk
    source_id int(11) NOT NULL,
1266 6429 aaronmk
    sourceaccessioncode varchar(255),
1267 5748 aaronmk
    plantobservation_id int(11) NOT NULL,
1268 6429 aaronmk
    authorstemcode varchar(255),
1269
    tag varchar(255),
1270
    tags varchar(255),
1271 5748 aaronmk
    xposition_m double precision,
1272
    yposition_m double precision,
1273
    diameterbreastheight_m double precision,
1274
    basaldiameter_m double precision,
1275
    diameteraccuracy_m double precision,
1276
    height_m double precision,
1277
    heightfirstbranch_m double precision,
1278
    heightaccuracy_m double precision,
1279 6429 aaronmk
    health varchar(255),
1280 5748 aaronmk
    age double precision,
1281 6429 aaronmk
    accessioncode varchar(255)
1282 5748 aaronmk
);
1283
1284
1285
--
1286
-- Name: TABLE stemobservation; Type: COMMENT; Schema: public; Owner: -
1287
--
1288
1289
1290
1291
1292
--
1293
-- Name: COLUMN stemobservation.tags; Type: COMMENT; Schema: public; Owner: -
1294
--
1295
1296
1297
1298
1299
--
1300 5225 aaronmk
-- Name: taxondetermination; Type: TABLE; Schema: public; Owner: -; Tablespace:
1301 4964 aaronmk
--
1302
1303 5225 aaronmk
CREATE TABLE taxondetermination (
1304
    taxondetermination_id int(11) NOT NULL,
1305
    taxonoccurrence_id int(11) NOT NULL,
1306 5657 aaronmk
    taxonverbatim_id int(11) NOT NULL,
1307 5225 aaronmk
    party_id int(11),
1308 6429 aaronmk
    role varchar(255) DEFAULT 'unknown' NOT NULL,
1309
    determinationtype varchar(255),
1310 6179 aaronmk
    source_id int(11),
1311 5225 aaronmk
    isoriginal int(1) DEFAULT false NOT NULL,
1312
    iscurrent int(1) DEFAULT false NOT NULL,
1313 6429 aaronmk
    taxonfit varchar(255),
1314
    taxonconfidence varchar(255),
1315
    grouptype varchar(255),
1316
    notes varchar(255),
1317 5225 aaronmk
    notespublic int(1),
1318
    notesmgt int(1),
1319
    revisions int(1),
1320 5499 aaronmk
    determinationdate date,
1321 6429 aaronmk
    accessioncode varchar(255)
1322 5225 aaronmk
);
1323 4964 aaronmk
1324
1325
--
1326 5225 aaronmk
-- Name: TABLE taxondetermination; Type: COMMENT; Schema: public; Owner: -
1327 4964 aaronmk
--
1328
1329
1330
1331
1332
--
1333 5225 aaronmk
-- Name: taxonoccurrence; Type: TABLE; Schema: public; Owner: -; Tablespace:
1334 4964 aaronmk
--
1335
1336 5225 aaronmk
CREATE TABLE taxonoccurrence (
1337
    taxonoccurrence_id int(11) NOT NULL,
1338 6179 aaronmk
    source_id int(11) NOT NULL,
1339 6429 aaronmk
    sourceaccessioncode varchar(255),
1340 5225 aaronmk
    locationevent_id int(11),
1341 6429 aaronmk
    authortaxoncode varchar(255),
1342 6171 aaronmk
    collector_id int(11),
1343 6429 aaronmk
    growthform varchar(255),
1344 5225 aaronmk
    iscultivated int(1),
1345 6429 aaronmk
    cultivatedbasis varchar(255),
1346 5225 aaronmk
    isnative int(1),
1347 6429 aaronmk
    accessioncode varchar(255)
1348 5225 aaronmk
);
1349 4964 aaronmk
1350
1351
--
1352 5225 aaronmk
-- Name: TABLE taxonoccurrence; Type: COMMENT; Schema: public; Owner: -
1353 4964 aaronmk
--
1354
1355
1356
1357
1358
--
1359 5225 aaronmk
-- Name: COLUMN taxonoccurrence.iscultivated; Type: COMMENT; Schema: public; Owner: -
1360 5200 aaronmk
--
1361
1362
1363
1364
1365
--
1366 5225 aaronmk
-- Name: COLUMN taxonoccurrence.cultivatedbasis; Type: COMMENT; Schema: public; Owner: -
1367 4933 aaronmk
--
1368
1369
1370
1371
1372
--
1373 5225 aaronmk
-- Name: COLUMN taxonoccurrence.isnative; Type: COMMENT; Schema: public; Owner: -
1374 4934 aaronmk
--
1375
1376
1377
1378
1379
--
1380 5655 aaronmk
-- Name: taxonverbatim; Type: TABLE; Schema: public; Owner: -; Tablespace:
1381
--
1382
1383
CREATE TABLE taxonverbatim (
1384 5660 aaronmk
    taxonverbatim_id int(11) NOT NULL,
1385 5655 aaronmk
    taxonlabel_id int(11) NOT NULL,
1386 6429 aaronmk
    verbatimrank varchar(255),
1387
    taxonomicname varchar(255),
1388
    taxonname varchar(255),
1389
    author varchar(255),
1390
    family varchar(255),
1391
    genus varchar(255),
1392
    specific_epithet varchar(255),
1393
    morphospecies varchar(255),
1394
    growthform varchar(255),
1395
    description varchar(255)
1396 5655 aaronmk
);
1397
1398
1399
--
1400
-- Name: TABLE taxonverbatim; Type: COMMENT; Schema: public; Owner: -
1401
--
1402
1403
1404
1405
1406
--
1407
-- Name: COLUMN taxonverbatim.verbatimrank; Type: COMMENT; Schema: public; Owner: -
1408
--
1409
1410
1411
1412
1413
--
1414
-- Name: COLUMN taxonverbatim.taxonomicname; Type: COMMENT; Schema: public; Owner: -
1415
--
1416
1417
1418
1419
1420
--
1421 5948 aaronmk
-- Name: COLUMN taxonverbatim.taxonname; Type: COMMENT; Schema: public; Owner: -
1422 5655 aaronmk
--
1423
1424
1425
1426
1427
--
1428
-- Name: COLUMN taxonverbatim.author; Type: COMMENT; Schema: public; Owner: -
1429
--
1430
1431
1432
1433
1434
--
1435
-- Name: COLUMN taxonverbatim.family; Type: COMMENT; Schema: public; Owner: -
1436
--
1437
1438
1439
1440
1441
--
1442
-- Name: COLUMN taxonverbatim.genus; Type: COMMENT; Schema: public; Owner: -
1443
--
1444
1445
1446
1447
1448
--
1449 5783 aaronmk
-- Name: COLUMN taxonverbatim.specific_epithet; Type: COMMENT; Schema: public; Owner: -
1450 5655 aaronmk
--
1451
1452
1453
1454
1455
--
1456 5666 aaronmk
-- Name: COLUMN taxonverbatim.morphospecies; Type: COMMENT; Schema: public; Owner: -
1457
--
1458
1459
1460
1461
1462
--
1463 6092 aaronmk
-- Name: threatened_taxonlabel; Type: TABLE; Schema: public; Owner: -; Tablespace:
1464
--
1465
1466
CREATE TABLE threatened_taxonlabel (
1467
    taxonlabel_id int(11) NOT NULL
1468
);
1469
1470
1471
--
1472 5865 aaronmk
-- Name: analytical_stem_view; Type: VIEW; Schema: public; Owner: -
1473 689 aaronmk
--
1474
1475
1476
1477 6420 aaronmk
1478 4391 aaronmk
--
1479
-- Name: classcontributor; Type: TABLE; Schema: public; Owner: -; Tablespace:
1480 689 aaronmk
--
1481
1482 4391 aaronmk
CREATE TABLE classcontributor (
1483
    classcontributor_id int(11) NOT NULL,
1484
    commclass_id int(11) NOT NULL,
1485
    party_id int(11) NOT NULL,
1486 6429 aaronmk
    role varchar(255)
1487 689 aaronmk
);
1488
1489
1490
--
1491 4391 aaronmk
-- Name: classcontributor_classcontributor_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1492 689 aaronmk
--
1493
1494
1495
1496
1497
--
1498 4391 aaronmk
-- Name: classcontributor_classcontributor_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1499 689 aaronmk
--
1500
1501
1502
1503
1504
--
1505 6029 aaronmk
-- Name: classcontributor_classcontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1506
--
1507
1508
1509
1510
--
1511 4391 aaronmk
-- Name: commclass; Type: TABLE; Schema: public; Owner: -; Tablespace:
1512 689 aaronmk
--
1513
1514 4391 aaronmk
CREATE TABLE commclass (
1515
    commclass_id int(11) NOT NULL,
1516 689 aaronmk
    locationevent_id int(11) NOT NULL,
1517 4391 aaronmk
    inspection int(1),
1518
    tableanalysis int(1),
1519
    multivariateanalysis int(1),
1520
    classpublication_id int(11),
1521 6429 aaronmk
    classnotes varchar(255),
1522
    commname varchar(255),
1523
    commcode varchar(255),
1524
    commframework varchar(255),
1525
    commlevel varchar(255),
1526 5499 aaronmk
    classstartdate date,
1527
    classstopdate date,
1528 6429 aaronmk
    expertsystem varchar(255),
1529
    accessioncode varchar(255)
1530 689 aaronmk
);
1531
1532
1533
--
1534 4391 aaronmk
-- Name: commclass_commclass_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1535 689 aaronmk
--
1536
1537
1538
1539
1540
--
1541 4391 aaronmk
-- Name: commclass_commclass_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1542 689 aaronmk
--
1543
1544
1545
1546
1547
--
1548 6029 aaronmk
-- Name: commclass_commclass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1549
--
1550
1551
1552
1553
--
1554 4391 aaronmk
-- Name: commconcept; Type: TABLE; Schema: public; Owner: -; Tablespace:
1555 689 aaronmk
--
1556
1557 4391 aaronmk
CREATE TABLE commconcept (
1558
    commconcept_id int(11) NOT NULL,
1559
    commname_id int(11) NOT NULL,
1560 6179 aaronmk
    source_id int(11),
1561 6429 aaronmk
    commdescription varchar(255),
1562
    commname varchar(255),
1563
    accessioncode varchar(255)
1564 689 aaronmk
);
1565
1566
1567
--
1568 4391 aaronmk
-- Name: commconcept_commconcept_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1569 1020 aaronmk
--
1570
1571
1572
1573
1574
--
1575 4391 aaronmk
-- Name: commconcept_commconcept_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1576 689 aaronmk
--
1577
1578
1579
1580
1581
--
1582 6029 aaronmk
-- Name: commconcept_commconcept_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1583
--
1584
1585
1586
1587
--
1588 4391 aaronmk
-- Name: commcorrelation; Type: TABLE; Schema: public; Owner: -; Tablespace:
1589 689 aaronmk
--
1590
1591 4391 aaronmk
CREATE TABLE commcorrelation (
1592
    commcorrelation_id int(11) NOT NULL,
1593
    commstatus_id int(11) NOT NULL,
1594
    commconcept_id int(11) NOT NULL,
1595 6429 aaronmk
    commconvergence varchar(255) NOT NULL,
1596 5499 aaronmk
    correlationstart date NOT NULL,
1597
    correlationstop date
1598 4391 aaronmk
);
1599 689 aaronmk
1600
1601 4391 aaronmk
--
1602
-- Name: commcorrelation_commcorrelation_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1603
--
1604 689 aaronmk
1605 4391 aaronmk
1606
1607
1608 689 aaronmk
--
1609 4391 aaronmk
-- Name: commcorrelation_commcorrelation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1610 906 aaronmk
--
1611
1612 4391 aaronmk
1613
1614
1615
--
1616 6029 aaronmk
-- Name: commcorrelation_commcorrelation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1617
--
1618
1619
1620
1621
--
1622 4391 aaronmk
-- Name: commdetermination; Type: TABLE; Schema: public; Owner: -; Tablespace:
1623
--
1624
1625
CREATE TABLE commdetermination (
1626
    commdetermination_id int(11) NOT NULL,
1627
    commclass_id int(11) NOT NULL,
1628
    commconcept_id int(11) NOT NULL,
1629 6429 aaronmk
    commcode varchar(255),
1630
    commname varchar(255),
1631
    classfit varchar(255),
1632
    classconfidence varchar(255),
1633 4391 aaronmk
    commauthority_id int(11),
1634 6429 aaronmk
    notes varchar(255),
1635 4391 aaronmk
    type int(1),
1636
    nomenclaturaltype int(1)
1637 906 aaronmk
);
1638
1639
1640
--
1641 4391 aaronmk
-- Name: commdetermination_commdetermination_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1642 1021 aaronmk
--
1643
1644
1645
1646
1647
--
1648 4391 aaronmk
-- Name: commdetermination_commdetermination_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1649 1022 aaronmk
--
1650
1651
1652
1653
1654
--
1655 6029 aaronmk
-- Name: commdetermination_commdetermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1656
--
1657
1658
1659
1660
--
1661 4391 aaronmk
-- Name: commlineage; Type: TABLE; Schema: public; Owner: -; Tablespace:
1662 1020 aaronmk
--
1663
1664 4391 aaronmk
CREATE TABLE commlineage (
1665
    commlineage_id int(11) NOT NULL,
1666
    parentcommstatus_id int(11) NOT NULL,
1667
    childcommstatus_id int(11) NOT NULL
1668
);
1669 1020 aaronmk
1670
1671
--
1672 4391 aaronmk
-- Name: commlineage_commlineage_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1673 906 aaronmk
--
1674
1675
1676
1677
1678
--
1679 4391 aaronmk
-- Name: commlineage_commlineage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1680 906 aaronmk
--
1681
1682
1683
1684
1685
--
1686 6029 aaronmk
-- Name: commlineage_commlineage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1687
--
1688
1689
1690
1691
--
1692 4391 aaronmk
-- Name: commname; Type: TABLE; Schema: public; Owner: -; Tablespace:
1693 689 aaronmk
--
1694
1695 4391 aaronmk
CREATE TABLE commname (
1696
    commname_id int(11) NOT NULL,
1697 6429 aaronmk
    commname varchar(255) NOT NULL,
1698 6179 aaronmk
    source_id int(11),
1699 5499 aaronmk
    dateentered date
1700 689 aaronmk
);
1701
1702
1703
--
1704 4391 aaronmk
-- Name: commname_commname_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1705 689 aaronmk
--
1706
1707
1708
1709
1710
--
1711 4391 aaronmk
-- Name: commname_commname_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1712 689 aaronmk
--
1713
1714
1715
1716
1717
--
1718 6029 aaronmk
-- Name: commname_commname_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1719
--
1720
1721
1722
1723
--
1724 4391 aaronmk
-- Name: commstatus; Type: TABLE; Schema: public; Owner: -; Tablespace:
1725 689 aaronmk
--
1726
1727 4391 aaronmk
CREATE TABLE commstatus (
1728
    commstatus_id int(11) NOT NULL,
1729
    commconcept_id int(11) NOT NULL,
1730 6179 aaronmk
    source_id int(11),
1731 6429 aaronmk
    commconceptstatus varchar(255) NOT NULL,
1732 4391 aaronmk
    commparent_id int(11),
1733 6429 aaronmk
    commlevel varchar(255),
1734
    commpartycomments varchar(255),
1735 4391 aaronmk
    party_id int(11) NOT NULL,
1736 5499 aaronmk
    startdate date NOT NULL,
1737
    stopdate date,
1738 6429 aaronmk
    accessioncode varchar(255)
1739 4391 aaronmk
);
1740 689 aaronmk
1741
1742 4391 aaronmk
--
1743
-- Name: commstatus_commstatus_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1744
--
1745 689 aaronmk
1746 4391 aaronmk
1747
1748
1749 689 aaronmk
--
1750 4391 aaronmk
-- Name: commstatus_commstatus_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1751 689 aaronmk
--
1752
1753 4391 aaronmk
1754
1755
1756
--
1757 6029 aaronmk
-- Name: commstatus_commstatus_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1758
--
1759
1760
1761
1762
--
1763 4391 aaronmk
-- Name: commusage; Type: TABLE; Schema: public; Owner: -; Tablespace:
1764
--
1765
1766
CREATE TABLE commusage (
1767
    commusage_id int(11) NOT NULL,
1768
    commname_id int(11) NOT NULL,
1769 6429 aaronmk
    commname varchar(255),
1770 4391 aaronmk
    commconcept_id int(11),
1771 6429 aaronmk
    commnamestatus varchar(255),
1772
    classsystem varchar(255),
1773 4391 aaronmk
    party_id int(11),
1774
    commstatus_id int(11),
1775 5499 aaronmk
    usagestart date,
1776
    usagestop date
1777 689 aaronmk
);
1778
1779
1780
--
1781 4391 aaronmk
-- Name: commusage_commusage_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1782 689 aaronmk
--
1783
1784
1785
1786
1787
--
1788 4391 aaronmk
-- Name: commusage_commusage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1789 689 aaronmk
--
1790
1791
1792
1793
1794
--
1795 6029 aaronmk
-- Name: commusage_commusage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1796
--
1797
1798
1799
1800
--
1801 5859 aaronmk
-- Name: coordinates_coordinates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1802
--
1803
1804
1805
1806
1807
--
1808
-- Name: coordinates_coordinates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1809
--
1810
1811
1812
1813
1814
--
1815 6029 aaronmk
-- Name: coordinates_coordinates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1816
--
1817
1818
1819
1820
--
1821 4391 aaronmk
-- Name: coverindex; Type: TABLE; Schema: public; Owner: -; Tablespace:
1822 689 aaronmk
--
1823
1824 4391 aaronmk
CREATE TABLE coverindex (
1825
    coverindex_id int(11) NOT NULL,
1826
    covermethod_id int(11) NOT NULL,
1827 6429 aaronmk
    covercode varchar(255) NOT NULL,
1828 4391 aaronmk
    upperlimit double precision,
1829
    lowerlimit double precision,
1830
    coverpercent double precision NOT NULL,
1831 6429 aaronmk
    indexdescription varchar(255)
1832 689 aaronmk
);
1833
1834
1835
--
1836 4391 aaronmk
-- Name: coverindex_coverindex_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1837 689 aaronmk
--
1838
1839
1840
1841
1842
--
1843 4391 aaronmk
-- Name: coverindex_coverindex_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1844 689 aaronmk
--
1845
1846
1847
1848
1849
--
1850 6029 aaronmk
-- Name: coverindex_coverindex_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1851
--
1852
1853
1854
1855
--
1856 4391 aaronmk
-- Name: covermethod; Type: TABLE; Schema: public; Owner: -; Tablespace:
1857 907 aaronmk
--
1858
1859 4391 aaronmk
CREATE TABLE covermethod (
1860
    covermethod_id int(11) NOT NULL,
1861 6179 aaronmk
    source_id int(11),
1862 6429 aaronmk
    covertype varchar(255) NOT NULL,
1863
    coverestimationmethod varchar(255),
1864
    accessioncode varchar(255)
1865 907 aaronmk
);
1866
1867
1868
--
1869 4391 aaronmk
-- Name: covermethod_covermethod_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1870 1039 aaronmk
--
1871
1872
1873
1874
1875
--
1876 4391 aaronmk
-- Name: covermethod_covermethod_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1877 1100 aaronmk
--
1878
1879
1880
1881
1882
--
1883 6029 aaronmk
-- Name: covermethod_covermethod_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1884
--
1885
1886
1887
1888
--
1889 4391 aaronmk
-- Name: dba_preassignacccode_dba_requestnumber_seq; Type: SEQUENCE; Schema: public; Owner: -
1890 1064 aaronmk
--
1891
1892
1893
1894
1895
--
1896 6029 aaronmk
-- Name: dba_preassignacccode_dba_requestnumber_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1897
--
1898
1899
1900
1901
--
1902 4391 aaronmk
-- Name: definedvalue; Type: TABLE; Schema: public; Owner: -; Tablespace:
1903 1064 aaronmk
--
1904
1905 4391 aaronmk
CREATE TABLE definedvalue (
1906
    definedvalue_id int(11) NOT NULL,
1907
    userdefined_id int(11) NOT NULL,
1908
    tablerecord_id int(11) NOT NULL,
1909 6429 aaronmk
    definedvalue varchar(255)
1910 4391 aaronmk
);
1911 1064 aaronmk
1912
1913
--
1914 4391 aaronmk
-- Name: definedvalue_definedvalue_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1915 1064 aaronmk
--
1916
1917
1918
1919
1920
--
1921 4391 aaronmk
-- Name: definedvalue_definedvalue_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1922 1064 aaronmk
--
1923
1924
1925
1926
1927
--
1928 6029 aaronmk
-- Name: definedvalue_definedvalue_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1929
--
1930
1931
1932
1933
--
1934 4391 aaronmk
-- Name: disturbanceobs; Type: TABLE; Schema: public; Owner: -; Tablespace:
1935 1064 aaronmk
--
1936
1937 4391 aaronmk
CREATE TABLE disturbanceobs (
1938
    disturbanceobs_id int(11) NOT NULL,
1939
    locationevent_id int(11) NOT NULL,
1940 6429 aaronmk
    disturbancetype varchar(255) NOT NULL,
1941
    disturbanceintensity varchar(255),
1942 4391 aaronmk
    disturbanceage double precision,
1943
    disturbanceextent double precision,
1944 6429 aaronmk
    disturbancecomment varchar(255)
1945 4391 aaronmk
);
1946 1064 aaronmk
1947
1948
--
1949 4391 aaronmk
-- Name: disturbanceobs_disturbanceobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1950 1112 aaronmk
--
1951
1952
1953
1954
1955
--
1956 4391 aaronmk
-- Name: disturbanceobs_disturbanceobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1957 1064 aaronmk
--
1958
1959
1960
1961
1962
--
1963 6029 aaronmk
-- Name: disturbanceobs_disturbanceobs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1964
--
1965
1966
1967
1968
--
1969 5991 aaronmk
-- Name: geoscrub_input; Type: TABLE; Schema: public; Owner: -; Tablespace:
1970
--
1971
1972
CREATE TABLE geoscrub_input (
1973 6429 aaronmk
    country varchar(255),
1974
    `stateProvince` varchar(255),
1975
    county varchar(255),
1976 5991 aaronmk
    `decimalLatitude` double precision,
1977
    `decimalLongitude` double precision
1978
);
1979
1980
1981
--
1982
-- Name: geoscrub_input_view; Type: VIEW; Schema: public; Owner: -
1983
--
1984
1985
1986
1987
1988
--
1989 4391 aaronmk
-- Name: graphic; Type: TABLE; Schema: public; Owner: -; Tablespace:
1990 1034 aaronmk
--
1991
1992 4391 aaronmk
CREATE TABLE graphic (
1993
    graphic_id int(11) NOT NULL,
1994
    locationevent_id int(11) NOT NULL,
1995 6429 aaronmk
    graphicname varchar(255),
1996
    graphiclocation varchar(255),
1997
    graphicdescription varchar(255),
1998
    graphictype varchar(255),
1999 4391 aaronmk
    graphicdata int(11),
2000 5499 aaronmk
    graphicdate date,
2001 6429 aaronmk
    accessioncode varchar(255)
2002 4391 aaronmk
);
2003 1034 aaronmk
2004
2005
--
2006 4391 aaronmk
-- Name: graphic_graphic_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2007 1034 aaronmk
--
2008
2009
2010
2011
2012
--
2013 4391 aaronmk
-- Name: graphic_graphic_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2014 1034 aaronmk
--
2015
2016
2017
2018
2019
--
2020 6029 aaronmk
-- Name: graphic_graphic_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2021
--
2022
2023
2024
2025
--
2026 6030 aaronmk
-- Name: higher_plant_group_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
2027
--
2028
2029
CREATE TABLE higher_plant_group_nodes (
2030 6429 aaronmk
    higher_plant_group varchar(255),
2031
    node_name varchar(255) NOT NULL
2032 6030 aaronmk
);
2033
2034
2035
--
2036 4391 aaronmk
-- Name: location_location_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2037 1034 aaronmk
--
2038
2039
2040
2041
2042
--
2043 4391 aaronmk
-- Name: location_location_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2044 1064 aaronmk
--
2045
2046
2047
2048
2049
--
2050 6029 aaronmk
-- Name: location_location_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2051
--
2052
2053
2054
2055
--
2056 4391 aaronmk
-- Name: locationevent_locationevent_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2057 1099 aaronmk
--
2058
2059
2060
2061
2062
--
2063 4391 aaronmk
-- Name: locationevent_locationevent_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2064 1099 aaronmk
--
2065
2066
2067
2068
2069
--
2070 6029 aaronmk
-- Name: locationevent_locationevent_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2071
--
2072
2073
2074
2075
--
2076 4391 aaronmk
-- Name: locationeventcontributor; Type: TABLE; Schema: public; Owner: -; Tablespace:
2077 1099 aaronmk
--
2078
2079 4391 aaronmk
CREATE TABLE locationeventcontributor (
2080
    locationeventcontributor_id int(11) NOT NULL,
2081
    locationevent_id int(11) NOT NULL,
2082
    party_id int(11) NOT NULL,
2083 6429 aaronmk
    role varchar(255) NOT NULL,
2084 5499 aaronmk
    contributiondate date
2085 4391 aaronmk
);
2086 1099 aaronmk
2087
2088
--
2089 4391 aaronmk
-- Name: locationeventcontributor_locationeventcontributor_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2090 1099 aaronmk
--
2091
2092
2093
2094
2095
--
2096 4391 aaronmk
-- Name: locationeventcontributor_locationeventcontributor_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2097 1162 aaronmk
--
2098
2099
2100
2101
2102
--
2103 6029 aaronmk
-- Name: locationeventcontributor_locationeventcontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2104
--
2105
2106
2107
2108
--
2109 4391 aaronmk
-- Name: locationeventsynonym; Type: TABLE; Schema: public; Owner: -; Tablespace:
2110 1162 aaronmk
--
2111
2112 4391 aaronmk
CREATE TABLE locationeventsynonym (
2113
    locationeventsynonym_id int(11) NOT NULL,
2114
    synonymlocationevent_id int(11) NOT NULL,
2115
    primarylocationevent_id int(11) NOT NULL,
2116
    party_id int(11) NOT NULL,
2117 6429 aaronmk
    role varchar(255) NOT NULL,
2118
    synonymcomment varchar(255),
2119 5499 aaronmk
    classstartdate date  NOT NULL,
2120
    classstopdate date,
2121 6429 aaronmk
    accessioncode varchar(255)
2122 4391 aaronmk
);
2123 1162 aaronmk
2124
2125 4391 aaronmk
--
2126
-- Name: locationeventsynonym_locationeventsynonym_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2127
--
2128 1162 aaronmk
2129 4391 aaronmk
2130
2131
2132 1162 aaronmk
--
2133 4391 aaronmk
-- Name: locationeventsynonym_locationeventsynonym_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2134 1168 aaronmk
--
2135
2136
2137
2138
2139
--
2140 6029 aaronmk
-- Name: locationeventsynonym_locationeventsynonym_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2141
--
2142
2143
2144
2145
--
2146 4726 aaronmk
-- Name: locationplace_locationplace_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2147
--
2148
2149
2150
2151
2152
--
2153
-- Name: locationplace_locationplace_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2154
--
2155
2156
2157
2158
2159
--
2160 6029 aaronmk
-- Name: locationplace_locationplace_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2161
--
2162
2163
2164
2165
--
2166 1101 aaronmk
-- Name: method_method_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2167 1099 aaronmk
--
2168
2169
2170
2171
2172
--
2173 1101 aaronmk
-- Name: method_method_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2174 1099 aaronmk
--
2175
2176
2177
2178
2179
--
2180 6029 aaronmk
-- Name: method_method_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2181
--
2182
2183
2184
2185
--
2186 1101 aaronmk
-- Name: methodtaxonclass; Type: TABLE; Schema: public; Owner: -; Tablespace:
2187
--
2188
2189
CREATE TABLE methodtaxonclass (
2190
    methodtaxonclass_id int(11) NOT NULL,
2191
    method_id int(11) NOT NULL,
2192 5608 aaronmk
    taxonlabel_id int(11),
2193 1152 aaronmk
    included int(1) NOT NULL,
2194 1160 aaronmk
    submethod_id int(11),
2195 6429 aaronmk
    taxonclass varchar(255)
2196 1101 aaronmk
);
2197
2198
2199
--
2200
-- Name: COLUMN methodtaxonclass.included; Type: COMMENT; Schema: public; Owner: -
2201
--
2202
2203
2204
2205
2206
--
2207 1105 aaronmk
-- Name: COLUMN methodtaxonclass.submethod_id; Type: COMMENT; Schema: public; Owner: -
2208
--
2209
2210
2211
2212
2213
--
2214 1101 aaronmk
-- Name: methodtaxonclass_methodtaxonclass_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2215
--
2216
2217
2218
2219
2220
--
2221
-- Name: methodtaxonclass_methodtaxonclass_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2222
--
2223
2224
2225
2226
2227
--
2228 6029 aaronmk
-- Name: methodtaxonclass_methodtaxonclass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2229
--
2230
2231
2232
2233
--
2234 689 aaronmk
-- Name: note; Type: TABLE; Schema: public; Owner: -; Tablespace:
2235
--
2236
2237
CREATE TABLE note (
2238
    note_id int(11) NOT NULL,
2239
    notelink_id int(11) NOT NULL,
2240
    party_id int(11) NOT NULL,
2241 6429 aaronmk
    role varchar(255) NOT NULL,
2242
    notetype varchar(255) NOT NULL,
2243
    notetext varchar(255) NOT NULL,
2244 5499 aaronmk
    notedate date,
2245 6429 aaronmk
    accessioncode varchar(255)
2246 689 aaronmk
);
2247
2248
2249
--
2250
-- Name: note_note_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2251
--
2252
2253
2254
2255
2256
--
2257
-- Name: note_note_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2258
--
2259
2260
2261
2262
2263
--
2264 6029 aaronmk
-- Name: note_note_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2265
--
2266
2267
2268
2269
--
2270 689 aaronmk
-- Name: notelink; Type: TABLE; Schema: public; Owner: -; Tablespace:
2271
--
2272
2273
CREATE TABLE notelink (
2274
    notelink_id int(11) NOT NULL,
2275 6429 aaronmk
    tablename varchar(255) NOT NULL,
2276
    attributename varchar(255),
2277 689 aaronmk
    tablerecord int(11) NOT NULL
2278
);
2279
2280
2281
--
2282
-- Name: notelink_notelink_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2283
--
2284
2285
2286
2287
2288
--
2289
-- Name: notelink_notelink_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2290
--
2291
2292
2293
2294
2295
--
2296 6029 aaronmk
-- Name: notelink_notelink_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2297
--
2298
2299
2300
2301
--
2302 689 aaronmk
-- Name: party_party_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2303
--
2304
2305
2306
2307
2308
--
2309
-- Name: party_party_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2310
--
2311
2312
2313
2314
2315
--
2316 6029 aaronmk
-- Name: party_party_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2317
--
2318
2319
2320
2321
--
2322 689 aaronmk
-- Name: partymember; Type: TABLE; Schema: public; Owner: -; Tablespace:
2323
--
2324
2325
CREATE TABLE partymember (
2326
    partymember_id int(11) NOT NULL,
2327
    parentparty_id int(11) NOT NULL,
2328
    childparty_id int(11) NOT NULL,
2329 6429 aaronmk
    role varchar(255),
2330 5499 aaronmk
    memberstart date  NOT NULL,
2331
    memberstop date
2332 689 aaronmk
);
2333
2334
2335
--
2336
-- Name: partymember_partymember_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2337
--
2338
2339
2340
2341
2342
--
2343
-- Name: partymember_partymember_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2344
--
2345
2346
2347
2348
2349
--
2350 6029 aaronmk
-- Name: partymember_partymember_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2351
--
2352
2353
2354
2355
--
2356 5855 aaronmk
-- Name: place_place_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2357
--
2358
2359
2360
2361
2362
--
2363
-- Name: place_place_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2364
--
2365
2366
2367
2368
2369
--
2370 6029 aaronmk
-- Name: place_place_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2371
--
2372
2373
2374
2375
--
2376 5854 aaronmk
-- Name: placecorrelation; Type: TABLE; Schema: public; Owner: -; Tablespace:
2377 4730 aaronmk
--
2378
2379 5854 aaronmk
CREATE TABLE placecorrelation (
2380
    placecorrelation_id int(11) NOT NULL,
2381
    parentplace_id int(11) NOT NULL,
2382
    childplace_id int(11) NOT NULL,
2383 6429 aaronmk
    placeconvergence varchar(255) NOT NULL
2384 4739 aaronmk
);
2385 4730 aaronmk
2386
2387
--
2388 5854 aaronmk
-- Name: placecorrelation_placecorrelation_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2389 4730 aaronmk
--
2390
2391
2392
2393
2394
--
2395 5854 aaronmk
-- Name: placecorrelation_placecorrelation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2396 4730 aaronmk
--
2397
2398
2399
2400 5854 aaronmk
2401 4730 aaronmk
--
2402 6029 aaronmk
-- Name: placecorrelation_placecorrelation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2403
--
2404
2405
2406
2407
--
2408 5854 aaronmk
-- Name: placename; Type: TABLE; Schema: public; Owner: -; Tablespace:
2409 5440 aaronmk
--
2410
2411 5854 aaronmk
CREATE TABLE placename (
2412
    placename_id int(11) NOT NULL,
2413
    parent_id int(11),
2414 6429 aaronmk
    rank varchar(255) NOT NULL,
2415
    placename varchar(255) NOT NULL
2416 5854 aaronmk
);
2417 5440 aaronmk
2418
2419
--
2420 5854 aaronmk
-- Name: TABLE placename; Type: COMMENT; Schema: public; Owner: -
2421 4730 aaronmk
--
2422
2423
2424
2425
2426
--
2427 5854 aaronmk
-- Name: placename_ancestor; Type: TABLE; Schema: public; Owner: -; Tablespace:
2428 4730 aaronmk
--
2429
2430 5854 aaronmk
CREATE TABLE placename_ancestor (
2431
    placename_id int(11) NOT NULL,
2432
    ancestor_id int(11) NOT NULL
2433
);
2434 4730 aaronmk
2435
2436
--
2437 5854 aaronmk
-- Name: TABLE placename_ancestor; Type: COMMENT; Schema: public; Owner: -
2438 4727 aaronmk
--
2439
2440
2441
2442 5854 aaronmk
2443 4727 aaronmk
--
2444 5854 aaronmk
-- Name: placename_placename_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2445 4727 aaronmk
--
2446
2447
2448
2449
2450
--
2451 5854 aaronmk
-- Name: placename_placename_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2452 4739 aaronmk
--
2453
2454
2455
2456
2457
--
2458 6029 aaronmk
-- Name: placename_placename_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2459
--
2460
2461
2462
2463
--
2464 689 aaronmk
-- Name: plant; Type: TABLE; Schema: public; Owner: -; Tablespace:
2465
--
2466
2467
CREATE TABLE plant (
2468
    plant_id int(11) NOT NULL
2469
);
2470
2471
2472
--
2473
-- Name: TABLE plant; Type: COMMENT; Schema: public; Owner: -
2474
--
2475
2476
2477
2478
2479
--
2480
-- Name: plant_plant_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2481
--
2482
2483
2484
2485
2486
--
2487
-- Name: plant_plant_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2488
--
2489
2490
2491
2492
2493
--
2494 6029 aaronmk
-- Name: plant_plant_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2495
--
2496
2497
2498
2499
--
2500 689 aaronmk
-- Name: plantobservation_plantobservation_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2501
--
2502
2503
2504
2505
2506
--
2507
-- Name: plantobservation_plantobservation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2508
--
2509
2510
2511
2512
2513
--
2514 6029 aaronmk
-- Name: plantobservation_plantobservation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2515
--
2516
2517
2518
2519
--
2520 689 aaronmk
-- Name: project; Type: TABLE; Schema: public; Owner: -; Tablespace:
2521
--
2522
2523
CREATE TABLE project (
2524
    project_id int(11) NOT NULL,
2525 6179 aaronmk
    source_id int(11) NOT NULL,
2526 6429 aaronmk
    sourceaccessioncode varchar(255),
2527
    projectname varchar(255),
2528
    projectdescription varchar(255),
2529 5499 aaronmk
    startdate date,
2530
    stopdate date,
2531 6429 aaronmk
    accessioncode varchar(255)
2532 689 aaronmk
);
2533
2534
2535
--
2536
-- Name: project_project_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2537
--
2538
2539
2540
2541
2542
--
2543
-- Name: project_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2544
--
2545
2546
2547
2548
2549
--
2550 6029 aaronmk
-- Name: project_project_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2551
--
2552
2553
2554
2555
--
2556 689 aaronmk
-- Name: projectcontributor; Type: TABLE; Schema: public; Owner: -; Tablespace:
2557
--
2558
2559
CREATE TABLE projectcontributor (
2560
    projectcontributor_id int(11) NOT NULL,
2561
    project_id int(11) NOT NULL,
2562
    party_id int(11) NOT NULL,
2563 6429 aaronmk
    role varchar(255)
2564 689 aaronmk
);
2565
2566
2567
--
2568
-- Name: projectcontributor_projectcontributor_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2569
--
2570
2571
2572
2573
2574
--
2575
-- Name: projectcontributor_projectcontributor_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2576
--
2577
2578
2579
2580
2581
--
2582 6029 aaronmk
-- Name: projectcontributor_projectcontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2583
--
2584
2585
2586
2587
--
2588 6179 aaronmk
-- Name: revision; Type: TABLE; Schema: public; Owner: -; Tablespace:
2589 689 aaronmk
--
2590
2591 6179 aaronmk
CREATE TABLE revision (
2592
    revision_id int(11) NOT NULL,
2593 6429 aaronmk
    tablename varchar(255) NOT NULL,
2594
    tableattribute varchar(255) NOT NULL,
2595 6179 aaronmk
    tablerecord int(11) NOT NULL,
2596 6429 aaronmk
    previousvaluetext varchar(255) NOT NULL,
2597
    previousvaluetype varchar(255) NOT NULL,
2598 6179 aaronmk
    previousrevision_id int(11),
2599
    revisiondate date NOT NULL
2600
);
2601 689 aaronmk
2602
2603 6179 aaronmk
--
2604
-- Name: revision_revision_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2605
--
2606 689 aaronmk
2607 6179 aaronmk
2608
2609
2610 689 aaronmk
--
2611 6179 aaronmk
-- Name: revision_revision_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2612 689 aaronmk
--
2613
2614
2615
2616
2617
--
2618 6179 aaronmk
-- Name: revision_revision_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2619 6029 aaronmk
--
2620
2621
2622
2623
--
2624 6179 aaronmk
-- Name: soilobs; Type: TABLE; Schema: public; Owner: -; Tablespace:
2625 689 aaronmk
--
2626
2627 6179 aaronmk
CREATE TABLE soilobs (
2628
    soilobs_id int(11) NOT NULL,
2629
    locationevent_id int(11) NOT NULL,
2630 6429 aaronmk
    horizon varchar(255) DEFAULT 'unknown' NOT NULL,
2631
    description varchar(255),
2632 6179 aaronmk
    depthtop_m double precision,
2633
    depthbottom_m double precision,
2634 6429 aaronmk
    color varchar(255),
2635
    texture varchar(255),
2636 6179 aaronmk
    organic_fraction double precision,
2637
    sand_fraction double precision,
2638
    silt_fraction double precision,
2639
    clay_fraction double precision,
2640
    coarse_fraction double precision,
2641
    ph double precision,
2642
    acidity_fraction double precision,
2643
    basesaturation_fraction double precision,
2644
    cationexchangecapacity_cmol_kg double precision,
2645
    conductivity double precision,
2646
    carbon_fraction double precision,
2647
    phosphorus_fraction double precision,
2648
    potassium_fraction double precision,
2649
    magnesium_fraction double precision,
2650
    nitrogen_fraction double precision,
2651
    calcium_fraction double precision,
2652
    sodium_fraction double precision
2653 689 aaronmk
);
2654
2655
2656
--
2657 6179 aaronmk
-- Name: soilobs_soilobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2658 689 aaronmk
--
2659
2660
2661
2662
2663
--
2664 6179 aaronmk
-- Name: soilobs_soilobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2665 689 aaronmk
--
2666
2667
2668
2669
2670
--
2671 6179 aaronmk
-- Name: soilobs_soilobs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2672 6029 aaronmk
--
2673
2674
2675
2676
--
2677 6179 aaronmk
-- Name: soiltaxon; Type: TABLE; Schema: public; Owner: -; Tablespace:
2678 689 aaronmk
--
2679
2680 6179 aaronmk
CREATE TABLE soiltaxon (
2681
    soiltaxon_id int(11) NOT NULL,
2682 6429 aaronmk
    soilcode varchar(255),
2683
    soilname varchar(255),
2684 6179 aaronmk
    soillevel int(11),
2685
    soilparent_id int(11),
2686 6429 aaronmk
    soilframework varchar(255),
2687
    accessioncode varchar(255)
2688 689 aaronmk
);
2689
2690
2691
--
2692 6179 aaronmk
-- Name: soiltaxon_soiltaxon_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2693 689 aaronmk
--
2694
2695
2696
2697
2698
--
2699 6179 aaronmk
-- Name: soiltaxon_soiltaxon_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2700 689 aaronmk
--
2701
2702
2703
2704
2705
--
2706 6179 aaronmk
-- Name: soiltaxon_soiltaxon_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2707 6029 aaronmk
--
2708
2709
2710
2711
--
2712 6179 aaronmk
-- Name: source_source_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2713 689 aaronmk
--
2714
2715
2716
2717
2718
--
2719 6179 aaronmk
-- Name: source_source_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2720 689 aaronmk
--
2721
2722
2723
2724
2725
--
2726 6179 aaronmk
-- Name: source_source_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2727 6029 aaronmk
--
2728
2729
2730
2731
--
2732 6179 aaronmk
-- Name: sourcecontributor; Type: TABLE; Schema: public; Owner: -; Tablespace:
2733 689 aaronmk
--
2734
2735 6179 aaronmk
CREATE TABLE sourcecontributor (
2736
    sourcecontributor_id int(11) NOT NULL,
2737
    source_id int(11) NOT NULL,
2738
    sourceparty_id int(11) NOT NULL,
2739 6429 aaronmk
    role varchar(255),
2740 6282 aaronmk
    `order` int(11)
2741 689 aaronmk
);
2742
2743
2744
--
2745 6179 aaronmk
-- Name: sourcecontributor_sourcecontributor_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2746 689 aaronmk
--
2747
2748
2749
2750
2751
--
2752 6179 aaronmk
-- Name: sourcecontributor_sourcecontributor_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2753 689 aaronmk
--
2754
2755
2756
2757
2758
--
2759 6179 aaronmk
-- Name: sourcecontributor_sourcecontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2760 6029 aaronmk
--
2761
2762
2763
2764
--
2765 6179 aaronmk
-- Name: sourcename; Type: TABLE; Schema: public; Owner: -; Tablespace:
2766 689 aaronmk
--
2767
2768 6179 aaronmk
CREATE TABLE sourcename (
2769
    sourcename_id int(11) NOT NULL,
2770
    source_id int(11) NOT NULL,
2771 6429 aaronmk
    system varchar(255),
2772
    name varchar(255) NOT NULL,
2773 6179 aaronmk
    matched_source_id int(11)
2774 689 aaronmk
);
2775
2776
2777
--
2778 6179 aaronmk
-- Name: sourcename_sourcename_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2779 689 aaronmk
--
2780
2781
2782
2783
2784
--
2785 6179 aaronmk
-- Name: sourcename_sourcename_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2786 689 aaronmk
--
2787
2788
2789
2790
2791
--
2792 6179 aaronmk
-- Name: sourcename_sourcename_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2793 6029 aaronmk
--
2794
2795
2796
2797
--
2798 689 aaronmk
-- Name: specimen; Type: TABLE; Schema: public; Owner: -; Tablespace:
2799
--
2800
2801
CREATE TABLE specimen (
2802
    specimen_id int(11) NOT NULL
2803
);
2804
2805
2806
--
2807
-- Name: TABLE specimen; Type: COMMENT; Schema: public; Owner: -
2808
--
2809
2810
2811
2812
2813
--
2814
-- Name: specimen_specimen_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2815
--
2816
2817
2818
2819
2820
--
2821
-- Name: specimen_specimen_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2822
--
2823
2824
2825
2826
2827
--
2828 6029 aaronmk
-- Name: specimen_specimen_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2829
--
2830
2831
2832
2833
--
2834 6060 aaronmk
-- Name: specimenreplicate; Type: TABLE; Schema: public; Owner: -; Tablespace:
2835
--
2836
2837
CREATE TABLE specimenreplicate (
2838
    specimenreplicate_id int(11) NOT NULL,
2839 6179 aaronmk
    source_id int(11) NOT NULL,
2840 6429 aaronmk
    sourceaccessioncode varchar(255),
2841 6060 aaronmk
    plantobservation_id int(11),
2842
    institution_id int(11),
2843 6429 aaronmk
    collectioncode_dwc varchar(255),
2844
    catalognumber_dwc varchar(255),
2845
    description varchar(255),
2846 6060 aaronmk
    specimen_id int(11),
2847 6429 aaronmk
    accessioncode varchar(255)
2848 6060 aaronmk
);
2849
2850
2851
--
2852
-- Name: TABLE specimenreplicate; Type: COMMENT; Schema: public; Owner: -
2853
--
2854
2855
2856
2857
2858
--
2859
-- Name: COLUMN specimenreplicate.institution_id; Type: COMMENT; Schema: public; Owner: -
2860
--
2861
2862
2863
2864
2865
--
2866
-- Name: COLUMN specimenreplicate.collectioncode_dwc; Type: COMMENT; Schema: public; Owner: -
2867
--
2868
2869
2870
2871
2872
--
2873 3934 aaronmk
-- Name: specimenreplicate_specimenreplicate_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2874 689 aaronmk
--
2875
2876
2877
2878
2879
--
2880 3934 aaronmk
-- Name: specimenreplicate_specimenreplicate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2881 3199 aaronmk
--
2882
2883
2884
2885
2886
--
2887 6029 aaronmk
-- Name: specimenreplicate_specimenreplicate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2888
--
2889
2890
2891
2892
--
2893 689 aaronmk
-- Name: stemobservation_stemobservation_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2894
--
2895
2896
2897
2898
2899
--
2900
-- Name: stemobservation_stemobservation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2901
--
2902
2903
2904
2905
2906
--
2907 6029 aaronmk
-- Name: stemobservation_stemobservation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2908
--
2909
2910
2911
2912
--
2913 689 aaronmk
-- Name: stratum; Type: TABLE; Schema: public; Owner: -; Tablespace:
2914
--
2915
2916
CREATE TABLE stratum (
2917
    stratum_id int(11) NOT NULL,
2918
    locationevent_id int(11) NOT NULL,
2919
    stratumheight double precision,
2920
    stratumbase double precision,
2921
    stratumcover double precision,
2922 1029 aaronmk
    area double precision,
2923
    method_id int(11)
2924 689 aaronmk
);
2925
2926
2927
--
2928
-- Name: stratum_stratum_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2929
--
2930
2931
2932
2933
2934
--
2935
-- Name: stratum_stratum_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2936
--
2937
2938
2939
2940
2941
--
2942 6029 aaronmk
-- Name: stratum_stratum_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2943
--
2944
2945
2946
2947
--
2948 689 aaronmk
-- Name: taxonalt; Type: TABLE; Schema: public; Owner: -; Tablespace:
2949
--
2950
2951
CREATE TABLE taxonalt (
2952
    taxonalt_id int(11) NOT NULL,
2953
    taxondetermination_id int(11) NOT NULL,
2954 5608 aaronmk
    taxonlabel_id int(11) NOT NULL,
2955 6429 aaronmk
    taxonaltfit varchar(255),
2956
    taxonaltconfidence varchar(255),
2957
    taxonaltnotes varchar(255)
2958 689 aaronmk
);
2959
2960
2961
--
2962
-- Name: taxonalt_taxonalt_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2963
--
2964
2965
2966
2967
2968
--
2969
-- Name: taxonalt_taxonalt_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2970
--
2971
2972
2973
2974
2975
--
2976 6029 aaronmk
-- Name: taxonalt_taxonalt_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2977
--
2978
2979
2980
2981
--
2982 5627 aaronmk
-- Name: taxonconcept; Type: TABLE; Schema: public; Owner: -; Tablespace:
2983
--
2984
2985
CREATE TABLE taxonconcept (
2986
    taxonlabel_id int(11) NOT NULL,
2987 6179 aaronmk
    concept_source_id int(11)
2988 5627 aaronmk
);
2989
2990
2991
--
2992
-- Name: TABLE taxonconcept; Type: COMMENT; Schema: public; Owner: -
2993
--
2994
2995
2996
2997
2998
--
2999 6179 aaronmk
-- Name: COLUMN taxonconcept.concept_source_id; Type: COMMENT; Schema: public; Owner: -
3000 5627 aaronmk
--
3001
3002
3003
3004
3005
--
3006
-- Name: taxonconcept_taxonlabel_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3007
--
3008
3009
3010
3011
3012
--
3013
-- Name: taxonconcept_taxonlabel_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3014
--
3015
3016
3017
3018
3019
--
3020 6029 aaronmk
-- Name: taxonconcept_taxonlabel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3021
--
3022
3023
3024
3025
--
3026 5608 aaronmk
-- Name: taxoncorrelation; Type: TABLE; Schema: public; Owner: -; Tablespace:
3027 5274 aaronmk
--
3028
3029 5608 aaronmk
CREATE TABLE taxoncorrelation (
3030
    taxoncorrelation_id int(11) NOT NULL,
3031
    taxonstatus_id int(11) NOT NULL,
3032
    taxonlabel_id int(11) NOT NULL,
3033 6429 aaronmk
    plantconvergence varchar(255) NOT NULL,
3034 5608 aaronmk
    correlationstart date NOT NULL,
3035
    correlationstop date
3036 5274 aaronmk
);
3037
3038
3039
--
3040 5608 aaronmk
-- Name: taxoncorrelation_taxoncorrelation_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3041 5440 aaronmk
--
3042
3043
3044
3045
3046
--
3047 5608 aaronmk
-- Name: taxoncorrelation_taxoncorrelation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3048 689 aaronmk
--
3049
3050
3051
3052
3053
--
3054 6029 aaronmk
-- Name: taxoncorrelation_taxoncorrelation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3055
--
3056
3057
3058
3059
--
3060 5608 aaronmk
-- Name: taxondetermination_taxondetermination_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3061 689 aaronmk
--
3062
3063
3064
3065
3066
--
3067 5608 aaronmk
-- Name: taxondetermination_taxondetermination_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3068 5286 aaronmk
--
3069
3070
3071
3072 5608 aaronmk
3073 5286 aaronmk
--
3074 6029 aaronmk
-- Name: taxondetermination_taxondetermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3075
--
3076
3077
3078
3079
--
3080 5609 aaronmk
-- Name: taxonlabel_relationship; Type: TABLE; Schema: public; Owner: -; Tablespace:
3081 5286 aaronmk
--
3082
3083 5609 aaronmk
CREATE TABLE taxonlabel_relationship (
3084 5608 aaronmk
    descendant_id int(11) NOT NULL,
3085 5622 aaronmk
    ancestor_id int(11) NOT NULL,
3086 6429 aaronmk
    relationship varchar(255) DEFAULT 'is included in' NOT NULL
3087 5608 aaronmk
);
3088 5286 aaronmk
3089
3090
--
3091 5609 aaronmk
-- Name: TABLE taxonlabel_relationship; Type: COMMENT; Schema: public; Owner: -
3092 5286 aaronmk
--
3093
3094
3095
3096
3097
--
3098 5622 aaronmk
-- Name: COLUMN taxonlabel_relationship.relationship; Type: COMMENT; Schema: public; Owner: -
3099
--
3100
3101
3102
3103
3104
--
3105 5608 aaronmk
-- Name: taxonlabel_taxonlabel_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3106 3934 aaronmk
--
3107
3108
3109
3110
3111
--
3112 5608 aaronmk
-- Name: taxonlabel_taxonlabel_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3113 3934 aaronmk
--
3114
3115
3116
3117
3118
--
3119 6029 aaronmk
-- Name: taxonlabel_taxonlabel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3120
--
3121
3122
3123
3124
--
3125 5286 aaronmk
-- Name: taxonlineage; Type: TABLE; Schema: public; Owner: -; Tablespace:
3126
--
3127
3128
CREATE TABLE taxonlineage (
3129
    taxonlineage_id int(11) NOT NULL,
3130
    childtaxonstatus_id int(11) NOT NULL,
3131
    parenttaxonstatus_id int(11) NOT NULL
3132
);
3133
3134
3135
--
3136
-- Name: taxonlineage_taxonlineage_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3137
--
3138
3139
3140
3141
3142
--
3143
-- Name: taxonlineage_taxonlineage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3144
--
3145
3146
3147
3148
3149
--
3150 6029 aaronmk
-- Name: taxonlineage_taxonlineage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3151
--
3152
3153
3154
3155
--
3156 5225 aaronmk
-- Name: taxonoccurrence_taxonoccurrence_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3157 4718 aaronmk
--
3158
3159
3160
3161
3162
--
3163 5225 aaronmk
-- Name: taxonoccurrence_taxonoccurrence_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3164 4718 aaronmk
--
3165
3166
3167
3168
3169
--
3170 6029 aaronmk
-- Name: taxonoccurrence_taxonoccurrence_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3171
--
3172
3173
3174
3175
--
3176 5286 aaronmk
-- Name: taxonstatus; Type: TABLE; Schema: public; Owner: -; Tablespace:
3177
--
3178
3179
CREATE TABLE taxonstatus (
3180
    taxonstatus_id int(11) NOT NULL,
3181 5608 aaronmk
    taxonlabel_id int(11) NOT NULL,
3182 5286 aaronmk
    party_id int(11),
3183 6429 aaronmk
    taxonlabelstatus varchar(255) DEFAULT 'undetermined' NOT NULL,
3184 6179 aaronmk
    source_id int(11),
3185 6429 aaronmk
    plantpartycomments varchar(255),
3186 5499 aaronmk
    startdate date,
3187
    stopdate date,
3188 6429 aaronmk
    accessioncode varchar(255)
3189 5286 aaronmk
);
3190
3191
3192
--
3193
-- Name: taxonstatus_taxonstatus_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3194
--
3195
3196
3197
3198
3199
--
3200
-- Name: taxonstatus_taxonstatus_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3201
--
3202
3203
3204
3205
3206
--
3207 6029 aaronmk
-- Name: taxonstatus_taxonstatus_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3208
--
3209
3210
3211
3212
--
3213 5660 aaronmk
-- Name: taxonverbatim_taxonverbatim_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3214
--
3215
3216
3217
3218
3219
--
3220
-- Name: taxonverbatim_taxonverbatim_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3221
--
3222
3223
3224
3225
3226
--
3227 6029 aaronmk
-- Name: taxonverbatim_taxonverbatim_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3228
--
3229
3230
3231
3232
--
3233 689 aaronmk
-- Name: telephone; Type: TABLE; Schema: public; Owner: -; Tablespace:
3234
--
3235
3236
CREATE TABLE telephone (
3237
    telephone_id int(11) NOT NULL,
3238
    party_id int(11) NOT NULL,
3239 6429 aaronmk
    phonenumber varchar(255) NOT NULL,
3240
    phonetype varchar(255) NOT NULL
3241 689 aaronmk
);
3242
3243
3244
--
3245
-- Name: telephone_telephone_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3246
--
3247
3248
3249
3250
3251
--
3252
-- Name: telephone_telephone_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3253
--
3254
3255
3256
3257
3258
--
3259 6029 aaronmk
-- Name: telephone_telephone_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3260
--
3261
3262
3263
3264
--
3265 6085 aaronmk
-- Name: threatened_taxonlabel_view; Type: VIEW; Schema: public; Owner: -
3266
--
3267
3268
3269
3270
3271
--
3272 5667 aaronmk
-- Name: tnrs_input_name; Type: VIEW; Schema: public; Owner: -
3273
--
3274
3275
3276
3277 5772 aaronmk
3278 5667 aaronmk
--
3279 689 aaronmk
-- Name: trait; Type: TABLE; Schema: public; Owner: -; Tablespace:
3280
--
3281
3282
CREATE TABLE trait (
3283
    trait_id int(11) NOT NULL,
3284
    stemobservation_id int(11) NOT NULL,
3285 6429 aaronmk
    type varchar(255) NOT NULL,
3286
    value varchar(255)
3287 689 aaronmk
);
3288
3289
3290
--
3291
-- Name: trait_trait_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3292
--
3293
3294
3295
3296
3297
--
3298
-- Name: trait_trait_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3299
--
3300
3301
3302
3303
3304
--
3305 6029 aaronmk
-- Name: trait_trait_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3306
--
3307
3308
3309
3310
--
3311 689 aaronmk
-- Name: userdefined; Type: TABLE; Schema: public; Owner: -; Tablespace:
3312
--
3313
3314
CREATE TABLE userdefined (
3315
    userdefined_id int(11) NOT NULL,
3316 6429 aaronmk
    userdefinedname varchar(255) NOT NULL,
3317
    userdefinedmetadata varchar(255),
3318
    userdefinedcategory varchar(255),
3319
    userdefinedtype varchar(255) DEFAULT 'varchar(255)' NOT NULL,
3320
    tablename varchar(255) NOT NULL,
3321
    accessioncode varchar(255)
3322 689 aaronmk
);
3323
3324
3325
--
3326
-- Name: userdefined_userdefined_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3327
--
3328
3329
3330
3331
3332
--
3333
-- Name: userdefined_userdefined_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3334
--
3335
3336
3337
3338
3339
--
3340 6029 aaronmk
-- Name: userdefined_userdefined_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3341
--
3342
3343
3344
3345
--
3346 689 aaronmk
-- Name: voucher; Type: TABLE; Schema: public; Owner: -; Tablespace:
3347
--
3348
3349
CREATE TABLE voucher (
3350
    voucher_id int(11) NOT NULL,
3351
    taxonoccurrence_id int(11) NOT NULL,
3352 5243 aaronmk
    specimenreplicate_id int(11) NOT NULL
3353 689 aaronmk
);
3354
3355
3356
--
3357
-- Name: voucher_voucher_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3358
--
3359
3360
3361
3362
3363
--
3364
-- Name: voucher_voucher_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3365
--
3366
3367
3368
3369
3370
--
3371 6029 aaronmk
-- Name: voucher_voucher_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3372
--
3373
3374
3375
3376
--
3377 689 aaronmk
-- Name: address_id; Type: DEFAULT; Schema: public; Owner: -
3378
--
3379
3380
3381
3382
3383
--
3384
-- Name: aggregateoccurrence_id; Type: DEFAULT; Schema: public; Owner: -
3385
--
3386
3387
3388
3389
3390
--
3391
-- Name: classcontributor_id; Type: DEFAULT; Schema: public; Owner: -
3392
--
3393
3394
3395
3396
3397
--
3398
-- Name: commclass_id; Type: DEFAULT; Schema: public; Owner: -
3399
--
3400
3401
3402
3403
3404
--
3405
-- Name: commconcept_id; Type: DEFAULT; Schema: public; Owner: -
3406
--
3407
3408
3409
3410
3411
--
3412
-- Name: commcorrelation_id; Type: DEFAULT; Schema: public; Owner: -
3413
--
3414
3415
3416
3417
3418
--
3419
-- Name: commdetermination_id; Type: DEFAULT; Schema: public; Owner: -
3420
--
3421
3422
3423
3424
3425
--
3426
-- Name: commlineage_id; Type: DEFAULT; Schema: public; Owner: -
3427
--
3428
3429
3430
3431
3432
--
3433
-- Name: commname_id; Type: DEFAULT; Schema: public; Owner: -
3434
--
3435
3436
3437
3438
3439
--
3440
-- Name: commstatus_id; Type: DEFAULT; Schema: public; Owner: -
3441
--
3442
3443
3444
3445
3446
--
3447
-- Name: commusage_id; Type: DEFAULT; Schema: public; Owner: -
3448
--
3449
3450
3451
3452
3453
--
3454 5859 aaronmk
-- Name: coordinates_id; Type: DEFAULT; Schema: public; Owner: -
3455
--
3456
3457
3458
3459
3460
--
3461 689 aaronmk
-- Name: coverindex_id; Type: DEFAULT; Schema: public; Owner: -
3462
--
3463
3464
3465
3466
3467
--
3468
-- Name: covermethod_id; Type: DEFAULT; Schema: public; Owner: -
3469
--
3470
3471
3472
3473
3474
--
3475
-- Name: definedvalue_id; Type: DEFAULT; Schema: public; Owner: -
3476
--
3477
3478
3479
3480
3481
--
3482
-- Name: disturbanceobs_id; Type: DEFAULT; Schema: public; Owner: -
3483
--
3484
3485
3486
3487
3488
--
3489
-- Name: graphic_id; Type: DEFAULT; Schema: public; Owner: -
3490
--
3491
3492
3493
3494
3495
--
3496
-- Name: location_id; Type: DEFAULT; Schema: public; Owner: -
3497
--
3498
3499
3500
3501
3502
--
3503 906 aaronmk
-- Name: locationevent_id; Type: DEFAULT; Schema: public; Owner: -
3504 689 aaronmk
--
3505
3506
3507
3508
3509
--
3510 906 aaronmk
-- Name: locationeventcontributor_id; Type: DEFAULT; Schema: public; Owner: -
3511 689 aaronmk
--
3512
3513
3514
3515
3516
--
3517 906 aaronmk
-- Name: locationeventsynonym_id; Type: DEFAULT; Schema: public; Owner: -
3518 689 aaronmk
--
3519
3520
3521
3522
3523
--
3524 4726 aaronmk
-- Name: locationplace_id; Type: DEFAULT; Schema: public; Owner: -
3525
--
3526
3527
3528
3529
3530
--
3531 907 aaronmk
-- Name: method_id; Type: DEFAULT; Schema: public; Owner: -
3532
--
3533
3534
3535
3536
3537
--
3538 1101 aaronmk
-- Name: methodtaxonclass_id; Type: DEFAULT; Schema: public; Owner: -
3539
--
3540
3541
3542
3543
3544
--
3545 4730 aaronmk
-- Name: note_id; Type: DEFAULT; Schema: public; Owner: -
3546 689 aaronmk
--
3547
3548
3549
3550
3551
--
3552 4730 aaronmk
-- Name: notelink_id; Type: DEFAULT; Schema: public; Owner: -
3553 689 aaronmk
--
3554
3555
3556
3557
3558
--
3559 4730 aaronmk
-- Name: party_id; Type: DEFAULT; Schema: public; Owner: -
3560 689 aaronmk
--
3561
3562
3563
3564
3565
--
3566 4730 aaronmk
-- Name: partymember_id; Type: DEFAULT; Schema: public; Owner: -
3567 689 aaronmk
--
3568
3569
3570
3571
3572
--
3573 5855 aaronmk
-- Name: place_id; Type: DEFAULT; Schema: public; Owner: -
3574 689 aaronmk
--
3575
3576
3577
3578
3579
--
3580 5855 aaronmk
-- Name: placecorrelation_id; Type: DEFAULT; Schema: public; Owner: -
3581 689 aaronmk
--
3582
3583
3584
3585
3586
--
3587 5855 aaronmk
-- Name: placename_id; Type: DEFAULT; Schema: public; Owner: -
3588 4727 aaronmk
--
3589
3590
3591
3592
3593
--
3594 689 aaronmk
-- Name: plant_id; Type: DEFAULT; Schema: public; Owner: -
3595
--
3596
3597
3598
3599
3600
--
3601 5286 aaronmk
-- Name: plantobservation_id; Type: DEFAULT; Schema: public; Owner: -
3602 903 aaronmk
--
3603
3604
3605
3606
3607
--
3608 5286 aaronmk
-- Name: project_id; Type: DEFAULT; Schema: public; Owner: -
3609 689 aaronmk
--
3610
3611
3612
3613
3614
--
3615 5286 aaronmk
-- Name: projectcontributor_id; Type: DEFAULT; Schema: public; Owner: -
3616 689 aaronmk
--
3617
3618
3619
3620
3621
--
3622 6179 aaronmk
-- Name: revision_id; Type: DEFAULT; Schema: public; Owner: -
3623 689 aaronmk
--
3624
3625
3626
3627
3628
--
3629 6179 aaronmk
-- Name: soilobs_id; Type: DEFAULT; Schema: public; Owner: -
3630 689 aaronmk
--
3631
3632
3633
3634
3635
--
3636 6179 aaronmk
-- Name: soiltaxon_id; Type: DEFAULT; Schema: public; Owner: -
3637 689 aaronmk
--
3638
3639
3640
3641
3642
--
3643 6179 aaronmk
-- Name: source_id; Type: DEFAULT; Schema: public; Owner: -
3644 689 aaronmk
--
3645
3646
3647
3648
3649
--
3650 6179 aaronmk
-- Name: sourcecontributor_id; Type: DEFAULT; Schema: public; Owner: -
3651 689 aaronmk
--
3652
3653
3654
3655
3656
--
3657 6179 aaronmk
-- Name: sourcename_id; Type: DEFAULT; Schema: public; Owner: -
3658 689 aaronmk
--
3659
3660
3661
3662
3663
--
3664 5286 aaronmk
-- Name: specimen_id; Type: DEFAULT; Schema: public; Owner: -
3665 689 aaronmk
--
3666
3667
3668
3669
3670
--
3671 5286 aaronmk
-- Name: specimenreplicate_id; Type: DEFAULT; Schema: public; Owner: -
3672 689 aaronmk
--
3673
3674
3675
3676
3677
--
3678 5286 aaronmk
-- Name: stemobservation_id; Type: DEFAULT; Schema: public; Owner: -
3679 689 aaronmk
--
3680
3681
3682
3683
3684
--
3685 5286 aaronmk
-- Name: stratum_id; Type: DEFAULT; Schema: public; Owner: -
3686 689 aaronmk
--
3687
3688
3689
3690
3691
--
3692 5286 aaronmk
-- Name: taxonalt_id; Type: DEFAULT; Schema: public; Owner: -
3693 689 aaronmk
--
3694
3695
3696
3697
3698
--
3699 5608 aaronmk
-- Name: taxoncorrelation_id; Type: DEFAULT; Schema: public; Owner: -
3700 3934 aaronmk
--
3701
3702
3703
3704
3705
--
3706 5608 aaronmk
-- Name: taxondetermination_id; Type: DEFAULT; Schema: public; Owner: -
3707 689 aaronmk
--
3708
3709
3710
3711
3712
--
3713 5608 aaronmk
-- Name: taxonlabel_id; Type: DEFAULT; Schema: public; Owner: -
3714 689 aaronmk
--
3715
3716
3717
3718
3719
--
3720 5286 aaronmk
-- Name: taxonlineage_id; Type: DEFAULT; Schema: public; Owner: -
3721 689 aaronmk
--
3722
3723
3724
3725
3726
--
3727 5286 aaronmk
-- Name: taxonoccurrence_id; Type: DEFAULT; Schema: public; Owner: -
3728 689 aaronmk
--
3729
3730
3731
3732
3733
--
3734 5286 aaronmk
-- Name: taxonstatus_id; Type: DEFAULT; Schema: public; Owner: -
3735 689 aaronmk
--
3736
3737
3738
3739
3740
--
3741 5660 aaronmk
-- Name: taxonverbatim_id; Type: DEFAULT; Schema: public; Owner: -
3742
--
3743
3744
3745
3746
3747
--
3748 689 aaronmk
-- Name: telephone_id; Type: DEFAULT; Schema: public; Owner: -
3749
--
3750
3751
3752
3753
3754
--
3755
-- Name: trait_id; Type: DEFAULT; Schema: public; Owner: -
3756
--
3757
3758
3759
3760
3761
--
3762
-- Name: userdefined_id; Type: DEFAULT; Schema: public; Owner: -
3763
--
3764
3765
3766
3767
3768
--
3769
-- Name: voucher_id; Type: DEFAULT; Schema: public; Owner: -
3770
--
3771
3772
3773
3774
3775
--
3776 6029 aaronmk
-- Data for Name: address; Type: TABLE DATA; Schema: public; Owner: -
3777
--
3778
3779
3780
3781
--
3782
-- Data for Name: aggregateoccurrence; Type: TABLE DATA; Schema: public; Owner: -
3783
--
3784
3785
3786
3787
--
3788
-- Data for Name: analytical_aggregate; Type: TABLE DATA; Schema: public; Owner: -
3789
--
3790
3791
3792
3793
--
3794
-- Data for Name: analytical_stem; Type: TABLE DATA; Schema: public; Owner: -
3795
--
3796
3797
3798
3799
--
3800
-- Data for Name: classcontributor; Type: TABLE DATA; Schema: public; Owner: -
3801
--
3802
3803
3804
3805
--
3806
-- Data for Name: commclass; Type: TABLE DATA; Schema: public; Owner: -
3807
--
3808
3809
3810
3811
--
3812
-- Data for Name: commconcept; Type: TABLE DATA; Schema: public; Owner: -
3813
--
3814
3815
3816
3817
--
3818
-- Data for Name: commcorrelation; Type: TABLE DATA; Schema: public; Owner: -
3819
--
3820
3821
3822
3823
--
3824
-- Data for Name: commdetermination; Type: TABLE DATA; Schema: public; Owner: -
3825
--
3826
3827
3828
3829
--
3830
-- Data for Name: commlineage; Type: TABLE DATA; Schema: public; Owner: -
3831
--
3832
3833
3834
3835
--
3836
-- Data for Name: commname; Type: TABLE DATA; Schema: public; Owner: -
3837
--
3838
3839
3840
3841
--
3842
-- Data for Name: commstatus; Type: TABLE DATA; Schema: public; Owner: -
3843
--
3844
3845
3846
3847
--
3848
-- Data for Name: commusage; Type: TABLE DATA; Schema: public; Owner: -
3849
--
3850
3851
3852
3853
--
3854
-- Data for Name: coordinates; Type: TABLE DATA; Schema: public; Owner: -
3855
--
3856
3857
3858
3859
--
3860
-- Data for Name: coverindex; Type: TABLE DATA; Schema: public; Owner: -
3861
--
3862
3863
3864
3865
--
3866
-- Data for Name: covermethod; Type: TABLE DATA; Schema: public; Owner: -
3867
--
3868
3869
3870
3871
--
3872 6433 aaronmk
-- Data for Name: cultivated_family_locations; Type: TABLE DATA; Schema: public; Owner: -
3873
--
3874
3875 6434 aaronmk
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Costa Rica');
3876
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Panama');
3877
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Colombia');
3878
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Venezuela');
3879
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Ecuador');
3880
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Peru');
3881
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Bolivia');
3882
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Chile');
3883
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Argentina');
3884
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Paraguay');
3885
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Uruguay');
3886
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Brazil');
3887
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Guyana');
3888
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'French Guiana');
3889
INSERT INTO cultivated_family_locations VALUES ('Pinus', 'Suriname');
3890
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Venezuela');
3891
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Ecuador');
3892
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Peru');
3893
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Bolivia');
3894
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Chile');
3895
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Argentina');
3896
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Paraguay');
3897
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Uruguay');
3898
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Brazil');
3899
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Guyana');
3900
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'French Guiana');
3901
INSERT INTO cultivated_family_locations VALUES ('Quercus', 'Suriname');
3902
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Nicaragua');
3903
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Costa Rica');
3904
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Panama');
3905
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Colombia');
3906
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Venezuela');
3907
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Ecuador');
3908
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Peru');
3909
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Bolivia');
3910
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Chile');
3911
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Argentina');
3912
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Paraguay');
3913
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Uruguay');
3914
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Brazil');
3915
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Guyana');
3916
INSERT INTO cultivated_family_locations VALUES ('Acer', 'French Guiana');
3917
INSERT INTO cultivated_family_locations VALUES ('Acer', 'Suriname');
3918
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Nicaragua');
3919
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Costa Rica');
3920
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Panama');
3921
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Colombia');
3922
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Venezuela');
3923
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Ecuador');
3924
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Peru');
3925
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Bolivia');
3926
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Chile');
3927
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Argentina');
3928
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Paraguay');
3929
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Uruguay');
3930
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Brazil');
3931
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Guyana');
3932
INSERT INTO cultivated_family_locations VALUES ('Abies', 'French Guiana');
3933
INSERT INTO cultivated_family_locations VALUES ('Abies', 'Suriname');
3934
INSERT INTO cultivated_family_locations VALUES ('Arecaceae', 'Canada');
3935 6433 aaronmk
3936
3937
--
3938 6029 aaronmk
-- Data for Name: definedvalue; Type: TABLE DATA; Schema: public; Owner: -
3939
--
3940
3941
3942
3943
--
3944
-- Data for Name: disturbanceobs; Type: TABLE DATA; Schema: public; Owner: -
3945
--
3946
3947
3948
3949
--
3950 6036 aaronmk
-- Data for Name: family_higher_plant_group; Type: TABLE DATA; Schema: public; Owner: -
3951
--
3952
3953
3954
3955
--
3956 6029 aaronmk
-- Data for Name: geoscrub_input; Type: TABLE DATA; Schema: public; Owner: -
3957
--
3958
3959
3960
3961
--
3962
-- Data for Name: graphic; Type: TABLE DATA; Schema: public; Owner: -
3963
--
3964
3965
3966
3967
--
3968 6030 aaronmk
-- Data for Name: higher_plant_group_nodes; Type: TABLE DATA; Schema: public; Owner: -
3969
--
3970
3971 6038 aaronmk
INSERT INTO higher_plant_group_nodes VALUES ('bryophytes', 'Anthocerotophyta');
3972
INSERT INTO higher_plant_group_nodes VALUES ('bryophytes', 'Marchantiophyta');
3973
INSERT INTO higher_plant_group_nodes VALUES ('bryophytes', 'Bryophyta');
3974
INSERT INTO higher_plant_group_nodes VALUES ('ferns and allies', 'Anthocerotophyta');
3975
INSERT INTO higher_plant_group_nodes VALUES ('ferns and allies', 'Marchantiophyta');
3976
INSERT INTO higher_plant_group_nodes VALUES ('ferns and allies', 'Bryophyta');
3977
INSERT INTO higher_plant_group_nodes VALUES ('ferns and allies', 'Moniliformopses');
3978
INSERT INTO higher_plant_group_nodes VALUES ('flowering plants', 'Magnoliophyta');
3979
INSERT INTO higher_plant_group_nodes VALUES ('gymnosperms (conifers)', 'Coniferophyta');
3980
INSERT INTO higher_plant_group_nodes VALUES ('gymnosperms (non-conifer)', 'Cycadophyta');
3981
INSERT INTO higher_plant_group_nodes VALUES ('gymnosperms (non-conifer)', 'Ginkgophyta');
3982
INSERT INTO higher_plant_group_nodes VALUES ('gymnosperms (non-conifer)', 'Gnetophyta');
3983 6247 aaronmk
INSERT INTO higher_plant_group_nodes VALUES (NULL, 'root');
3984 6030 aaronmk
3985
3986
--
3987 6029 aaronmk
-- Data for Name: location; Type: TABLE DATA; Schema: public; Owner: -
3988
--
3989
3990
3991
3992
--
3993
-- Data for Name: locationevent; Type: TABLE DATA; Schema: public; Owner: -
3994
--
3995
3996
3997
3998
--
3999
-- Data for Name: locationeventcontributor; Type: TABLE DATA; Schema: public; Owner: -
4000
--
4001
4002
4003
4004
--
4005
-- Data for Name: locationeventsynonym; Type: TABLE DATA; Schema: public; Owner: -
4006
--
4007
4008
4009
4010
--
4011
-- Data for Name: locationplace; Type: TABLE DATA; Schema: public; Owner: -
4012
--
4013
4014
4015
4016
--
4017
-- Data for Name: method; Type: TABLE DATA; Schema: public; Owner: -
4018
--
4019
4020
4021
4022
--
4023
-- Data for Name: methodtaxonclass; Type: TABLE DATA; Schema: public; Owner: -
4024
--
4025
4026
4027
4028
--
4029
-- Data for Name: note; Type: TABLE DATA; Schema: public; Owner: -
4030
--
4031
4032
4033
4034
--
4035
-- Data for Name: notelink; Type: TABLE DATA; Schema: public; Owner: -
4036
--
4037
4038
4039
4040
--
4041
-- Data for Name: party; Type: TABLE DATA; Schema: public; Owner: -
4042
--
4043
4044
4045
4046
--
4047
-- Data for Name: partymember; Type: TABLE DATA; Schema: public; Owner: -
4048
--
4049
4050
4051
4052
--
4053
-- Data for Name: place; Type: TABLE DATA; Schema: public; Owner: -
4054
--
4055
4056
4057
4058
--
4059
-- Data for Name: placecorrelation; Type: TABLE DATA; Schema: public; Owner: -
4060
--
4061
4062
4063
4064
--
4065
-- Data for Name: placename; Type: TABLE DATA; Schema: public; Owner: -
4066
--
4067
4068
4069
4070
--
4071
-- Data for Name: placename_ancestor; Type: TABLE DATA; Schema: public; Owner: -
4072
--
4073
4074
4075
4076
--
4077
-- Data for Name: plant; Type: TABLE DATA; Schema: public; Owner: -
4078
--
4079
4080
4081
4082
--
4083
-- Data for Name: plantobservation; Type: TABLE DATA; Schema: public; Owner: -
4084
--
4085
4086
4087
4088
--
4089
-- Data for Name: project; Type: TABLE DATA; Schema: public; Owner: -
4090
--
4091
4092
4093
4094
--
4095
-- Data for Name: projectcontributor; Type: TABLE DATA; Schema: public; Owner: -
4096
--
4097
4098
4099
4100
--
4101 6179 aaronmk
-- Data for Name: revision; Type: TABLE DATA; Schema: public; Owner: -
4102 6029 aaronmk
--
4103
4104
4105
4106
--
4107 6179 aaronmk
-- Data for Name: soilobs; Type: TABLE DATA; Schema: public; Owner: -
4108 6029 aaronmk
--
4109
4110
4111
4112
--
4113 6179 aaronmk
-- Data for Name: soiltaxon; Type: TABLE DATA; Schema: public; Owner: -
4114 6029 aaronmk
--
4115
4116
4117
4118
--
4119 6179 aaronmk
-- Data for Name: source; Type: TABLE DATA; Schema: public; Owner: -
4120 6029 aaronmk
--
4121
4122
4123
4124
--
4125 6179 aaronmk
-- Data for Name: sourcecontributor; Type: TABLE DATA; Schema: public; Owner: -
4126 6029 aaronmk
--
4127
4128
4129
4130
--
4131 6179 aaronmk
-- Data for Name: sourcename; Type: TABLE DATA; Schema: public; Owner: -
4132 6029 aaronmk
--
4133
4134
4135
4136
--
4137
-- Data for Name: specimen; Type: TABLE DATA; Schema: public; Owner: -
4138
--
4139
4140
4141
4142
--
4143
-- Data for Name: specimenreplicate; Type: TABLE DATA; Schema: public; Owner: -
4144
--
4145
4146
4147
4148
--
4149
-- Data for Name: stemobservation; Type: TABLE DATA; Schema: public; Owner: -
4150
--
4151
4152
4153
4154
--
4155
-- Data for Name: stratum; Type: TABLE DATA; Schema: public; Owner: -
4156
--
4157
4158
4159
4160
--
4161
-- Data for Name: taxonalt; Type: TABLE DATA; Schema: public; Owner: -
4162
--
4163
4164
4165
4166
--
4167
-- Data for Name: taxonconcept; Type: TABLE DATA; Schema: public; Owner: -
4168
--
4169
4170
4171
4172
--
4173
-- Data for Name: taxoncorrelation; Type: TABLE DATA; Schema: public; Owner: -
4174
--
4175
4176
4177
4178
--
4179
-- Data for Name: taxondetermination; Type: TABLE DATA; Schema: public; Owner: -
4180
--
4181
4182
4183
4184
--
4185
-- Data for Name: taxonlabel; Type: TABLE DATA; Schema: public; Owner: -
4186
--
4187
4188
4189
4190
--
4191
-- Data for Name: taxonlabel_relationship; Type: TABLE DATA; Schema: public; Owner: -
4192
--
4193
4194
4195
4196
--
4197
-- Data for Name: taxonlineage; Type: TABLE DATA; Schema: public; Owner: -
4198
--
4199
4200
4201
4202
--
4203
-- Data for Name: taxonoccurrence; Type: TABLE DATA; Schema: public; Owner: -
4204
--
4205
4206
4207
4208
--
4209
-- Data for Name: taxonstatus; Type: TABLE DATA; Schema: public; Owner: -
4210
--
4211
4212
4213
4214
--
4215
-- Data for Name: taxonverbatim; Type: TABLE DATA; Schema: public; Owner: -
4216
--
4217
4218
4219
4220
--
4221
-- Data for Name: telephone; Type: TABLE DATA; Schema: public; Owner: -
4222
--
4223
4224
4225
4226
--
4227 6085 aaronmk
-- Data for Name: threatened_taxonlabel; Type: TABLE DATA; Schema: public; Owner: -
4228
--
4229
4230
4231
4232
--
4233 6029 aaronmk
-- Data for Name: trait; Type: TABLE DATA; Schema: public; Owner: -
4234
--
4235
4236
4237
4238
--
4239
-- Data for Name: userdefined; Type: TABLE DATA; Schema: public; Owner: -
4240
--
4241
4242
4243
4244
--
4245
-- Data for Name: voucher; Type: TABLE DATA; Schema: public; Owner: -
4246
--
4247
4248
4249
4250
--
4251 689 aaronmk
-- Name: address_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4252
--
4253
4254
ALTER TABLE address
4255
    ADD CONSTRAINT address_pkey PRIMARY KEY (address_id);
4256
4257
4258
--
4259 1113 aaronmk
-- Name: aggregateoccurrence_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4260 689 aaronmk
--
4261
4262
ALTER TABLE aggregateoccurrence
4263 1113 aaronmk
    ADD CONSTRAINT aggregateoccurrence_pkey PRIMARY KEY (aggregateoccurrence_id);
4264 689 aaronmk
4265
4266
--
4267 6414 aaronmk
-- Name: analytical_aggregate_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4268
--
4269
4270
ALTER TABLE analytical_aggregate
4271 6425 aaronmk
    ADD CONSTRAINT analytical_aggregate_pkey PRIMARY KEY (`institutionCode`, `plotName`, `dateCollected`, `scientificNameWithMorphospecies`);
4272 6414 aaronmk
4273
4274
--
4275 6417 aaronmk
-- Name: analytical_stem_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4276
--
4277
4278
ALTER TABLE analytical_stem
4279 6425 aaronmk
    ADD CONSTRAINT analytical_stem_pkey PRIMARY KEY (`institutionCode`, `plotName`, `dateCollected`, `scientificNameWithMorphospecies`, `recordNumber`);
4280 6417 aaronmk
4281
4282
--
4283 689 aaronmk
-- Name: classcontributor_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4284
--
4285
4286
ALTER TABLE classcontributor
4287
    ADD CONSTRAINT classcontributor_pkey PRIMARY KEY (classcontributor_id);
4288
4289
4290
--
4291 1113 aaronmk
-- Name: commclass_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4292 689 aaronmk
--
4293
4294
ALTER TABLE commclass
4295 1113 aaronmk
    ADD CONSTRAINT commclass_pkey PRIMARY KEY (commclass_id);
4296 689 aaronmk
4297
4298
--
4299 1113 aaronmk
-- Name: commconcept_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4300 689 aaronmk
--
4301
4302
ALTER TABLE commconcept
4303 1113 aaronmk
    ADD CONSTRAINT commconcept_pkey PRIMARY KEY (commconcept_id);
4304 689 aaronmk
4305
4306
--
4307 1113 aaronmk
-- Name: commconcept_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4308 689 aaronmk
--
4309
4310
ALTER TABLE commconcept
4311 1113 aaronmk
    ADD CONSTRAINT commconcept_unique UNIQUE (commname_id);
4312 689 aaronmk
4313
4314
--
4315
-- Name: commcorrelation_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4316
--
4317
4318
ALTER TABLE commcorrelation
4319
    ADD CONSTRAINT commcorrelation_pkey PRIMARY KEY (commcorrelation_id);
4320
4321
4322
--
4323 1113 aaronmk
-- Name: commdetermination_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4324 689 aaronmk
--
4325
4326
ALTER TABLE commdetermination
4327 1113 aaronmk
    ADD CONSTRAINT commdetermination_pkey PRIMARY KEY (commdetermination_id);
4328 689 aaronmk
4329
4330
--
4331 1113 aaronmk
-- Name: commdetermination_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4332 689 aaronmk
--
4333
4334
ALTER TABLE commdetermination
4335 1113 aaronmk
    ADD CONSTRAINT commdetermination_unique UNIQUE (commclass_id, commconcept_id);
4336 689 aaronmk
4337
4338
--
4339
-- Name: commlineage_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4340
--
4341
4342
ALTER TABLE commlineage
4343
    ADD CONSTRAINT commlineage_pkey PRIMARY KEY (commlineage_id);
4344
4345
4346
--
4347 1113 aaronmk
-- Name: commname_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4348 689 aaronmk
--
4349
4350
ALTER TABLE commname
4351 1113 aaronmk
    ADD CONSTRAINT commname_pkey PRIMARY KEY (commname_id);
4352 689 aaronmk
4353
4354
--
4355 1113 aaronmk
-- Name: commname_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4356 689 aaronmk
--
4357
4358
ALTER TABLE commname
4359 1113 aaronmk
    ADD CONSTRAINT commname_unique UNIQUE (commname);
4360 689 aaronmk
4361
4362
--
4363
-- Name: commstatus_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4364
--
4365
4366
ALTER TABLE commstatus
4367
    ADD CONSTRAINT commstatus_pkey PRIMARY KEY (commstatus_id);
4368
4369
4370
--
4371
-- Name: commusage_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4372
--
4373
4374
ALTER TABLE commusage
4375
    ADD CONSTRAINT commusage_pkey PRIMARY KEY (commusage_id);
4376
4377
4378
--
4379 5859 aaronmk
-- Name: coordinates_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4380
--
4381
4382
ALTER TABLE coordinates
4383
    ADD CONSTRAINT coordinates_pkey PRIMARY KEY (coordinates_id);
4384
4385
4386
--
4387 689 aaronmk
-- Name: coverindex_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4388
--
4389
4390
ALTER TABLE coverindex
4391
    ADD CONSTRAINT coverindex_pkey PRIMARY KEY (coverindex_id);
4392
4393
4394
--
4395
-- Name: covermethod_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4396
--
4397
4398
ALTER TABLE covermethod
4399
    ADD CONSTRAINT covermethod_pkey PRIMARY KEY (covermethod_id);
4400
4401
4402
--
4403 6433 aaronmk
-- Name: cultivated_family_locations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4404
--
4405
4406
ALTER TABLE cultivated_family_locations
4407
    ADD CONSTRAINT cultivated_family_locations_pkey PRIMARY KEY (family, country);
4408
4409
4410
--
4411 689 aaronmk
-- Name: definedvalue_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4412
--
4413
4414
ALTER TABLE definedvalue
4415
    ADD CONSTRAINT definedvalue_pkey PRIMARY KEY (definedvalue_id);
4416
4417
4418
--
4419 1221 aaronmk
-- Name: definedvalue_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4420
--
4421
4422
ALTER TABLE definedvalue
4423
    ADD CONSTRAINT definedvalue_unique UNIQUE (userdefined_id, tablerecord_id);
4424
4425
4426
--
4427 689 aaronmk
-- Name: disturbanceobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4428
--
4429
4430
ALTER TABLE disturbanceobs
4431
    ADD CONSTRAINT disturbanceobs_pkey PRIMARY KEY (disturbanceobs_id);
4432
4433
4434
--
4435 6036 aaronmk
-- Name: family_higher_plant_group_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4436
--
4437
4438
ALTER TABLE family_higher_plant_group
4439
    ADD CONSTRAINT family_higher_plant_group_pkey PRIMARY KEY (family);
4440
4441
4442
--
4443 689 aaronmk
-- Name: graphic_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4444
--
4445
4446
ALTER TABLE graphic
4447
    ADD CONSTRAINT graphic_pkey PRIMARY KEY (graphic_id);
4448
4449
4450
--
4451 1113 aaronmk
-- Name: location_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4452 689 aaronmk
--
4453
4454
ALTER TABLE location
4455 1113 aaronmk
    ADD CONSTRAINT location_pkey PRIMARY KEY (location_id);
4456 689 aaronmk
4457
4458
--
4459 1113 aaronmk
-- Name: locationevent_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4460 1074 aaronmk
--
4461
4462
ALTER TABLE locationevent
4463 1113 aaronmk
    ADD CONSTRAINT locationevent_pkey PRIMARY KEY (locationevent_id);
4464 1074 aaronmk
4465
4466
--
4467 689 aaronmk
-- Name: locationeventcontributor_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4468
--
4469
4470
ALTER TABLE locationeventcontributor
4471
    ADD CONSTRAINT locationeventcontributor_pkey PRIMARY KEY (locationeventcontributor_id);
4472
4473
4474
--
4475
-- Name: locationeventsynonym_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4476
--
4477
4478
ALTER TABLE locationeventsynonym
4479
    ADD CONSTRAINT locationeventsynonym_pkey PRIMARY KEY (locationeventsynonym_id);
4480
4481
4482
--
4483 4726 aaronmk
-- Name: locationplace_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4484
--
4485
4486
ALTER TABLE locationplace
4487
    ADD CONSTRAINT locationplace_pkey PRIMARY KEY (locationplace_id);
4488
4489
4490
--
4491 907 aaronmk
-- Name: method_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4492
--
4493
4494
ALTER TABLE method
4495
    ADD CONSTRAINT method_pkey PRIMARY KEY (method_id);
4496
4497
4498
--
4499 1101 aaronmk
-- Name: methodtaxonclass_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4500
--
4501
4502
ALTER TABLE methodtaxonclass
4503
    ADD CONSTRAINT methodtaxonclass_pkey PRIMARY KEY (methodtaxonclass_id);
4504
4505
4506
--
4507 1160 aaronmk
-- Name: methodtaxonclass_unique_description; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4508
--
4509
4510
ALTER TABLE methodtaxonclass
4511 1174 aaronmk
    ADD CONSTRAINT methodtaxonclass_unique_description UNIQUE (method_id, taxonclass);
4512 1160 aaronmk
4513
4514
--
4515 5608 aaronmk
-- Name: methodtaxonclass_unique_taxonlabel_id; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4516 1160 aaronmk
--
4517
4518
ALTER TABLE methodtaxonclass
4519 5608 aaronmk
    ADD CONSTRAINT methodtaxonclass_unique_taxonlabel_id UNIQUE (method_id, taxonlabel_id);
4520 1160 aaronmk
4521
4522
--
4523 4730 aaronmk
-- Name: note_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4524 1555 aaronmk
--
4525
4526 4730 aaronmk
ALTER TABLE note
4527
    ADD CONSTRAINT note_pkey PRIMARY KEY (note_id);
4528 1555 aaronmk
4529
4530
--
4531 4730 aaronmk
-- Name: notelink_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4532 689 aaronmk
--
4533
4534 4730 aaronmk
ALTER TABLE notelink
4535
    ADD CONSTRAINT notelink_pkey PRIMARY KEY (notelink_id);
4536 689 aaronmk
4537
4538
--
4539 4730 aaronmk
-- Name: party_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4540 689 aaronmk
--
4541
4542 4730 aaronmk
ALTER TABLE party
4543
    ADD CONSTRAINT party_pkey PRIMARY KEY (party_id);
4544 689 aaronmk
4545
4546
--
4547 4730 aaronmk
-- Name: partymember_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4548 689 aaronmk
--
4549
4550 4730 aaronmk
ALTER TABLE partymember
4551
    ADD CONSTRAINT partymember_pkey PRIMARY KEY (partymember_id);
4552 689 aaronmk
4553
4554
--
4555 5855 aaronmk
-- Name: place_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4556
--
4557
4558
ALTER TABLE place
4559
    ADD CONSTRAINT place_pkey PRIMARY KEY (place_id);
4560
4561
4562
--
4563 5854 aaronmk
-- Name: placecorrelation_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4564 689 aaronmk
--
4565
4566 5854 aaronmk
ALTER TABLE placecorrelation
4567
    ADD CONSTRAINT placecorrelation_pkey PRIMARY KEY (placecorrelation_id);
4568 689 aaronmk
4569
4570
--
4571 5854 aaronmk
-- Name: placename_ancestor_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4572 689 aaronmk
--
4573
4574 5854 aaronmk
ALTER TABLE placename_ancestor
4575
    ADD CONSTRAINT placename_ancestor_pkey PRIMARY KEY (placename_id, ancestor_id);
4576 689 aaronmk
4577
4578
--
4579 5854 aaronmk
-- Name: placename_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4580 689 aaronmk
--
4581
4582 5854 aaronmk
ALTER TABLE placename
4583
    ADD CONSTRAINT placename_pkey PRIMARY KEY (placename_id);
4584 689 aaronmk
4585
4586
--
4587
-- Name: plant_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4588
--
4589
4590
ALTER TABLE plant
4591
    ADD CONSTRAINT plant_pkey PRIMARY KEY (plant_id);
4592
4593
4594
--
4595
-- Name: plantobservation_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4596
--
4597
4598
ALTER TABLE plantobservation
4599
    ADD CONSTRAINT plantobservation_pkey PRIMARY KEY (plantobservation_id);
4600
4601
4602
--
4603 1113 aaronmk
-- Name: project_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4604 689 aaronmk
--
4605
4606
ALTER TABLE project
4607 1113 aaronmk
    ADD CONSTRAINT project_pkey PRIMARY KEY (project_id);
4608 689 aaronmk
4609
4610
--
4611 1113 aaronmk
-- Name: project_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4612 689 aaronmk
--
4613
4614
ALTER TABLE project
4615 6179 aaronmk
    ADD CONSTRAINT project_unique UNIQUE (source_id, projectname);
4616 689 aaronmk
4617
4618
--
4619
-- Name: projectcontributor_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4620
--
4621
4622
ALTER TABLE projectcontributor
4623
    ADD CONSTRAINT projectcontributor_pkey PRIMARY KEY (projectcontributor_id);
4624
4625
4626
--
4627 6179 aaronmk
-- Name: revision_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4628 689 aaronmk
--
4629
4630 6179 aaronmk
ALTER TABLE revision
4631
    ADD CONSTRAINT revision_pkey PRIMARY KEY (revision_id);
4632 689 aaronmk
4633
4634
--
4635 6179 aaronmk
-- Name: soilobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4636 689 aaronmk
--
4637
4638 6179 aaronmk
ALTER TABLE soilobs
4639
    ADD CONSTRAINT soilobs_pkey PRIMARY KEY (soilobs_id);
4640 689 aaronmk
4641
4642
--
4643 6179 aaronmk
-- Name: soilobs_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4644 689 aaronmk
--
4645
4646 6179 aaronmk
ALTER TABLE soilobs
4647
    ADD CONSTRAINT soilobs_unique UNIQUE (locationevent_id);
4648 689 aaronmk
4649
4650
--
4651 6179 aaronmk
-- Name: soiltaxon_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4652 6145 aaronmk
--
4653
4654 6179 aaronmk
ALTER TABLE soiltaxon
4655
    ADD CONSTRAINT soiltaxon_pkey PRIMARY KEY (soiltaxon_id);
4656 6145 aaronmk
4657
4658
--
4659 6179 aaronmk
-- Name: source_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4660 689 aaronmk
--
4661
4662 6179 aaronmk
ALTER TABLE source
4663
    ADD CONSTRAINT source_pkey PRIMARY KEY (source_id);
4664 689 aaronmk
4665
4666
--
4667 6179 aaronmk
-- Name: sourcecontributor_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4668 689 aaronmk
--
4669
4670 6179 aaronmk
ALTER TABLE sourcecontributor
4671
    ADD CONSTRAINT sourcecontributor_pkey PRIMARY KEY (sourcecontributor_id);
4672 689 aaronmk
4673
4674
--
4675 6179 aaronmk
-- Name: sourcename_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4676 689 aaronmk
--
4677
4678 6179 aaronmk
ALTER TABLE sourcename
4679
    ADD CONSTRAINT sourcename_pkey PRIMARY KEY (sourcename_id);
4680 689 aaronmk
4681
4682
--
4683
-- Name: specimen_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4684
--
4685
4686
ALTER TABLE specimen
4687
    ADD CONSTRAINT specimen_pkey PRIMARY KEY (specimen_id);
4688
4689
4690
--
4691 1113 aaronmk
-- Name: specimenreplicate_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4692 689 aaronmk
--
4693
4694
ALTER TABLE specimenreplicate
4695 3934 aaronmk
    ADD CONSTRAINT specimenreplicate_pkey PRIMARY KEY (specimenreplicate_id);
4696 689 aaronmk
4697
4698
--
4699 1113 aaronmk
-- Name: stemobservation_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4700 689 aaronmk
--
4701
4702
ALTER TABLE stemobservation
4703 1113 aaronmk
    ADD CONSTRAINT stemobservation_pkey PRIMARY KEY (stemobservation_id);
4704 689 aaronmk
4705
4706
--
4707
-- Name: stratum_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4708
--
4709
4710
ALTER TABLE stratum
4711
    ADD CONSTRAINT stratum_pkey PRIMARY KEY (stratum_id);
4712
4713
4714
--
4715
-- Name: taxonalt_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4716
--
4717
4718
ALTER TABLE taxonalt
4719
    ADD CONSTRAINT taxonalt_pkey PRIMARY KEY (taxonalt_id);
4720
4721
4722
--
4723 5627 aaronmk
-- Name: taxonconcept_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4724
--
4725
4726
ALTER TABLE taxonconcept
4727
    ADD CONSTRAINT taxonconcept_pkey PRIMARY KEY (taxonlabel_id);
4728
4729
4730
--
4731 5608 aaronmk
-- Name: taxoncorrelation_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4732 5274 aaronmk
--
4733
4734 5608 aaronmk
ALTER TABLE taxoncorrelation
4735
    ADD CONSTRAINT taxoncorrelation_pkey PRIMARY KEY (taxoncorrelation_id);
4736 5274 aaronmk
4737
4738
--
4739 5608 aaronmk
-- Name: taxondetermination_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4740 5225 aaronmk
--
4741
4742 5608 aaronmk
ALTER TABLE taxondetermination
4743
    ADD CONSTRAINT taxondetermination_pkey PRIMARY KEY (taxondetermination_id);
4744 5225 aaronmk
4745
4746
--
4747 5609 aaronmk
-- Name: taxonlabel_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4748 5286 aaronmk
--
4749
4750 5609 aaronmk
ALTER TABLE taxonlabel
4751
    ADD CONSTRAINT taxonlabel_pkey PRIMARY KEY (taxonlabel_id);
4752 5286 aaronmk
4753
4754
--
4755 5609 aaronmk
-- Name: taxonlabel_relationship_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4756 689 aaronmk
--
4757
4758 5609 aaronmk
ALTER TABLE taxonlabel_relationship
4759
    ADD CONSTRAINT taxonlabel_relationship_pkey PRIMARY KEY (descendant_id, ancestor_id);
4760 689 aaronmk
4761
4762
--
4763 5286 aaronmk
-- Name: taxonlineage_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4764
--
4765
4766
ALTER TABLE taxonlineage
4767
    ADD CONSTRAINT taxonlineage_pkey PRIMARY KEY (taxonlineage_id);
4768
4769
4770
--
4771 689 aaronmk
-- Name: taxonoccurrence_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4772
--
4773
4774
ALTER TABLE taxonoccurrence
4775
    ADD CONSTRAINT taxonoccurrence_pkey PRIMARY KEY (taxonoccurrence_id);
4776
4777
4778
--
4779 5286 aaronmk
-- Name: taxonstatus_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4780
--
4781
4782
ALTER TABLE taxonstatus
4783
    ADD CONSTRAINT taxonstatus_pkey PRIMARY KEY (taxonstatus_id);
4784
4785
4786
--
4787
-- Name: taxonstatus_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4788
--
4789
4790
ALTER TABLE taxonstatus
4791 5608 aaronmk
    ADD CONSTRAINT taxonstatus_unique UNIQUE (taxonlabel_id, party_id);
4792 5286 aaronmk
4793
4794
--
4795 5655 aaronmk
-- Name: taxonverbatim_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4796
--
4797
4798
ALTER TABLE taxonverbatim
4799 5660 aaronmk
    ADD CONSTRAINT taxonverbatim_pkey PRIMARY KEY (taxonverbatim_id);
4800 5655 aaronmk
4801
4802
--
4803 5660 aaronmk
-- Name: taxonverbatim_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4804
--
4805
4806
ALTER TABLE taxonverbatim
4807
    ADD CONSTRAINT taxonverbatim_unique UNIQUE (taxonlabel_id);
4808
4809
4810
--
4811 689 aaronmk
-- Name: telephone_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4812
--
4813
4814
ALTER TABLE telephone
4815
    ADD CONSTRAINT telephone_pkey PRIMARY KEY (telephone_id);
4816
4817
4818
--
4819 6085 aaronmk
-- Name: threatened_taxonlabel_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4820
--
4821
4822
ALTER TABLE threatened_taxonlabel
4823
    ADD CONSTRAINT threatened_taxonlabel_pkey PRIMARY KEY (taxonlabel_id);
4824
4825
4826
--
4827 689 aaronmk
-- Name: trait_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4828
--
4829
4830
ALTER TABLE trait
4831
    ADD CONSTRAINT trait_pkey PRIMARY KEY (trait_id);
4832
4833
4834
--
4835
-- Name: userdefined_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4836
--
4837
4838
ALTER TABLE userdefined
4839
    ADD CONSTRAINT userdefined_pkey PRIMARY KEY (userdefined_id);
4840
4841
4842
--
4843 1221 aaronmk
-- Name: userdefined_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4844
--
4845
4846
ALTER TABLE userdefined
4847
    ADD CONSTRAINT userdefined_unique UNIQUE (tablename, userdefinedname);
4848
4849
4850
--
4851 1113 aaronmk
-- Name: voucher_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4852 689 aaronmk
--
4853
4854
ALTER TABLE voucher
4855 1113 aaronmk
    ADD CONSTRAINT voucher_pkey PRIMARY KEY (voucher_id);
4856 689 aaronmk
4857
4858
--
4859 1113 aaronmk
-- Name: voucher_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
4860 689 aaronmk
--
4861
4862
ALTER TABLE voucher
4863 1113 aaronmk
    ADD CONSTRAINT voucher_unique UNIQUE (taxonoccurrence_id, specimenreplicate_id);
4864 689 aaronmk
4865
4866
--
4867 4791 aaronmk
-- Name: aggregateoccurrence_taxonoccurrence; Type: INDEX; Schema: public; Owner: -; Tablespace:
4868
--
4869
4870
CREATE INDEX aggregateoccurrence_taxonoccurrence ON aggregateoccurrence  (taxonoccurrence_id);
4871
4872
4873
--
4874 3737 aaronmk
-- Name: aggregateoccurrence_taxonoccurrence_1_to_1; Type: INDEX; Schema: public; Owner: -; Tablespace:
4875 3615 aaronmk
--
4876
4877
4878
4879
4880
--
4881 5242 aaronmk
-- Name: aggregateoccurrence_unique_within_creator; Type: INDEX; Schema: public; Owner: -; Tablespace:
4882 3712 aaronmk
--
4883
4884
4885
4886
4887
--
4888 689 aaronmk
-- Name: commclass_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
4889
--
4890
4891
CREATE UNIQUE INDEX commclass_accessioncode_index ON commclass  (accessioncode);
4892
4893
4894
--
4895 3214 aaronmk
-- Name: commclass_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
4896
--
4897
4898
4899
4900
4901
--
4902 689 aaronmk
-- Name: commconcept_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
4903
--
4904
4905
CREATE UNIQUE INDEX commconcept_accessioncode_index ON commconcept  (accessioncode);
4906
4907
4908
--
4909
-- Name: commstatus_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
4910
--
4911
4912
CREATE UNIQUE INDEX commstatus_accessioncode_index ON commstatus  (accessioncode);
4913
4914
4915
--
4916 5859 aaronmk
-- Name: coordinates_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
4917
--
4918
4919
4920
4921
4922
--
4923 689 aaronmk
-- Name: covermethod_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
4924
--
4925
4926
CREATE UNIQUE INDEX covermethod_accessioncode_index ON covermethod  (accessioncode);
4927
4928
4929
--
4930
-- Name: graphic_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
4931
--
4932
4933
CREATE UNIQUE INDEX graphic_accessioncode_index ON graphic  (accessioncode);
4934
4935
4936
--
4937 6246 aaronmk
-- Name: higher_plant_group_nodes_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
4938
--
4939
4940
4941
4942
4943
--
4944 689 aaronmk
-- Name: location_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
4945
--
4946
4947
CREATE UNIQUE INDEX location_accessioncode_index ON location  (accessioncode);
4948
4949
4950
--
4951 5759 aaronmk
-- Name: location_creator; Type: INDEX; Schema: public; Owner: -; Tablespace:
4952
--
4953
4954 6179 aaronmk
CREATE INDEX location_creator ON location  (source_id);
4955 5759 aaronmk
4956
4957
--
4958 5760 aaronmk
-- Name: location_parent; Type: INDEX; Schema: public; Owner: -; Tablespace:
4959
--
4960
4961
CREATE INDEX location_parent ON location  (parent_id);
4962
4963
4964
--
4965 5242 aaronmk
-- Name: location_unique_within_creator_by_authorlocationcode; Type: INDEX; Schema: public; Owner: -; Tablespace:
4966 3989 aaronmk
--
4967
4968
4969
4970
4971
--
4972 5242 aaronmk
-- Name: location_unique_within_creator_by_sourceaccessioncode; Type: INDEX; Schema: public; Owner: -; Tablespace:
4973 3615 aaronmk
--
4974
4975
4976
4977 3997 aaronmk
4978 3615 aaronmk
--
4979 3988 aaronmk
-- Name: location_unique_within_parent; Type: INDEX; Schema: public; Owner: -; Tablespace:
4980 3986 aaronmk
--
4981
4982
4983
4984
4985
--
4986 689 aaronmk
-- Name: locationevent_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
4987
--
4988
4989
CREATE UNIQUE INDEX locationevent_accessioncode_index ON locationevent  (accessioncode);
4990
4991
4992
--
4993 4791 aaronmk
-- Name: locationevent_location; Type: INDEX; Schema: public; Owner: -; Tablespace:
4994
--
4995
4996
CREATE INDEX locationevent_location ON locationevent  (location_id);
4997
4998
4999
--
5000 5242 aaronmk
-- Name: locationevent_unique_within_creator; Type: INDEX; Schema: public; Owner: -; Tablespace:
5001 689 aaronmk
--
5002
5003
5004
5005 3219 aaronmk
5006 689 aaronmk
--
5007 3733 aaronmk
-- Name: locationevent_unique_within_location; Type: INDEX; Schema: public; Owner: -; Tablespace:
5008 3615 aaronmk
--
5009
5010
5011
5012
5013
--
5014 3953 aaronmk
-- Name: locationevent_unique_within_parent_by_authoreventcode; Type: INDEX; Schema: public; Owner: -; Tablespace:
5015 689 aaronmk
--
5016
5017
5018
5019 3234 aaronmk
5020 689 aaronmk
--
5021 3733 aaronmk
-- Name: locationevent_unique_within_parent_by_location; Type: INDEX; Schema: public; Owner: -; Tablespace:
5022 2886 aaronmk
--
5023
5024
5025
5026
5027
--
5028 3733 aaronmk
-- Name: locationevent_unique_within_project; Type: INDEX; Schema: public; Owner: -; Tablespace:
5029 3202 aaronmk
--
5030
5031
5032
5033
5034
--
5035 689 aaronmk
-- Name: locationeventsynonym_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5036
--
5037
5038
CREATE UNIQUE INDEX locationeventsynonym_accessioncode_index ON locationeventsynonym  (accessioncode);
5039
5040
5041
--
5042 4734 aaronmk
-- Name: locationplace_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
5043
--
5044
5045
5046
5047
5048
--
5049 907 aaronmk
-- Name: method_accessioncode; Type: INDEX; Schema: public; Owner: -; Tablespace:
5050
--
5051
5052
CREATE UNIQUE INDEX method_accessioncode ON method  (accessioncode);
5053
5054
5055
--
5056 1113 aaronmk
-- Name: method_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
5057 1067 aaronmk
--
5058
5059
5060
5061
5062
--
5063 4730 aaronmk
-- Name: note_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5064 689 aaronmk
--
5065
5066 4730 aaronmk
CREATE UNIQUE INDEX note_accessioncode_index ON note  (accessioncode);
5067 689 aaronmk
5068
5069
--
5070 4730 aaronmk
-- Name: party_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5071 2869 aaronmk
--
5072
5073 4730 aaronmk
CREATE UNIQUE INDEX party_accessioncode_index ON party  (accessioncode);
5074 2869 aaronmk
5075
5076
--
5077 5952 aaronmk
-- Name: party_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
5078 689 aaronmk
--
5079
5080
5081
5082 4730 aaronmk
5083 689 aaronmk
--
5084 5992 aaronmk
-- Name: place_matched_place_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
5085
--
5086
5087
CREATE INDEX place_matched_place_id_idx ON place  (matched_place_id);
5088
5089
5090
--
5091 5855 aaronmk
-- Name: place_unique_within_creator_by_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
5092 1247 aaronmk
--
5093
5094
5095
5096
5097
--
5098 5855 aaronmk
-- Name: placename_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
5099 4727 aaronmk
--
5100
5101
5102
5103
5104
--
5105 3735 aaronmk
-- Name: plantobservation_aggregateoccurrence_1_to_1; Type: INDEX; Schema: public; Owner: -; Tablespace:
5106
--
5107
5108
CREATE UNIQUE INDEX plantobservation_aggregateoccurrence_1_to_1 ON plantobservation  (aggregateoccurrence_id);
5109
5110
5111
--
5112 5242 aaronmk
-- Name: plantobservation_unique_within_creator; Type: INDEX; Schema: public; Owner: -; Tablespace:
5113 3615 aaronmk
--
5114
5115
5116
5117
5118
--
5119 689 aaronmk
-- Name: project_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5120
--
5121
5122
CREATE UNIQUE INDEX project_accessioncode_index ON project  (accessioncode);
5123
5124
5125
--
5126 4468 aaronmk
-- Name: project_unique_name_date; Type: INDEX; Schema: public; Owner: -; Tablespace:
5127
--
5128
5129
5130
5131
5132
--
5133 5242 aaronmk
-- Name: project_unique_within_creator; Type: INDEX; Schema: public; Owner: -; Tablespace:
5134 3615 aaronmk
--
5135
5136
5137
5138
5139
--
5140 6179 aaronmk
-- Name: soiltaxon_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5141 689 aaronmk
--
5142
5143 6179 aaronmk
CREATE UNIQUE INDEX soiltaxon_accessioncode_index ON soiltaxon  (accessioncode);
5144 689 aaronmk
5145
5146
--
5147 6179 aaronmk
-- Name: source_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5148 5951 aaronmk
--
5149
5150 6179 aaronmk
CREATE UNIQUE INDEX source_accessioncode_index ON source  (accessioncode);
5151 5951 aaronmk
5152
5153
--
5154 6179 aaronmk
-- Name: source_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
5155 689 aaronmk
--
5156
5157 6383 aaronmk
CREATE UNIQUE INDEX source_unique ON source  (shortname);
5158 689 aaronmk
5159
5160
--
5161 6179 aaronmk
-- Name: sourcename_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
5162 689 aaronmk
--
5163
5164
5165
5166 6179 aaronmk
5167 689 aaronmk
--
5168 4792 aaronmk
-- Name: specimenreplicate_plantobservation; Type: INDEX; Schema: public; Owner: -; Tablespace:
5169
--
5170
5171
CREATE INDEX specimenreplicate_plantobservation ON specimenreplicate  (plantobservation_id);
5172
5173
5174
--
5175 3734 aaronmk
-- Name: specimenreplicate_plantobservation_1_to_1; Type: INDEX; Schema: public; Owner: -; Tablespace:
5176 3232 aaronmk
--
5177
5178
5179
5180
5181
--
5182 3734 aaronmk
-- Name: specimenreplicate_unique_catalognumber; Type: INDEX; Schema: public; Owner: -; Tablespace:
5183 1253 aaronmk
--
5184
5185
5186
5187
5188
--
5189 5242 aaronmk
-- Name: specimenreplicate_unique_within_creator; Type: INDEX; Schema: public; Owner: -; Tablespace:
5190 3342 aaronmk
--
5191
5192
5193
5194
5195
--
5196 3736 aaronmk
-- Name: stemobservation_plantobservation_1_to_1; Type: INDEX; Schema: public; Owner: -; Tablespace:
5197 3615 aaronmk
--
5198
5199
5200
5201
5202
--
5203 5758 aaronmk
-- Name: stemobservation_plantobservation_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
5204
--
5205
5206
CREATE INDEX stemobservation_plantobservation_id ON stemobservation  (plantobservation_id);
5207
5208
5209
--
5210 5242 aaronmk
-- Name: stemobservation_unique_within_creator; Type: INDEX; Schema: public; Owner: -; Tablespace:
5211 3727 aaronmk
--
5212
5213
5214
5215
5216
--
5217 3740 aaronmk
-- Name: stemobservation_unique_within_plantobservation; Type: INDEX; Schema: public; Owner: -; Tablespace:
5218
--
5219
5220
5221
5222
5223
--
5224 5608 aaronmk
-- Name: taxondetermination_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5225 689 aaronmk
--
5226
5227 5608 aaronmk
CREATE UNIQUE INDEX taxondetermination_accessioncode_index ON taxondetermination  (accessioncode);
5228 689 aaronmk
5229
5230
--
5231 6419 aaronmk
-- Name: taxondetermination_single_current_determination; Type: INDEX; Schema: public; Owner: -; Tablespace:
5232
--
5233
5234
5235
5236
5237
--
5238 5608 aaronmk
-- Name: taxondetermination_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
5239 5469 aaronmk
--
5240
5241
5242
5243
5244
--
5245 5608 aaronmk
-- Name: taxonlabel_0_unique_identifying_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
5246 1113 aaronmk
--
5247
5248
5249
5250 5608 aaronmk
5251 1113 aaronmk
--
5252 5608 aaronmk
-- Name: taxonlabel_1_unique_sourceaccessioncode; Type: INDEX; Schema: public; Owner: -; Tablespace:
5253 5546 aaronmk
--
5254
5255
5256
5257 5608 aaronmk
5258 5546 aaronmk
--
5259 5608 aaronmk
-- Name: taxonlabel_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5260 5517 aaronmk
--
5261
5262 5608 aaronmk
CREATE UNIQUE INDEX taxonlabel_accessioncode_index ON taxonlabel  (accessioncode);
5263 5517 aaronmk
5264
5265
--
5266 5609 aaronmk
-- Name: taxonlabel_matched_label_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
5267 5267 aaronmk
--
5268
5269 5609 aaronmk
CREATE INDEX taxonlabel_matched_label_id_idx ON taxonlabel  (matched_label_id);
5270 5267 aaronmk
5271
5272
--
5273 5609 aaronmk
-- Name: taxonlabel_relationship_descendants; Type: INDEX; Schema: public; Owner: -; Tablespace:
5274 4791 aaronmk
--
5275
5276 5609 aaronmk
CREATE INDEX taxonlabel_relationship_descendants ON taxonlabel_relationship  (ancestor_id, descendant_id);
5277 4791 aaronmk
5278
5279
--
5280 5608 aaronmk
-- Name: taxonlabel_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
5281 3615 aaronmk
--
5282
5283
5284
5285
5286
--
5287 5225 aaronmk
-- Name: taxonoccurrence_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5288 3711 aaronmk
--
5289
5290 5225 aaronmk
CREATE UNIQUE INDEX taxonoccurrence_accessioncode_index ON taxonoccurrence  (accessioncode);
5291 3711 aaronmk
5292
5293
--
5294 5225 aaronmk
-- Name: taxonoccurrence_locationevent; Type: INDEX; Schema: public; Owner: -; Tablespace:
5295 4718 aaronmk
--
5296
5297 5225 aaronmk
CREATE INDEX taxonoccurrence_locationevent ON taxonoccurrence  (locationevent_id);
5298 4718 aaronmk
5299
5300
--
5301 5242 aaronmk
-- Name: taxonoccurrence_unique_within_creator; Type: INDEX; Schema: public; Owner: -; Tablespace:
5302 4718 aaronmk
--
5303
5304
5305
5306 5134 aaronmk
5307 4718 aaronmk
--
5308 5225 aaronmk
-- Name: taxonoccurrence_unique_within_locationevent; Type: INDEX; Schema: public; Owner: -; Tablespace:
5309 5134 aaronmk
--
5310
5311
5312
5313
5314
--
5315 5286 aaronmk
-- Name: taxonstatus_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5316
--
5317
5318
CREATE UNIQUE INDEX taxonstatus_accessioncode_index ON taxonstatus  (accessioncode);
5319
5320
5321
--
5322 689 aaronmk
-- Name: userdefined_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
5323
--
5324
5325
CREATE UNIQUE INDEX userdefined_accessioncode_index ON userdefined  (accessioncode);
5326
5327
5328
--
5329 6179 aaronmk
-- Name: party_source_id_self_ref; Type: TRIGGER; Schema: public; Owner: -
5330 5234 aaronmk
--
5331
5332
5333
5334
5335
--
5336 5855 aaronmk
-- Name: place_matched_place_id_self_ref; Type: TRIGGER; Schema: public; Owner: -
5337 704 aaronmk
--
5338
5339
5340
5341 705 aaronmk
5342 704 aaronmk
--
5343 5984 aaronmk
-- Name: place_set_canon_place_id_on_insert; Type: TRIGGER; Schema: public; Owner: -
5344
--
5345
5346
5347
5348
5349
--
5350
-- Name: place_set_canon_place_id_on_update; Type: TRIGGER; Schema: public; Owner: -
5351
--
5352
5353
5354
5355
5356
--
5357 5855 aaronmk
-- Name: placename_update_ancestors; Type: TRIGGER; Schema: public; Owner: -
5358 5032 aaronmk
--
5359
5360
5361
5362
5363
--
5364 4717 aaronmk
-- Name: plantobservation_aggregateoccurrence_count_1; Type: TRIGGER; Schema: public; Owner: -
5365 1555 aaronmk
--
5366
5367
5368
5369
5370
--
5371 6421 aaronmk
-- Name: taxondetermination_set_iscurrent; Type: TRIGGER; Schema: public; Owner: -
5372
--
5373
5374
5375
5376
5377
--
5378 5608 aaronmk
-- Name: taxonlabel_0_matched_label_id_self_ref; Type: TRIGGER; Schema: public; Owner: -
5379 5032 aaronmk
--
5380
5381
5382
5383
5384
--
5385 5608 aaronmk
-- Name: taxonlabel_1_matched_label_min_fit; Type: TRIGGER; Schema: public; Owner: -
5386 5412 aaronmk
--
5387
5388
5389
5390
5391
--
5392 5705 aaronmk
-- Name: taxonlabel_2_set_canon_label_id_on_insert; Type: TRIGGER; Schema: public; Owner: -
5393 5473 aaronmk
--
5394
5395
5396
5397
5398
--
5399 5705 aaronmk
-- Name: taxonlabel_2_set_canon_label_id_on_update; Type: TRIGGER; Schema: public; Owner: -
5400
--
5401
5402
5403
5404
5405
--
5406 5608 aaronmk
-- Name: taxonlabel_3_parent_id_avoid_self_ref; Type: TRIGGER; Schema: public; Owner: -
5407 5547 aaronmk
--
5408
5409
5410
5411
5412
--
5413 5608 aaronmk
-- Name: taxonlabel_update_ancestors_on_insert; Type: TRIGGER; Schema: public; Owner: -
5414 5274 aaronmk
--
5415
5416
5417
5418
5419
--
5420 5608 aaronmk
-- Name: taxonlabel_update_ancestors_on_update; Type: TRIGGER; Schema: public; Owner: -
5421 5548 aaronmk
--
5422
5423
5424
5425
5426
--
5427 3731 aaronmk
-- Name: address_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5428 689 aaronmk
--
5429
5430
ALTER TABLE address
5431 3731 aaronmk
    ADD CONSTRAINT address_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
5432 689 aaronmk
5433
5434
--
5435 3731 aaronmk
-- Name: address_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5436 689 aaronmk
--
5437
5438
ALTER TABLE address
5439 3731 aaronmk
    ADD CONSTRAINT address_party_id_fkey FOREIGN KEY (party_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
5440 689 aaronmk
5441
5442
--
5443 3731 aaronmk
-- Name: aggregateoccurrence_coverindex_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5444 1151 aaronmk
--
5445
5446
5447
5448 3992 aaronmk
5449 1151 aaronmk
--
5450 5953 aaronmk
-- Name: aggregateoccurrence_method_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5451 3654 aaronmk
--
5452
5453
5454
5455
5456
--
5457 6179 aaronmk
-- Name: aggregateoccurrence_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5458 1028 aaronmk
--
5459
5460
5461
5462 3992 aaronmk
5463 1028 aaronmk
--
5464 3731 aaronmk
-- Name: aggregateoccurrence_stratum_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5465 689 aaronmk
--
5466
5467
ALTER TABLE aggregateoccurrence
5468 3731 aaronmk
    ADD CONSTRAINT aggregateoccurrence_stratum_id_fkey FOREIGN KEY (stratum_id) REFERENCES stratum(stratum_id) ON UPDATE CASCADE ON DELETE CASCADE;
5469 689 aaronmk
5470
5471
--
5472 3731 aaronmk
-- Name: aggregateoccurrence_taxonoccurrence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5473 689 aaronmk
--
5474
5475
ALTER TABLE aggregateoccurrence
5476 3731 aaronmk
    ADD CONSTRAINT aggregateoccurrence_taxonoccurrence_id_fkey FOREIGN KEY (taxonoccurrence_id) REFERENCES taxonoccurrence(taxonoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
5477 689 aaronmk
5478
5479
--
5480 3731 aaronmk
-- Name: classcontributor_commclass_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5481 689 aaronmk
--
5482
5483
ALTER TABLE classcontributor
5484 3731 aaronmk
    ADD CONSTRAINT classcontributor_commclass_id_fkey FOREIGN KEY (commclass_id) REFERENCES commclass(commclass_id) ON UPDATE CASCADE ON DELETE CASCADE;
5485 689 aaronmk
5486
5487
--
5488 3731 aaronmk
-- Name: classcontributor_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5489 689 aaronmk
--
5490
5491
5492
5493 812 aaronmk
5494 689 aaronmk
--
5495 3731 aaronmk
-- Name: commclass_classpublication_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5496 689 aaronmk
--
5497
5498
5499
5500 812 aaronmk
5501 689 aaronmk
--
5502 3731 aaronmk
-- Name: commclass_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5503 689 aaronmk
--
5504
5505
5506
5507 3992 aaronmk
5508 689 aaronmk
--
5509 3731 aaronmk
-- Name: commconcept_commname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5510 689 aaronmk
--
5511
5512
ALTER TABLE commconcept
5513 3731 aaronmk
    ADD CONSTRAINT commconcept_commname_id_fkey FOREIGN KEY (commname_id) REFERENCES commname(commname_id) ON UPDATE CASCADE ON DELETE CASCADE;
5514 689 aaronmk
5515
5516
--
5517 6179 aaronmk
-- Name: commconcept_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5518 689 aaronmk
--
5519
5520
5521
5522 812 aaronmk
5523 689 aaronmk
--
5524 3731 aaronmk
-- Name: commcorrelation_commconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5525 689 aaronmk
--
5526
5527
ALTER TABLE commcorrelation
5528 3731 aaronmk
    ADD CONSTRAINT commcorrelation_commconcept_id_fkey FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
5529 689 aaronmk
5530
5531
--
5532 3731 aaronmk
-- Name: commcorrelation_commstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5533 689 aaronmk
--
5534
5535
ALTER TABLE commcorrelation
5536 3731 aaronmk
    ADD CONSTRAINT commcorrelation_commstatus_id_fkey FOREIGN KEY (commstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
5537 689 aaronmk
5538
5539
--
5540 3731 aaronmk
-- Name: commdetermination_commauthority_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5541 689 aaronmk
--
5542
5543
5544
5545 812 aaronmk
5546 689 aaronmk
--
5547 3731 aaronmk
-- Name: commdetermination_commclass_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5548 689 aaronmk
--
5549
5550
ALTER TABLE commdetermination
5551 3731 aaronmk
    ADD CONSTRAINT commdetermination_commclass_id_fkey FOREIGN KEY (commclass_id) REFERENCES commclass(commclass_id) ON UPDATE CASCADE ON DELETE CASCADE;
5552 689 aaronmk
5553
5554
--
5555 3731 aaronmk
-- Name: commdetermination_commconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5556 689 aaronmk
--
5557
5558
ALTER TABLE commdetermination
5559 3731 aaronmk
    ADD CONSTRAINT commdetermination_commconcept_id_fkey FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
5560 689 aaronmk
5561
5562
--
5563 3731 aaronmk
-- Name: commlineage_childcommstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5564 689 aaronmk
--
5565
5566
ALTER TABLE commlineage
5567 3731 aaronmk
    ADD CONSTRAINT commlineage_childcommstatus_id_fkey FOREIGN KEY (childcommstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
5568 689 aaronmk
5569
5570
--
5571 3731 aaronmk
-- Name: commlineage_parentcommstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5572 689 aaronmk
--
5573
5574
ALTER TABLE commlineage
5575 3731 aaronmk
    ADD CONSTRAINT commlineage_parentcommstatus_id_fkey FOREIGN KEY (parentcommstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
5576 689 aaronmk
5577
5578
--
5579 6179 aaronmk
-- Name: commname_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5580 689 aaronmk
--
5581
5582
5583
5584 812 aaronmk
5585 689 aaronmk
--
5586 3731 aaronmk
-- Name: commstatus_commconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5587 689 aaronmk
--
5588
5589
ALTER TABLE commstatus
5590 3731 aaronmk
    ADD CONSTRAINT commstatus_commconcept_id_fkey FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
5591 689 aaronmk
5592
5593
--
5594 3731 aaronmk
-- Name: commstatus_commparent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5595 689 aaronmk
--
5596
5597
ALTER TABLE commstatus
5598 3731 aaronmk
    ADD CONSTRAINT commstatus_commparent_id_fkey FOREIGN KEY (commparent_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
5599 689 aaronmk
5600
5601
--
5602 3731 aaronmk
-- Name: commstatus_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5603 689 aaronmk
--
5604
5605
5606
5607 812 aaronmk
5608 689 aaronmk
--
5609 6179 aaronmk
-- Name: commstatus_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5610 689 aaronmk
--
5611
5612
5613
5614 812 aaronmk
5615 689 aaronmk
--
5616 3731 aaronmk
-- Name: commusage_commconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5617 689 aaronmk
--
5618
5619
ALTER TABLE commusage
5620 3731 aaronmk
    ADD CONSTRAINT commusage_commconcept_id_fkey FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
5621 689 aaronmk
5622
5623
--
5624 3731 aaronmk
-- Name: commusage_commname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5625 689 aaronmk
--
5626
5627
ALTER TABLE commusage
5628 3731 aaronmk
    ADD CONSTRAINT commusage_commname_id_fkey FOREIGN KEY (commname_id) REFERENCES commname(commname_id) ON UPDATE CASCADE ON DELETE CASCADE;
5629 689 aaronmk
5630
5631
--
5632 3731 aaronmk
-- Name: commusage_commstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5633 689 aaronmk
--
5634
5635
ALTER TABLE commusage
5636 3731 aaronmk
    ADD CONSTRAINT commusage_commstatus_id_fkey FOREIGN KEY (commstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
5637 689 aaronmk
5638
5639
--
5640 3731 aaronmk
-- Name: commusage_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5641 689 aaronmk
--
5642
5643
5644
5645 812 aaronmk
5646 689 aaronmk
--
5647 6179 aaronmk
-- Name: coordinates_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5648 5859 aaronmk
--
5649
5650
5651
5652
5653
--
5654 3731 aaronmk
-- Name: coverindex_covermethod_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5655 689 aaronmk
--
5656
5657
ALTER TABLE coverindex
5658 3731 aaronmk
    ADD CONSTRAINT coverindex_covermethod_id_fkey FOREIGN KEY (covermethod_id) REFERENCES covermethod(covermethod_id) ON UPDATE CASCADE ON DELETE CASCADE;
5659 689 aaronmk
5660
5661
--
5662 6179 aaronmk
-- Name: covermethod_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5663 689 aaronmk
--
5664
5665
5666
5667 812 aaronmk
5668 689 aaronmk
--
5669 3731 aaronmk
-- Name: definedvalue_userdefined_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5670 689 aaronmk
--
5671
5672
ALTER TABLE definedvalue
5673 3731 aaronmk
    ADD CONSTRAINT definedvalue_userdefined_id_fkey FOREIGN KEY (userdefined_id) REFERENCES userdefined(userdefined_id) ON UPDATE CASCADE ON DELETE CASCADE;
5674 689 aaronmk
5675
5676
--
5677 3731 aaronmk
-- Name: disturbanceobs_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5678 689 aaronmk
--
5679
5680
ALTER TABLE disturbanceobs
5681 3731 aaronmk
    ADD CONSTRAINT disturbanceobs_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
5682 689 aaronmk
5683
5684
--
5685 3731 aaronmk
-- Name: graphic_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5686 689 aaronmk
--
5687
5688
ALTER TABLE graphic
5689 3731 aaronmk
    ADD CONSTRAINT graphic_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
5690 689 aaronmk
5691
5692
--
5693 3731 aaronmk
-- Name: location_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5694 689 aaronmk
--
5695
5696
ALTER TABLE location
5697 3731 aaronmk
    ADD CONSTRAINT location_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES location(location_id) ON UPDATE CASCADE ON DELETE CASCADE;
5698 689 aaronmk
5699
5700
--
5701 6179 aaronmk
-- Name: location_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5702 3654 aaronmk
--
5703
5704
5705
5706
5707
--
5708 3731 aaronmk
-- Name: locationevent_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5709 689 aaronmk
--
5710
5711
ALTER TABLE locationevent
5712 3731 aaronmk
    ADD CONSTRAINT locationevent_location_id_fkey FOREIGN KEY (location_id) REFERENCES location(location_id) ON UPDATE CASCADE ON DELETE CASCADE;
5713 689 aaronmk
5714
5715
--
5716 3731 aaronmk
-- Name: locationevent_method_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5717 898 aaronmk
--
5718
5719
5720
5721 3992 aaronmk
5722 898 aaronmk
--
5723 3731 aaronmk
-- Name: locationevent_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5724 910 aaronmk
--
5725
5726
ALTER TABLE locationevent
5727 3731 aaronmk
    ADD CONSTRAINT locationevent_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
5728 910 aaronmk
5729
5730
--
5731 3731 aaronmk
-- Name: locationevent_previous_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5732 689 aaronmk
--
5733
5734
ALTER TABLE locationevent
5735 3731 aaronmk
    ADD CONSTRAINT locationevent_previous_id_fkey FOREIGN KEY (previous_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
5736 689 aaronmk
5737
5738
--
5739 3731 aaronmk
-- Name: locationevent_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5740 689 aaronmk
--
5741
5742
ALTER TABLE locationevent
5743 3731 aaronmk
    ADD CONSTRAINT locationevent_project_id_fkey FOREIGN KEY (project_id) REFERENCES project(project_id) ON UPDATE CASCADE ON DELETE CASCADE;
5744 689 aaronmk
5745
5746
--
5747 6179 aaronmk
-- Name: locationevent_soiltaxon_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5748 5953 aaronmk
--
5749
5750 6179 aaronmk
ALTER TABLE locationevent
5751
    ADD CONSTRAINT locationevent_soiltaxon_id_fkey FOREIGN KEY (soiltaxon_id) REFERENCES soiltaxon(soiltaxon_id) ON UPDATE CASCADE ON DELETE CASCADE;
5752 5953 aaronmk
5753
5754
--
5755 6179 aaronmk
-- Name: locationevent_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5756 689 aaronmk
--
5757
5758
5759
5760 6179 aaronmk
5761 689 aaronmk
--
5762 3731 aaronmk
-- Name: locationeventcontributor_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5763 689 aaronmk
--
5764
5765
ALTER TABLE locationeventcontributor
5766 3731 aaronmk
    ADD CONSTRAINT locationeventcontributor_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
5767 689 aaronmk
5768
5769
--
5770 3731 aaronmk
-- Name: locationeventcontributor_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5771 689 aaronmk
--
5772
5773
5774
5775 812 aaronmk
5776 689 aaronmk
--
5777 3731 aaronmk
-- Name: locationeventsynonym_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5778 689 aaronmk
--
5779
5780
5781
5782 812 aaronmk
5783 689 aaronmk
--
5784 3731 aaronmk
-- Name: locationeventsynonym_primarylocationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5785 689 aaronmk
--
5786
5787
ALTER TABLE locationeventsynonym
5788 3731 aaronmk
    ADD CONSTRAINT locationeventsynonym_primarylocationevent_id_fkey FOREIGN KEY (primarylocationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
5789 689 aaronmk
5790
5791
--
5792 3731 aaronmk
-- Name: locationeventsynonym_synonymlocationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5793 689 aaronmk
--
5794
5795
ALTER TABLE locationeventsynonym
5796 3731 aaronmk
    ADD CONSTRAINT locationeventsynonym_synonymlocationevent_id_fkey FOREIGN KEY (synonymlocationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
5797 689 aaronmk
5798
5799
--
5800 4734 aaronmk
-- Name: locationplace_identifier_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5801
--
5802
5803
5804
5805
5806
--
5807 4726 aaronmk
-- Name: locationplace_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5808
--
5809
5810
ALTER TABLE locationplace
5811
    ADD CONSTRAINT locationplace_location_id_fkey FOREIGN KEY (location_id) REFERENCES location(location_id) ON UPDATE CASCADE ON DELETE CASCADE;
5812
5813
5814
--
5815 5855 aaronmk
-- Name: locationplace_place_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5816 4726 aaronmk
--
5817
5818
ALTER TABLE locationplace
5819 5855 aaronmk
    ADD CONSTRAINT locationplace_place_id_fkey FOREIGN KEY (place_id) REFERENCES place(place_id) ON UPDATE CASCADE ON DELETE CASCADE;
5820 4726 aaronmk
5821
5822
--
5823 3731 aaronmk
-- Name: method_covermethod_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5824 1031 aaronmk
--
5825
5826
ALTER TABLE method
5827 3731 aaronmk
    ADD CONSTRAINT method_covermethod_id_fkey FOREIGN KEY (covermethod_id) REFERENCES covermethod(covermethod_id) ON UPDATE CASCADE ON DELETE CASCADE;
5828 1031 aaronmk
5829
5830
--
5831 6179 aaronmk
-- Name: method_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5832 907 aaronmk
--
5833
5834
5835
5836
5837
--
5838 3731 aaronmk
-- Name: method_subplotmethod_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5839 1162 aaronmk
--
5840
5841
ALTER TABLE method
5842 3731 aaronmk
    ADD CONSTRAINT method_subplotmethod_id_fkey FOREIGN KEY (subplotmethod_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE SET NULL;
5843 1162 aaronmk
5844
5845
--
5846 3731 aaronmk
-- Name: methodtaxonclass_method_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5847 1101 aaronmk
--
5848
5849
ALTER TABLE methodtaxonclass
5850 3731 aaronmk
    ADD CONSTRAINT methodtaxonclass_method_id_fkey FOREIGN KEY (method_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE CASCADE;
5851 1101 aaronmk
5852
5853
--
5854 4718 aaronmk
-- Name: methodtaxonclass_submethod_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5855 1101 aaronmk
--
5856
5857
5858
5859 5625 aaronmk
5860 1101 aaronmk
--
5861 5608 aaronmk
-- Name: methodtaxonclass_taxonlabel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5862 1105 aaronmk
--
5863
5864
ALTER TABLE methodtaxonclass
5865 5608 aaronmk
    ADD CONSTRAINT methodtaxonclass_taxonlabel_id_fkey FOREIGN KEY (taxonlabel_id) REFERENCES taxonlabel(taxonlabel_id) ON UPDATE CASCADE ON DELETE CASCADE;
5866 1105 aaronmk
5867
5868
--
5869 4730 aaronmk
-- Name: note_notelink_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5870 1555 aaronmk
--
5871
5872 4730 aaronmk
ALTER TABLE note
5873
    ADD CONSTRAINT note_notelink_id_fkey FOREIGN KEY (notelink_id) REFERENCES notelink(notelink_id) ON UPDATE CASCADE ON DELETE CASCADE;
5874 1555 aaronmk
5875
5876
--
5877 4730 aaronmk
-- Name: note_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5878 1555 aaronmk
--
5879
5880
5881
5882 4730 aaronmk
5883 1555 aaronmk
--
5884 5953 aaronmk
-- Name: party_currentname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5885 689 aaronmk
--
5886
5887 5953 aaronmk
ALTER TABLE party
5888
    ADD CONSTRAINT party_currentname_id_fkey FOREIGN KEY (currentname_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
5889 689 aaronmk
5890
5891
--
5892 6179 aaronmk
-- Name: party_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5893 5234 aaronmk
--
5894
5895
5896
5897 5953 aaronmk
5898 5234 aaronmk
--
5899 4730 aaronmk
-- Name: partymember_childparty_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5900 689 aaronmk
--
5901
5902 4730 aaronmk
ALTER TABLE partymember
5903
    ADD CONSTRAINT partymember_childparty_id_fkey FOREIGN KEY (childparty_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
5904 689 aaronmk
5905
5906
--
5907 4730 aaronmk
-- Name: partymember_parentparty_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5908 689 aaronmk
--
5909
5910 4730 aaronmk
ALTER TABLE partymember
5911
    ADD CONSTRAINT partymember_parentparty_id_fkey FOREIGN KEY (parentparty_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
5912 689 aaronmk
5913
5914
--
5915 5983 aaronmk
-- Name: place_canon_place_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5916
--
5917
5918
5919
5920
5921
--
5922 5860 aaronmk
-- Name: place_coordinates_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5923
--
5924
5925
ALTER TABLE place
5926
    ADD CONSTRAINT place_coordinates_id_fkey FOREIGN KEY (coordinates_id) REFERENCES coordinates(coordinates_id) ON UPDATE CASCADE ON DELETE CASCADE;
5927
5928
5929
--
5930 5855 aaronmk
-- Name: place_matched_place_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5931
--
5932
5933
ALTER TABLE place
5934
    ADD CONSTRAINT place_matched_place_id_fkey FOREIGN KEY (matched_place_id) REFERENCES place(place_id) ON UPDATE CASCADE ON DELETE CASCADE;
5935
5936
5937
--
5938
-- Name: place_place_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5939
--
5940
5941
ALTER TABLE place
5942
    ADD CONSTRAINT place_place_id_fkey FOREIGN KEY (placename_id) REFERENCES placename(placename_id) ON UPDATE CASCADE ON DELETE CASCADE;
5943
5944
5945
--
5946 6179 aaronmk
-- Name: place_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5947 5953 aaronmk
--
5948
5949
5950
5951
5952
--
5953 5854 aaronmk
-- Name: placecorrelation_childplace_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5954 689 aaronmk
--
5955
5956 5854 aaronmk
ALTER TABLE placecorrelation
5957
    ADD CONSTRAINT placecorrelation_childplace_id_fkey FOREIGN KEY (childplace_id) REFERENCES placename(placename_id) ON UPDATE CASCADE ON DELETE CASCADE;
5958 689 aaronmk
5959
5960
--
5961 5854 aaronmk
-- Name: placecorrelation_parentplace_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5962 689 aaronmk
--
5963
5964 5854 aaronmk
ALTER TABLE placecorrelation
5965
    ADD CONSTRAINT placecorrelation_parentplace_id_fkey FOREIGN KEY (parentplace_id) REFERENCES placename(placename_id) ON UPDATE CASCADE ON DELETE CASCADE;
5966 689 aaronmk
5967
5968
--
5969 5854 aaronmk
-- Name: placename_ancestor_ancestor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5970 689 aaronmk
--
5971
5972 5854 aaronmk
ALTER TABLE placename_ancestor
5973
    ADD CONSTRAINT placename_ancestor_ancestor_id_fkey FOREIGN KEY (ancestor_id) REFERENCES placename(placename_id) ON UPDATE CASCADE ON DELETE CASCADE;
5974 689 aaronmk
5975
5976
--
5977 5854 aaronmk
-- Name: placename_ancestor_place_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5978 689 aaronmk
--
5979
5980 5854 aaronmk
ALTER TABLE placename_ancestor
5981
    ADD CONSTRAINT placename_ancestor_place_id_fkey FOREIGN KEY (placename_id) REFERENCES placename(placename_id) ON UPDATE CASCADE ON DELETE CASCADE;
5982 689 aaronmk
5983
5984
--
5985 5854 aaronmk
-- Name: placename_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5986 689 aaronmk
--
5987
5988 5854 aaronmk
ALTER TABLE placename
5989
    ADD CONSTRAINT placename_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES placename(placename_id) ON UPDATE CASCADE ON DELETE CASCADE;
5990 689 aaronmk
5991
5992
--
5993 3731 aaronmk
-- Name: plantobservation_aggregateoccurrence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5994 3722 aaronmk
--
5995
5996
ALTER TABLE plantobservation
5997 3731 aaronmk
    ADD CONSTRAINT plantobservation_aggregateoccurrence_id_fkey FOREIGN KEY (aggregateoccurrence_id) REFERENCES aggregateoccurrence(aggregateoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
5998 3722 aaronmk
5999
6000
--
6001 5953 aaronmk
-- Name: plantobservation_plant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6002 3654 aaronmk
--
6003
6004 5953 aaronmk
ALTER TABLE plantobservation
6005
    ADD CONSTRAINT plantobservation_plant_id_fkey FOREIGN KEY (plant_id) REFERENCES plant(plant_id) ON UPDATE CASCADE ON DELETE CASCADE;
6006 3654 aaronmk
6007
6008
--
6009 6179 aaronmk
-- Name: plantobservation_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6010 689 aaronmk
--
6011
6012
6013
6014 5953 aaronmk
6015 689 aaronmk
--
6016 6179 aaronmk
-- Name: project_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6017 719 aaronmk
--
6018
6019
6020
6021 812 aaronmk
6022 719 aaronmk
--
6023 3731 aaronmk
-- Name: projectcontributor_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6024 689 aaronmk
--
6025
6026
6027
6028 812 aaronmk
6029 689 aaronmk
--
6030 3731 aaronmk
-- Name: projectcontributor_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6031 689 aaronmk
--
6032
6033
6034
6035 6248 aaronmk
6036 689 aaronmk
--
6037 6179 aaronmk
-- Name: revision_previousrevision_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6038 689 aaronmk
--
6039
6040 6179 aaronmk
ALTER TABLE revision
6041
    ADD CONSTRAINT revision_previousrevision_id_fkey FOREIGN KEY (previousrevision_id) REFERENCES revision(revision_id) ON UPDATE CASCADE ON DELETE CASCADE;
6042 689 aaronmk
6043
6044
--
6045 6179 aaronmk
-- Name: soilobs_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6046 689 aaronmk
--
6047
6048 6179 aaronmk
ALTER TABLE soilobs
6049
    ADD CONSTRAINT soilobs_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
6050 689 aaronmk
6051
6052
--
6053 6179 aaronmk
-- Name: soiltaxon_soilparent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6054 689 aaronmk
--
6055
6056 6179 aaronmk
ALTER TABLE soiltaxon
6057
    ADD CONSTRAINT soiltaxon_soilparent_id_fkey FOREIGN KEY (soilparent_id) REFERENCES soiltaxon(soiltaxon_id) ON UPDATE CASCADE ON DELETE CASCADE;
6058 689 aaronmk
6059
6060
--
6061 6302 aaronmk
-- Name: source_matched_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6062
--
6063
6064
ALTER TABLE source
6065
    ADD CONSTRAINT source_matched_source_id_fkey FOREIGN KEY (matched_source_id) REFERENCES source(source_id) ON UPDATE CASCADE ON DELETE CASCADE;
6066
6067
6068
--
6069 6296 aaronmk
-- Name: source_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6070
--
6071
6072
ALTER TABLE source
6073
    ADD CONSTRAINT source_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES source(source_id) ON UPDATE CASCADE ON DELETE CASCADE;
6074
6075
6076
--
6077 6179 aaronmk
-- Name: sourcecontributor_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6078 6178 aaronmk
--
6079
6080 6179 aaronmk
ALTER TABLE sourcecontributor
6081
    ADD CONSTRAINT sourcecontributor_source_id_fkey FOREIGN KEY (source_id) REFERENCES source(source_id) ON UPDATE CASCADE ON DELETE CASCADE;
6082 6178 aaronmk
6083
6084
--
6085 6179 aaronmk
-- Name: sourcecontributor_sourceparty_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6086 689 aaronmk
--
6087
6088 6179 aaronmk
ALTER TABLE sourcecontributor
6089
    ADD CONSTRAINT sourcecontributor_sourceparty_id_fkey FOREIGN KEY (sourceparty_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
6090 689 aaronmk
6091
6092
--
6093 6179 aaronmk
-- Name: sourcename_matched_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6094 689 aaronmk
--
6095
6096 6179 aaronmk
ALTER TABLE sourcename
6097
    ADD CONSTRAINT sourcename_matched_source_id_fkey FOREIGN KEY (matched_source_id) REFERENCES source(source_id) ON UPDATE CASCADE ON DELETE CASCADE;
6098 689 aaronmk
6099
6100
--
6101 6179 aaronmk
-- Name: sourcename_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6102 689 aaronmk
--
6103
6104
6105
6106 6179 aaronmk
6107 689 aaronmk
--
6108 5953 aaronmk
-- Name: specimenreplicate_institution_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6109 689 aaronmk
--
6110
6111
6112
6113 812 aaronmk
6114 689 aaronmk
--
6115 5953 aaronmk
-- Name: specimenreplicate_plantobservation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6116 689 aaronmk
--
6117
6118 5953 aaronmk
ALTER TABLE specimenreplicate
6119
    ADD CONSTRAINT specimenreplicate_plantobservation_id_fkey FOREIGN KEY (plantobservation_id) REFERENCES plantobservation(plantobservation_id) ON UPDATE CASCADE ON DELETE CASCADE;
6120 689 aaronmk
6121
6122
--
6123 6179 aaronmk
-- Name: specimenreplicate_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6124 3222 aaronmk
--
6125
6126
6127
6128 5953 aaronmk
6129 3222 aaronmk
--
6130 3731 aaronmk
-- Name: specimenreplicate_specimen_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6131 689 aaronmk
--
6132
6133
ALTER TABLE specimenreplicate
6134 3731 aaronmk
    ADD CONSTRAINT specimenreplicate_specimen_id_fkey FOREIGN KEY (specimen_id) REFERENCES specimen(specimen_id) ON UPDATE CASCADE ON DELETE CASCADE;
6135 689 aaronmk
6136
6137
--
6138 5953 aaronmk
-- Name: stemobservation_plantobservation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6139 3654 aaronmk
--
6140
6141 5953 aaronmk
ALTER TABLE stemobservation
6142
    ADD CONSTRAINT stemobservation_plantobservation_id_fkey FOREIGN KEY (plantobservation_id) REFERENCES plantobservation(plantobservation_id) ON UPDATE CASCADE ON DELETE CASCADE;
6143 3654 aaronmk
6144
6145
--
6146 6179 aaronmk
-- Name: stemobservation_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6147 689 aaronmk
--
6148
6149
6150
6151 5953 aaronmk
6152 689 aaronmk
--
6153 3731 aaronmk
-- Name: stratum_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6154 689 aaronmk
--
6155
6156
ALTER TABLE stratum
6157 3731 aaronmk
    ADD CONSTRAINT stratum_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
6158 689 aaronmk
6159
6160
--
6161 3731 aaronmk
-- Name: stratum_method_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6162 689 aaronmk
--
6163
6164
6165
6166 3992 aaronmk
6167 689 aaronmk
--
6168 5608 aaronmk
-- Name: taxonalt_taxondetermination_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6169 689 aaronmk
--
6170
6171
ALTER TABLE taxonalt
6172 5608 aaronmk
    ADD CONSTRAINT taxonalt_taxondetermination_id_fkey FOREIGN KEY (taxondetermination_id) REFERENCES taxondetermination(taxondetermination_id) ON UPDATE CASCADE ON DELETE CASCADE;
6173 689 aaronmk
6174
6175
--
6176 5608 aaronmk
-- Name: taxonalt_taxonlabel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6177 689 aaronmk
--
6178
6179
ALTER TABLE taxonalt
6180 5608 aaronmk
    ADD CONSTRAINT taxonalt_taxonlabel_id_fkey FOREIGN KEY (taxonlabel_id) REFERENCES taxonlabel(taxonlabel_id) ON UPDATE CASCADE ON DELETE CASCADE;
6181 689 aaronmk
6182
6183
--
6184 6179 aaronmk
-- Name: taxonconcept_concept_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6185 5627 aaronmk
--
6186
6187
6188
6189
6190
--
6191
-- Name: taxonconcept_taxonlabel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6192
--
6193
6194
ALTER TABLE taxonconcept
6195
    ADD CONSTRAINT taxonconcept_taxonlabel_id_fkey FOREIGN KEY (taxonlabel_id) REFERENCES taxonlabel(taxonlabel_id) ON UPDATE CASCADE ON DELETE CASCADE;
6196
6197
6198
--
6199 5608 aaronmk
-- Name: taxoncorrelation_taxonlabel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6200 5464 aaronmk
--
6201
6202
6203
6204 5608 aaronmk
6205 5464 aaronmk
--
6206 5608 aaronmk
-- Name: taxoncorrelation_taxonstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6207 5274 aaronmk
--
6208
6209 5608 aaronmk
ALTER TABLE taxoncorrelation
6210
    ADD CONSTRAINT taxoncorrelation_taxonstatus_id_fkey FOREIGN KEY (taxonstatus_id) REFERENCES taxonstatus(taxonstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
6211 5274 aaronmk
6212
6213
--
6214 5608 aaronmk
-- Name: taxondetermination_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6215 5274 aaronmk
--
6216
6217
6218
6219 5608 aaronmk
6220 5274 aaronmk
--
6221 6179 aaronmk
-- Name: taxondetermination_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6222 689 aaronmk
--
6223
6224
6225
6226 5465 aaronmk
6227 689 aaronmk
--
6228 5657 aaronmk
-- Name: taxondetermination_taxonoccurrence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6229 689 aaronmk
--
6230
6231 5608 aaronmk
ALTER TABLE taxondetermination
6232 5657 aaronmk
    ADD CONSTRAINT taxondetermination_taxonoccurrence_id_fkey FOREIGN KEY (taxonoccurrence_id) REFERENCES taxonoccurrence(taxonoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
6233 689 aaronmk
6234
6235
--
6236 5657 aaronmk
-- Name: taxondetermination_taxonverbatim_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6237 5271 aaronmk
--
6238
6239 5608 aaronmk
ALTER TABLE taxondetermination
6240 5660 aaronmk
    ADD CONSTRAINT taxondetermination_taxonverbatim_id_fkey FOREIGN KEY (taxonverbatim_id) REFERENCES taxonverbatim(taxonverbatim_id) ON UPDATE CASCADE ON DELETE CASCADE;
6241 5271 aaronmk
6242
6243
--
6244 5626 aaronmk
-- Name: taxonlabel_canon_label_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6245 5286 aaronmk
--
6246
6247
6248
6249 5655 aaronmk
6250 5286 aaronmk
--
6251 5609 aaronmk
-- Name: taxonlabel_matched_label_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6252 3654 aaronmk
--
6253
6254 5609 aaronmk
ALTER TABLE taxonlabel
6255
    ADD CONSTRAINT taxonlabel_matched_label_id_fkey FOREIGN KEY (matched_label_id) REFERENCES taxonlabel(taxonlabel_id) ON UPDATE CASCADE ON DELETE CASCADE;
6256 3654 aaronmk
6257
6258
--
6259 5609 aaronmk
-- Name: taxonlabel_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6260 689 aaronmk
--
6261
6262 5609 aaronmk
ALTER TABLE taxonlabel
6263
    ADD CONSTRAINT taxonlabel_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES taxonlabel(taxonlabel_id) ON UPDATE CASCADE ON DELETE CASCADE;
6264 689 aaronmk
6265
6266
--
6267 5609 aaronmk
-- Name: taxonlabel_relationship_ancestor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6268 4941 aaronmk
--
6269
6270 5609 aaronmk
ALTER TABLE taxonlabel_relationship
6271
    ADD CONSTRAINT taxonlabel_relationship_ancestor_id_fkey FOREIGN KEY (ancestor_id) REFERENCES taxonlabel(taxonlabel_id) ON UPDATE CASCADE ON DELETE CASCADE;
6272 4941 aaronmk
6273
6274
--
6275 5609 aaronmk
-- Name: taxonlabel_relationship_descendant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6276 5134 aaronmk
--
6277
6278 5609 aaronmk
ALTER TABLE taxonlabel_relationship
6279
    ADD CONSTRAINT taxonlabel_relationship_descendant_id_fkey FOREIGN KEY (descendant_id) REFERENCES taxonlabel(taxonlabel_id) ON UPDATE CASCADE ON DELETE CASCADE;
6280 5134 aaronmk
6281
6282
--
6283 6179 aaronmk
-- Name: taxonlabel_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6284
--
6285
6286
6287
6288
6289
--
6290 5286 aaronmk
-- Name: taxonlineage_childtaxonstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6291
--
6292
6293
ALTER TABLE taxonlineage
6294
    ADD CONSTRAINT taxonlineage_childtaxonstatus_id_fkey FOREIGN KEY (childtaxonstatus_id) REFERENCES taxonstatus(taxonstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
6295
6296
6297
--
6298
-- Name: taxonlineage_parenttaxonstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6299
--
6300
6301
ALTER TABLE taxonlineage
6302
    ADD CONSTRAINT taxonlineage_parenttaxonstatus_id_fkey FOREIGN KEY (parenttaxonstatus_id) REFERENCES taxonstatus(taxonstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
6303
6304
6305
--
6306 6171 aaronmk
-- Name: taxonoccurrence_collector_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6307
--
6308
6309
6310
6311
6312
--
6313 5953 aaronmk
-- Name: taxonoccurrence_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6314 4934 aaronmk
--
6315
6316 5953 aaronmk
ALTER TABLE taxonoccurrence
6317
    ADD CONSTRAINT taxonoccurrence_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
6318 4934 aaronmk
6319
6320
--
6321 6179 aaronmk
-- Name: taxonoccurrence_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6322 4718 aaronmk
--
6323
6324
6325
6326 5953 aaronmk
6327 4718 aaronmk
--
6328 5286 aaronmk
-- Name: taxonstatus_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6329
--
6330
6331
6332
6333
6334
--
6335 6179 aaronmk
-- Name: taxonstatus_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6336 5286 aaronmk
--
6337
6338
6339
6340
6341
--
6342 5608 aaronmk
-- Name: taxonstatus_taxonlabel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6343 5286 aaronmk
--
6344
6345
ALTER TABLE taxonstatus
6346 5608 aaronmk
    ADD CONSTRAINT taxonstatus_taxonlabel_id_fkey FOREIGN KEY (taxonlabel_id) REFERENCES taxonlabel(taxonlabel_id) ON UPDATE CASCADE ON DELETE CASCADE;
6347 5286 aaronmk
6348
6349
--
6350 5655 aaronmk
-- Name: taxonverbatim_taxonlabel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6351
--
6352
6353
ALTER TABLE taxonverbatim
6354
    ADD CONSTRAINT taxonverbatim_taxonlabel_id_fkey FOREIGN KEY (taxonlabel_id) REFERENCES taxonlabel(taxonlabel_id) ON UPDATE CASCADE ON DELETE CASCADE;
6355
6356
6357
--
6358 3731 aaronmk
-- Name: telephone_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6359 689 aaronmk
--
6360
6361
ALTER TABLE telephone
6362 3731 aaronmk
    ADD CONSTRAINT telephone_party_id_fkey FOREIGN KEY (party_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
6363 689 aaronmk
6364
6365
--
6366 6085 aaronmk
-- Name: threatened_taxonlabel_taxonlabel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6367
--
6368
6369
6370
6371
6372
--
6373 689 aaronmk
-- Name: trait_stemobservation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6374
--
6375
6376
ALTER TABLE trait
6377
    ADD CONSTRAINT trait_stemobservation_id_fkey FOREIGN KEY (stemobservation_id) REFERENCES stemobservation(stemobservation_id) ON UPDATE CASCADE ON DELETE CASCADE;
6378
6379
6380
--
6381 3731 aaronmk
-- Name: voucher_specimenreplicate_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6382 689 aaronmk
--
6383
6384
ALTER TABLE voucher
6385 3934 aaronmk
    ADD CONSTRAINT voucher_specimenreplicate_id_fkey FOREIGN KEY (specimenreplicate_id) REFERENCES specimenreplicate(specimenreplicate_id) ON UPDATE CASCADE ON DELETE CASCADE;
6386 689 aaronmk
6387
6388
--
6389 3731 aaronmk
-- Name: voucher_taxonoccurrence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
6390 689 aaronmk
--
6391
6392
ALTER TABLE voucher
6393 3731 aaronmk
    ADD CONSTRAINT voucher_taxonoccurrence_id_fkey FOREIGN KEY (taxonoccurrence_id) REFERENCES taxonoccurrence(taxonoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
6394 689 aaronmk
6395
6396
--
6397 6340 aaronmk
-- Name: public; Type: ACL; Schema: -; Owner: -
6398
--
6399
6400
6401
6402
6403
6404
6405
6406
--
6407 6341 aaronmk
-- Name: place; Type: ACL; Schema: public; Owner: -
6408
--
6409
6410
6411
6412
6413
6414
6415
6416
--
6417
-- Name: taxonlabel; Type: ACL; Schema: public; Owner: -
6418
--
6419
6420
6421
6422
6423
6424
6425
6426
--
6427
-- Name: address; Type: ACL; Schema: public; Owner: -
6428
--
6429
6430
6431
6432
6433
6434
6435
6436
--
6437
-- Name: aggregateoccurrence; Type: ACL; Schema: public; Owner: -
6438
--
6439
6440
6441
6442
6443
6444
6445
6446
--
6447 6340 aaronmk
-- Name: analytical_stem; Type: ACL; Schema: public; Owner: -
6448
--
6449
6450
6451
6452
6453
6454
6455
6456
--
6457 6341 aaronmk
-- Name: analytical_aggregate_view; Type: ACL; Schema: public; Owner: -
6458
--
6459
6460
6461
6462
6463
6464
6465
6466
--
6467
-- Name: coordinates; Type: ACL; Schema: public; Owner: -
6468
--
6469
6470
6471
6472
6473
6474
6475
6476
--
6477 6435 aaronmk
-- Name: cultivated_family_locations; Type: ACL; Schema: public; Owner: -
6478
--
6479
6480
6481
6482
6483
6484
6485
6486
--
6487 6341 aaronmk
-- Name: family_higher_plant_group; Type: ACL; Schema: public; Owner: -
6488
--
6489
6490
6491
6492
6493
6494
6495
6496
--
6497
-- Name: location; Type: ACL; Schema: public; Owner: -
6498
--
6499
6500
6501
6502
6503
6504
6505
6506
--
6507
-- Name: locationevent; Type: ACL; Schema: public; Owner: -
6508
--
6509
6510
6511
6512
6513
6514
6515
6516
--
6517
-- Name: locationplace; Type: ACL; Schema: public; Owner: -
6518
--
6519
6520
6521
6522
6523
6524
6525
6526
--
6527
-- Name: method; Type: ACL; Schema: public; Owner: -
6528
--
6529
6530
6531
6532
6533
6534
6535
6536
--
6537
-- Name: party; Type: ACL; Schema: public; Owner: -
6538
--
6539
6540
6541
6542
6543
6544
6545
6546
--
6547
-- Name: plantobservation; Type: ACL; Schema: public; Owner: -
6548
--
6549
6550
6551
6552
6553
6554
6555
6556
--
6557
-- Name: source; Type: ACL; Schema: public; Owner: -
6558
--
6559
6560
6561
6562
6563
6564
6565
6566
--
6567
-- Name: stemobservation; Type: ACL; Schema: public; Owner: -
6568
--
6569
6570
6571
6572
6573
6574
6575
6576
--
6577
-- Name: taxondetermination; Type: ACL; Schema: public; Owner: -
6578
--
6579
6580
6581
6582
6583
6584
6585
6586
--
6587
-- Name: taxonoccurrence; Type: ACL; Schema: public; Owner: -
6588
--
6589
6590
6591
6592
6593
6594
6595
6596
--
6597
-- Name: taxonverbatim; Type: ACL; Schema: public; Owner: -
6598
--
6599
6600
6601
6602
6603
6604
6605
6606
--
6607
-- Name: threatened_taxonlabel; Type: ACL; Schema: public; Owner: -
6608
--
6609
6610
6611
6612
6613
6614
6615
6616
--
6617
-- Name: analytical_stem_view; Type: ACL; Schema: public; Owner: -
6618
--
6619
6620
6621
6622
6623
6624
6625
6626
--
6627
-- Name: classcontributor; Type: ACL; Schema: public; Owner: -
6628
--
6629
6630
6631
6632
6633
6634
6635
6636
--
6637
-- Name: commclass; Type: ACL; Schema: public; Owner: -
6638
--
6639
6640
6641
6642
6643
6644
6645
6646
--
6647
-- Name: commconcept; Type: ACL; Schema: public; Owner: -
6648
--
6649
6650
6651
6652
6653
6654
6655
6656
--
6657
-- Name: commcorrelation; Type: ACL; Schema: public; Owner: -
6658
--
6659
6660
6661
6662
6663
6664
6665
6666
--
6667
-- Name: commdetermination; Type: ACL; Schema: public; Owner: -
6668
--
6669
6670
6671
6672
6673
6674
6675
6676
--
6677
-- Name: commlineage; Type: ACL; Schema: public; Owner: -
6678
--
6679
6680
6681
6682
6683
6684
6685
6686
--
6687
-- Name: commname; Type: ACL; Schema: public; Owner: -
6688
--
6689
6690
6691
6692
6693
6694
6695
6696
--
6697
-- Name: commstatus; Type: ACL; Schema: public; Owner: -
6698
--
6699
6700
6701
6702
6703
6704
6705
6706
--
6707
-- Name: commusage; Type: ACL; Schema: public; Owner: -
6708
--
6709
6710
6711
6712
6713
6714
6715
6716
--
6717
-- Name: coverindex; Type: ACL; Schema: public; Owner: -
6718
--
6719
6720
6721
6722
6723
6724
6725
6726
--
6727
-- Name: covermethod; Type: ACL; Schema: public; Owner: -
6728
--
6729
6730
6731
6732
6733
6734
6735
6736
--
6737
-- Name: definedvalue; Type: ACL; Schema: public; Owner: -
6738
--
6739
6740
6741
6742
6743
6744
6745
6746
--
6747
-- Name: disturbanceobs; Type: ACL; Schema: public; Owner: -
6748
--
6749
6750
6751
6752
6753
6754
6755
6756
--
6757
-- Name: geoscrub_input; Type: ACL; Schema: public; Owner: -
6758
--
6759
6760
6761
6762
6763
6764
6765
6766
--
6767
-- Name: geoscrub_input_view; Type: ACL; Schema: public; Owner: -
6768
--
6769
6770
6771
6772
6773
6774
6775
6776
--
6777
-- Name: graphic; Type: ACL; Schema: public; Owner: -
6778
--
6779
6780
6781
6782
6783
6784
6785
6786
--
6787
-- Name: higher_plant_group_nodes; Type: ACL; Schema: public; Owner: -
6788
--
6789
6790
6791
6792
6793
6794
6795
6796
--
6797
-- Name: locationeventcontributor; Type: ACL; Schema: public; Owner: -
6798
--
6799
6800
6801
6802
6803
6804
6805
6806
--
6807
-- Name: locationeventsynonym; Type: ACL; Schema: public; Owner: -
6808
--
6809
6810
6811
6812
6813
6814
6815
6816
--
6817
-- Name: methodtaxonclass; Type: ACL; Schema: public; Owner: -
6818
--
6819
6820
6821
6822
6823
6824
6825
6826
--
6827
-- Name: note; Type: ACL; Schema: public; Owner: -
6828
--
6829
6830
6831
6832
6833
6834
6835
6836
--
6837
-- Name: notelink; Type: ACL; Schema: public; Owner: -
6838
--
6839
6840
6841
6842
6843
6844
6845
6846
--
6847
-- Name: partymember; Type: ACL; Schema: public; Owner: -
6848
--
6849
6850
6851
6852
6853
6854
6855
6856
--
6857
-- Name: placecorrelation; Type: ACL; Schema: public; Owner: -
6858
--
6859
6860
6861
6862
6863
6864
6865
6866
--
6867
-- Name: placename; Type: ACL; Schema: public; Owner: -
6868
--
6869
6870
6871
6872
6873
6874
6875
6876
--
6877
-- Name: placename_ancestor; Type: ACL; Schema: public; Owner: -
6878
--
6879
6880
6881
6882
6883
6884
6885
6886
--
6887
-- Name: plant; Type: ACL; Schema: public; Owner: -
6888
--
6889
6890
6891
6892
6893
6894
6895
6896
--
6897
-- Name: project; Type: ACL; Schema: public; Owner: -
6898
--
6899
6900
6901
6902
6903
6904
6905
6906
--
6907
-- Name: projectcontributor; Type: ACL; Schema: public; Owner: -
6908
--
6909
6910
6911
6912
6913
6914
6915
6916
--
6917
-- Name: revision; Type: ACL; Schema: public; Owner: -
6918
--
6919
6920
6921
6922
6923
6924
6925
6926
--
6927
-- Name: soilobs; Type: ACL; Schema: public; Owner: -
6928
--
6929
6930
6931
6932
6933
6934
6935
6936
--
6937
-- Name: soiltaxon; Type: ACL; Schema: public; Owner: -
6938
--
6939
6940
6941
6942
6943
6944
6945
6946
--
6947
-- Name: sourcecontributor; Type: ACL; Schema: public; Owner: -
6948
--
6949
6950
6951
6952
6953
6954
6955
6956
--
6957
-- Name: sourcename; Type: ACL; Schema: public; Owner: -
6958
--
6959
6960
6961
6962
6963
6964
6965
6966
--
6967
-- Name: specimen; Type: ACL; Schema: public; Owner: -
6968
--
6969
6970
6971
6972
6973
6974
6975
6976
--
6977
-- Name: specimenreplicate; Type: ACL; Schema: public; Owner: -
6978
--
6979
6980
6981
6982
6983
6984
6985
6986
--
6987
-- Name: stratum; Type: ACL; Schema: public; Owner: -
6988
--
6989
6990
6991
6992
6993
6994
6995
6996
--
6997
-- Name: taxonalt; Type: ACL; Schema: public; Owner: -
6998
--
6999
7000
7001
7002
7003
7004
7005
7006
--
7007
-- Name: taxonconcept; Type: ACL; Schema: public; Owner: -
7008
--
7009
7010
7011
7012
7013
7014
7015
7016
--
7017
-- Name: taxoncorrelation; Type: ACL; Schema: public; Owner: -
7018
--
7019
7020
7021
7022
7023
7024
7025
7026
--
7027
-- Name: taxonlabel_relationship; Type: ACL; Schema: public; Owner: -
7028
--
7029
7030
7031
7032
7033
7034
7035
7036
--
7037
-- Name: taxonlineage; Type: ACL; Schema: public; Owner: -
7038
--
7039
7040
7041
7042
7043
7044
7045
7046
--
7047
-- Name: taxonstatus; Type: ACL; Schema: public; Owner: -
7048
--
7049
7050
7051
7052
7053
7054
7055
7056
--
7057
-- Name: telephone; Type: ACL; Schema: public; Owner: -
7058
--
7059
7060
7061
7062
7063
7064
7065
7066
--
7067
-- Name: threatened_taxonlabel_view; Type: ACL; Schema: public; Owner: -
7068
--
7069
7070
7071
7072
7073
7074
7075
7076
--
7077
-- Name: tnrs_input_name; Type: ACL; Schema: public; Owner: -
7078
--
7079
7080
7081
7082
7083
7084
7085
7086
--
7087
-- Name: trait; Type: ACL; Schema: public; Owner: -
7088
--
7089
7090
7091
7092
7093
7094
7095
7096
--
7097
-- Name: userdefined; Type: ACL; Schema: public; Owner: -
7098
--
7099
7100
7101
7102
7103
7104
7105
7106
--
7107
-- Name: voucher; Type: ACL; Schema: public; Owner: -
7108
--
7109
7110
7111
7112
7113
7114
7115
7116
--
7117 689 aaronmk
-- PostgreSQL database dump complete
7118
--