可选arrayIndicates if this column is an array. Can be simply set to true or array length can be specified. Supported only by postgres.
可选asGenerated column expression.
可选charsetDefines a column character set. Not supported by all database types.
可选collationDefines a column collation.
可选commentColumn comment. Not supported by all database types.
可选defaultDefault database value.
可选enumArray of possible enumerated values.
可选enumExact name of enum
可选foreignIf this column is foreign key then this specifies the name for it.
可选generatedSpecifies if this column will use auto increment (sequence, generated identity, rowid). Note that in some databases only one column in entity can be marked as generated, and it must be a primary column.
可选generatedIdentity column type. Supports only in Postgres 10+.
可选generatedGenerated column type.
可选hstoreReturn type of HSTORE column. Returns value as string or as object.
可选insertIndicates if column is inserted by default. Default value is "true".
可选lengthColumn type's length. Used only on some column types. For example type = "string" and length = "100" means that ORM will create a column with type varchar(100).
可选nameColumn name in the database.
可选nullableIndicates if column's value can be set to NULL. Default value is "false".
可选onON UPDATE trigger. Works only for MySQL.
可选precisionThe precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum number of digits that are stored for the values.
可选primaryIndicates if this column is a primary key. Same can be achieved when
可选primaryIf this column is primary key then this specifies the name for it.
可选readonlyIndicates if column value is not updated by "save" operation. It means you'll be able to write this value only when you first time insert the object. Default value is "false".
可选scaleThe scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number of digits to the right of the decimal point and must not be greater than precision.
可选selectIndicates if column is always selected by QueryBuilder and find operations. Default value is "true".
可选spatialSpatial Feature Type (Geometry, Point, Polygon, etc.)
可选sridSRID (Spatial Reference ID (EPSG code))
可选transformerSpecifies a value transformer that is to be used to (un)marshal this column when reading or writing to the database.
可选typeColumn type. Must be one of the value from the ColumnTypes class.
可选uniqueSpecifies if column's value must be unique or not.
可选unsignedPuts UNSIGNED attribute on to numeric column. Works only for MySQL.
可选updateIndicates if column value is updated by "save" operation. If false, you'll be able to write this value only when you first time insert the object. Default value is "true".
可选widthColumn type's display width. Used only on some column types in MySQL. For example, INT(4) specifies an INT with a display width of four digits.
可选zerofillPuts ZEROFILL attribute on to numeric column. Works only for MySQL. If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to this column
Describes all column's options.