From b594579158598eb525b6afcd472ff96366eaf3f2 Mon Sep 17 00:00:00 2001 From: Sharon Dcruz Date: Mon, 4 Aug 2025 05:47:40 +0000 Subject: [PATCH] expiry-notification (#77) Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/77 Co-authored-by: Sharon Dcruz Co-committed-by: Sharon Dcruz --- firestore.indexes.json | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/firestore.indexes.json b/firestore.indexes.json index 49c7af5..4e84252 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -70,6 +70,20 @@ } ] }, + { + "collectionGroup": "notifications", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "data.clientId", + "order": "ASCENDING" + }, + { + "fieldPath": "timestamp", + "order": "DESCENDING" + } + ] + }, { "collectionGroup": "notifications", "queryScope": "COLLECTION", @@ -117,9 +131,23 @@ { "fieldPath": "timestamp", "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "notifications", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "data.ownerId", + "order": "ASCENDING" }, { - "fieldPath": "__name__", + "fieldPath": "type", + "order": "ASCENDING" + }, + { + "fieldPath": "timestamp", "order": "DESCENDING" } ] @@ -135,10 +163,6 @@ { "fieldPath": "timestamp", "order": "DESCENDING" - }, - { - "fieldPath": "__name__", - "order": "DESCENDING" } ] },