From 7e311eddffd9833397ac01835ad7d0d0cb3087ba Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Wed, 22 Apr 2026 18:41:38 +0200 Subject: [PATCH] fix: correct comment syntax for unique constraint in MealPlanEntry model --- backend/prisma/schema.prisma | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]) }