Hi there! I have a quick question regarding architecture, more than anything. Let's say I have a table called work order with a status, that can be 'open', 'closed', 'completed', which is joined from another table called Status, with its respective foreign key. In short, workOrder would have statusId 4 for example.
My question is, how do you guys handle static values like this that may or may not change? I know I can always set it up as an enum, but I was wondering how to structure it. Initially, a created a module/folder for each one, and each specific service returned the values. /status would return a list of status, /priority would return a list of priorities and so on so forth.
Is this overkill? I've also read that some (I could be wrong) create a 'reference/lookup' module/folder with getStatus, getPriority, getCategories, etc. such as /reference/status, /reference/priority.
This is ONLY for populating dropdowns and things like that, there will not ever be business logic and if there is, I'll move it to its own respective module.
Is this okay? Not okay? is it terrible? I'm not that familiar with backend best practices and I really have no one to ask 😅 any help would be appreciated!
