prorm API Reference
    Preparing search index...

    Interface JSONBDecoratorOptions

    Options for JSONB column type

    interface JSONBDecoratorOptions {
        validate?: boolean;
        allowNull?: boolean;
        defaultValue?: any;
        comment?: string;
        field?: string;
    }
    Index
    validate?: boolean

    Whether to validate JSON structure

    allowNull?: boolean

    Whether the column allows null

    defaultValue?: any

    Default value for the column

    comment?: string

    Comment for the column

    field?: string

    Custom column name in the database