/**
|
* Options for numeric column types where user can specify scale and precision.
|
*/
|
export interface ColumnNumericOptions {
|
/**
|
* 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.
|
*/
|
precision?: 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.
|
*/
|
scale?: number;
|
/**
|
* 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
|
*/
|
zerofill?: boolean;
|
/**
|
* Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
|
*/
|
unsigned?: boolean;
|
}
|