PostgreSQL: CREATE DOMAIN to Abstract Data Type and Enforce Business Rules

PostgreSQL has one of the very good data type to store all the optional constraints and business rule of the application. The DOMAIN is a type of DATA TYPE to abstract the common constraint and other business rule of Database system. For example, we have several tables with Email column and we require to apply … Continue reading PostgreSQL: CREATE DOMAIN to Abstract Data Type and Enforce Business Rules