Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for columns that can define a length of the column type.

Hierarchy

  • ColumnWithWidthOptions

Index

Properties

Properties

Optional unsigned

unsigned: undefined | true | false

Puts UNSIGNED attribute on to numeric column. Works only for MySQL.

Optional width

width: undefined | number

Column 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.

Optional zerofill

zerofill: undefined | true | false

Puts 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

Generated using TypeDoc