1-- Update user notification preference 2update public.user_notification_preference as np 3set 4 enabled = $3, 5 updated_at = current_timestamp 6where 7 np.user_id = $1 8 and np.notification_type = $2 9returning 10 new.notification_type, 11 new.enabled;