Enforce data integrity at the schema level with NOT NULL, UNIQUE, CHECK, and FK constraints.
Why This Matters
Without DB-level constraints, invalid or null data slips in and every consumer must defensively re-validate.
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.