prorm API Reference
    Preparing search index...

    Interface TableIndex

    An index declared alongside the table rather than in a separate statement.

    interface TableIndex {
        name?: string;
        unique?: boolean;
        type?: string;
        using?: string;
        fields: string[];
        where?: string | WhereOptions;
        expression?: string;
        include?: string[];
    }
    Index
    name?: string
    unique?: boolean
    type?: string
    using?: string
    fields: string[]
    where?: string | WhereOptions
    expression?: string

    Expression for expression-based indexes (e.g., LOWER(column))

    include?: string[]

    Include columns for covering index (PostgreSQL 11+, MySQL 8.0.17+)