diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 8431c70..b9db9e3 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -344,6 +344,7 @@ model ImportStepLog { createdAt DateTime @default(now()) @@index([importId]) + @@index([createdAt]) } model LearningSession { @@ -384,6 +385,7 @@ model LearningRecord { @@index([userId]) @@index([occurredAt]) + @@index([createdAt]) } model ActiveRecallQuestion { @@ -494,6 +496,7 @@ model FocusItem { @@index([userId]) @@index([status]) @@index([dueAt]) + @@index([createdAt]) } model ReviewCard { @@ -558,6 +561,7 @@ model ReviewPlan { @@index([userId]) @@index([scheduledAt]) + @@index([createdAt]) } model DailyLearningActivity { @@ -596,6 +600,7 @@ model Notification { @@index([userId]) @@index([readAt]) @@index([type]) + @@index([createdAt]) } model Feedback { @@ -1002,6 +1007,7 @@ model ChatCitation { message ChatMessage @relation(fields: [messageId], references: [id]) @@index([messageId]) + @@index([createdAt]) } model AdminCostItem { @@ -1345,6 +1351,7 @@ model NotificationTemplate { updatedAt DateTime @updatedAt @@index([type]) + @@index([createdAt]) } model LearningGoal { @@ -1443,6 +1450,7 @@ model AgentArtifact { @@index([taskId]) @@index([type]) + @@index([createdAt]) } model DecisionRecord {