3930 |
3930 |
|
3931 |
3931 |
|
3932 |
3932 |
--
|
3933 |
|
-- Name: address_organization_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
3933 |
-- Name: address_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3934 |
3934 |
--
|
3935 |
3935 |
|
3936 |
3936 |
ALTER TABLE address
|
3937 |
|
ADD CONSTRAINT address_organization_id FOREIGN KEY (organization_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
3937 |
ADD CONSTRAINT address_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
3938 |
3938 |
|
3939 |
3939 |
|
3940 |
3940 |
--
|
3941 |
|
-- Name: address_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
3941 |
-- Name: address_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3942 |
3942 |
--
|
3943 |
3943 |
|
3944 |
3944 |
ALTER TABLE address
|
3945 |
|
ADD CONSTRAINT address_party_id FOREIGN KEY (party_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
3945 |
ADD CONSTRAINT address_party_id_fkey FOREIGN KEY (party_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
3946 |
3946 |
|
3947 |
3947 |
|
3948 |
3948 |
--
|
3949 |
|
-- Name: aggregateoccurrence_coverindex_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
3949 |
-- Name: aggregateoccurrence_coverindex_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3950 |
3950 |
--
|
3951 |
3951 |
|
3952 |
3952 |
ALTER TABLE aggregateoccurrence
|
3953 |
|
ADD CONSTRAINT aggregateoccurrence_coverindex_id FOREIGN KEY (coverindex_id) REFERENCES coverindex(coverindex_id) ON UPDATE CASCADE ON DELETE SET NULL;
|
|
3953 |
ADD CONSTRAINT aggregateoccurrence_coverindex_id_fkey FOREIGN KEY (coverindex_id) REFERENCES coverindex(coverindex_id) ON UPDATE CASCADE ON DELETE SET NULL;
|
3954 |
3954 |
|
3955 |
3955 |
|
3956 |
3956 |
--
|
3957 |
|
-- Name: aggregateoccurrence_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
3957 |
-- Name: aggregateoccurrence_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3958 |
3958 |
--
|
3959 |
3959 |
|
3960 |
3960 |
|
3961 |
3961 |
|
3962 |
3962 |
|
3963 |
3963 |
--
|
3964 |
|
-- Name: aggregateoccurrence_method_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
3964 |
-- Name: aggregateoccurrence_method_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3965 |
3965 |
--
|
3966 |
3966 |
|
3967 |
3967 |
ALTER TABLE aggregateoccurrence
|
3968 |
|
ADD CONSTRAINT aggregateoccurrence_method_id FOREIGN KEY (method_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
3968 |
ADD CONSTRAINT aggregateoccurrence_method_id_fkey FOREIGN KEY (method_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
3969 |
3969 |
|
3970 |
3970 |
|
3971 |
3971 |
--
|
3972 |
|
-- Name: aggregateoccurrence_stratum_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
3972 |
-- Name: aggregateoccurrence_stratum_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3973 |
3973 |
--
|
3974 |
3974 |
|
3975 |
3975 |
ALTER TABLE aggregateoccurrence
|
3976 |
|
ADD CONSTRAINT aggregateoccurrence_stratum_id FOREIGN KEY (stratum_id) REFERENCES stratum(stratum_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
3976 |
ADD CONSTRAINT aggregateoccurrence_stratum_id_fkey FOREIGN KEY (stratum_id) REFERENCES stratum(stratum_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
3977 |
3977 |
|
3978 |
3978 |
|
3979 |
3979 |
--
|
3980 |
|
-- Name: aggregateoccurrence_taxonoccurrence_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
3980 |
-- Name: aggregateoccurrence_taxonoccurrence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3981 |
3981 |
--
|
3982 |
3982 |
|
3983 |
3983 |
ALTER TABLE aggregateoccurrence
|
3984 |
|
ADD CONSTRAINT aggregateoccurrence_taxonoccurrence_id FOREIGN KEY (taxonoccurrence_id) REFERENCES taxonoccurrence(taxonoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
3984 |
ADD CONSTRAINT aggregateoccurrence_taxonoccurrence_id_fkey FOREIGN KEY (taxonoccurrence_id) REFERENCES taxonoccurrence(taxonoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
3985 |
3985 |
|
3986 |
3986 |
|
3987 |
3987 |
--
|
3988 |
|
-- Name: classcontributor_commclass_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
3988 |
-- Name: classcontributor_commclass_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3989 |
3989 |
--
|
3990 |
3990 |
|
3991 |
3991 |
ALTER TABLE classcontributor
|
3992 |
|
ADD CONSTRAINT classcontributor_commclass_id FOREIGN KEY (commclass_id) REFERENCES commclass(commclass_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
3992 |
ADD CONSTRAINT classcontributor_commclass_id_fkey FOREIGN KEY (commclass_id) REFERENCES commclass(commclass_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
3993 |
3993 |
|
3994 |
3994 |
|
3995 |
3995 |
--
|
3996 |
|
-- Name: classcontributor_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
3996 |
-- Name: classcontributor_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3997 |
3997 |
--
|
3998 |
3998 |
|
3999 |
3999 |
|
4000 |
4000 |
|
4001 |
4001 |
|
4002 |
4002 |
--
|
4003 |
|
-- Name: commclass_classpublication_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4003 |
-- Name: commclass_classpublication_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4004 |
4004 |
--
|
4005 |
4005 |
|
4006 |
4006 |
|
4007 |
4007 |
|
4008 |
4008 |
|
4009 |
4009 |
--
|
4010 |
|
-- Name: commclass_locationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4010 |
-- Name: commclass_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4011 |
4011 |
--
|
4012 |
4012 |
|
4013 |
4013 |
ALTER TABLE commclass
|
4014 |
|
ADD CONSTRAINT commclass_locationevent_id FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4014 |
ADD CONSTRAINT commclass_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4015 |
4015 |
|
4016 |
4016 |
|
4017 |
4017 |
--
|
4018 |
|
-- Name: commconcept_commname_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4018 |
-- Name: commconcept_commname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4019 |
4019 |
--
|
4020 |
4020 |
|
4021 |
4021 |
ALTER TABLE commconcept
|
4022 |
|
ADD CONSTRAINT commconcept_commname_id FOREIGN KEY (commname_id) REFERENCES commname(commname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4022 |
ADD CONSTRAINT commconcept_commname_id_fkey FOREIGN KEY (commname_id) REFERENCES commname(commname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4023 |
4023 |
|
4024 |
4024 |
|
4025 |
4025 |
--
|
4026 |
|
-- Name: commconcept_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4026 |
-- Name: commconcept_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4027 |
4027 |
--
|
4028 |
4028 |
|
4029 |
4029 |
|
4030 |
4030 |
|
4031 |
4031 |
|
4032 |
4032 |
--
|
4033 |
|
-- Name: commcorrelation_commconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4033 |
-- Name: commcorrelation_commconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4034 |
4034 |
--
|
4035 |
4035 |
|
4036 |
4036 |
ALTER TABLE commcorrelation
|
4037 |
|
ADD CONSTRAINT commcorrelation_commconcept_id FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4037 |
ADD CONSTRAINT commcorrelation_commconcept_id_fkey FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4038 |
4038 |
|
4039 |
4039 |
|
4040 |
4040 |
--
|
4041 |
|
-- Name: commcorrelation_commstatus_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4041 |
-- Name: commcorrelation_commstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4042 |
4042 |
--
|
4043 |
4043 |
|
4044 |
4044 |
ALTER TABLE commcorrelation
|
4045 |
|
ADD CONSTRAINT commcorrelation_commstatus_id FOREIGN KEY (commstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4045 |
ADD CONSTRAINT commcorrelation_commstatus_id_fkey FOREIGN KEY (commstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4046 |
4046 |
|
4047 |
4047 |
|
4048 |
4048 |
--
|
4049 |
|
-- Name: commdetermination_commauthority_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4049 |
-- Name: commdetermination_commauthority_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4050 |
4050 |
--
|
4051 |
4051 |
|
4052 |
4052 |
|
4053 |
4053 |
|
4054 |
4054 |
|
4055 |
4055 |
--
|
4056 |
|
-- Name: commdetermination_commclass_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4056 |
-- Name: commdetermination_commclass_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4057 |
4057 |
--
|
4058 |
4058 |
|
4059 |
4059 |
ALTER TABLE commdetermination
|
4060 |
|
ADD CONSTRAINT commdetermination_commclass_id FOREIGN KEY (commclass_id) REFERENCES commclass(commclass_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4060 |
ADD CONSTRAINT commdetermination_commclass_id_fkey FOREIGN KEY (commclass_id) REFERENCES commclass(commclass_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4061 |
4061 |
|
4062 |
4062 |
|
4063 |
4063 |
--
|
4064 |
|
-- Name: commdetermination_commconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4064 |
-- Name: commdetermination_commconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4065 |
4065 |
--
|
4066 |
4066 |
|
4067 |
4067 |
ALTER TABLE commdetermination
|
4068 |
|
ADD CONSTRAINT commdetermination_commconcept_id FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4068 |
ADD CONSTRAINT commdetermination_commconcept_id_fkey FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4069 |
4069 |
|
4070 |
4070 |
|
4071 |
4071 |
--
|
4072 |
|
-- Name: commlineage_childcommstatus_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4072 |
-- Name: commlineage_childcommstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4073 |
4073 |
--
|
4074 |
4074 |
|
4075 |
4075 |
ALTER TABLE commlineage
|
4076 |
|
ADD CONSTRAINT commlineage_childcommstatus_id FOREIGN KEY (childcommstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4076 |
ADD CONSTRAINT commlineage_childcommstatus_id_fkey FOREIGN KEY (childcommstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4077 |
4077 |
|
4078 |
4078 |
|
4079 |
4079 |
--
|
4080 |
|
-- Name: commlineage_parentcommstatus_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4080 |
-- Name: commlineage_parentcommstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4081 |
4081 |
--
|
4082 |
4082 |
|
4083 |
4083 |
ALTER TABLE commlineage
|
4084 |
|
ADD CONSTRAINT commlineage_parentcommstatus_id FOREIGN KEY (parentcommstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4084 |
ADD CONSTRAINT commlineage_parentcommstatus_id_fkey FOREIGN KEY (parentcommstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4085 |
4085 |
|
4086 |
4086 |
|
4087 |
4087 |
--
|
4088 |
|
-- Name: commname_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4088 |
-- Name: commname_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4089 |
4089 |
--
|
4090 |
4090 |
|
4091 |
4091 |
|
4092 |
4092 |
|
4093 |
4093 |
|
4094 |
4094 |
--
|
4095 |
|
-- Name: commstatus_commconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4095 |
-- Name: commstatus_commconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4096 |
4096 |
--
|
4097 |
4097 |
|
4098 |
4098 |
ALTER TABLE commstatus
|
4099 |
|
ADD CONSTRAINT commstatus_commconcept_id FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4099 |
ADD CONSTRAINT commstatus_commconcept_id_fkey FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4100 |
4100 |
|
4101 |
4101 |
|
4102 |
4102 |
--
|
4103 |
|
-- Name: commstatus_commparent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4103 |
-- Name: commstatus_commparent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4104 |
4104 |
--
|
4105 |
4105 |
|
4106 |
4106 |
ALTER TABLE commstatus
|
4107 |
|
ADD CONSTRAINT commstatus_commparent_id FOREIGN KEY (commparent_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4107 |
ADD CONSTRAINT commstatus_commparent_id_fkey FOREIGN KEY (commparent_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4108 |
4108 |
|
4109 |
4109 |
|
4110 |
4110 |
--
|
4111 |
|
-- Name: commstatus_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4111 |
-- Name: commstatus_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4112 |
4112 |
--
|
4113 |
4113 |
|
4114 |
4114 |
|
4115 |
4115 |
|
4116 |
4116 |
|
4117 |
4117 |
--
|
4118 |
|
-- Name: commstatus_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4118 |
-- Name: commstatus_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4119 |
4119 |
--
|
4120 |
4120 |
|
4121 |
4121 |
|
4122 |
4122 |
|
4123 |
4123 |
|
4124 |
4124 |
--
|
4125 |
|
-- Name: commusage_commconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4125 |
-- Name: commusage_commconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4126 |
4126 |
--
|
4127 |
4127 |
|
4128 |
4128 |
ALTER TABLE commusage
|
4129 |
|
ADD CONSTRAINT commusage_commconcept_id FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4129 |
ADD CONSTRAINT commusage_commconcept_id_fkey FOREIGN KEY (commconcept_id) REFERENCES commconcept(commconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4130 |
4130 |
|
4131 |
4131 |
|
4132 |
4132 |
--
|
4133 |
|
-- Name: commusage_commname_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4133 |
-- Name: commusage_commname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4134 |
4134 |
--
|
4135 |
4135 |
|
4136 |
4136 |
ALTER TABLE commusage
|
4137 |
|
ADD CONSTRAINT commusage_commname_id FOREIGN KEY (commname_id) REFERENCES commname(commname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4137 |
ADD CONSTRAINT commusage_commname_id_fkey FOREIGN KEY (commname_id) REFERENCES commname(commname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4138 |
4138 |
|
4139 |
4139 |
|
4140 |
4140 |
--
|
4141 |
|
-- Name: commusage_commstatus_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4141 |
-- Name: commusage_commstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4142 |
4142 |
--
|
4143 |
4143 |
|
4144 |
4144 |
ALTER TABLE commusage
|
4145 |
|
ADD CONSTRAINT commusage_commstatus_id FOREIGN KEY (commstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4145 |
ADD CONSTRAINT commusage_commstatus_id_fkey FOREIGN KEY (commstatus_id) REFERENCES commstatus(commstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4146 |
4146 |
|
4147 |
4147 |
|
4148 |
4148 |
--
|
4149 |
|
-- Name: commusage_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4149 |
-- Name: commusage_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4150 |
4150 |
--
|
4151 |
4151 |
|
4152 |
4152 |
|
4153 |
4153 |
|
4154 |
4154 |
|
4155 |
4155 |
--
|
4156 |
|
-- Name: coverindex_covermethod_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4156 |
-- Name: coverindex_covermethod_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4157 |
4157 |
--
|
4158 |
4158 |
|
4159 |
4159 |
ALTER TABLE coverindex
|
4160 |
|
ADD CONSTRAINT coverindex_covermethod_id FOREIGN KEY (covermethod_id) REFERENCES covermethod(covermethod_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4160 |
ADD CONSTRAINT coverindex_covermethod_id_fkey FOREIGN KEY (covermethod_id) REFERENCES covermethod(covermethod_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4161 |
4161 |
|
4162 |
4162 |
|
4163 |
4163 |
--
|
4164 |
|
-- Name: covermethod_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4164 |
-- Name: covermethod_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4165 |
4165 |
--
|
4166 |
4166 |
|
4167 |
4167 |
|
4168 |
4168 |
|
4169 |
4169 |
|
4170 |
4170 |
--
|
4171 |
|
-- Name: definedvalue_userdefined_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4171 |
-- Name: definedvalue_userdefined_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4172 |
4172 |
--
|
4173 |
4173 |
|
4174 |
4174 |
ALTER TABLE definedvalue
|
4175 |
|
ADD CONSTRAINT definedvalue_userdefined_id FOREIGN KEY (userdefined_id) REFERENCES userdefined(userdefined_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4175 |
ADD CONSTRAINT definedvalue_userdefined_id_fkey FOREIGN KEY (userdefined_id) REFERENCES userdefined(userdefined_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4176 |
4176 |
|
4177 |
4177 |
|
4178 |
4178 |
--
|
4179 |
|
-- Name: disturbanceobs_locationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4179 |
-- Name: disturbanceobs_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4180 |
4180 |
--
|
4181 |
4181 |
|
4182 |
4182 |
ALTER TABLE disturbanceobs
|
4183 |
|
ADD CONSTRAINT disturbanceobs_locationevent_id FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4183 |
ADD CONSTRAINT disturbanceobs_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4184 |
4184 |
|
4185 |
4185 |
|
4186 |
4186 |
--
|
4187 |
|
-- Name: graphic_locationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4187 |
-- Name: graphic_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4188 |
4188 |
--
|
4189 |
4189 |
|
4190 |
4190 |
ALTER TABLE graphic
|
4191 |
|
ADD CONSTRAINT graphic_locationevent_id FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4191 |
ADD CONSTRAINT graphic_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4192 |
4192 |
|
4193 |
4193 |
|
4194 |
4194 |
--
|
4195 |
|
-- Name: location_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4195 |
-- Name: location_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4196 |
4196 |
--
|
4197 |
4197 |
|
4198 |
4198 |
|
4199 |
4199 |
|
4200 |
4200 |
|
4201 |
4201 |
--
|
4202 |
|
-- Name: location_parent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4202 |
-- Name: location_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4203 |
4203 |
--
|
4204 |
4204 |
|
4205 |
4205 |
ALTER TABLE location
|
4206 |
|
ADD CONSTRAINT location_parent_id FOREIGN KEY (parent_id) REFERENCES location(location_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4206 |
ADD CONSTRAINT location_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES location(location_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4207 |
4207 |
|
4208 |
4208 |
|
4209 |
4209 |
--
|
4210 |
|
-- Name: locationdetermination_identifier_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4210 |
-- Name: locationdetermination_identifier_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4211 |
4211 |
--
|
4212 |
4212 |
|
4213 |
4213 |
|
4214 |
4214 |
|
4215 |
4215 |
|
4216 |
4216 |
--
|
4217 |
|
-- Name: locationdetermination_location_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4217 |
-- Name: locationdetermination_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4218 |
4218 |
--
|
4219 |
4219 |
|
4220 |
4220 |
ALTER TABLE locationdetermination
|
4221 |
|
ADD CONSTRAINT locationdetermination_location_id FOREIGN KEY (location_id) REFERENCES location(location_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4221 |
ADD CONSTRAINT locationdetermination_location_id_fkey FOREIGN KEY (location_id) REFERENCES location(location_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4222 |
4222 |
|
4223 |
4223 |
|
4224 |
4224 |
--
|
4225 |
|
-- Name: locationdetermination_namedplace_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4225 |
-- Name: locationdetermination_namedplace_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4226 |
4226 |
--
|
4227 |
4227 |
|
4228 |
4228 |
ALTER TABLE locationdetermination
|
4229 |
|
ADD CONSTRAINT locationdetermination_namedplace_id FOREIGN KEY (namedplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4229 |
ADD CONSTRAINT locationdetermination_namedplace_id_fkey FOREIGN KEY (namedplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4230 |
4230 |
|
4231 |
4231 |
|
4232 |
4232 |
--
|
4233 |
|
-- Name: locationevent_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4233 |
-- Name: locationevent_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4234 |
4234 |
--
|
4235 |
4235 |
|
4236 |
4236 |
|
4237 |
4237 |
|
4238 |
4238 |
|
4239 |
4239 |
--
|
4240 |
|
-- Name: locationevent_location_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4240 |
-- Name: locationevent_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4241 |
4241 |
--
|
4242 |
4242 |
|
4243 |
4243 |
ALTER TABLE locationevent
|
4244 |
|
ADD CONSTRAINT locationevent_location_id FOREIGN KEY (location_id) REFERENCES location(location_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4244 |
ADD CONSTRAINT locationevent_location_id_fkey FOREIGN KEY (location_id) REFERENCES location(location_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4245 |
4245 |
|
4246 |
4246 |
|
4247 |
4247 |
--
|
4248 |
|
-- Name: locationevent_method_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4248 |
-- Name: locationevent_method_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4249 |
4249 |
--
|
4250 |
4250 |
|
4251 |
4251 |
ALTER TABLE locationevent
|
4252 |
|
ADD CONSTRAINT locationevent_method_id FOREIGN KEY (method_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4252 |
ADD CONSTRAINT locationevent_method_id_fkey FOREIGN KEY (method_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4253 |
4253 |
|
4254 |
4254 |
|
4255 |
4255 |
--
|
4256 |
|
-- Name: locationevent_parent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4256 |
-- Name: locationevent_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4257 |
4257 |
--
|
4258 |
4258 |
|
4259 |
4259 |
ALTER TABLE locationevent
|
4260 |
|
ADD CONSTRAINT locationevent_parent_id FOREIGN KEY (parent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4260 |
ADD CONSTRAINT locationevent_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4261 |
4261 |
|
4262 |
4262 |
|
4263 |
4263 |
--
|
4264 |
|
-- Name: locationevent_previousobs_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4264 |
-- Name: locationevent_previous_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4265 |
4265 |
--
|
4266 |
4266 |
|
4267 |
4267 |
ALTER TABLE locationevent
|
4268 |
|
ADD CONSTRAINT locationevent_previousobs_id FOREIGN KEY (previous_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4268 |
ADD CONSTRAINT locationevent_previous_id_fkey FOREIGN KEY (previous_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4269 |
4269 |
|
4270 |
4270 |
|
4271 |
4271 |
--
|
4272 |
|
-- Name: locationevent_project_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4272 |
-- Name: locationevent_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4273 |
4273 |
--
|
4274 |
4274 |
|
4275 |
4275 |
ALTER TABLE locationevent
|
4276 |
|
ADD CONSTRAINT locationevent_project_id FOREIGN KEY (project_id) REFERENCES project(project_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4276 |
ADD CONSTRAINT locationevent_project_id_fkey FOREIGN KEY (project_id) REFERENCES project(project_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4277 |
4277 |
|
4278 |
4278 |
|
4279 |
4279 |
--
|
4280 |
|
-- Name: locationevent_soiltaxon_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4280 |
-- Name: locationevent_soiltaxon_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4281 |
4281 |
--
|
4282 |
4282 |
|
4283 |
4283 |
ALTER TABLE locationevent
|
4284 |
|
ADD CONSTRAINT locationevent_soiltaxon_id FOREIGN KEY (soiltaxon_id) REFERENCES soiltaxon(soiltaxon_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4284 |
ADD CONSTRAINT locationevent_soiltaxon_id_fkey FOREIGN KEY (soiltaxon_id) REFERENCES soiltaxon(soiltaxon_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4285 |
4285 |
|
4286 |
4286 |
|
4287 |
4287 |
--
|
4288 |
|
-- Name: locationeventcontributor_locationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4288 |
-- Name: locationeventcontributor_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4289 |
4289 |
--
|
4290 |
4290 |
|
4291 |
4291 |
ALTER TABLE locationeventcontributor
|
4292 |
|
ADD CONSTRAINT locationeventcontributor_locationevent_id FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4292 |
ADD CONSTRAINT locationeventcontributor_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4293 |
4293 |
|
4294 |
4294 |
|
4295 |
4295 |
--
|
4296 |
|
-- Name: locationeventcontributor_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4296 |
-- Name: locationeventcontributor_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4297 |
4297 |
--
|
4298 |
4298 |
|
4299 |
4299 |
|
4300 |
4300 |
|
4301 |
4301 |
|
4302 |
4302 |
--
|
4303 |
|
-- Name: locationeventsynonym_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4303 |
-- Name: locationeventsynonym_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4304 |
4304 |
--
|
4305 |
4305 |
|
4306 |
4306 |
|
4307 |
4307 |
|
4308 |
4308 |
|
4309 |
4309 |
--
|
4310 |
|
-- Name: locationeventsynonym_primarylocationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4310 |
-- Name: locationeventsynonym_primarylocationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4311 |
4311 |
--
|
4312 |
4312 |
|
4313 |
4313 |
ALTER TABLE locationeventsynonym
|
4314 |
|
ADD CONSTRAINT locationeventsynonym_primarylocationevent_id FOREIGN KEY (primarylocationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4314 |
ADD CONSTRAINT locationeventsynonym_primarylocationevent_id_fkey FOREIGN KEY (primarylocationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4315 |
4315 |
|
4316 |
4316 |
|
4317 |
4317 |
--
|
4318 |
|
-- Name: locationeventsynonym_synonymlocationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4318 |
-- Name: locationeventsynonym_synonymlocationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4319 |
4319 |
--
|
4320 |
4320 |
|
4321 |
4321 |
ALTER TABLE locationeventsynonym
|
4322 |
|
ADD CONSTRAINT locationeventsynonym_synonymlocationevent_id FOREIGN KEY (synonymlocationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4322 |
ADD CONSTRAINT locationeventsynonym_synonymlocationevent_id_fkey FOREIGN KEY (synonymlocationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4323 |
4323 |
|
4324 |
4324 |
|
4325 |
4325 |
--
|
4326 |
|
-- Name: method_covermethod_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4326 |
-- Name: method_covermethod_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4327 |
4327 |
--
|
4328 |
4328 |
|
4329 |
4329 |
ALTER TABLE method
|
4330 |
|
ADD CONSTRAINT method_covermethod_id FOREIGN KEY (covermethod_id) REFERENCES covermethod(covermethod_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4330 |
ADD CONSTRAINT method_covermethod_id_fkey FOREIGN KEY (covermethod_id) REFERENCES covermethod(covermethod_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4331 |
4331 |
|
4332 |
4332 |
|
4333 |
4333 |
--
|
4334 |
|
-- Name: method_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4334 |
-- Name: method_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4335 |
4335 |
--
|
4336 |
4336 |
|
4337 |
4337 |
|
4338 |
4338 |
|
4339 |
4339 |
|
4340 |
4340 |
--
|
4341 |
|
-- Name: method_subplotmethod_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4341 |
-- Name: method_subplotmethod_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4342 |
4342 |
--
|
4343 |
4343 |
|
4344 |
4344 |
ALTER TABLE method
|
4345 |
|
ADD CONSTRAINT method_subplotmethod_id FOREIGN KEY (subplotmethod_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE SET NULL;
|
|
4345 |
ADD CONSTRAINT method_subplotmethod_id_fkey FOREIGN KEY (subplotmethod_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE SET NULL;
|
4346 |
4346 |
|
4347 |
4347 |
|
4348 |
4348 |
--
|
4349 |
|
-- Name: methodtaxonclass_method_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4349 |
-- Name: methodtaxonclass_method_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4350 |
4350 |
--
|
4351 |
4351 |
|
4352 |
4352 |
ALTER TABLE methodtaxonclass
|
4353 |
|
ADD CONSTRAINT methodtaxonclass_method_id FOREIGN KEY (method_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4353 |
ADD CONSTRAINT methodtaxonclass_method_id_fkey FOREIGN KEY (method_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4354 |
4354 |
|
4355 |
4355 |
|
4356 |
4356 |
--
|
4357 |
|
-- Name: methodtaxonclass_plantconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4357 |
-- Name: methodtaxonclass_plantconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4358 |
4358 |
--
|
4359 |
4359 |
|
4360 |
4360 |
ALTER TABLE methodtaxonclass
|
4361 |
|
ADD CONSTRAINT methodtaxonclass_plantconcept_id FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4361 |
ADD CONSTRAINT methodtaxonclass_plantconcept_id_fkey FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4362 |
4362 |
|
4363 |
4363 |
|
4364 |
4364 |
--
|
4365 |
|
-- Name: methodtaxonclass_submethod_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4365 |
-- Name: methodtaxonclass_submethod_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4366 |
4366 |
--
|
4367 |
4367 |
|
4368 |
4368 |
ALTER TABLE methodtaxonclass
|
4369 |
|
ADD CONSTRAINT methodtaxonclass_submethod_id FOREIGN KEY (submethod_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE SET NULL;
|
|
4369 |
ADD CONSTRAINT methodtaxonclass_submethod_id_fkey FOREIGN KEY (submethod_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE SET NULL;
|
4370 |
4370 |
|
4371 |
4371 |
|
4372 |
4372 |
--
|
4373 |
|
-- Name: namedplace_ancestor_ancestor_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4373 |
-- Name: namedplace_ancestor_ancestor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4374 |
4374 |
--
|
4375 |
4375 |
|
4376 |
4376 |
ALTER TABLE namedplace_ancestor
|
4377 |
|
ADD CONSTRAINT namedplace_ancestor_ancestor_id FOREIGN KEY (ancestor_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4377 |
ADD CONSTRAINT namedplace_ancestor_ancestor_id_fkey FOREIGN KEY (ancestor_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4378 |
4378 |
|
4379 |
4379 |
|
4380 |
4380 |
--
|
4381 |
|
-- Name: namedplace_ancestor_namedplace_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4381 |
-- Name: namedplace_ancestor_namedplace_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4382 |
4382 |
--
|
4383 |
4383 |
|
4384 |
4384 |
ALTER TABLE namedplace_ancestor
|
4385 |
|
ADD CONSTRAINT namedplace_ancestor_namedplace_id FOREIGN KEY (namedplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4385 |
ADD CONSTRAINT namedplace_ancestor_namedplace_id_fkey FOREIGN KEY (namedplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4386 |
4386 |
|
4387 |
4387 |
|
4388 |
4388 |
--
|
4389 |
|
-- Name: namedplace_parent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4389 |
-- Name: namedplace_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4390 |
4390 |
--
|
4391 |
4391 |
|
4392 |
4392 |
ALTER TABLE namedplace
|
4393 |
|
ADD CONSTRAINT namedplace_parent_id FOREIGN KEY (parent_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4393 |
ADD CONSTRAINT namedplace_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4394 |
4394 |
|
4395 |
4395 |
|
4396 |
4396 |
--
|
4397 |
|
-- Name: namedplacecorrelation_childplace_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4397 |
-- Name: namedplacecorrelation_childplace_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4398 |
4398 |
--
|
4399 |
4399 |
|
4400 |
4400 |
ALTER TABLE namedplacecorrelation
|
4401 |
|
ADD CONSTRAINT namedplacecorrelation_childplace_id FOREIGN KEY (childplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4401 |
ADD CONSTRAINT namedplacecorrelation_childplace_id_fkey FOREIGN KEY (childplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4402 |
4402 |
|
4403 |
4403 |
|
4404 |
4404 |
--
|
4405 |
|
-- Name: namedplacecorrelation_parentplace_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4405 |
-- Name: namedplacecorrelation_parentplace_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4406 |
4406 |
--
|
4407 |
4407 |
|
4408 |
4408 |
ALTER TABLE namedplacecorrelation
|
4409 |
|
ADD CONSTRAINT namedplacecorrelation_parentplace_id FOREIGN KEY (parentplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4409 |
ADD CONSTRAINT namedplacecorrelation_parentplace_id_fkey FOREIGN KEY (parentplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4410 |
4410 |
|
4411 |
4411 |
|
4412 |
4412 |
--
|
4413 |
|
-- Name: note_notelink_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4413 |
-- Name: note_notelink_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4414 |
4414 |
--
|
4415 |
4415 |
|
4416 |
4416 |
ALTER TABLE note
|
4417 |
|
ADD CONSTRAINT note_notelink_id FOREIGN KEY (notelink_id) REFERENCES notelink(notelink_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4417 |
ADD CONSTRAINT note_notelink_id_fkey FOREIGN KEY (notelink_id) REFERENCES notelink(notelink_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4418 |
4418 |
|
4419 |
4419 |
|
4420 |
4420 |
--
|
4421 |
|
-- Name: note_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4421 |
-- Name: note_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4422 |
4422 |
--
|
4423 |
4423 |
|
4424 |
4424 |
|
4425 |
4425 |
|
4426 |
4426 |
|
4427 |
4427 |
--
|
4428 |
|
-- Name: party_currentname_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4428 |
-- Name: party_currentname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4429 |
4429 |
--
|
4430 |
4430 |
|
4431 |
4431 |
ALTER TABLE party
|
4432 |
|
ADD CONSTRAINT party_currentname_id FOREIGN KEY (currentname_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4432 |
ADD CONSTRAINT party_currentname_id_fkey FOREIGN KEY (currentname_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4433 |
4433 |
|
4434 |
4434 |
|
4435 |
4435 |
--
|
4436 |
|
-- Name: partymember_childparty_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4436 |
-- Name: partymember_childparty_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4437 |
4437 |
--
|
4438 |
4438 |
|
4439 |
4439 |
ALTER TABLE partymember
|
4440 |
|
ADD CONSTRAINT partymember_childparty_id FOREIGN KEY (childparty_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4440 |
ADD CONSTRAINT partymember_childparty_id_fkey FOREIGN KEY (childparty_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4441 |
4441 |
|
4442 |
4442 |
|
4443 |
4443 |
--
|
4444 |
|
-- Name: partymember_parentparty_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4444 |
-- Name: partymember_parentparty_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4445 |
4445 |
--
|
4446 |
4446 |
|
4447 |
4447 |
ALTER TABLE partymember
|
4448 |
|
ADD CONSTRAINT partymember_parentparty_id FOREIGN KEY (parentparty_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4448 |
ADD CONSTRAINT partymember_parentparty_id_fkey FOREIGN KEY (parentparty_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4449 |
4449 |
|
4450 |
4450 |
|
4451 |
4451 |
--
|
4452 |
|
-- Name: plantconcept_plantname_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4452 |
-- Name: plantconcept_plantname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4453 |
4453 |
--
|
4454 |
4454 |
|
4455 |
4455 |
ALTER TABLE plantconcept
|
4456 |
|
ADD CONSTRAINT plantconcept_plantname_id FOREIGN KEY (plantname_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4456 |
ADD CONSTRAINT plantconcept_plantname_id_fkey FOREIGN KEY (plantname_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4457 |
4457 |
|
4458 |
4458 |
|
4459 |
4459 |
--
|
4460 |
|
-- Name: plantcorrelation_plantconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4460 |
-- Name: plantcorrelation_plantconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4461 |
4461 |
--
|
4462 |
4462 |
|
4463 |
4463 |
ALTER TABLE plantcorrelation
|
4464 |
|
ADD CONSTRAINT plantcorrelation_plantconcept_id FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4464 |
ADD CONSTRAINT plantcorrelation_plantconcept_id_fkey FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4465 |
4465 |
|
4466 |
4466 |
|
4467 |
4467 |
--
|
4468 |
|
-- Name: plantcorrelation_plantstatus_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4468 |
-- Name: plantcorrelation_plantstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4469 |
4469 |
--
|
4470 |
4470 |
|
4471 |
4471 |
ALTER TABLE plantcorrelation
|
4472 |
|
ADD CONSTRAINT plantcorrelation_plantstatus_id FOREIGN KEY (plantstatus_id) REFERENCES plantstatus(plantstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4472 |
ADD CONSTRAINT plantcorrelation_plantstatus_id_fkey FOREIGN KEY (plantstatus_id) REFERENCES plantstatus(plantstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4473 |
4473 |
|
4474 |
4474 |
|
4475 |
4475 |
--
|
4476 |
|
-- Name: plantlineage_childplantstatus_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4476 |
-- Name: plantlineage_childplantstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4477 |
4477 |
--
|
4478 |
4478 |
|
4479 |
4479 |
ALTER TABLE plantlineage
|
4480 |
|
ADD CONSTRAINT plantlineage_childplantstatus_id FOREIGN KEY (childplantstatus_id) REFERENCES plantstatus(plantstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4480 |
ADD CONSTRAINT plantlineage_childplantstatus_id_fkey FOREIGN KEY (childplantstatus_id) REFERENCES plantstatus(plantstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4481 |
4481 |
|
4482 |
4482 |
|
4483 |
4483 |
--
|
4484 |
|
-- Name: plantlineage_parentplantstatus_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4484 |
-- Name: plantlineage_parentplantstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4485 |
4485 |
--
|
4486 |
4486 |
|
4487 |
4487 |
ALTER TABLE plantlineage
|
4488 |
|
ADD CONSTRAINT plantlineage_parentplantstatus_id FOREIGN KEY (parentplantstatus_id) REFERENCES plantstatus(plantstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4488 |
ADD CONSTRAINT plantlineage_parentplantstatus_id_fkey FOREIGN KEY (parentplantstatus_id) REFERENCES plantstatus(plantstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4489 |
4489 |
|
4490 |
4490 |
|
4491 |
4491 |
--
|
4492 |
|
-- Name: plantname_ancestor_ancestor_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4492 |
-- Name: plantname_ancestor_ancestor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4493 |
4493 |
--
|
4494 |
4494 |
|
4495 |
4495 |
ALTER TABLE plantname_ancestor
|
4496 |
|
ADD CONSTRAINT plantname_ancestor_ancestor_id FOREIGN KEY (ancestor_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4496 |
ADD CONSTRAINT plantname_ancestor_ancestor_id_fkey FOREIGN KEY (ancestor_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4497 |
4497 |
|
4498 |
4498 |
|
4499 |
4499 |
--
|
4500 |
|
-- Name: plantname_ancestor_plantname_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4500 |
-- Name: plantname_ancestor_plantname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4501 |
4501 |
--
|
4502 |
4502 |
|
4503 |
4503 |
ALTER TABLE plantname_ancestor
|
4504 |
|
ADD CONSTRAINT plantname_ancestor_plantname_id FOREIGN KEY (plantname_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4504 |
ADD CONSTRAINT plantname_ancestor_plantname_id_fkey FOREIGN KEY (plantname_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4505 |
4505 |
|
4506 |
4506 |
|
4507 |
4507 |
--
|
4508 |
|
-- Name: plantname_parent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4508 |
-- Name: plantname_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4509 |
4509 |
--
|
4510 |
4510 |
|
4511 |
4511 |
ALTER TABLE plantname
|
4512 |
|
ADD CONSTRAINT plantname_parent_id FOREIGN KEY (parent_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4512 |
ADD CONSTRAINT plantname_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4513 |
4513 |
|
4514 |
4514 |
|
4515 |
4515 |
--
|
4516 |
|
-- Name: plantname_scope_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4516 |
-- Name: plantname_scope_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4517 |
4517 |
--
|
4518 |
4518 |
|
4519 |
4519 |
ALTER TABLE plantname
|
4520 |
|
ADD CONSTRAINT plantname_scope_id FOREIGN KEY (scope_id) REFERENCES plantnamescope(plantnamescope_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4520 |
ADD CONSTRAINT plantname_scope_id_fkey FOREIGN KEY (scope_id) REFERENCES plantnamescope(plantnamescope_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4521 |
4521 |
|
4522 |
4522 |
|
4523 |
4523 |
--
|
4524 |
|
-- Name: plantnamescope_locationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4524 |
-- Name: plantnamescope_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4525 |
4525 |
--
|
4526 |
4526 |
|
4527 |
4527 |
ALTER TABLE plantnamescope
|
4528 |
|
ADD CONSTRAINT plantnamescope_locationevent_id FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4528 |
ADD CONSTRAINT plantnamescope_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4529 |
4529 |
|
4530 |
4530 |
|
4531 |
4531 |
--
|
4532 |
|
-- Name: plantnamescope_namedplace_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4532 |
-- Name: plantnamescope_namedplace_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4533 |
4533 |
--
|
4534 |
4534 |
|
4535 |
4535 |
ALTER TABLE plantnamescope
|
4536 |
|
ADD CONSTRAINT plantnamescope_namedplace_id FOREIGN KEY (namedplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4536 |
ADD CONSTRAINT plantnamescope_namedplace_id_fkey FOREIGN KEY (namedplace_id) REFERENCES namedplace(namedplace_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4537 |
4537 |
|
4538 |
4538 |
|
4539 |
4539 |
--
|
4540 |
|
-- Name: plantnamescope_project_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4540 |
-- Name: plantnamescope_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4541 |
4541 |
--
|
4542 |
4542 |
|
4543 |
4543 |
ALTER TABLE plantnamescope
|
4544 |
|
ADD CONSTRAINT plantnamescope_project_id FOREIGN KEY (project_id) REFERENCES project(project_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4544 |
ADD CONSTRAINT plantnamescope_project_id_fkey FOREIGN KEY (project_id) REFERENCES project(project_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4545 |
4545 |
|
4546 |
4546 |
|
4547 |
4547 |
--
|
4548 |
|
-- Name: plantobservation_aggregateoccurrence_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4548 |
-- Name: plantobservation_aggregateoccurrence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4549 |
4549 |
--
|
4550 |
4550 |
|
4551 |
4551 |
ALTER TABLE plantobservation
|
4552 |
|
ADD CONSTRAINT plantobservation_aggregateoccurrence_id FOREIGN KEY (aggregateoccurrence_id) REFERENCES aggregateoccurrence(aggregateoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4552 |
ADD CONSTRAINT plantobservation_aggregateoccurrence_id_fkey FOREIGN KEY (aggregateoccurrence_id) REFERENCES aggregateoccurrence(aggregateoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4553 |
4553 |
|
4554 |
4554 |
|
4555 |
4555 |
--
|
4556 |
|
-- Name: plantobservation_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4556 |
-- Name: plantobservation_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4557 |
4557 |
--
|
4558 |
4558 |
|
4559 |
4559 |
|
4560 |
4560 |
|
4561 |
4561 |
|
4562 |
4562 |
--
|
4563 |
|
-- Name: plantobservation_plant_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4563 |
-- Name: plantobservation_plant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4564 |
4564 |
--
|
4565 |
4565 |
|
4566 |
4566 |
ALTER TABLE plantobservation
|
4567 |
|
ADD CONSTRAINT plantobservation_plant_id FOREIGN KEY (plant_id) REFERENCES plant(plant_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4567 |
ADD CONSTRAINT plantobservation_plant_id_fkey FOREIGN KEY (plant_id) REFERENCES plant(plant_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4568 |
4568 |
|
4569 |
4569 |
|
4570 |
4570 |
--
|
4571 |
|
-- Name: plantstatus_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4571 |
-- Name: plantstatus_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4572 |
4572 |
--
|
4573 |
4573 |
|
4574 |
4574 |
|
4575 |
4575 |
|
4576 |
4576 |
|
4577 |
4577 |
--
|
4578 |
|
-- Name: plantstatus_plantconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4578 |
-- Name: plantstatus_plantconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4579 |
4579 |
--
|
4580 |
4580 |
|
4581 |
4581 |
ALTER TABLE plantstatus
|
4582 |
|
ADD CONSTRAINT plantstatus_plantconcept_id FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4582 |
ADD CONSTRAINT plantstatus_plantconcept_id_fkey FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4583 |
4583 |
|
4584 |
4584 |
|
4585 |
4585 |
--
|
4586 |
|
-- Name: plantstatus_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4586 |
-- Name: plantstatus_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4587 |
4587 |
--
|
4588 |
4588 |
|
4589 |
4589 |
|
4590 |
4590 |
|
4591 |
4591 |
|
4592 |
4592 |
--
|
4593 |
|
-- Name: plantusage_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4593 |
-- Name: plantusage_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4594 |
4594 |
--
|
4595 |
4595 |
|
4596 |
4596 |
|
4597 |
4597 |
|
4598 |
4598 |
|
4599 |
4599 |
--
|
4600 |
|
-- Name: plantusage_plantconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4600 |
-- Name: plantusage_plantconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4601 |
4601 |
--
|
4602 |
4602 |
|
4603 |
4603 |
ALTER TABLE plantusage
|
4604 |
|
ADD CONSTRAINT plantusage_plantconcept_id FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4604 |
ADD CONSTRAINT plantusage_plantconcept_id_fkey FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4605 |
4605 |
|
4606 |
4606 |
|
4607 |
4607 |
--
|
4608 |
|
-- Name: plantusage_plantname_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4608 |
-- Name: plantusage_plantname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4609 |
4609 |
--
|
4610 |
4610 |
|
4611 |
4611 |
ALTER TABLE plantusage
|
4612 |
|
ADD CONSTRAINT plantusage_plantname_id FOREIGN KEY (plantname_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4612 |
ADD CONSTRAINT plantusage_plantname_id_fkey FOREIGN KEY (plantname_id) REFERENCES plantname(plantname_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4613 |
4613 |
|
4614 |
4614 |
|
4615 |
4615 |
--
|
4616 |
|
-- Name: plantusage_plantstatus_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4616 |
-- Name: plantusage_plantstatus_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4617 |
4617 |
--
|
4618 |
4618 |
|
4619 |
4619 |
ALTER TABLE plantusage
|
4620 |
|
ADD CONSTRAINT plantusage_plantstatus_id FOREIGN KEY (plantstatus_id) REFERENCES plantstatus(plantstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4620 |
ADD CONSTRAINT plantusage_plantstatus_id_fkey FOREIGN KEY (plantstatus_id) REFERENCES plantstatus(plantstatus_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4621 |
4621 |
|
4622 |
4622 |
|
4623 |
4623 |
--
|
4624 |
|
-- Name: project_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4624 |
-- Name: project_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4625 |
4625 |
--
|
4626 |
4626 |
|
4627 |
4627 |
|
4628 |
4628 |
|
4629 |
4629 |
|
4630 |
4630 |
--
|
4631 |
|
-- Name: projectcontributor_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4631 |
-- Name: projectcontributor_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4632 |
4632 |
--
|
4633 |
4633 |
|
4634 |
4634 |
|
4635 |
4635 |
|
4636 |
4636 |
|
4637 |
4637 |
--
|
4638 |
|
-- Name: projectcontributor_project_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4638 |
-- Name: projectcontributor_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4639 |
4639 |
--
|
4640 |
4640 |
|
4641 |
4641 |
ALTER TABLE projectcontributor
|
4642 |
|
ADD CONSTRAINT projectcontributor_project_id FOREIGN KEY (project_id) REFERENCES project(project_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4642 |
ADD CONSTRAINT projectcontributor_project_id_fkey FOREIGN KEY (project_id) REFERENCES project(project_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4643 |
4643 |
|
4644 |
4644 |
|
4645 |
4645 |
--
|
4646 |
|
-- Name: reference_referencejournal_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4646 |
-- Name: reference_referencejournal_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4647 |
4647 |
--
|
4648 |
4648 |
|
4649 |
4649 |
ALTER TABLE reference
|
4650 |
|
ADD CONSTRAINT reference_referencejournal_id FOREIGN KEY (referencejournal_id) REFERENCES referencejournal(referencejournal_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4650 |
ADD CONSTRAINT reference_referencejournal_id_fkey FOREIGN KEY (referencejournal_id) REFERENCES referencejournal(referencejournal_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4651 |
4651 |
|
4652 |
4652 |
|
4653 |
4653 |
--
|
4654 |
|
-- Name: referencealtident_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4654 |
-- Name: referencealtident_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4655 |
4655 |
--
|
4656 |
4656 |
|
4657 |
4657 |
ALTER TABLE referencealtident
|
4658 |
|
ADD CONSTRAINT referencealtident_reference_id FOREIGN KEY (reference_id) REFERENCES reference(reference_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4658 |
ADD CONSTRAINT referencealtident_reference_id_fkey FOREIGN KEY (reference_id) REFERENCES reference(reference_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4659 |
4659 |
|
4660 |
4660 |
|
4661 |
4661 |
--
|
4662 |
|
-- Name: referencecontributor_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4662 |
-- Name: referencecontributor_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4663 |
4663 |
--
|
4664 |
4664 |
|
4665 |
4665 |
ALTER TABLE referencecontributor
|
4666 |
|
ADD CONSTRAINT referencecontributor_reference_id FOREIGN KEY (reference_id) REFERENCES reference(reference_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4666 |
ADD CONSTRAINT referencecontributor_reference_id_fkey FOREIGN KEY (reference_id) REFERENCES reference(reference_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4667 |
4667 |
|
4668 |
4668 |
|
4669 |
4669 |
--
|
4670 |
|
-- Name: referencecontributor_referenceparty_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4670 |
-- Name: referencecontributor_referenceparty_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4671 |
4671 |
--
|
4672 |
4672 |
|
4673 |
4673 |
ALTER TABLE referencecontributor
|
4674 |
|
ADD CONSTRAINT referencecontributor_referenceparty_id FOREIGN KEY (referenceparty_id) REFERENCES referenceparty(referenceparty_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4674 |
ADD CONSTRAINT referencecontributor_referenceparty_id_fkey FOREIGN KEY (referenceparty_id) REFERENCES referenceparty(referenceparty_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4675 |
4675 |
|
4676 |
4676 |
|
4677 |
4677 |
--
|
4678 |
|
-- Name: referenceparty_currentparty_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4678 |
-- Name: referenceparty_currentparty_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4679 |
4679 |
--
|
4680 |
4680 |
|
4681 |
4681 |
ALTER TABLE referenceparty
|
4682 |
|
ADD CONSTRAINT referenceparty_currentparty_id FOREIGN KEY (currentparty_id) REFERENCES referenceparty(referenceparty_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4682 |
ADD CONSTRAINT referenceparty_currentparty_id_fkey FOREIGN KEY (currentparty_id) REFERENCES referenceparty(referenceparty_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4683 |
4683 |
|
4684 |
4684 |
|
4685 |
4685 |
--
|
4686 |
|
-- Name: revision_previousrevision_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4686 |
-- Name: revision_previousrevision_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4687 |
4687 |
--
|
4688 |
4688 |
|
4689 |
4689 |
ALTER TABLE revision
|
4690 |
|
ADD CONSTRAINT revision_previousrevision_id FOREIGN KEY (previousrevision_id) REFERENCES revision(revision_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4690 |
ADD CONSTRAINT revision_previousrevision_id_fkey FOREIGN KEY (previousrevision_id) REFERENCES revision(revision_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4691 |
4691 |
|
4692 |
4692 |
|
4693 |
4693 |
--
|
4694 |
|
-- Name: soilobs_locationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4694 |
-- Name: soilobs_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4695 |
4695 |
--
|
4696 |
4696 |
|
4697 |
4697 |
ALTER TABLE soilobs
|
4698 |
|
ADD CONSTRAINT soilobs_locationevent_id FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4698 |
ADD CONSTRAINT soilobs_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4699 |
4699 |
|
4700 |
4700 |
|
4701 |
4701 |
--
|
4702 |
|
-- Name: soiltaxon_soilparent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4702 |
-- Name: soiltaxon_soilparent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4703 |
4703 |
--
|
4704 |
4704 |
|
4705 |
4705 |
ALTER TABLE soiltaxon
|
4706 |
|
ADD CONSTRAINT soiltaxon_soilparent_id FOREIGN KEY (soilparent_id) REFERENCES soiltaxon(soiltaxon_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4706 |
ADD CONSTRAINT soiltaxon_soilparent_id_fkey FOREIGN KEY (soilparent_id) REFERENCES soiltaxon(soiltaxon_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4707 |
4707 |
|
4708 |
4708 |
|
4709 |
4709 |
--
|
4710 |
|
-- Name: specimenreplicate_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4710 |
-- Name: specimenreplicate_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4711 |
4711 |
--
|
4712 |
4712 |
|
4713 |
4713 |
|
4714 |
4714 |
|
4715 |
4715 |
|
4716 |
4716 |
--
|
4717 |
|
-- Name: specimenreplicate_institution_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4717 |
-- Name: specimenreplicate_institution_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4718 |
4718 |
--
|
4719 |
4719 |
|
4720 |
4720 |
|
4721 |
4721 |
|
4722 |
4722 |
|
4723 |
4723 |
--
|
4724 |
|
-- Name: specimenreplicate_locationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4724 |
-- Name: specimenreplicate_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4725 |
4725 |
--
|
4726 |
4726 |
|
4727 |
4727 |
ALTER TABLE specimenreplicate
|
4728 |
|
ADD CONSTRAINT specimenreplicate_locationevent_id FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4728 |
ADD CONSTRAINT specimenreplicate_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4729 |
4729 |
|
4730 |
4730 |
|
4731 |
4731 |
--
|
4732 |
|
-- Name: specimenreplicate_plantobservation_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4732 |
-- Name: specimenreplicate_plantobservation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4733 |
4733 |
--
|
4734 |
4734 |
|
4735 |
4735 |
ALTER TABLE specimenreplicate
|
4736 |
|
ADD CONSTRAINT specimenreplicate_plantobservation_id FOREIGN KEY (plantobservation_id) REFERENCES plantobservation(plantobservation_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4736 |
ADD CONSTRAINT specimenreplicate_plantobservation_id_fkey FOREIGN KEY (plantobservation_id) REFERENCES plantobservation(plantobservation_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4737 |
4737 |
|
4738 |
4738 |
|
4739 |
4739 |
--
|
4740 |
|
-- Name: specimenreplicate_specimen_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4740 |
-- Name: specimenreplicate_specimen_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4741 |
4741 |
--
|
4742 |
4742 |
|
4743 |
4743 |
ALTER TABLE specimenreplicate
|
4744 |
|
ADD CONSTRAINT specimenreplicate_specimen_id FOREIGN KEY (specimen_id) REFERENCES specimen(specimen_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4744 |
ADD CONSTRAINT specimenreplicate_specimen_id_fkey FOREIGN KEY (specimen_id) REFERENCES specimen(specimen_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4745 |
4745 |
|
4746 |
4746 |
|
4747 |
4747 |
--
|
4748 |
|
-- Name: stemobservation_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4748 |
-- Name: stemobservation_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4749 |
4749 |
--
|
4750 |
4750 |
|
4751 |
4751 |
|
4752 |
4752 |
|
4753 |
4753 |
|
4754 |
4754 |
--
|
4755 |
|
-- Name: stemobservation_plantobservation_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4755 |
-- Name: stemobservation_plantobservation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4756 |
4756 |
--
|
4757 |
4757 |
|
4758 |
4758 |
ALTER TABLE stemobservation
|
4759 |
|
ADD CONSTRAINT stemobservation_plantobservation_id FOREIGN KEY (plantobservation_id) REFERENCES plantobservation(plantobservation_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4759 |
ADD CONSTRAINT stemobservation_plantobservation_id_fkey FOREIGN KEY (plantobservation_id) REFERENCES plantobservation(plantobservation_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4760 |
4760 |
|
4761 |
4761 |
|
4762 |
4762 |
--
|
4763 |
|
-- Name: stemtag_stemobservation_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4763 |
-- Name: stemtag_stemobservation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4764 |
4764 |
--
|
4765 |
4765 |
|
4766 |
4766 |
ALTER TABLE stemtag
|
4767 |
|
ADD CONSTRAINT stemtag_stemobservation_id FOREIGN KEY (stemobservation_id) REFERENCES stemobservation(stemobservation_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4767 |
ADD CONSTRAINT stemtag_stemobservation_id_fkey FOREIGN KEY (stemobservation_id) REFERENCES stemobservation(stemobservation_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4768 |
4768 |
|
4769 |
4769 |
|
4770 |
4770 |
--
|
4771 |
|
-- Name: stratum_locationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4771 |
-- Name: stratum_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4772 |
4772 |
--
|
4773 |
4773 |
|
4774 |
4774 |
ALTER TABLE stratum
|
4775 |
|
ADD CONSTRAINT stratum_locationevent_id FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4775 |
ADD CONSTRAINT stratum_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4776 |
4776 |
|
4777 |
4777 |
|
4778 |
4778 |
--
|
4779 |
|
-- Name: stratum_method_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4779 |
-- Name: stratum_method_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4780 |
4780 |
--
|
4781 |
4781 |
|
4782 |
4782 |
ALTER TABLE stratum
|
4783 |
|
ADD CONSTRAINT stratum_method_id FOREIGN KEY (method_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4783 |
ADD CONSTRAINT stratum_method_id_fkey FOREIGN KEY (method_id) REFERENCES method(method_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4784 |
4784 |
|
4785 |
4785 |
|
4786 |
4786 |
--
|
4787 |
|
-- Name: taxonalt_plantconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4787 |
-- Name: taxonalt_plantconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4788 |
4788 |
--
|
4789 |
4789 |
|
4790 |
4790 |
ALTER TABLE taxonalt
|
4791 |
|
ADD CONSTRAINT taxonalt_plantconcept_id FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4791 |
ADD CONSTRAINT taxonalt_plantconcept_id_fkey FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4792 |
4792 |
|
4793 |
4793 |
|
4794 |
4794 |
--
|
4795 |
|
-- Name: taxonalt_taxondetermination_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4795 |
-- Name: taxonalt_taxondetermination_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4796 |
4796 |
--
|
4797 |
4797 |
|
4798 |
4798 |
ALTER TABLE taxonalt
|
4799 |
|
ADD CONSTRAINT taxonalt_taxondetermination_id FOREIGN KEY (taxondetermination_id) REFERENCES taxondetermination(taxondetermination_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4799 |
ADD CONSTRAINT taxonalt_taxondetermination_id_fkey FOREIGN KEY (taxondetermination_id) REFERENCES taxondetermination(taxondetermination_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4800 |
4800 |
|
4801 |
4801 |
|
4802 |
4802 |
--
|
4803 |
|
-- Name: taxondetermination_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4803 |
-- Name: taxondetermination_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4804 |
4804 |
--
|
4805 |
4805 |
|
4806 |
4806 |
|
4807 |
4807 |
|
4808 |
4808 |
|
4809 |
4809 |
--
|
4810 |
|
-- Name: taxondetermination_plantconcept_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4810 |
-- Name: taxondetermination_plantconcept_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4811 |
4811 |
--
|
4812 |
4812 |
|
4813 |
4813 |
ALTER TABLE taxondetermination
|
4814 |
|
ADD CONSTRAINT taxondetermination_plantconcept_id FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4814 |
ADD CONSTRAINT taxondetermination_plantconcept_id_fkey FOREIGN KEY (plantconcept_id) REFERENCES plantconcept(plantconcept_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4815 |
4815 |
|
4816 |
4816 |
|
4817 |
4817 |
--
|
4818 |
|
-- Name: taxondetermination_reference_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4818 |
-- Name: taxondetermination_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4819 |
4819 |
--
|
4820 |
4820 |
|
4821 |
4821 |
|
4822 |
4822 |
|
4823 |
4823 |
|
4824 |
4824 |
--
|
4825 |
|
-- Name: taxonoccurrence_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4825 |
-- Name: taxonoccurrence_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4826 |
4826 |
--
|
4827 |
4827 |
|
4828 |
4828 |
|
4829 |
4829 |
|
4830 |
4830 |
|
4831 |
4831 |
--
|
4832 |
|
-- Name: taxonoccurrence_locationevent_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4832 |
-- Name: taxonoccurrence_locationevent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4833 |
4833 |
--
|
4834 |
4834 |
|
4835 |
4835 |
ALTER TABLE taxonoccurrence
|
4836 |
|
ADD CONSTRAINT taxonoccurrence_locationevent_id FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4836 |
ADD CONSTRAINT taxonoccurrence_locationevent_id_fkey FOREIGN KEY (locationevent_id) REFERENCES locationevent(locationevent_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4837 |
4837 |
|
4838 |
4838 |
|
4839 |
4839 |
--
|
4840 |
|
-- Name: telephone_party_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4840 |
-- Name: telephone_party_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4841 |
4841 |
--
|
4842 |
4842 |
|
4843 |
4843 |
ALTER TABLE telephone
|
4844 |
|
ADD CONSTRAINT telephone_party_id FOREIGN KEY (party_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4844 |
ADD CONSTRAINT telephone_party_id_fkey FOREIGN KEY (party_id) REFERENCES party(party_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4845 |
4845 |
|
4846 |
4846 |
|
4847 |
4847 |
--
|
... | ... | |
4853 |
4853 |
|
4854 |
4854 |
|
4855 |
4855 |
--
|
4856 |
|
-- Name: voucher_specimenreplicate_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4856 |
-- Name: voucher_specimenreplicate_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4857 |
4857 |
--
|
4858 |
4858 |
|
4859 |
4859 |
ALTER TABLE voucher
|
4860 |
|
ADD CONSTRAINT voucher_specimenreplicate_id FOREIGN KEY (specimenreplicate_id) REFERENCES specimenreplicate(taxonoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4860 |
ADD CONSTRAINT voucher_specimenreplicate_id_fkey FOREIGN KEY (specimenreplicate_id) REFERENCES specimenreplicate(taxonoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4861 |
4861 |
|
4862 |
4862 |
|
4863 |
4863 |
--
|
4864 |
|
-- Name: voucher_taxonoccurrence_id; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
4864 |
-- Name: voucher_taxonoccurrence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
4865 |
4865 |
--
|
4866 |
4866 |
|
4867 |
4867 |
ALTER TABLE voucher
|
4868 |
|
ADD CONSTRAINT voucher_taxonoccurrence_id FOREIGN KEY (taxonoccurrence_id) REFERENCES taxonoccurrence(taxonoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
|
4868 |
ADD CONSTRAINT voucher_taxonoccurrence_id_fkey FOREIGN KEY (taxonoccurrence_id) REFERENCES taxonoccurrence(taxonoccurrence_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
4869 |
4869 |
|
4870 |
4870 |
|
4871 |
4871 |
--
|
schemas/vegbien.sql: Reset foreign key constraint names to autogenerated defaults for consistency