Alexandre Bodin 42c149e8bc Add reserved name check
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-30 13:55:15 +02:00

12 lines
300 B
JavaScript

'use strict';
// contentTypes and components reserved names
const RESERVED_MODEL_NAMES = ['admin'];
// attribute reserved names
const RESERVED_ATTRIBUTE_NAMES = ['_id', 'id', 'length', 'attributes', 'relations', 'changed'];
module.exports = {
RESERVED_MODEL_NAMES,
RESERVED_ATTRIBUTE_NAMES,
};