Interface HasAndBelongsToManyProps<T, K, J, L>

interface HasAndBelongsToManyProps<
    T extends default,
    K extends default,
    J extends JoinTable<T, K>,
    L extends JoinTable<K, T>,
> {
    targetKey: TargetKey<T, K>;
    through: ThroughFunction<J> | ThroughFunction<L>;
}

Type Parameters

Properties

Properties

targetKey: TargetKey<T, K>

The key of the model to add an association to.

The JoinTable properties this relationship is associated through