prorm API Reference
    Preparing search index...

    Interface CheckTableOptions

    Options for

    decorator

    interface CheckTableOptions {
        condition: (row: Record<string, any>) => boolean;
        message?: string;
        name?: string;
    }
    Index
    condition: (row: Record<string, any>) => boolean

    Row-level condition function

    message?: string

    Custom error message

    name?: string

    Constraint name