Skip to content

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.

Document structure

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.

Example

An example document /account/abcdefghi6KLmn0pqrst could look like this (JSON representation of the data):

{
  "settings": {
  	"notify_nearby_orders": true
  }
}
Clone this wiki locally