Skip to main content

Supported Field Types

This package works by mapping database schema column types to a custom Field class. The supported field types and their corresponding database column types are given below.

Field TypeColumn Types
BooleanFieldtinyint(1)
DateFielddate
DateTimeFielddatetime, timestamp
DecimalFielddouble, decimal, dec, float
EnumFieldenum, set, any column that has a comment in the format enum:<EnumClass>
ForeignKeyFieldForeign
IntegerFieldtinyint, smallint, mediumint, int, bigint
JsonFieldjson
StringFieldvarchar, char
TextFieldtext
TimeFieldtime
YearFieldyear

Currently, morphs and pivots are not supported. Any unsupported column type will simply be skipped by the generators.