Answer the question
In order to leave comments, you need to log in
Which is better to use enum() or boolean() field type?
If there are more than 3 statuses, then it is clear that enum should be used, but what are the differences if there are only 2 statuses? What type of field is preferable to use?
Answer the question
In order to leave comments, you need to log in
Depends...
If it is really logical fields ala is/is not present it is possible to use bool. If these are just 2 values clearly not related to true / false, it is better to use enum, especially if later the logic may change and you need to change the type.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question