prorm API Reference
    Preparing search index...

    Interface ReferenceOptions

    The target of a foreign key — which table and column it points at, and what happens on update or delete.

    interface ReferenceOptions {
        model: string | ModelStatic<any>;
        key?: string;
        deferrable?: string;
        onDelete?:
            | "CASCADE"
            | "RESTRICT"
            | "SET NULL"
            | "NO ACTION"
            | "SET DEFAULT"
            | ReferentialAction;
        onUpdate?: | "CASCADE"
        | "RESTRICT"
        | "SET NULL"
        | "NO ACTION"
        | "SET DEFAULT"
        | ReferentialAction;
    }
    Index
    model: string | ModelStatic<any>
    key?: string
    deferrable?: string
    onDelete?:
        | "CASCADE"
        | "RESTRICT"
        | "SET NULL"
        | "NO ACTION"
        | "SET DEFAULT"
        | ReferentialAction
    onUpdate?:
        | "CASCADE"
        | "RESTRICT"
        | "SET NULL"
        | "NO ACTION"
        | "SET DEFAULT"
        | ReferentialAction