RelationshipInputBranch type
The relationship input accepted for one related entity type T: its key plus
any projected fields. Keys that belong only to other members of TAll are
rejected.
type RelationshipInputBranch<T, TAll> = T extends unknown
? RelationshipProjection<T> &
RelationshipKeyOnly<T> &
Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>>
: never