* A 32 bit integer
| 245 | * A 32 bit integer |
| 246 | */ |
| 247 | class INTEGER extends NUMBER { |
| 248 | validate(value) { |
| 249 | if (!Validator.isInt(String(value))) { |
| 250 | throw new sequelizeErrors.ValidationError(util.format(`%j is not a valid ${this.key.toLowerCase()}`, value)); |
| 251 | } |
| 252 | return true; |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * A 8 bit integer |