Cache map for tracking model foreign key relationships so that we have rapid lookup speed for associated models.
example
// Has many ordersinterfaceProduct {id: number; // is the primary key}// Has exactly one productinterfaceProductOrder {id: number;productId: number; // is the foreign key}
Changes for foriegn entity relations usually happen on the foreign entity itself, rather than the primary entity.
For example:
ProductOrder has 'id' and 'productId' - a Product can have many orders associated with it, but the value
being changed is 'productId' on ProductOrder, not 'id' on Product.
Cache map for tracking model foreign key relationships so that we have rapid lookup speed for associated models.