My Junction Table Had an Id and No Foreign Keys
Auditing one table in my fitness app taught me when a many-to-many table deserves its own id, why Drizzle relations are not constraints, and what rule the table actually needed.
postgres database-design drizzle
· 7 min · views