add trait to make it easier to add document metadata to entities