prorm API Reference
    Preparing search index...

    Interface AutoIncrementOptions

    Options for

    decorator

    interface AutoIncrementOptions {
        start?: number;
        increment?: number;
        cache?: number;
        minValue?: number;
        maxValue?: number;
        cycle?: boolean;
        sequence?: string;
    }
    Index
    start?: number

    Starting value for the sequence

    increment?: number

    Increment value

    cache?: number

    Number of values to cache

    minValue?: number

    Minimum value

    maxValue?: number

    Maximum value

    cycle?: boolean

    Whether to cycle when exhausted

    sequence?: string

    Custom sequence name (PostgreSQL)