interface IndexField {
    collate?: string;
    length?: number;
    name: string;
    operator?: string;
    order?: "ASC" | "DESC";
}

Properties

collate?: string

The collation (sort order) for the column

length?: number

Create a prefix index of length chars

name: string

The name of the column

operator?: string

Index operator type. Postgres only

order?: "ASC" | "DESC"

The direction the column should be sorted in