Clone missing indexes from firestore

This commit is contained in:
Austin Chen 2022-07-07 15:41:44 -07:00
parent c3bc25a4b9
commit 53ddb1243b

View File

@ -306,24 +306,6 @@
} }
] ]
}, },
{
"collectionGroup": "txns",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "toId",
"order": "ASCENDING"
},
{
"fieldPath": "toType",
"order": "ASCENDING"
},
{
"fieldPath": "createdTime",
"order": "DESCENDING"
}
]
},
{ {
"collectionGroup": "manalinks", "collectionGroup": "manalinks",
"queryScope": "COLLECTION", "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", "collectionGroup": "portfolioHistory",
"queryScope": "COLLECTION", "queryScope": "COLLECTION",
@ -351,6 +361,24 @@
"order": "ASCENDING" "order": "ASCENDING"
} }
] ]
},
{
"collectionGroup": "txns",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "toId",
"order": "ASCENDING"
},
{
"fieldPath": "toType",
"order": "ASCENDING"
},
{
"fieldPath": "createdTime",
"order": "DESCENDING"
}
]
} }
], ],
"fieldOverrides": [ "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", "collectionGroup": "bets",
"fieldPath": "userId", "fieldPath": "userId",
@ -559,28 +609,6 @@
"queryScope": "COLLECTION_GROUP" "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"
}
]
} }
] ]
} }