Added createdAt indexes in schema.sql to each of these three tables.