add createdAt to model.