diff --git a/firestore.indexes.json b/firestore.indexes.json index 0bae7a0..2016f51 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -1,5 +1,19 @@ { "indexes": [ + { + "collectionGroup": "day_pass_bookings", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "userId", + "order": "ASCENDING" + }, + { + "fieldPath": "createdAt", + "order": "DESCENDING" + } + ] + }, { "collectionGroup": "day_pass_entries", "queryScope": "COLLECTION", @@ -24,20 +38,20 @@ }, { "fieldPath": "createdAt", - "order": "DESCENDING" + "order": "ASCENDING" } ] }, { "collectionGroup": "gyms", - "queryScope": "COLLECTION_GROUP", + "queryScope": "COLLECTION", "fields": [ { - "fieldPath": "isApproved", + "fieldPath": "userId", "order": "ASCENDING" }, { - "fieldPath": "createdAt", + "fieldPath": "name", "order": "ASCENDING" } ]