Comment by tda
7 years ago
If you really must use a mapping table, I think you could put a unique constraint on both of the foreign key columns too the mapped tables. That would enforce that every row in one table maps to at most one row in the other
No comments yet
Contribute on Hacker News ↗