The software I'm working with has 2 tables, lead and customer. When we sell our product to someone, a record is created in the customer table with data from the lead table (as well as some additional data).
Currently there is no relationship between the two tables. The best that exists now is the lead object has a function that will do a lookup in the customer table for a record with the same phone number (hoping that it hasn't changed in the last 5-10 years that they've been our customer - doing such a search on each lead produces an %82 intersection on the customer table). There is no reverse lookup (customer->lead).
The problem is that I do need to know what customer record is associated with what lead record, and vice versa.
I considered storing a fk from lead in customer and a fk from customer in lead... but the ORM i'm using will overflow as it loads associated records when fkeys exist.
Merging the two tables into one 'person' table is what I'd like to do, having a bit flag identifying whether or not a person is a customer... but alas, timelines and budgets do not permit.
I don't quite know what to do.