 
 
 --
--- Name: fk_3v03tedcm5hbjtcxo1ri6ecbr; Type: FK CONSTRAINT; Schema: public; Owner: postgres
+-- Name: fk_timealert_cluster_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
 --
 
 ALTER TABLE ONLY timealert
-    ADD CONSTRAINT fk_3v03tedcm5hbjtcxo1ri6ecbr FOREIGN KEY (cluster_id) REFERENCES cluster(id);
-
-
---
--- Name: fk_c22ixbmoqm2xeoqisctiwtdhb; Type: FK CONSTRAINT; Schema: public; Owner: postgres
+    ADD CONSTRAINT fk_timealert_cluster_id FOREIGN KEY (cluster_id) REFERENCES cluster(id);
+
+
+--
+-- Name: fk_timealert_scalingpolicy_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
 --
 
 ALTER TABLE ONLY timealert
-    ADD CONSTRAINT fk_c22ixbmoqm2xeoqisctiwtdhb FOREIGN KEY (scalingpolicy_id) REFERENCES scalingpolicy(id);
-
-
---
--- Name: fk_fbrkapmhprkr0lcscre4ym2ap; Type: FK CONSTRAINT; Schema: public; Owner: postgres
+    ADD CONSTRAINT fk_timealert_scalingpolicy_id FOREIGN KEY (scalingpolicy_id) REFERENCES scalingpolicy(id);
+
+
+--
+-- Name: fk_metricalert_scalingpolicy_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
 --
 
 ALTER TABLE ONLY metricalert
-    ADD CONSTRAINT fk_fbrkapmhprkr0lcscre4ym2ap FOREIGN KEY (scalingpolicy_id) REFERENCES scalingpolicy(id);
-
-
---
--- Name: fk_ng61bjx78yaahvwkhdco7yxgi; Type: FK CONSTRAINT; Schema: public; Owner: postgres
+    ADD CONSTRAINT fk_metricalert_scalingpolicy_id FOREIGN KEY (scalingpolicy_id) REFERENCES scalingpolicy(id);
+
+
+--
+-- Name: fk_cluster_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
 --
 
 ALTER TABLE ONLY cluster
-    ADD CONSTRAINT fk_ng61bjx78yaahvwkhdco7yxgi FOREIGN KEY (user_id) REFERENCES periscope_user(id);
-
-
---
--- Name: fk_sbni0w74jud722u3m5p3djspl; Type: FK CONSTRAINT; Schema: public; Owner: postgres
+    ADD CONSTRAINT fk_cluster_user_id FOREIGN KEY (user_id) REFERENCES periscope_user(id);
+
+
+--
+-- Name: fk_history_propertiesl_history_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
 --
 
 ALTER TABLE ONLY history_properties
-    ADD CONSTRAINT fk_sbni0w74jud722u3m5p3djspl FOREIGN KEY (history_id) REFERENCES history(id);
-
-
---
--- Name: fk_t36ceslxpwdtcag3y1lq7wf6b; Type: FK CONSTRAINT; Schema: public; Owner: postgres
+    ADD CONSTRAINT fk_history_propertiesl_history_id FOREIGN KEY (history_id) REFERENCES history(id);
+
+
+--
+-- Name: fk_metricalert_cluster_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
 --
 
 ALTER TABLE ONLY metricalert
-    ADD CONSTRAINT fk_t36ceslxpwdtcag3y1lq7wf6b FOREIGN KEY (cluster_id) REFERENCES cluster(id);
-
-
---
--- Name: fk_tq6aoyelc0pf02o5vy6d5qi5p; Type: FK CONSTRAINT; Schema: public; Owner: postgres
+    ADD CONSTRAINT fk_metricalert_cluster_id FOREIGN KEY (cluster_id) REFERENCES cluster(id);
+
+
+--
+-- Name: fk_cluster_ambari_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
 --
 
 ALTER TABLE ONLY cluster
-    ADD CONSTRAINT fk_tq6aoyelc0pf02o5vy6d5qi5p FOREIGN KEY (ambari_id) REFERENCES ambari(id);
-
-
---
--- Name: public; Type: ACL; Schema: -; Owner: postgres
---
-
-REVOKE ALL ON SCHEMA public FROM PUBLIC;
-REVOKE ALL ON SCHEMA public FROM postgres;
-GRANT ALL ON SCHEMA public TO postgres;
-GRANT ALL ON SCHEMA public TO PUBLIC;
-
-
---
--- PostgreSQL database dump complete
---
+    ADD CONSTRAINT fk_cluster_ambari_id FOREIGN KEY (ambari_id) REFERENCES ambari(id);
+
+
+
 
 -- //@UNDO
 -- SQL to undo the change goes here.

    user_id character varying(255)
);


ALTER TABLE cluster OWNER TO postgres;

--
-- Name: history; Type: TABLE; Schema: public; Owner: postgres; Tablespace:

);



--
-- Name: sequence_table; Type: SEQUENCE; Schema: public; Owner: postgres
