prorm API Reference
    Preparing search index...

    Interface BelongsToOptions

    interface BelongsToOptions {
        as?: string;
        foreignKey?: string;
        targetKey?: string;
        onDelete?: "CASCADE" | "RESTRICT" | "SET NULL" | "NO ACTION";
        onUpdate?: "CASCADE" | "RESTRICT" | "SET NULL" | "NO ACTION";
        hooks?: boolean;
    }
    Index
    as?: string
    foreignKey?: string
    targetKey?: string
    onDelete?: "CASCADE" | "RESTRICT" | "SET NULL" | "NO ACTION"
    onUpdate?: "CASCADE" | "RESTRICT" | "SET NULL" | "NO ACTION"
    hooks?: boolean