Using Postgres has been a very enjoyable experience, and through the years of working with it I have run across some types that we use over and over again. At first we wrote custom constraints for individual fields, but the powerful domain system in Postgres allows for a much better, clearer and efficient approach.
This repository is my attempt at collecting and documenting the types for future use.
- Password hash: check for valid Bcrypt or Argon2 hash format
- UUID version 4: check for valid UUID version 4 format
- Add E-mail address and Semantic version types
- Add better documentation for project goals
- Add examples