---
answer: direct
beat: system-design
source: 1 article · updated: November 14, 2026
---

Why use database constraints when the application validates input?

Applications have bugs, multiple services write the same tables, and people run manual fixes. Constraints are enforced for every writer, every time. Treat application validation as the friendly layer and constraints as the guarantee that bad data cannot exist.

Answered in

Relational Schema Design That Survives Contact With Production

Keys, relationships, constraints and indexes: the schema decisions that decide integrity and speed, with worked SQL for one-to-many and many-to-many.

Crashtech Editorial November 14, 2026 System Design & Architecture

Read the full analysis

Other questions this article answers

More system design & architecture questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design & Architecture beat.