Hacker News new | ask | show | jobs
by wvenable 648 days ago
Composite keys are fine as long as all the key columns are surrogate keys.
1 comments

High bridges without guardrails are fine as long as you don't fall off.
Using composite keys can help prevent you from representing invalid states in the database or in your application. They can be guardrails.