Add uniqueness constraints in models