Create an ENUM data type
Either an array of values or individual string values
OptionalnameOptional name for the enum type (useful for PostgreSQL/MySQL)
Compare this DataType with another DataType for equality
The DataType to compare with
true if the types are equal, false otherwise
Serialize a value for storage based on this DataType
The value to serialize
The serialized value
Set a name for the enum type (useful for PostgreSQL/MySQL)
Optionaldialect: stringGet the values for validation
Validate if a value is valid for this ENUM
Generate an ALTER TABLE statement to add/modify ENUM column Note: MySQL uses MODIFY COLUMN, PostgreSQL needs type recreation
Optional_columnDefinition: string
Base class for all data types