Add uniqueId field to resources