Type Alias FieldDataType

type FieldDataType = {
    originalType?: string;
    properties?: Record<string, unknown>;
    type:
        | "DATE"
        | "TIME"
        | "DATETIME"
        | "TIMESTAMP"
        | "STRING"
        | "DOUBLE"
        | "DECIMAL"
        | "INTEGER"
        | "BOOLEAN"
        | "BINARY"
        | "CUSTOM";
}
Index

Properties

originalType?: string
properties?: Record<string, unknown>

The properties map key is string and the value is of type object. Please note, Datatype DECIMAL requires two mandatory properties to be defined; these properties must be named: precision and scale, each of these property accepts integer value. All other datatypes does not require any manadatory properties to be defined.

type:
    | "DATE"
    | "TIME"
    | "DATETIME"
    | "TIMESTAMP"
    | "STRING"
    | "DOUBLE"
    | "DECIMAL"
    | "INTEGER"
    | "BOOLEAN"
    | "BINARY"
    | "CUSTOM"

Each datatype may vary in terms of required properties. Example: Datatype DECIMAL requires two mandatory properties to be defined - precision and scale, each one accepts integer value. All other datatypes does not have any required properties.