 
 
 --
+-- Name: fk_rails_dd3ffca9b8; Type: FK CONSTRAINT; Schema: public; Owner: -
+--
+
+ALTER TABLE ONLY practices
+    ADD CONSTRAINT fk_rails_dd3ffca9b8 FOREIGN KEY (address_id) REFERENCES addresses(id);
+
+
+--
+-- Name: fk_rails_de0d26811a; Type: FK CONSTRAINT; Schema: public; Owner: -
+--
+
+ALTER TABLE ONLY pd_regime_bags
+    ADD CONSTRAINT fk_rails_de0d26811a FOREIGN KEY (bag_type_id) REFERENCES bag_types(id);
+
+
+--
+-- Name: fk_rails_e1899a68af; Type: FK CONSTRAINT; Schema: public; Owner: -
+--
+
+ALTER TABLE ONLY events
+    ADD CONSTRAINT fk_rails_e1899a68af FOREIGN KEY (patient_id) REFERENCES patients(id);
+
+
+--
+-- Name: fk_rails_e62bb4757f; Type: FK CONSTRAINT; Schema: public; Owner: -
+--
+
+ALTER TABLE ONLY modalities
+    ADD CONSTRAINT fk_rails_e62bb4757f FOREIGN KEY (patient_id) REFERENCES patients(id);
+
+
+--
 -- Name: fk_rails_e6d1b83a79; Type: FK CONSTRAINT; Schema: public; Owner: -
 --
 



--
-- Name: fk_rails_8d07edb903; Type: FK CONSTRAINT; Schema: public; Owner: -
--




--
-- Name: fk_rails_19e44d1a17; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY exit_site_infections
    ADD CONSTRAINT fk_rails_19e44d1a17 FOREIGN KEY (patient_id) REFERENCES patients(id);


--
-- Name: fk_rails_1b2a92c9db; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY medications
    ADD CONSTRAINT fk_rails_1b2a92c9db FOREIGN KEY (medication_route_id) REFERENCES medication_routes(id);


--
-- Name: fk_rails_3bafe36805; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY drug_types_drugs
    ADD CONSTRAINT fk_rails_3bafe36805 FOREIGN KEY (drug_type_id) REFERENCES drug_types(id);


--
-- Name: fk_rails_479ad00a52; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY problems
    ADD CONSTRAINT fk_rails_479ad00a52 FOREIGN KEY (patient_id) REFERENCES patients(id);


--
-- Name: fk_rails_5b0a83b134; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY peritonitis_episodes
    ADD CONSTRAINT fk_rails_5b0a83b134 FOREIGN KEY (patient_id) REFERENCES patients(id);


--
-- Name: fk_rails_5b44e541da; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY patients
    ADD CONSTRAINT fk_rails_5b44e541da FOREIGN KEY (ethnicity_id) REFERENCES ethnicities(id);


--
-- Name: fk_rails_6de0aa89c3; Type: FK CONSTRAINT; Schema: public; Owner: -
--

