DataTypes
The DataTypes
enum in SchemaJS defines the supported data types for columns in a table. It is used to specify what kind of data each column can hold, such as strings or boolean values. Enums like this provide a clear and type-safe way of working with predefined values, ensuring consistency and avoiding invalid types.
export enum DataTypes {
Uuid = "Uuid",
String = "String",
Boolean = "Boolean",
Number = "Number"
}
Last updated