Move createdAt in the schema