OptionallengthOptionalorderOptionalcollateOptionalexpressionExpression for expression-based indexes. Prefer the expression helpers, which quote identifiers for the target dialect:
{ expression: fn('LOWER', col('email')) } // LOWER("email")
A raw SQL string is still accepted.
Index definition for addIndex