Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for numeric column types where user can specify scale and precision.

Hierarchy

  • ColumnNumericOptions

Index

Properties

Optional precision

precision: undefined | number

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

Optional scale

scale: undefined | number

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

Optional unsigned

unsigned: undefined | true | false

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

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 the column

Generated using TypeDoc