The name of the attributes are the keys of the attributes Dict field of product so they must be uniquely identified at least per sets. But as an attribute can be reused on different sets, the unique constraint must be set on the name. Closes #13574