1-- Set the brigade is_active status to ON or OFF 2update public.brigade as b 3set 4 is_active = $2, 5 updated_at = current_timestamp 6where b.id = $1 7returning 8 b.id, 9 b.is_active, 10 b.updated_at;