NUMBER
Extends:
lib/data-types.js~ABSTRACT → NUMBER
Base number type which is used to build other types
Constructor Summary
Public Constructor | ||
---|---|---|
public | constructor(options: object) |
Public Constructors
public constructor(options: object) source
Params:
Name | Type | Attribute | Description |
---|---|---|---|
options | object |
type options | |
options.length | string | number |
|
length of type, like |
options.zerofill | boolean |
|
Is zero filled? |
options.unsigned | boolean |
|
Is unsigned? |
options.decimals | string | number |
|
number of decimal points, used with length |
options.precision | string | number |
|
defines precision for decimal type |
options.scale | string | number |
|
defines scale for decimal type |
Copyright © 2014–present Sequelize contributors
Licensed under the MIT License.
https://sequelize.org/master/class/lib/data-types.js~NUMBER.html