diff --git a/backend/prisma/schema.prisma b/backend/prisma/schema.prisma index 311eb38f..c23fc46b 100644 --- a/backend/prisma/schema.prisma +++ b/backend/prisma/schema.prisma @@ -192,7 +192,8 @@ model MealPlanEntry { createdAt DateTime @default(now()) updatedAt DateTime @updatedAt - @@unique([userId, date]) # Bara ett recept per dag och användare + // Bara ett recept per dag och anvandare. + @@unique([userId, date]) @@index([userId]) @@index([date]) }