ColumnType enum
Column types supported by the schema builder.
Values
- increments → const ColumnType
-
An auto-incrementing integer primary key (Blueprint.id,
Blueprint.increments). - string → const ColumnType
-
VARCHAR(length)(Blueprint.string). - char → const ColumnType
-
Fixed-length
CHAR(length)(Blueprint.char). - text → const ColumnType
-
TEXT(Blueprint.text). - mediumText → const ColumnType
-
MEDIUMTEXTon MySQL,TEXTelsewhere (Blueprint.mediumText). - longText → const ColumnType
-
LONGTEXTon MySQL,TEXTelsewhere (Blueprint.longText). - integer → const ColumnType
-
A 32-bit integer (Blueprint.integer).
- tinyInteger → const ColumnType
-
An 8-bit integer (Blueprint.tinyInteger).
- smallInteger → const ColumnType
-
A 16-bit integer (Blueprint.smallInteger).
- bigInteger → const ColumnType
-
A 64-bit integer (Blueprint.bigInteger).
- decimal → const ColumnType
-
A fixed-point number with a precision and scale (Blueprint.decimal).
- float → const ColumnType
-
A single-precision floating point number (Blueprint.float).
- doublePrecision → const ColumnType
-
A double-precision floating point number (Blueprint.doublePrecision).
- boolean → const ColumnType
-
A boolean;
TINYINT(1)on MySQL, an integer on SQLite (Blueprint.boolean). - date → const ColumnType
-
A date without a time (Blueprint.date).
- dateTime → const ColumnType
-
A date and time (Blueprint.dateTime).
- time → const ColumnType
-
A time of day (Blueprint.time).
- timestamp → const ColumnType
-
A timestamp (Blueprint.timestamp, Blueprint.timestamps).
- json → const ColumnType
-
JSON;
JSONBon PostgreSQL, text on SQLite (Blueprint.json). - uuid → const ColumnType
-
A UUID;
UUIDon PostgreSQL,CHAR(36)elsewhere (Blueprint.uuid). - binary → const ColumnType
-
Binary data:
BLOBorBYTEA(Blueprint.binary). - enumeration → const ColumnType
-
One of a fixed list of strings (Blueprint.enumeration).
- vector → const ColumnType
-
A vector of numbers for similarity search (Blueprint.vector).
- tsvector → const ColumnType
-
A PostgreSQL full text
tsvector(Blueprint.tsvector).
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.