Constraints as Design
A constraint is a rule that survives everyone. Your application, a colleague's script, a migration, an admin action, and you at 2am. Only the database enforces all of them.
Postgres gives you more than SQLite: CHECK constraints spanning several columns, UNIQUE across a combination, partial unique indexes, and EXCLUDE constraints that can prevent two bookings overlapping in time.
Mark this lesson complete
Signed in, your progress follows you to every device.