{"-- Allow sync functions to insert events
CREATE POLICY \"System can insert events during sync\" ON public.events
FOR INSERT 
WITH CHECK (
  auth.jwt() ->> 'sub' IS NOT NULL 
  AND metadata->>'frigate_instance_id' IS NOT NULL
)"}