From 5f43a86036d95f696effc958ef140e7f26aff6f9 Mon Sep 17 00:00:00 2001 From: Sharon Dcruz Date: Tue, 19 Aug 2025 07:06:26 +0000 Subject: [PATCH] notification-bug-fix (#96) Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/96 Co-authored-by: Sharon Dcruz Co-committed-by: Sharon Dcruz --- firestore.indexes.json | 116 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 108 insertions(+), 8 deletions(-) diff --git a/firestore.indexes.json b/firestore.indexes.json index 980f655..6f214a4 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -1,21 +1,121 @@ { "indexes": [ -{ - "collectionGroup": "notifications", + { + "collectionGroup": "day_pass_bookings", "queryScope": "COLLECTION", "fields": [ { - "fieldPath": "data.trainerId", + "fieldPath": "userId", "order": "ASCENDING" }, { - "fieldPath": "timestamp", + "fieldPath": "createdAt", "order": "DESCENDING" } ] }, { - "collectionGroup": "notifications", + "collectionGroup": "day_pass_entries", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "bookingId", + "order": "ASCENDING" + }, + { + "fieldPath": "entryDate", + "order": "ASCENDING" + } + ] + }, + { + "collectionGroup": "gyms", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "userId", + "order": "ASCENDING" + }, + { + "fieldPath": "name", + "order": "ASCENDING" + } + ] + }, + { + "collectionGroup": "gyms", + "queryScope": "COLLECTION_GROUP", + "fields": [ + { + "fieldPath": "userId", + "order": "ASCENDING" + }, + { + "fieldPath": "createdAt", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "gyms", + "queryScope": "COLLECTION_GROUP", + "fields": [ + { + "fieldPath": "userId", + "order": "ASCENDING" + }, + { + "fieldPath": "createdAt", + "order": "ASCENDING" + } + ] + }, + { + "collectionGroup": "gyms", + "queryScope": "COLLECTION_GROUP", + "fields": [ + { + "fieldPath": "isApproved", + "order": "ASCENDING" + }, + { + "fieldPath": "createdAt", + "order": "ASCENDING" + } + ] + }, + { + "collectionGroup": "memberships", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "gymId", + "order": "ASCENDING" + }, + { + "fieldPath": "createdAt", + "order": "DESCENDING" + } + ] + }, + + { + "collectionGroup": "workout_logs", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "user_id", + "order": "ASCENDING" + }, + { + "fieldPath": "date", + "order": "DESCENDING" + } + ] + }, + + { + "collectionGroup": "workout_logs", "queryScope": "COLLECTION", "fields": [ { @@ -23,8 +123,8 @@ "order": "ASCENDING" }, { - "fieldPath": "timestamp", - "order": "DESCENDING" + "fieldPath": "date", + "order": "ASCENDING" } ] }, @@ -90,4 +190,4 @@ } ], "fieldOverrides": [] -} +} \ No newline at end of file