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