add constraints to pg schema for name