Postgres Check Constraint Postgresql Database Architecture