1. Home
  2. Docs
  3. Compiler
  4. Schema (XML)
  5. Column Types

Column Types

Text Types

Propel TypeDescExample Default DB Type (MySQL)Default PHP Native Type
CHARFixed-length character dataCHARstring
VARCHARVariable-length character dataVARCHARstring
LONGVARCHARLong variable-length character dataTEXTstring

Numeric Types

Propel TypeDescExample Default DB Type (MySQL)Default PHP Native Type
DECIMALDecimal dataDECIMALstring (PHP int is limited)
TINYINTTiny integerTINYINTint
SMALLINTSmall integerSMALLINTint
INTEGERIntegerINTEGERint
BIGINTLarge integerBIGINTstring (PHP int is limited)
FLOATFloating point numberFLOATdouble

Temporal (Date/Time) Types

Propel TypeDescExample Default DB Type (MySQL)Default PHP Native Type
DATEDate (e.g. YYYY-MM-DD)DATEDateTime object
TIMETime (e.g. HH:MM:SS)TIMEDateTime object
TIMESTAMPDate + time (e.g. YYYY-MM-DD HH:MM:SS)DATETIMEDateTime object

Other Types

  • BOOLEAN
  • ENUM columns accept values among a list of predefined ones. Set the value set using the valueSet attribute, separated by commas.

How can we help?

Leave a Reply