battle, teams and user. They are linked to each other in this order, but battle does not have a direct relation with user.user that has at least one battle that is public. For this I have battle.public IS TRUE. user and battle with supabase-js?