From 53ddb1243be61121485dac57cefde4fa13a334b2 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Thu, 7 Jul 2022 15:41:44 -0700 Subject: [PATCH] Clone missing indexes from firestore --- firestore.indexes.json | 108 ++++++++++++++++++++++++++--------------- 1 file changed, 68 insertions(+), 40 deletions(-) diff --git a/firestore.indexes.json b/firestore.indexes.json index 0a8b14bd..12e88033 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -306,24 +306,6 @@ } ] }, - { - "collectionGroup": "txns", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "toId", - "order": "ASCENDING" - }, - { - "fieldPath": "toType", - "order": "ASCENDING" - }, - { - "fieldPath": "createdTime", - "order": "DESCENDING" - } - ] - }, { "collectionGroup": "manalinks", "queryScope": "COLLECTION", @@ -338,6 +320,34 @@ } ] }, + { + "collectionGroup": "notifications", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "isSeen", + "order": "ASCENDING" + }, + { + "fieldPath": "createdTime", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "portfolioHistory", + "queryScope": "COLLECTION_GROUP", + "fields": [ + { + "fieldPath": "userId", + "order": "ASCENDING" + }, + { + "fieldPath": "timestamp", + "order": "ASCENDING" + } + ] + }, { "collectionGroup": "portfolioHistory", "queryScope": "COLLECTION", @@ -351,6 +361,24 @@ "order": "ASCENDING" } ] + }, + { + "collectionGroup": "txns", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "toId", + "order": "ASCENDING" + }, + { + "fieldPath": "toType", + "order": "ASCENDING" + }, + { + "fieldPath": "createdTime", + "order": "DESCENDING" + } + ] } ], "fieldOverrides": [ @@ -424,6 +452,28 @@ } ] }, + { + "collectionGroup": "bets", + "fieldPath": "id", + "indexes": [ + { + "order": "ASCENDING", + "queryScope": "COLLECTION" + }, + { + "order": "DESCENDING", + "queryScope": "COLLECTION" + }, + { + "arrayConfig": "CONTAINS", + "queryScope": "COLLECTION" + }, + { + "order": "ASCENDING", + "queryScope": "COLLECTION_GROUP" + } + ] + }, { "collectionGroup": "bets", "fieldPath": "userId", @@ -559,28 +609,6 @@ "queryScope": "COLLECTION_GROUP" } ] - }, - { - "collectionGroup": "bets", - "fieldPath": "id", - "indexes": [ - { - "order": "ASCENDING", - "queryScope": "COLLECTION" - }, - { - "order": "DESCENDING", - "queryScope": "COLLECTION" - }, - { - "arrayConfig": "CONTAINS", - "queryScope": "COLLECTION" - }, - { - "order": "ASCENDING", - "queryScope": "COLLECTION_GROUP" - } - ] } ] }