ALTER TABLE `[[wp_prefix]][[table_name_clicks]]`
ADD CONSTRAINT `fk_url_id`
FOREIGN KEY (`url_id`) REFERENCES `[[wp_prefix]][[table_name_main]]` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE;