I am creating an android app with firebase realtime DB. a user can enter an event code and will get points.
How do I restrict a user from entering the same code more than