Add unique to entity