From 63a37774b7a5b20647a57c24635b429088a4f012 Mon Sep 17 00:00:00 2001 From: Zai Shi Date: Thu, 19 Dec 2024 19:40:22 -0800 Subject: [PATCH] added index to events --- .../migrations/20241220033652_event_indices/migration.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 apps/backend/prisma/migrations/20241220033652_event_indices/migration.sql diff --git a/apps/backend/prisma/migrations/20241220033652_event_indices/migration.sql b/apps/backend/prisma/migrations/20241220033652_event_indices/migration.sql new file mode 100644 index 000000000..fe9b2d658 --- /dev/null +++ b/apps/backend/prisma/migrations/20241220033652_event_indices/migration.sql @@ -0,0 +1,2 @@ +CREATE INDEX idx_event_userid ON "Event" ((data->>'userId')); +CREATE INDEX idx_event_projectid ON "Event" ((data->>'projectId')); \ No newline at end of file