ALTER TABLE List_of_operation
	DROP CONSTRAINT R_15;
ALTER TABLE List_of_operation
	ADD (CONSTRAINT  R_15 FOREIGN KEY (id_dep) REFERENCES Departament(id_dep));

ALTER TABLE Match_equip_op
	DROP CONSTRAINT R_8;
ALTER TABLE Match_equip_op
	ADD (CONSTRAINT  R_8 FOREIGN KEY (id_listop) REFERENCES List_of_operation(id_listop));

ALTER TABLE Match_equip_op
	DROP CONSTRAINT R_9;
ALTER TABLE Match_equip_op
	ADD (CONSTRAINT  R_9 FOREIGN KEY (id_equipment) REFERENCES Equipment(id_equipment));

ALTER TABLE Operations
	DROP CONSTRAINT R_5;
ALTER TABLE Operations
	ADD (CONSTRAINT  R_5 FOREIGN KEY (id_product) REFERENCES Product(id_product));

ALTER TABLE Operations
	DROP CONSTRAINT R_6;
ALTER TABLE Operations
	ADD (CONSTRAINT  R_6 FOREIGN KEY (id_listop) REFERENCES List_of_operation(id_listop));

ALTER TABLE Operations
	DROP CONSTRAINT R_2;
ALTER TABLE Operations
	ADD (CONSTRAINT  R_23 FOREIGN KEY (id_staff) REFERENCES Staff(id_staff));

ALTER TABLE Operations
	DROP CONSTRAINT R_24;
ALTER TABLE Operations
	ADD (CONSTRAINT  R_24 FOREIGN KEY (id_equipment) REFERENCES Equipment(id_equipment));

ALTER TABLE Product
	DROP CONSTRAINT R_25;
ALTER TABLE Product
	ADD (CONSTRAINT  R_25 FOREIGN KEY (id_type) REFERENCES Products_type(id_type));

ALTER TABLE Res_usage
	DROP CONSTRAINT R_32;
ALTER TABLE Res_usage
	ADD (CONSTRAINT  R_32 FOREIGN KEY (id_res) REFERENCES Resources(id_res));

ALTER TABLE Staff
	DROP CONSTRAINT R_14;
ALTER TABLE Staff
	ADD (CONSTRAINT  R_14 FOREIGN KEY (id_dep) REFERENCES Departament(id_dep));

ALTER TABLE TP
	DROP CONSTRAINT R_21;
ALTER TABLE TP
	ADD (CONSTRAINT  R_21 FOREIGN KEY (id_listop) REFERENCES List_of_operation(id_listop));

ALTER TABLE TP
	DROP CONSTRAINT R_22;
ALTER TABLE TP
	ADD (CONSTRAINT  R_22 FOREIGN KEY (id_type) REFERENCES Products_type(id_type));

ALTER TABLE TP_res_us
	DROP CONSTRAINT R_37;	
ALTER TABLE TP_res_us
	ADD (CONSTRAINT  R_37 FOREIGN KEY (id_tp) REFERENCES TP(id_tp));
	
ALTER TABLE TP_res_us
	DROP CONSTRAINT R_38;		
ALTER TABLE TP_res_us
	ADD (CONSTRAINT  R_38 FOREIGN KEY (id_resus) REFERENCES Res_usage(id_resus));
	
ALTER TABLE Fields
	DROP CONSTRAINT R_39;		
ALTER TABLE Fields
	ADD (CONSTRAINT  R_39 FOREIGN KEY (id_table) REFERENCES Tables(id_tables));
	
	
ALTER TABLE Slots
	DROP CONSTRAINT R_40;		
ALTER TABLE Slots
	ADD (CONSTRAINT  R_40 FOREIGN KEY (id_field) REFERENCES Fields(id_fields));
	
--ALTER TABLE Frames
--	DROP CONSTRAINT R_41;		
--ALTER TABLE Frames
--	ADD (CONSTRAINT  R_41 FOREIGN KEY (id_parient) REFERENCES Frames(id_frames));
	
ALTER TABLE Slots_to_frames
	DROP CONSTRAINT R_42;		
ALTER TABLE Slots_to_frames
	ADD (CONSTRAINT  R_42 FOREIGN KEY (id_frames) REFERENCES Frames(id_frames));
	
ALTER TABLE Slots_to_frames
	DROP CONSTRAINT R_43;		
ALTER TABLE Slots_to_frames
	ADD (CONSTRAINT  R_43 FOREIGN KEY (id_slots) REFERENCES Slots(id_slots));
	
--ALTER TABLE Frame_exmpl
--	DROP CONSTRAINT R_44;		
--ALTER TABLE Frame_exmpl
--	ADD (CONSTRAINT  R_44 FOREIGN KEY (id_frames) REFERENCES Frames(id_frames));
	
ALTER TABLE Frame_exmpl
	DROP CONSTRAINT R_45;		
ALTER TABLE Frame_exmpl
	ADD (CONSTRAINT  R_45 FOREIGN KEY (id_slots) REFERENCES Slots(id_slots));
	
	