From 61118df47864b1fda354dc109393ea96d65385e5 Mon Sep 17 00:00:00 2001 From: Arnaud AMBROSELLI Date: Mon, 8 Apr 2024 20:31:53 +0200 Subject: [PATCH] plusplus --- .../20240408183137_notification_index_by_user_id/migration.sql | 2 ++ api-node/prisma/schema.prisma | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 api-node/prisma/migrations/20240408183137_notification_index_by_user_id/migration.sql diff --git a/api-node/prisma/migrations/20240408183137_notification_index_by_user_id/migration.sql b/api-node/prisma/migrations/20240408183137_notification_index_by_user_id/migration.sql new file mode 100644 index 00000000..9a05cf0d --- /dev/null +++ b/api-node/prisma/migrations/20240408183137_notification_index_by_user_id/migration.sql @@ -0,0 +1,2 @@ +-- CreateIndex +CREATE INDEX "notification_user_id" ON "Notification"("user_id"); diff --git a/api-node/prisma/schema.prisma b/api-node/prisma/schema.prisma index 2b00f466..4b78ebf9 100644 --- a/api-node/prisma/schema.prisma +++ b/api-node/prisma/schema.prisma @@ -375,6 +375,8 @@ model Notification { created_at DateTime @default(now()) updated_at DateTime @default(now()) @updatedAt status NotificationEnum? + + @@index([user_id], name: "notification_user_id") } model Feedback {