Changed createdAt type to dateTime