prorm API Reference
    Preparing search index...

    Interface UUIDDecoratorOptions

    Options for UUID column type

    interface UUIDDecoratorOptions {
        defaultValue?: string;
        allowNull?: boolean;
        comment?: string;
        field?: string;
    }
    Index
    defaultValue?: string

    Default value generator:

    • 'gen_random_uuid': Uses gen_random_uuid() (PostgreSQL 13+)
    • 'uuid_generate_v4': Uses uuid_generate_v4() (requires uuid-ossp extension)
    • Custom SQL expression
    allowNull?: boolean

    Whether the column allows null

    comment?: string

    Comment for the column

    field?: string

    Custom column name in the database