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


-- 修复 share_links 表的 RLS 策略，使用 auth.uid()
DROP POLICY IF EXISTS users_insert_share_links ON share_links;
DROP POLICY IF EXISTS users_delete_own_share_links ON share_links;

CREATE POLICY users_insert_share_links ON share_links
 FOR INSERT
 WITH CHECK (created_by = auth.uid());

CREATE POLICY users_delete_own_share_links ON share_links
 FOR DELETE
 USING (created_by = auth.uid());

