adding uniqueness constraints to models