Encode column and row invariants as CHECK constraints so bad data is rejected at the database.
Why This Matters
Invariants enforced only in application code are bypassed by other writers, jobs, and manual fixes, letting invalid rows accumulate.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.