ColumnType enum

Enum representing supported column types for a table schema. Enum representing supported column types for a table schema.

Inheritance
Available extensions

Values

integer → const ColumnType

Integer type (e.g., INT)

string → const ColumnType

String type with length limit (e.g., VARCHAR)

text → const ColumnType

Long text type (e.g., TEXT)

longText → const ColumnType

Long text type for large documents and payloads (e.g., LONGTEXT in MySQL, TEXT in PostgreSQL)

mediumText → const ColumnType

Medium text type (e.g., MEDIUMTEXT in MySQL, TEXT in PostgreSQL)

boolean → const ColumnType

Boolean type (e.g., TRUE/FALSE, 1/0)

double → const ColumnType

Double/float type (e.g., FLOAT/DOUBLE)

datetime → const ColumnType

Date and time (e.g., DATETIME)

timestamp → const ColumnType

Timestamp (e.g., TIMESTAMP)

enumeration → const ColumnType

Enum type (e.g., ENUM('draft', 'published'))

json → const ColumnType

JSON type (e.g., JSON)

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<ColumnType>
A constant List of the values in this enum, in order of their declaration.