I have an admin panel which can set a lot of options which will affect some other services drastically. For example I got one that if I create a different category I can just insert it in the Category
table and then the front-end will be able to retrieve it.
But I'm almost totally lost with what do I do with simple flags and how do I save them
I will show few examples:
- "2FA required" - which affects the other service and force every user to enable 2FA on registration.
- "Manual transactions" - Whenever a user deposits or withdrawas, the transaction requires manual admin\moderator check via the admin panel
I could give more examples but I think it's enough. These are basically flags which state I need to save in some way and access on end-points.
But I feel like saving flags in the database without relationships with other tables is not the completely right approach.