-- ============================================
-- 此文件由 Meoo Cloud 自动生成，请勿修改
-- This file is auto-generated by Meoo Cloud, DO NOT MODIFY
-- ============================================


-- 创建短链点击计数函数
CREATE OR REPLACE FUNCTION increment_share_link_clicks(code TEXT)
RETURNS VOID AS $$
BEGIN
 UPDATE share_links
 SET click_count = click_count + 1
 WHERE short_code = code;
END;
$$ LANGUAGE plpgsql SECURITY DEFINER;

