On a previous project I stored all enums as integers in a database. Such as 1 for Pending, 2 for Running, 3 for Completed and so on.
All was great at start, but months later I had no idea what 4 meant without looking at the code. It’s also very possible that 4 would mean “Not Started” or something that does not come after Complete, for example, which just complicated things even more.
I am now considering either a single Char or a String for my current project.
What’s your opinion? Anything I should be aware of before making a decision?