Member Junction
    Preparing search index...

    Represents a link (relationship) between two nodes in the ERD.

    interface ERDLink {
        isSelfReference: boolean;
        label?: string;
        relationshipType?:
            | "one-to-one"
            | "one-to-many"
            | "many-to-one"
            | "many-to-many";
        sourceField: ERDField;
        sourceNodeId: string;
        targetField?: ERDField;
        targetNodeId: string;
    }
    Index

    Properties

    isSelfReference: boolean

    Whether this is a self-referencing relationship

    label?: string

    Optional label for the relationship

    relationshipType?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many"

    Relationship type (e.g., 'one-to-many', 'many-to-one')

    sourceField: ERDField

    The field that creates this relationship (usually the FK field)

    sourceNodeId: string

    ID of the source node

    targetField?: ERDField

    The field in the target node (usually the PK field)

    targetNodeId: string

    ID of the target node