sequelize 默认别名对照
const operatorsAliases = {
$eq: Op.eq,
$ne: Op.ne,
$gte: Op.gte,
$gt: Op.gt,
$lte: Op.lte,
$lt: Op.lt,
$not: Op.not,
$in: Op.in,
$notIn: Op.notIn,
$is: Op.is,
$like: Op.like,
$notLike: Op.notLike,
$iLike: Op.iLike,
$notILike: Op.notILike,
$regexp: Op.regexp,
$notRegexp: Op.notRegexp,
$iRegexp: Op.iRegexp,
$notIRegexp: Op.notIRegexp,
$between: Op.between,
$notBetween: Op.notBetween,
$overlap: Op.overlap,
$contains: Op.contains,
$contained: Op.contained,
$adjacent: Op.adjacent,
$strictLeft: Op.strictLeft,
$strictRight: Op.strictRight,
$noExtendRight: Op.noExtendRight,
$noExtendLeft: Op.noExtendLeft,
$and: Op.and,
$or: Op.or,
$any: Op.any,
$all: Op.all,
$values: Op.values,
$col: Op.col
};
const Op = Sequelize.Op
[Op.and]: {a: 5}
[Op.or]: [{a: 5}, {a: 6}]
[Op.gt]: 6,
[Op.gte]: 6,
[Op.lt]: 10,
[Op.lte]: 10,
[Op.ne]: 20,
[Op.eq]: 3,
[Op.not]: true,
[Op.between]: [6, 10],
[Op.notBetween]: [11, 15],
[Op.in]: [1, 2],
[Op.notIn]: [1, 2],
[Op.like]: '%hat',
[Op.notLike]: '%hat'
[Op.iLike]: '%hat'
[Op.notILike]: '%hat'
[Op.regexp]: '^[h|a|t]'
[Op.notRegexp]: '^[h|a|t]'
[Op.iRegexp]: '^[h|a|t]'
[Op.notIRegexp]: '^[h|a|t]'
[Op.like]: { [Op.any]: ['cat', 'hat']}
[Op.overlap]: [1, 2]
[Op.contains]: [1, 2]
[Op.contained]: [1, 2]
[Op.any]: [2,3]
[Op.col]: 'user.organization_id'