Enum
Enum is a Teo schema data type which represents limited amount of
possibilities. It is declared with the enum
keyword.
Enum type can be used as model field type. Like any other types, enums can be used in interfaces, decorator arguments, pipeline arguments and middleware arguments.
When using the enum value, instead of typing the full value path, prefix the value with a dot is more concise.
Interface enum
Interface enum can't be used as a model field type. It can optionally take arguments.
Option enum
This is a seldomly used type. The internal value isn't a string but a positive integer. It can perform bitwise operations.