data type of createdAt updatedAt corrected