OptionalnameOptionalfieldsSingle field name or array of field names for composite indexes
OptionaluniqueOptionaltypeOptionalusingOptionalwherePartial-index predicate; see IndexOptions.where in src/dialects/dialect.ts.
OptionaltablespacePostgreSQL: specify tablespace for the index
OptionalstoragePostgreSQL: index storage parameters
OptionalparserMySQL/MariaDB: parser for full-text index
OptionalfulltextMySQL/MariaDB: FULLTEXT index
OptionaltextPostgreSQL: text search configuration for GIN index
OptionalincludePostgreSQL/MySQL: include columns in index (covering index)
OptionalnullsPostgreSQL/MySQL: index with NULLS NOT DISTINCT
OptionalexpressionExpression-based index (e.g., LOWER(column), (column1 || ' ' || column2))
OptionalifIf true, does not throw error if index already exists
An index to create alongside the table.
whereproduces a partial index, which several engines do not support — see the indexes guide for the matrix.