DELETE FROM users AS public_user
WHERE public_user.username = 'public-visitor'
  AND NOT EXISTS (SELECT 1 FROM queue_tickets WHERE created_by = public_user.id)
  AND NOT EXISTS (SELECT 1 FROM idempotency_keys WHERE user_id = public_user.id);
