How to add index on createdAt and updatedAt if possible?

{
“code”: 102,
“error”: “Field _created_at does not exist, cannot add index.”
}