{"-- Allow system to insert cameras during sync
CREATE POLICY \"System can insert cameras during sync\" ON public.cameras
FOR INSERT 
WITH CHECK (
  auth.jwt() ->> 'sub' IS NOT NULL 
  AND branch_id IS NOT NULL
)","-- Allow system to insert frigate_recordings 
CREATE POLICY \"System can insert frigate_recordings\" ON public.frigate_recordings
FOR INSERT 
WITH CHECK (auth.jwt() ->> 'sub' IS NOT NULL)","-- Allow system to insert frigate_previews
CREATE POLICY \"System can insert frigate_previews\" ON public.frigate_previews  
FOR INSERT
WITH CHECK (auth.jwt() ->> 'sub' IS NOT NULL)","-- Allow system to insert frigate_reviews
CREATE POLICY \"System can insert frigate_reviews\" ON public.frigate_reviews
FOR INSERT 
WITH CHECK (auth.jwt() ->> 'sub' IS NOT NULL)","-- Allow system to insert frigate_timeline
CREATE POLICY \"System can insert frigate_timeline\" ON public.frigate_timeline
FOR INSERT
WITH CHECK (auth.jwt() ->> 'sub' IS NOT NULL)"}