ALTER TABLE medreport.connected_online_reservation 
ADD CONSTRAINT fk_reservation_clinic 
FOREIGN KEY (clinic_id) 
REFERENCES medreport.connected_online_providers(id);

ALTER TABLE medreport.connected_online_services 
ADD CONSTRAINT constraint_name UNIQUE (sync_id);

ALTER TABLE medreport.connected_online_reservation 
ADD CONSTRAINT fk_reservation_service
FOREIGN KEY (service_id) 
REFERENCES medreport.connected_online_services(id);