-
Notifications
You must be signed in to change notification settings - Fork 1
Firestore Collection Account
Felix Beil edited this page Apr 26, 2020
·
1 revision
Name | account |
Context | database root |
Document IDs | user ids |
The account collection stores additional information about a user, as well as some user settings that should be retiained even between devices. The names of the documents are the user ids of the accounts from Firebase Auth.
An account document stores information about user settings that should be synchronized between devices, as well as additional data about the account that are not stored by Firebase Auth.
-
settings
(map)
The settings map contains all user settings.-
notify_nearby_orders
(boolean) Controls whether a user would like to receive push notifications for open orders near them.
-
An example document /account/abcdefghi6KLmn0pqrst
could look like this (JSON representation of the data):
{
"settings": {
"notify_nearby_orders": true
}
}