* The INET type holds an IPv4 or IPv6 host address, and optionally its subnet. Takes 7 or 19 bytes * * Only available for Postgres
| 919 | * Only available for Postgres |
| 920 | */ |
| 921 | class INET extends ABSTRACT { |
| 922 | validate(value) { |
| 923 | if (typeof value !== 'string' || !Validator.isIP(value)) { |
| 924 | throw new sequelizeErrors.ValidationError(util.format('%j is not a valid INET', value)); |
| 925 | } |
| 926 | return true; |
| 927 | } |
| 928 | } |
| 929 | |
| 930 | /** |
| 931 | * The MACADDR type stores MAC addresses. Takes 6 bytes |