Gate Access Keypad & RF Receiver with Multiple Users

Strugling to find any insparsation on how to achive but am trying to put together a standalone esphome board with a keypad and rf receiver to trigger a gate opening but want to allow multiple user ‘codes’ and rf transmitters.
It will be linked to homeassistant but want it to work standalone so codes and rf codes need to be within esp board.
Other than a whole bunch of hard coded if statements is there any cleaner way to input a list of codes which relate to specific properties?
My end came is to at least tie my own entry into my HA instance to trigger automations but also have log of entries etc.
Plan is to also have ble beacon system at sompoint to for handfree triggering for entry homefully.
Any sugestions other than only way can see atm which is bunch of input fields for name/property/code and huge list of if statements to check through these.
Thanks in advance.
Joe