Domain – very useful constraint standardization

Do you need to ensure that the same constraints across application are really the same? Use so called “domain”. It is public definition of constraint you can use repeatedly in whole application. Example is of for simplicity taken from PG documentation...