* The MACADDR type stores MAC addresses. Takes 6 bytes * * Only available for Postgres *
| 934 | * |
| 935 | */ |
| 936 | class MACADDR extends ABSTRACT { |
| 937 | validate(value) { |
| 938 | if (typeof value !== 'string' || !Validator.isMACAddress(value)) { |
| 939 | throw new sequelizeErrors.ValidationError(util.format('%j is not a valid MACADDR', value)); |
| 940 | } |
| 941 | return true; |
| 942 | } |
| 943 | } |
| 944 | |
| 945 | /** |
| 946 | * The TSVECTOR type stores text search vectors. |