For example, there is a status field
It has 4 values and corresponding numbers
Passed published (3), passed unpublished (2), failed (1), unapproved (0)
In mongo, this field should be stored as a number and then retrieved and displayed on the page after a conversion.
Or directly store the character string, so you can display it directly on the page without escaping.
Which way is better?
Figures. Think about if one day your
UnauditedThe status should be changed to