Howdy, I think this is a fundamental principle that I haven’t quite learned…
It doesn’t seem like my code cares if a foreign key is set in the DB. What’s the benefit? For example I can query all contacts for a specific user even if a foreign key wasn’t set, assuming I have a column that holds something like user_id values in my contact table?
It must have some benefit such as indexing or performance, etc. or maybe something more interesting - like automating tasking such as removing all contacts that belong to a user that’s been deleted?
Hmmm…