ALTER TABLE medreport.connected_online_reservation 
ADD CONSTRAINT fk_reservation_location_sync_id
FOREIGN KEY (location_sync_id) 
REFERENCES medreport.connected_online_locations(sync_id);