drizzle-orm-fk-constraints-not-auto-enforced

Drizzle ORM schemas do not add foreign key constraints by default — plain int column types with no .references() call produce no FK enforcement at the DB level. Orphaned rows accumulate silently at the first parent deletion. Always explicitly chain .references(() => table.col) on relational columns in Drizzle schemas to enforce referential integrity.