# Database

Firestore is implemented as database for the app template.

When a new user is created there automatically a user record created in Firestore. This user record will be in the "USERS" collection and contain a document with the user ID for every user. The user ID is taken from the Firebase Auth user ID.

The structure of the user data is defined in

```dart
class DBUser { ... }
```

