prorm API Reference
    Preparing search index...

    Interface AssociationDefinition

    interface AssociationDefinition {
        type: "belongsTo" | "hasOne" | "hasMany" | "belongsToMany";
        target: string;
        foreignKey?: string;
        sourceKey?: string;
        through?: string;
        as?: string;
    }
    Index
    type: "belongsTo" | "hasOne" | "hasMany" | "belongsToMany"
    target: string
    foreignKey?: string
    sourceKey?: string
    through?: string
    as?: string