Should database only store data?
Very old subject I remember to discuss in the middle of 1990s... But some people still says that a clean architecture should remove all business logic from the database.
Let's start from referential and domain integrity rules (constraints). Are they business ones? Yes, of course. The e-mail column should be …