Documentation Index
Fetch the complete documentation index at: https://beta.docs.sqd.dev/llms.txt
Use this file to discover all available pages before exploring further.
Indexes and unique constraints
It is crucial to add database indexes to the entity fields on which one expects filtering and ordering. To add an index to a column, the corresponding entity field must be decorated with@index. The corresponding entity field will be decorated with TypeORM @Index().
One can additionally decorate the field with @unique to enforce uniqueness. It corresponds to the @Index({ unique: true }) TypeORM decorator.
Example
Multi-column indices
Multi-column indices are defined on the entity level, with an optionalunique constraint.
