 
 
 --
+-- Name: intervention_proposals fk_rails_655e10510a; Type: FK CONSTRAINT; Schema: public; Owner: -
+--
+
+ALTER TABLE ONLY intervention_proposals
+    ADD CONSTRAINT fk_rails_655e10510a FOREIGN KEY (technical_itinerary_intervention_template_id) REFERENCES technical_itinerary_intervention_templates(id);
+
+
+--
+-- Name: intervention_template_product_parameters fk_rails_65829c9376; Type: FK CONSTRAINT; Schema: public; Owner: -
+--
+
+ALTER TABLE ONLY intervention_template_product_parameters
+    ADD CONSTRAINT fk_rails_65829c9376 FOREIGN KEY (product_nature_variant_id) REFERENCES product_nature_variants(id);
+
+
+--
 -- Name: payslip_natures fk_rails_6835dfa420; Type: FK CONSTRAINT; Schema: public; Owner: -
 --
 



--
-- Name: dashboards; Type: TABLE; Schema: public; Owner: -
--




--
-- Name: index_intervention_proposal_parameters_on_product_id; Type: INDEX; Schema: public; Owner: -
--

CREATE INDEX index_intervention_proposal_parameters_on_product_id ON intervention_proposal_parameters USING btree (product_id);


--
-- Name: index_intervention_proposals_on_activity_production_id; Type: INDEX; Schema: public; Owner: -
--

CREATE INDEX index_intervention_proposals_on_activity_production_id ON intervention_proposals USING btree (activity_production_id);


--
-- Name: index_intervention_template_activities_on_activity_id; Type: INDEX; Schema: public; Owner: -
--

CREATE INDEX index_intervention_template_activities_on_activity_id ON intervention_template_activities USING btree (activity_id);


--
-- Name: index_intervention_template_product_parameters_on_activity_id; Type: INDEX; Schema: public; Owner: -
--

CREATE INDEX index_intervention_template_product_parameters_on_activity_id ON intervention_template_product_parameters USING btree (activity_id);


--
-- Name: index_intervention_templates_on_campaign_id; Type: INDEX; Schema: public; Owner: -
--

CREATE INDEX index_intervention_templates_on_campaign_id ON intervention_templates USING btree (campaign_id);


--
-- Name: index_intervention_working_periods_on_created_at; Type: INDEX; Schema: public; Owner: -
--

