Supabase RLS Policy Template

CREATE POLICY "Allow users to insert a new entry"
ON table
FOR INSERT
WITH CHECK (user_id = auth.uid());

CREATE POLICY "Allow users to read their own entries"
ON table
FOR SELECT
USING (user_id = auth.uid());

CREATE POLICY "Allow users to update their own entries"
ON table
FOR UPDATE
USING (user_id = auth.uid());

CREATE POLICY "Allow users to delete their own entries"
ON table
FOR DELETE
USING (user_id = auth.uid());