There are several tables in Mysql, for example, payments (payments), visits (visits), logs (logs) each of these tables has its own set of types (for example, payments include enrollment, payment for goods, payment for services, etc.). How best to store these types?
I consider several options:
- Use ENUM type
- For each of the tables, create a table reference book, where all possible types will be stored, and link them by key
- Create a universal table directory where all types and the corresponding table names will be stored (for example, 1 - payment - transfer, 2 - visit, input)
Which of them is most beneficial in terms of performance and the ability to expand the list of types?