Postgres Check Constraint Postgresql Database