prorm API Reference
    Preparing search index...

    Interface PrormRelation

    interface PrormRelation {
        kind: "belongsTo" | "hasOne" | "hasMany";
        model: PrismaModel;
        fieldName: string;
        targetModel: string;
        foreignKey: string;
    }
    Index
    kind: "belongsTo" | "hasOne" | "hasMany"

    Model the decorator is attached to.

    fieldName: string

    Property name for the association (the Prisma relation field's own name).

    targetModel: string

    Name of the related model.

    foreignKey: string

    Foreign key column name (present on the belongsTo side's model, and mirrored here on its hasMany/hasOne inverse for foreignKey option generation).