Enforce unique constraints on primary keys and allow the `required` property inform the DB about other fields.