prorm API Reference
    Preparing search index...

    Interface DomainOptions

    interface DomainOptions {
        as: string;
        default?: string | number | boolean | null;
        notNull?: boolean;
        check?: string;
        constraintName?: string;
        schema?: string;
    }
    Index
    as: string

    The underlying SQL type.

    default?: string | number | boolean | null

    Default for columns of this domain.

    notNull?: boolean

    Reject nulls.

    check?: string

    A constraint every value must satisfy, written with VALUE standing for the value being checked: 'VALUE > 0'.

    constraintName?: string

    Name for the check constraint, so it can be dropped later.

    schema?: string

    Schema to create it in.