refactor the user model to allow createdDate